@sayren/store-sdk 0.30.4 → 0.30.5

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
@@ -33,8 +33,8 @@ export declare const auditLogSourceSchema: z.ZodEnum<{
33
33
  }>;
34
34
  export type AuditLogSource = z.infer<typeof auditLogSourceSchema>;
35
35
  export declare const auditLogOutcomeSchema: z.ZodEnum<{
36
- SUCCEEDED: "SUCCEEDED";
37
36
  FAILED: "FAILED";
37
+ SUCCEEDED: "SUCCEEDED";
38
38
  PENDING_APPROVAL: "PENDING_APPROVAL";
39
39
  DENIED: "DENIED";
40
40
  DRY_RUN: "DRY_RUN";
@@ -69,8 +69,8 @@ export declare const auditLogSchema: z.ZodObject<{
69
69
  path: z.ZodNullable<z.ZodString>;
70
70
  statusCode: z.ZodNullable<z.ZodNumber>;
71
71
  outcome: z.ZodNullable<z.ZodEnum<{
72
- SUCCEEDED: "SUCCEEDED";
73
72
  FAILED: "FAILED";
73
+ SUCCEEDED: "SUCCEEDED";
74
74
  PENDING_APPROVAL: "PENDING_APPROVAL";
75
75
  DENIED: "DENIED";
76
76
  DRY_RUN: "DRY_RUN";
@@ -102,8 +102,8 @@ export declare const auditLogListQuerySchema: z.ZodObject<{
102
102
  DOMAIN: "DOMAIN";
103
103
  }>>;
104
104
  outcome: z.ZodOptional<z.ZodEnum<{
105
- SUCCEEDED: "SUCCEEDED";
106
105
  FAILED: "FAILED";
106
+ SUCCEEDED: "SUCCEEDED";
107
107
  PENDING_APPROVAL: "PENDING_APPROVAL";
108
108
  DENIED: "DENIED";
109
109
  DRY_RUN: "DRY_RUN";
@@ -149,8 +149,8 @@ export declare const auditLogPageSchema: z.ZodObject<{
149
149
  path: z.ZodNullable<z.ZodString>;
150
150
  statusCode: z.ZodNullable<z.ZodNumber>;
151
151
  outcome: z.ZodNullable<z.ZodEnum<{
152
- SUCCEEDED: "SUCCEEDED";
153
152
  FAILED: "FAILED";
153
+ SUCCEEDED: "SUCCEEDED";
154
154
  PENDING_APPROVAL: "PENDING_APPROVAL";
155
155
  DENIED: "DENIED";
156
156
  DRY_RUN: "DRY_RUN";
@@ -165,9 +165,9 @@ 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
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
168
169
  DENIED: "DENIED";
169
170
  ALLOW: "ALLOW";
170
- APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
171
171
  }>;
172
172
  export type AgentPolicyDecision = z.infer<typeof agentPolicyDecisionSchema>;
173
173
  export declare const writePreviewSchema: z.ZodObject<{
@@ -191,9 +191,9 @@ 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
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
194
195
  DENIED: "DENIED";
195
196
  ALLOW: "ALLOW";
196
- APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
197
197
  }>;
198
198
  reason: z.ZodNullable<z.ZodString>;
199
199
  preview: z.ZodObject<{
@@ -215,11 +215,11 @@ export declare const writeDryRunResultSchema: z.ZodObject<{
215
215
  }, z.core.$strip>;
216
216
  export type WriteDryRunResult = z.infer<typeof writeDryRunResultSchema>;
217
217
  export declare const approvalStatusSchema: z.ZodEnum<{
218
- SUCCEEDED: "SUCCEEDED";
219
- FAILED: "FAILED";
218
+ UNKNOWN: "UNKNOWN";
220
219
  PENDING: "PENDING";
220
+ FAILED: "FAILED";
221
+ SUCCEEDED: "SUCCEEDED";
221
222
  EXECUTING: "EXECUTING";
222
- UNKNOWN: "UNKNOWN";
223
223
  REJECTED: "REJECTED";
224
224
  EXPIRED: "EXPIRED";
225
225
  }>;
@@ -227,11 +227,11 @@ export type ApprovalStatus = z.infer<typeof approvalStatusSchema>;
227
227
  export declare const approvalRequestSchema: z.ZodObject<{
228
228
  approvalId: z.ZodString;
229
229
  status: z.ZodEnum<{
230
- SUCCEEDED: "SUCCEEDED";
231
- FAILED: "FAILED";
230
+ UNKNOWN: "UNKNOWN";
232
231
  PENDING: "PENDING";
232
+ FAILED: "FAILED";
233
+ SUCCEEDED: "SUCCEEDED";
233
234
  EXECUTING: "EXECUTING";
234
- UNKNOWN: "UNKNOWN";
235
235
  REJECTED: "REJECTED";
236
236
  EXPIRED: "EXPIRED";
237
237
  }>;
@@ -291,11 +291,11 @@ export declare const approvalRequestSchema: z.ZodObject<{
291
291
  export type ApprovalRequest = z.infer<typeof approvalRequestSchema>;
292
292
  export declare const approvalListQuerySchema: z.ZodObject<{
293
293
  status: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodEnum<{
294
- SUCCEEDED: "SUCCEEDED";
295
- FAILED: "FAILED";
294
+ UNKNOWN: "UNKNOWN";
296
295
  PENDING: "PENDING";
296
+ FAILED: "FAILED";
297
+ SUCCEEDED: "SUCCEEDED";
297
298
  EXECUTING: "EXECUTING";
298
- UNKNOWN: "UNKNOWN";
299
299
  REJECTED: "REJECTED";
300
300
  EXPIRED: "EXPIRED";
301
301
  }>>>>;
@@ -310,11 +310,11 @@ export declare const approvalPageSchema: z.ZodObject<{
310
310
  items: z.ZodArray<z.ZodObject<{
311
311
  approvalId: z.ZodString;
312
312
  status: z.ZodEnum<{
313
- SUCCEEDED: "SUCCEEDED";
314
- FAILED: "FAILED";
313
+ UNKNOWN: "UNKNOWN";
315
314
  PENDING: "PENDING";
315
+ FAILED: "FAILED";
316
+ SUCCEEDED: "SUCCEEDED";
316
317
  EXECUTING: "EXECUTING";
317
- UNKNOWN: "UNKNOWN";
318
318
  REJECTED: "REJECTED";
319
319
  EXPIRED: "EXPIRED";
320
320
  }>;
@@ -587,7 +587,6 @@ export declare const analyticsProductsSchema: z.ZodObject<{
587
587
  }, z.core.$strip>;
588
588
  export type AnalyticsProducts = z.infer<typeof analyticsProductsSchema>;
589
589
  export declare const analyticsChannelSchema: z.ZodEnum<{
590
- UNKNOWN: "UNKNOWN";
591
590
  DIRECT: "DIRECT";
592
591
  ORGANIC_SEARCH: "ORGANIC_SEARCH";
593
592
  SOCIAL: "SOCIAL";
@@ -595,6 +594,7 @@ export declare const analyticsChannelSchema: z.ZodEnum<{
595
594
  EMAIL: "EMAIL";
596
595
  CAMPAIGN: "CAMPAIGN";
597
596
  REFERRAL: "REFERRAL";
597
+ UNKNOWN: "UNKNOWN";
598
598
  }>;
599
599
  export type AnalyticsChannel = z.infer<typeof analyticsChannelSchema>;
600
600
  export declare const analyticsSourceGroupBySchema: z.ZodEnum<{
@@ -621,7 +621,6 @@ export declare const analyticsSourcesQuerySchema: z.ZodObject<{
621
621
  export type AnalyticsSourcesParams = z.infer<typeof analyticsSourcesQuerySchema>;
622
622
  export declare const analyticsSourceRowSchema: z.ZodObject<{
623
623
  channel: z.ZodNullable<z.ZodEnum<{
624
- UNKNOWN: "UNKNOWN";
625
624
  DIRECT: "DIRECT";
626
625
  ORGANIC_SEARCH: "ORGANIC_SEARCH";
627
626
  SOCIAL: "SOCIAL";
@@ -629,6 +628,7 @@ export declare const analyticsSourceRowSchema: z.ZodObject<{
629
628
  EMAIL: "EMAIL";
630
629
  CAMPAIGN: "CAMPAIGN";
631
630
  REFERRAL: "REFERRAL";
631
+ UNKNOWN: "UNKNOWN";
632
632
  }>>;
633
633
  source: z.ZodNullable<z.ZodString>;
634
634
  medium: z.ZodNullable<z.ZodString>;
@@ -657,7 +657,6 @@ export declare const analyticsSourcesSchema: z.ZodObject<{
657
657
  }>;
658
658
  rows: z.ZodArray<z.ZodObject<{
659
659
  channel: z.ZodNullable<z.ZodEnum<{
660
- UNKNOWN: "UNKNOWN";
661
660
  DIRECT: "DIRECT";
662
661
  ORGANIC_SEARCH: "ORGANIC_SEARCH";
663
662
  SOCIAL: "SOCIAL";
@@ -665,6 +664,7 @@ export declare const analyticsSourcesSchema: z.ZodObject<{
665
664
  EMAIL: "EMAIL";
666
665
  CAMPAIGN: "CAMPAIGN";
667
666
  REFERRAL: "REFERRAL";
667
+ UNKNOWN: "UNKNOWN";
668
668
  }>>;
669
669
  source: z.ZodNullable<z.ZodString>;
670
670
  medium: z.ZodNullable<z.ZodString>;
@@ -1276,8 +1276,8 @@ export declare const claimTypeSchema: z.ZodEnum<{
1276
1276
  }>;
1277
1277
  export type ClaimType = z.infer<typeof claimTypeSchema>;
1278
1278
  export declare const claimStatusSchema: z.ZodEnum<{
1279
- REJECTED: "REJECTED";
1280
1279
  COMPLETED: "COMPLETED";
1280
+ REJECTED: "REJECTED";
1281
1281
  REQUESTED: "REQUESTED";
1282
1282
  HELD: "HELD";
1283
1283
  COLLECTING: "COLLECTING";
@@ -1321,8 +1321,8 @@ export declare const claimSchema: z.ZodObject<{
1321
1321
  CANCEL: "CANCEL";
1322
1322
  }>;
1323
1323
  status: z.ZodEnum<{
1324
- REJECTED: "REJECTED";
1325
1324
  COMPLETED: "COMPLETED";
1325
+ REJECTED: "REJECTED";
1326
1326
  REQUESTED: "REQUESTED";
1327
1327
  HELD: "HELD";
1328
1328
  COLLECTING: "COLLECTING";
@@ -1411,8 +1411,8 @@ export declare const claimDetailSchema: z.ZodObject<{
1411
1411
  CANCEL: "CANCEL";
1412
1412
  }>;
1413
1413
  status: z.ZodEnum<{
1414
- REJECTED: "REJECTED";
1415
1414
  COMPLETED: "COMPLETED";
1415
+ REJECTED: "REJECTED";
1416
1416
  REQUESTED: "REQUESTED";
1417
1417
  HELD: "HELD";
1418
1418
  COLLECTING: "COLLECTING";
@@ -1469,8 +1469,8 @@ export declare const claimDetailSchema: z.ZodObject<{
1469
1469
  }, z.core.$strip>>;
1470
1470
  histories: z.ZodOptional<z.ZodArray<z.ZodObject<{
1471
1471
  status: z.ZodEnum<{
1472
- REJECTED: "REJECTED";
1473
1472
  COMPLETED: "COMPLETED";
1473
+ REJECTED: "REJECTED";
1474
1474
  REQUESTED: "REQUESTED";
1475
1475
  HELD: "HELD";
1476
1476
  COLLECTING: "COLLECTING";
@@ -1517,6 +1517,7 @@ export declare const approveClaimResultSchema: z.ZodObject<{
1517
1517
  couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1518
1518
  pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1519
1519
  refundedAt: z.ZodString;
1520
+ refundHeld: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1520
1521
  }, z.core.$strip>;
1521
1522
  export type ApproveClaimResult = z.infer<typeof approveClaimResultSchema>;
1522
1523
  //#endregion
@@ -2095,8 +2096,8 @@ export declare const flowStateSchema: z.ZodObject<{
2095
2096
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
2096
2097
  }>>;
2097
2098
  claimStatus: z.ZodOptional<z.ZodEnum<{
2098
- REJECTED: "REJECTED";
2099
2099
  COMPLETED: "COMPLETED";
2100
+ REJECTED: "REJECTED";
2100
2101
  REQUESTED: "REQUESTED";
2101
2102
  HELD: "HELD";
2102
2103
  COLLECTING: "COLLECTING";
@@ -2143,8 +2144,8 @@ export declare const orderItemFlowSchema: z.ZodObject<{
2143
2144
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
2144
2145
  }>>;
2145
2146
  claimStatus: z.ZodOptional<z.ZodEnum<{
2146
- REJECTED: "REJECTED";
2147
2147
  COMPLETED: "COMPLETED";
2148
+ REJECTED: "REJECTED";
2148
2149
  REQUESTED: "REQUESTED";
2149
2150
  HELD: "HELD";
2150
2151
  COLLECTING: "COLLECTING";
@@ -2238,8 +2239,8 @@ export declare const orderItemFlowSchema: z.ZodObject<{
2238
2239
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
2239
2240
  }>>;
2240
2241
  claimStatus: z.ZodOptional<z.ZodEnum<{
2241
- REJECTED: "REJECTED";
2242
2242
  COMPLETED: "COMPLETED";
2243
+ REJECTED: "REJECTED";
2243
2244
  REQUESTED: "REQUESTED";
2244
2245
  HELD: "HELD";
2245
2246
  COLLECTING: "COLLECTING";
@@ -2329,8 +2330,8 @@ export declare const flowActionResultSchema: z.ZodObject<{
2329
2330
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
2330
2331
  }>>;
2331
2332
  claimStatus: z.ZodOptional<z.ZodEnum<{
2332
- REJECTED: "REJECTED";
2333
2333
  COMPLETED: "COMPLETED";
2334
+ REJECTED: "REJECTED";
2334
2335
  REQUESTED: "REQUESTED";
2335
2336
  HELD: "HELD";
2336
2337
  COLLECTING: "COLLECTING";
@@ -2572,8 +2573,8 @@ export declare const orderFlowActionResultSchema: z.ZodObject<{
2572
2573
  results: z.ZodArray<z.ZodObject<{
2573
2574
  orderItemId: z.ZodString;
2574
2575
  status: z.ZodEnum<{
2575
- FAILED: "FAILED";
2576
2576
  COMPLETED: "COMPLETED";
2577
+ FAILED: "FAILED";
2577
2578
  SKIPPED: "SKIPPED";
2578
2579
  }>;
2579
2580
  reason: z.ZodOptional<z.ZodString>;
@@ -2691,6 +2692,23 @@ export declare const flowNodeTypesSchema: z.ZodObject<{
2691
2692
  effect: z.ZodString;
2692
2693
  configSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2693
2694
  }, z.core.$strip>>;
2695
+ platformActions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2696
+ key: z.ZodString;
2697
+ side: z.ZodEnum<{
2698
+ buyer: "buyer";
2699
+ seller: "seller";
2700
+ }>;
2701
+ label: z.ZodString;
2702
+ mode: z.ZodEnum<{
2703
+ REQUEST: "REQUEST";
2704
+ INSTANT: "INSTANT";
2705
+ VIEW: "VIEW";
2706
+ }>;
2707
+ subflow: z.ZodOptional<z.ZodString>;
2708
+ window: z.ZodBoolean;
2709
+ fee: z.ZodBoolean;
2710
+ listed: z.ZodBoolean;
2711
+ }, z.core.$strip>>>>;
2694
2712
  }, z.core.$strip>;
2695
2713
  export type FlowNodeTypes = z.infer<typeof flowNodeTypesSchema>;
2696
2714
  //#endregion
@@ -3996,10 +4014,10 @@ export declare const webhookSecretRotatedSchema: z.ZodObject<{
3996
4014
  }, z.core.$strip>;
3997
4015
  export type WebhookSecretRotated = z.infer<typeof webhookSecretRotatedSchema>;
3998
4016
  export declare const webhookDeliveryStatusSchema: z.ZodEnum<{
3999
- FAILED: "FAILED";
4000
4017
  PENDING: "PENDING";
4001
4018
  PENDING_RETRY: "PENDING_RETRY";
4002
4019
  SUCCESS: "SUCCESS";
4020
+ FAILED: "FAILED";
4003
4021
  }>;
4004
4022
  export type WebhookDeliveryStatus = z.infer<typeof webhookDeliveryStatusSchema>;
4005
4023
  export declare const webhookDeliveryErrorCodeSchema: z.ZodEnum<{
@@ -4063,10 +4081,10 @@ export declare const webhookDeliverySchema: z.ZodObject<{
4063
4081
  }>;
4064
4082
  url: z.ZodString;
4065
4083
  status: z.ZodEnum<{
4066
- FAILED: "FAILED";
4067
4084
  PENDING: "PENDING";
4068
4085
  PENDING_RETRY: "PENDING_RETRY";
4069
4086
  SUCCESS: "SUCCESS";
4087
+ FAILED: "FAILED";
4070
4088
  }>;
4071
4089
  responseStatusCode: z.ZodNullable<z.ZodNumber>;
4072
4090
  responseTimeMs: z.ZodNullable<z.ZodNumber>;
@@ -4118,10 +4136,10 @@ export declare const webhookDeliveryDetailSchema: z.ZodObject<{
4118
4136
  }>;
4119
4137
  url: z.ZodString;
4120
4138
  status: z.ZodEnum<{
4121
- FAILED: "FAILED";
4122
4139
  PENDING: "PENDING";
4123
4140
  PENDING_RETRY: "PENDING_RETRY";
4124
4141
  SUCCESS: "SUCCESS";
4142
+ FAILED: "FAILED";
4125
4143
  }>;
4126
4144
  responseStatusCode: z.ZodNullable<z.ZodNumber>;
4127
4145
  responseTimeMs: z.ZodNullable<z.ZodNumber>;
@@ -4156,10 +4174,10 @@ export type WebhookDeliveryDetail = z.infer<typeof webhookDeliveryDetailSchema>;
4156
4174
  /** 전송 기록 조회 쿼리 — `GET /webhooks/{id}/deliveries` */
4157
4175
  export declare const webhookDeliveryListQuerySchema: z.ZodObject<{
4158
4176
  status: z.ZodOptional<z.ZodEnum<{
4159
- FAILED: "FAILED";
4160
4177
  PENDING: "PENDING";
4161
4178
  PENDING_RETRY: "PENDING_RETRY";
4162
4179
  SUCCESS: "SUCCESS";
4180
+ FAILED: "FAILED";
4163
4181
  }>>;
4164
4182
  eventType: z.ZodOptional<z.ZodEnum<{
4165
4183
  "ORDER.PAID": "ORDER.PAID";
@@ -5024,6 +5042,7 @@ export declare const cancelBySellerRequestSchema: z.ZodObject<{
5024
5042
  }>;
5025
5043
  detail: z.ZodOptional<z.ZodString>;
5026
5044
  quantity: z.ZodOptional<z.ZodNumber>;
5045
+ holdRefund: z.ZodOptional<z.ZodBoolean>;
5027
5046
  }, z.core.$strip>;
5028
5047
  export type CancelBySellerRequest = z.infer<typeof cancelBySellerRequestSchema>;
5029
5048
  /**
@@ -5052,6 +5071,7 @@ export declare const cancelBySellerResultSchema: z.ZodObject<{
5052
5071
  couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5053
5072
  pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5054
5073
  refundedAt: z.ZodString;
5074
+ refundHeld: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5055
5075
  }, z.core.$strip>;
5056
5076
  export type CancelBySellerResult = z.infer<typeof cancelBySellerResultSchema>;
5057
5077
  /** `PUT /v1/order-items/{orderItemId}/memo` 응답 — 빈 문자열로 저장하면 메모가 지워져 `null`이다 */
@@ -5123,8 +5143,8 @@ export declare const pgEnvironmentSchema: z.ZodEnum<{
5123
5143
  }>;
5124
5144
  export type PgEnvironment = z.infer<typeof pgEnvironmentSchema>;
5125
5145
  export declare const pgVerificationResultSchema: z.ZodEnum<{
5126
- FAILED: "FAILED";
5127
5146
  SUCCESS: "SUCCESS";
5147
+ FAILED: "FAILED";
5128
5148
  }>;
5129
5149
  export type PgVerificationResult = z.infer<typeof pgVerificationResultSchema>;
5130
5150
  /**
@@ -5273,8 +5293,8 @@ export declare const paymentCredentialSetSchema: z.ZodObject<{
5273
5293
  }, z.core.$strip>>;
5274
5294
  lastVerification: z.ZodNullable<z.ZodObject<{
5275
5295
  result: z.ZodEnum<{
5276
- FAILED: "FAILED";
5277
5296
  SUCCESS: "SUCCESS";
5297
+ FAILED: "FAILED";
5278
5298
  }>;
5279
5299
  message: z.ZodNullable<z.ZodString>;
5280
5300
  checkedAt: z.ZodString;
@@ -5375,8 +5395,8 @@ export declare const paymentProviderSchema: z.ZodObject<{
5375
5395
  }, z.core.$strip>>;
5376
5396
  lastVerification: z.ZodNullable<z.ZodObject<{
5377
5397
  result: z.ZodEnum<{
5378
- FAILED: "FAILED";
5379
5398
  SUCCESS: "SUCCESS";
5399
+ FAILED: "FAILED";
5380
5400
  }>;
5381
5401
  message: z.ZodNullable<z.ZodString>;
5382
5402
  checkedAt: z.ZodString;
@@ -5412,8 +5432,8 @@ export declare const paymentProviderSchema: z.ZodObject<{
5412
5432
  }, z.core.$strip>>;
5413
5433
  lastVerification: z.ZodNullable<z.ZodObject<{
5414
5434
  result: z.ZodEnum<{
5415
- FAILED: "FAILED";
5416
5435
  SUCCESS: "SUCCESS";
5436
+ FAILED: "FAILED";
5417
5437
  }>;
5418
5438
  message: z.ZodNullable<z.ZodString>;
5419
5439
  checkedAt: z.ZodString;
@@ -5448,8 +5468,8 @@ export declare const paymentProviderSchema: z.ZodObject<{
5448
5468
  }, z.core.$strip>>;
5449
5469
  lastVerification: z.ZodNullable<z.ZodObject<{
5450
5470
  result: z.ZodEnum<{
5451
- FAILED: "FAILED";
5452
5471
  SUCCESS: "SUCCESS";
5472
+ FAILED: "FAILED";
5453
5473
  }>;
5454
5474
  message: z.ZodNullable<z.ZodString>;
5455
5475
  checkedAt: z.ZodString;
@@ -5539,8 +5559,8 @@ export declare const paymentSettingsSchema: z.ZodObject<{
5539
5559
  }, z.core.$strip>>;
5540
5560
  lastVerification: z.ZodNullable<z.ZodObject<{
5541
5561
  result: z.ZodEnum<{
5542
- FAILED: "FAILED";
5543
5562
  SUCCESS: "SUCCESS";
5563
+ FAILED: "FAILED";
5544
5564
  }>;
5545
5565
  message: z.ZodNullable<z.ZodString>;
5546
5566
  checkedAt: z.ZodString;
@@ -5576,8 +5596,8 @@ export declare const paymentSettingsSchema: z.ZodObject<{
5576
5596
  }, z.core.$strip>>;
5577
5597
  lastVerification: z.ZodNullable<z.ZodObject<{
5578
5598
  result: z.ZodEnum<{
5579
- FAILED: "FAILED";
5580
5599
  SUCCESS: "SUCCESS";
5600
+ FAILED: "FAILED";
5581
5601
  }>;
5582
5602
  message: z.ZodNullable<z.ZodString>;
5583
5603
  checkedAt: z.ZodString;
@@ -5612,8 +5632,8 @@ export declare const paymentSettingsSchema: z.ZodObject<{
5612
5632
  }, z.core.$strip>>;
5613
5633
  lastVerification: z.ZodNullable<z.ZodObject<{
5614
5634
  result: z.ZodEnum<{
5615
- FAILED: "FAILED";
5616
5635
  SUCCESS: "SUCCESS";
5636
+ FAILED: "FAILED";
5617
5637
  }>;
5618
5638
  message: z.ZodNullable<z.ZodString>;
5619
5639
  checkedAt: z.ZodString;
@@ -5669,8 +5689,8 @@ export declare const paymentProviderVerificationSchema: z.ZodObject<{
5669
5689
  LIVE: "LIVE";
5670
5690
  }>;
5671
5691
  result: z.ZodEnum<{
5672
- FAILED: "FAILED";
5673
5692
  SUCCESS: "SUCCESS";
5693
+ FAILED: "FAILED";
5674
5694
  }>;
5675
5695
  message: z.ZodNullable<z.ZodString>;
5676
5696
  checkedAt: z.ZodString;
@@ -5800,8 +5820,8 @@ export type SalesReport = z.infer<typeof salesReportSchema>;
5800
5820
  * - `FAILED`: 승인되지 않고 끝났다(거절·준비 장애·구매자 취소·만료)
5801
5821
  */
5802
5822
  export declare const paymentRecordStatusSchema: z.ZodEnum<{
5803
- FAILED: "FAILED";
5804
5823
  PENDING: "PENDING";
5824
+ FAILED: "FAILED";
5805
5825
  APPROVED: "APPROVED";
5806
5826
  PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
5807
5827
  REFUNDED: "REFUNDED";
@@ -5848,14 +5868,15 @@ export declare const paymentRecordSchema: z.ZodObject<{
5848
5868
  orderName: z.ZodString;
5849
5869
  customerName: z.ZodString;
5850
5870
  status: z.ZodEnum<{
5851
- FAILED: "FAILED";
5852
5871
  PENDING: "PENDING";
5872
+ FAILED: "FAILED";
5853
5873
  APPROVED: "APPROVED";
5854
5874
  PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
5855
5875
  REFUNDED: "REFUNDED";
5856
5876
  }>;
5857
5877
  amount: z.ZodNumber;
5858
5878
  refundedAmount: z.ZodNumber;
5879
+ heldRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5859
5880
  provider: z.ZodNullable<z.ZodEnum<{
5860
5881
  tosspayments: "tosspayments";
5861
5882
  portone: "portone";
@@ -5895,14 +5916,15 @@ export declare const paymentRecordPageSchema: z.ZodObject<{
5895
5916
  orderName: z.ZodString;
5896
5917
  customerName: z.ZodString;
5897
5918
  status: z.ZodEnum<{
5898
- FAILED: "FAILED";
5899
5919
  PENDING: "PENDING";
5920
+ FAILED: "FAILED";
5900
5921
  APPROVED: "APPROVED";
5901
5922
  PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
5902
5923
  REFUNDED: "REFUNDED";
5903
5924
  }>;
5904
5925
  amount: z.ZodNumber;
5905
5926
  refundedAmount: z.ZodNumber;
5927
+ heldRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5906
5928
  provider: z.ZodNullable<z.ZodEnum<{
5907
5929
  tosspayments: "tosspayments";
5908
5930
  portone: "portone";
@@ -5987,14 +6009,15 @@ export declare const paymentRecordDetailSchema: z.ZodObject<{
5987
6009
  orderName: z.ZodString;
5988
6010
  customerName: z.ZodString;
5989
6011
  status: z.ZodEnum<{
5990
- FAILED: "FAILED";
5991
6012
  PENDING: "PENDING";
6013
+ FAILED: "FAILED";
5992
6014
  APPROVED: "APPROVED";
5993
6015
  PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
5994
6016
  REFUNDED: "REFUNDED";
5995
6017
  }>;
5996
6018
  amount: z.ZodNumber;
5997
6019
  refundedAmount: z.ZodNumber;
6020
+ heldRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5998
6021
  provider: z.ZodNullable<z.ZodEnum<{
5999
6022
  tosspayments: "tosspayments";
6000
6023
  portone: "portone";
@@ -6103,6 +6126,7 @@ export declare const paymentListQuerySchema: z.ZodObject<{
6103
6126
  method: z.ZodOptional<z.ZodString>;
6104
6127
  keyword: z.ZodOptional<z.ZodString>;
6105
6128
  includeTest: z.ZodOptional<z.ZodString>;
6129
+ refundHeld: z.ZodOptional<z.ZodString>;
6106
6130
  page: z.ZodOptional<z.ZodString>;
6107
6131
  size: z.ZodOptional<z.ZodString>;
6108
6132
  }, z.core.$strip>;
@@ -6114,6 +6138,8 @@ export interface PaymentListParams extends PageParams {
6114
6138
  method?: PgPaymentMethod;
6115
6139
  keyword?: string;
6116
6140
  includeTest?: boolean;
6141
+ /** 환불 대기가 있는 결제만(#115) */
6142
+ refundHeld?: boolean;
6117
6143
  }
6118
6144
  //#endregion
6119
6145
  //#region src/schemas/points.d.ts
@@ -8048,8 +8074,8 @@ export type StorefrontDomain = z.infer<typeof storefrontDomainSchema>;
8048
8074
  */
8049
8075
  export declare const storefrontProvisioningSchema: z.ZodObject<{
8050
8076
  status: z.ZodEnum<{
8051
- FAILED: "FAILED";
8052
8077
  PENDING: "PENDING";
8078
+ FAILED: "FAILED";
8053
8079
  SYNCED: "SYNCED";
8054
8080
  }>;
8055
8081
  lastErrorCode: z.ZodNullable<z.ZodString>;
@@ -8129,8 +8155,8 @@ export declare const storefrontSiteSchema: z.ZodObject<{
8129
8155
  }, z.core.$strip>>;
8130
8156
  provisioning: z.ZodObject<{
8131
8157
  status: z.ZodEnum<{
8132
- FAILED: "FAILED";
8133
8158
  PENDING: "PENDING";
8159
+ FAILED: "FAILED";
8134
8160
  SYNCED: "SYNCED";
8135
8161
  }>;
8136
8162
  lastErrorCode: z.ZodNullable<z.ZodString>;
@@ -8209,8 +8235,8 @@ export declare const storefrontHostingSchema: z.ZodObject<{
8209
8235
  }, z.core.$strip>>;
8210
8236
  provisioning: z.ZodObject<{
8211
8237
  status: z.ZodEnum<{
8212
- FAILED: "FAILED";
8213
8238
  PENDING: "PENDING";
8239
+ FAILED: "FAILED";
8214
8240
  SYNCED: "SYNCED";
8215
8241
  }>;
8216
8242
  lastErrorCode: z.ZodNullable<z.ZodString>;
@@ -8252,8 +8278,8 @@ export declare const storefrontDeploymentStepSchema: z.ZodObject<{
8252
8278
  PUBLISH: "PUBLISH";
8253
8279
  }>;
8254
8280
  status: z.ZodEnum<{
8255
- FAILED: "FAILED";
8256
8281
  PENDING: "PENDING";
8282
+ FAILED: "FAILED";
8257
8283
  RUNNING: "RUNNING";
8258
8284
  DONE: "DONE";
8259
8285
  }>;
@@ -8274,9 +8300,9 @@ export type StorefrontDeploymentLog = z.infer<typeof storefrontDeploymentLogSche
8274
8300
  export declare const storefrontDeploymentSchema: z.ZodObject<{
8275
8301
  siteId: z.ZodString;
8276
8302
  status: z.ZodEnum<{
8277
- SUCCEEDED: "SUCCEEDED";
8278
- FAILED: "FAILED";
8279
8303
  IN_PROGRESS: "IN_PROGRESS";
8304
+ FAILED: "FAILED";
8305
+ SUCCEEDED: "SUCCEEDED";
8280
8306
  }>;
8281
8307
  url: z.ZodString;
8282
8308
  startedAt: z.ZodString;
@@ -8288,8 +8314,8 @@ export declare const storefrontDeploymentSchema: z.ZodObject<{
8288
8314
  PUBLISH: "PUBLISH";
8289
8315
  }>;
8290
8316
  status: z.ZodEnum<{
8291
- FAILED: "FAILED";
8292
8317
  PENDING: "PENDING";
8318
+ FAILED: "FAILED";
8293
8319
  RUNNING: "RUNNING";
8294
8320
  DONE: "DONE";
8295
8321
  }>;
@@ -8409,8 +8435,8 @@ export declare function storefrontCustomHostnameProblem(hostname: string, hostin
8409
8435
  /** 소유 확인 TXT 레코드의 전체 이름 */
8410
8436
  export declare function storefrontDomainTxtNameOf(hostname: string): string;
8411
8437
  export declare const storefrontCustomDomainStatusSchema: z.ZodEnum<{
8412
- FAILED: "FAILED";
8413
8438
  ACTIVE: "ACTIVE";
8439
+ FAILED: "FAILED";
8414
8440
  PENDING_DNS: "PENDING_DNS";
8415
8441
  PENDING_VALIDATION: "PENDING_VALIDATION";
8416
8442
  }>;
@@ -8436,8 +8462,8 @@ export declare const storefrontSiteDomainSchema: z.ZodObject<{
8436
8462
  CUSTOM: "CUSTOM";
8437
8463
  }>;
8438
8464
  status: z.ZodEnum<{
8439
- FAILED: "FAILED";
8440
8465
  ACTIVE: "ACTIVE";
8466
+ FAILED: "FAILED";
8441
8467
  PENDING_DNS: "PENDING_DNS";
8442
8468
  PENDING_VALIDATION: "PENDING_VALIDATION";
8443
8469
  }>;
@@ -8455,9 +8481,9 @@ export declare const storefrontSiteDomainSchema: z.ZodObject<{
8455
8481
  }>;
8456
8482
  }, z.core.$strip>>;
8457
8483
  certificateStatus: z.ZodNullable<z.ZodEnum<{
8458
- FAILED: "FAILED";
8459
- PENDING: "PENDING";
8460
8484
  ACTIVE: "ACTIVE";
8485
+ PENDING: "PENDING";
8486
+ FAILED: "FAILED";
8461
8487
  }>>;
8462
8488
  failureCode: z.ZodNullable<z.ZodString>;
8463
8489
  verifiedAt: z.ZodNullable<z.ZodString>;
@@ -8479,8 +8505,8 @@ export declare const storefrontSiteDomainsSchema: z.ZodObject<{
8479
8505
  CUSTOM: "CUSTOM";
8480
8506
  }>;
8481
8507
  status: z.ZodEnum<{
8482
- FAILED: "FAILED";
8483
8508
  ACTIVE: "ACTIVE";
8509
+ FAILED: "FAILED";
8484
8510
  PENDING_DNS: "PENDING_DNS";
8485
8511
  PENDING_VALIDATION: "PENDING_VALIDATION";
8486
8512
  }>;
@@ -8498,9 +8524,9 @@ export declare const storefrontSiteDomainsSchema: z.ZodObject<{
8498
8524
  }>;
8499
8525
  }, z.core.$strip>>;
8500
8526
  certificateStatus: z.ZodNullable<z.ZodEnum<{
8501
- FAILED: "FAILED";
8502
- PENDING: "PENDING";
8503
8527
  ACTIVE: "ACTIVE";
8528
+ PENDING: "PENDING";
8529
+ FAILED: "FAILED";
8504
8530
  }>>;
8505
8531
  failureCode: z.ZodNullable<z.ZodString>;
8506
8532
  verifiedAt: z.ZodNullable<z.ZodString>;
@@ -8734,8 +8760,8 @@ export declare const runStorefrontCheckRequestSchema: z.ZodObject<{
8734
8760
  }, z.core.$strip>;
8735
8761
  export type RunStorefrontCheckRequest = z.infer<typeof runStorefrontCheckRequestSchema>;
8736
8762
  export declare const storefrontCheckStatusSchema: z.ZodEnum<{
8737
- FAILED: "FAILED";
8738
8763
  UNKNOWN: "UNKNOWN";
8764
+ FAILED: "FAILED";
8739
8765
  RUNNING: "RUNNING";
8740
8766
  QUEUED: "QUEUED";
8741
8767
  PASSED: "PASSED";
@@ -8748,8 +8774,8 @@ export declare const storefrontCheckSchema: z.ZodObject<{
8748
8774
  checkId: z.ZodString;
8749
8775
  check: z.ZodString;
8750
8776
  status: z.ZodEnum<{
8751
- FAILED: "FAILED";
8752
8777
  UNKNOWN: "UNKNOWN";
8778
+ FAILED: "FAILED";
8753
8779
  RUNNING: "RUNNING";
8754
8780
  QUEUED: "QUEUED";
8755
8781
  PASSED: "PASSED";
@@ -8833,8 +8859,8 @@ export declare const storefrontVerifyReportSchema: z.ZodObject<{
8833
8859
  }, z.core.$strip>;
8834
8860
  export type StorefrontVerifyReport = z.infer<typeof storefrontVerifyReportSchema>;
8835
8861
  export declare const storefrontBuildStatusSchema: z.ZodEnum<{
8836
- SUCCEEDED: "SUCCEEDED";
8837
8862
  FAILED: "FAILED";
8863
+ SUCCEEDED: "SUCCEEDED";
8838
8864
  RUNNING: "RUNNING";
8839
8865
  QUEUED: "QUEUED";
8840
8866
  TIMED_OUT: "TIMED_OUT";
@@ -8901,8 +8927,8 @@ export declare const storefrontBuildSchema: z.ZodObject<{
8901
8927
  versionId: z.ZodString;
8902
8928
  versionNumber: z.ZodNumber;
8903
8929
  status: z.ZodEnum<{
8904
- SUCCEEDED: "SUCCEEDED";
8905
8930
  FAILED: "FAILED";
8931
+ SUCCEEDED: "SUCCEEDED";
8906
8932
  RUNNING: "RUNNING";
8907
8933
  QUEUED: "QUEUED";
8908
8934
  TIMED_OUT: "TIMED_OUT";
@@ -9030,8 +9056,8 @@ export declare const storefrontVersionCreatedSchema: z.ZodObject<{
9030
9056
  versionId: z.ZodString;
9031
9057
  versionNumber: z.ZodNumber;
9032
9058
  status: z.ZodEnum<{
9033
- SUCCEEDED: "SUCCEEDED";
9034
9059
  FAILED: "FAILED";
9060
+ SUCCEEDED: "SUCCEEDED";
9035
9061
  RUNNING: "RUNNING";
9036
9062
  QUEUED: "QUEUED";
9037
9063
  TIMED_OUT: "TIMED_OUT";
@@ -10810,7 +10836,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10810
10836
  key: string;
10811
10837
  results: {
10812
10838
  orderItemId: string;
10813
- status: "FAILED" | "COMPLETED" | "SKIPPED";
10839
+ status: "COMPLETED" | "FAILED" | "SKIPPED";
10814
10840
  reason?: string | undefined;
10815
10841
  message?: string | undefined;
10816
10842
  }[];
@@ -10929,6 +10955,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10929
10955
  couponChargeRefundAmount: number;
10930
10956
  pointRefundAmount: number;
10931
10957
  refundedAt: string;
10958
+ refundHeld: boolean;
10932
10959
  }>;
10933
10960
  updateMemo: (orderItemId: string, memo: string) => Promise<void>;
10934
10961
  requestPurchaseDecision: (orderItemId: string) => Promise<void>;
@@ -11189,7 +11216,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11189
11216
  enteredAt: string;
11190
11217
  fields: Record<string, string | number | boolean | string[] | null>;
11191
11218
  coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
11192
- claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11219
+ claimStatus?: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11193
11220
  message?: string | undefined;
11194
11221
  deadlineAt?: string | undefined;
11195
11222
  attachments?: string[] | undefined;
@@ -11252,7 +11279,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11252
11279
  enteredAt: string;
11253
11280
  fields: Record<string, string | number | boolean | string[] | null>;
11254
11281
  coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
11255
- claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11282
+ claimStatus?: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11256
11283
  message?: string | undefined;
11257
11284
  deadlineAt?: string | undefined;
11258
11285
  attachments?: string[] | undefined;
@@ -11281,7 +11308,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11281
11308
  enteredAt: string;
11282
11309
  fields: Record<string, string | number | boolean | string[] | null>;
11283
11310
  coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
11284
- claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11311
+ claimStatus?: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11285
11312
  message?: string | undefined;
11286
11313
  deadlineAt?: string | undefined;
11287
11314
  attachments?: string[] | undefined;
@@ -11341,7 +11368,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11341
11368
  enteredAt: string;
11342
11369
  fields: Record<string, string | number | boolean | string[] | null>;
11343
11370
  coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
11344
- claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11371
+ claimStatus?: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11345
11372
  message?: string | undefined;
11346
11373
  deadlineAt?: string | undefined;
11347
11374
  attachments?: string[] | undefined;
@@ -11401,7 +11428,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11401
11428
  enteredAt: string;
11402
11429
  fields: Record<string, string | number | boolean | string[] | null>;
11403
11430
  coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
11404
- claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11431
+ claimStatus?: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11405
11432
  message?: string | undefined;
11406
11433
  deadlineAt?: string | undefined;
11407
11434
  attachments?: string[] | undefined;
@@ -11804,6 +11831,16 @@ export declare function createStoreClient(options: StoreClientOptions): {
11804
11831
  effect: string;
11805
11832
  configSchema: Record<string, unknown>;
11806
11833
  }[];
11834
+ platformActions: {
11835
+ key: string;
11836
+ side: "buyer" | "seller";
11837
+ label: string;
11838
+ mode: "REQUEST" | "INSTANT" | "VIEW";
11839
+ window: boolean;
11840
+ fee: boolean;
11841
+ listed: boolean;
11842
+ subflow?: string | undefined;
11843
+ }[];
11807
11844
  }>;
11808
11845
  };
11809
11846
  carriers: {
@@ -11823,7 +11860,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11823
11860
  claimId: string;
11824
11861
  claimNo: string | null;
11825
11862
  type: "RETURN" | "EXCHANGE" | "CANCEL";
11826
- status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
11863
+ status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
11827
11864
  orderId: string;
11828
11865
  orderItemId: string;
11829
11866
  productName: string;
@@ -11863,7 +11900,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11863
11900
  claimId: string;
11864
11901
  claimNo: string | null;
11865
11902
  type: "RETURN" | "EXCHANGE" | "CANCEL";
11866
- status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
11903
+ status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
11867
11904
  orderId: string;
11868
11905
  orderItemId: string;
11869
11906
  productName: string;
@@ -11898,12 +11935,15 @@ export declare function createStoreClient(options: StoreClientOptions): {
11898
11935
  address2: string | null;
11899
11936
  } | null;
11900
11937
  histories?: {
11901
- status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
11938
+ status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
11902
11939
  actor: "SYSTEM" | "BUYER" | "SELLER";
11903
11940
  occurredAt: string;
11904
11941
  }[] | undefined;
11905
11942
  }>;
11906
- approve: (claimId: string, deductAmount?: number, idempotencyKey?: string) => Promise<{
11943
+ /** `holdRefund`(#115)면 승인만 하고 결제 환불은 대기로 남긴다 — `payments.processRefund`로 따로 환불한다 */
11944
+ approve: (claimId: string, deductAmount?: number, idempotencyKey?: string, options?: {
11945
+ holdRefund?: boolean;
11946
+ }) => Promise<{
11907
11947
  claimId: string;
11908
11948
  refundAmount: number;
11909
11949
  deductAmount: number;
@@ -11914,6 +11954,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11914
11954
  couponChargeRefundAmount: number;
11915
11955
  pointRefundAmount: number;
11916
11956
  refundedAt: string;
11957
+ refundHeld: boolean;
11917
11958
  }>;
11918
11959
  reject: (claimId: string, body: RejectClaimRequest) => Promise<void>;
11919
11960
  registerCollect: (claimId: string, body: {
@@ -11932,7 +11973,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11932
11973
  claimId: string;
11933
11974
  claimNo: string | null;
11934
11975
  type: "RETURN" | "EXCHANGE" | "CANCEL";
11935
- status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
11976
+ status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
11936
11977
  orderId: string;
11937
11978
  orderItemId: string;
11938
11979
  productName: string;
@@ -12912,7 +12953,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12912
12953
  sources: (params: AnalyticsSourcesParams) => Promise<{
12913
12954
  groupBy: "CAMPAIGN" | "CHANNEL" | "SOURCE" | "DEVICE";
12914
12955
  rows: {
12915
- channel: "UNKNOWN" | "DIRECT" | "ORGANIC_SEARCH" | "SOCIAL" | "PAID" | "EMAIL" | "CAMPAIGN" | "REFERRAL" | null;
12956
+ channel: "DIRECT" | "ORGANIC_SEARCH" | "SOCIAL" | "PAID" | "EMAIL" | "CAMPAIGN" | "REFERRAL" | "UNKNOWN" | null;
12916
12957
  source: string | null;
12917
12958
  medium: string | null;
12918
12959
  campaign: string | null;
@@ -13047,9 +13088,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
13047
13088
  orderId: string | null;
13048
13089
  orderName: string;
13049
13090
  customerName: string;
13050
- status: "FAILED" | "PENDING" | "APPROVED" | "PARTIALLY_REFUNDED" | "REFUNDED";
13091
+ status: "PENDING" | "FAILED" | "APPROVED" | "PARTIALLY_REFUNDED" | "REFUNDED";
13051
13092
  amount: number;
13052
13093
  refundedAmount: number;
13094
+ heldRefundAmount: number;
13053
13095
  provider: "tosspayments" | "portone" | null;
13054
13096
  method: "CARD" | "BANK_TRANSFER" | "VIRTUAL_ACCOUNT" | "MOBILE" | "EASY_PAY" | null;
13055
13097
  easyPayProvider: string | null;
@@ -13072,9 +13114,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
13072
13114
  orderId: string | null;
13073
13115
  orderName: string;
13074
13116
  customerName: string;
13075
- status: "FAILED" | "PENDING" | "APPROVED" | "PARTIALLY_REFUNDED" | "REFUNDED";
13117
+ status: "PENDING" | "FAILED" | "APPROVED" | "PARTIALLY_REFUNDED" | "REFUNDED";
13076
13118
  amount: number;
13077
13119
  refundedAmount: number;
13120
+ heldRefundAmount: number;
13078
13121
  provider: "tosspayments" | "portone" | null;
13079
13122
  method: "CARD" | "BANK_TRANSFER" | "VIRTUAL_ACCOUNT" | "MOBILE" | "EASY_PAY" | null;
13080
13123
  easyPayProvider: string | null;
@@ -13140,6 +13183,18 @@ export declare function createStoreClient(options: StoreClientOptions): {
13140
13183
  updatedAt: string;
13141
13184
  } | null;
13142
13185
  }>;
13186
+ /** `POST /v1/payments/refunds/{refundId}/process` — 대기 환불(`HELD`)을 PG로 환불한다(#115). 409 `REFUND_NOT_HELD` */
13187
+ processRefund: (refundId: string) => Promise<{
13188
+ refundId: string;
13189
+ amount: number;
13190
+ pointRefundAmount: number;
13191
+ reason: string;
13192
+ kind: string;
13193
+ status: string;
13194
+ failMessage: string | null;
13195
+ requestedAt: string;
13196
+ completedAt: string | null;
13197
+ }>;
13143
13198
  };
13144
13199
  /**
13145
13200
  * 결제(PG) 설정 — **상점 플랫폼 OWNER 전용**. ADMIN·STAFF·PAT·M2M·3rd-party 앱 토큰은 스코프가 있어도
@@ -13174,7 +13229,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13174
13229
  masked: string | null;
13175
13230
  }[];
13176
13231
  lastVerification: {
13177
- result: "FAILED" | "SUCCESS";
13232
+ result: "SUCCESS" | "FAILED";
13178
13233
  message: string | null;
13179
13234
  checkedAt: string;
13180
13235
  } | null;
@@ -13199,7 +13254,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13199
13254
  masked: string | null;
13200
13255
  }[];
13201
13256
  lastVerification: {
13202
- result: "FAILED" | "SUCCESS";
13257
+ result: "SUCCESS" | "FAILED";
13203
13258
  message: string | null;
13204
13259
  checkedAt: string;
13205
13260
  } | null;
@@ -13223,7 +13278,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13223
13278
  masked: string | null;
13224
13279
  }[];
13225
13280
  lastVerification: {
13226
- result: "FAILED" | "SUCCESS";
13281
+ result: "SUCCESS" | "FAILED";
13227
13282
  message: string | null;
13228
13283
  checkedAt: string;
13229
13284
  } | null;
@@ -13284,7 +13339,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13284
13339
  masked: string | null;
13285
13340
  }[];
13286
13341
  lastVerification: {
13287
- result: "FAILED" | "SUCCESS";
13342
+ result: "SUCCESS" | "FAILED";
13288
13343
  message: string | null;
13289
13344
  checkedAt: string;
13290
13345
  } | null;
@@ -13309,7 +13364,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13309
13364
  masked: string | null;
13310
13365
  }[];
13311
13366
  lastVerification: {
13312
- result: "FAILED" | "SUCCESS";
13367
+ result: "SUCCESS" | "FAILED";
13313
13368
  message: string | null;
13314
13369
  checkedAt: string;
13315
13370
  } | null;
@@ -13333,7 +13388,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13333
13388
  masked: string | null;
13334
13389
  }[];
13335
13390
  lastVerification: {
13336
- result: "FAILED" | "SUCCESS";
13391
+ result: "SUCCESS" | "FAILED";
13337
13392
  message: string | null;
13338
13393
  checkedAt: string;
13339
13394
  } | null;
@@ -13399,7 +13454,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13399
13454
  masked: string | null;
13400
13455
  }[];
13401
13456
  lastVerification: {
13402
- result: "FAILED" | "SUCCESS";
13457
+ result: "SUCCESS" | "FAILED";
13403
13458
  message: string | null;
13404
13459
  checkedAt: string;
13405
13460
  } | null;
@@ -13424,7 +13479,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13424
13479
  masked: string | null;
13425
13480
  }[];
13426
13481
  lastVerification: {
13427
- result: "FAILED" | "SUCCESS";
13482
+ result: "SUCCESS" | "FAILED";
13428
13483
  message: string | null;
13429
13484
  checkedAt: string;
13430
13485
  } | null;
@@ -13448,7 +13503,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13448
13503
  masked: string | null;
13449
13504
  }[];
13450
13505
  lastVerification: {
13451
- result: "FAILED" | "SUCCESS";
13506
+ result: "SUCCESS" | "FAILED";
13452
13507
  message: string | null;
13453
13508
  checkedAt: string;
13454
13509
  } | null;
@@ -13495,7 +13550,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13495
13550
  masked: string | null;
13496
13551
  }[];
13497
13552
  lastVerification: {
13498
- result: "FAILED" | "SUCCESS";
13553
+ result: "SUCCESS" | "FAILED";
13499
13554
  message: string | null;
13500
13555
  checkedAt: string;
13501
13556
  } | null;
@@ -13520,7 +13575,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13520
13575
  masked: string | null;
13521
13576
  }[];
13522
13577
  lastVerification: {
13523
- result: "FAILED" | "SUCCESS";
13578
+ result: "SUCCESS" | "FAILED";
13524
13579
  message: string | null;
13525
13580
  checkedAt: string;
13526
13581
  } | null;
@@ -13544,7 +13599,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13544
13599
  masked: string | null;
13545
13600
  }[];
13546
13601
  lastVerification: {
13547
- result: "FAILED" | "SUCCESS";
13602
+ result: "SUCCESS" | "FAILED";
13548
13603
  message: string | null;
13549
13604
  checkedAt: string;
13550
13605
  } | null;
@@ -13601,7 +13656,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13601
13656
  masked: string | null;
13602
13657
  }[];
13603
13658
  lastVerification: {
13604
- result: "FAILED" | "SUCCESS";
13659
+ result: "SUCCESS" | "FAILED";
13605
13660
  message: string | null;
13606
13661
  checkedAt: string;
13607
13662
  } | null;
@@ -13626,7 +13681,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13626
13681
  masked: string | null;
13627
13682
  }[];
13628
13683
  lastVerification: {
13629
- result: "FAILED" | "SUCCESS";
13684
+ result: "SUCCESS" | "FAILED";
13630
13685
  message: string | null;
13631
13686
  checkedAt: string;
13632
13687
  } | null;
@@ -13650,7 +13705,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13650
13705
  masked: string | null;
13651
13706
  }[];
13652
13707
  lastVerification: {
13653
- result: "FAILED" | "SUCCESS";
13708
+ result: "SUCCESS" | "FAILED";
13654
13709
  message: string | null;
13655
13710
  checkedAt: string;
13656
13711
  } | null;
@@ -13697,7 +13752,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13697
13752
  masked: string | null;
13698
13753
  }[];
13699
13754
  lastVerification: {
13700
- result: "FAILED" | "SUCCESS";
13755
+ result: "SUCCESS" | "FAILED";
13701
13756
  message: string | null;
13702
13757
  checkedAt: string;
13703
13758
  } | null;
@@ -13722,7 +13777,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13722
13777
  masked: string | null;
13723
13778
  }[];
13724
13779
  lastVerification: {
13725
- result: "FAILED" | "SUCCESS";
13780
+ result: "SUCCESS" | "FAILED";
13726
13781
  message: string | null;
13727
13782
  checkedAt: string;
13728
13783
  } | null;
@@ -13746,7 +13801,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13746
13801
  masked: string | null;
13747
13802
  }[];
13748
13803
  lastVerification: {
13749
- result: "FAILED" | "SUCCESS";
13804
+ result: "SUCCESS" | "FAILED";
13750
13805
  message: string | null;
13751
13806
  checkedAt: string;
13752
13807
  } | null;
@@ -13802,7 +13857,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13802
13857
  masked: string | null;
13803
13858
  }[];
13804
13859
  lastVerification: {
13805
- result: "FAILED" | "SUCCESS";
13860
+ result: "SUCCESS" | "FAILED";
13806
13861
  message: string | null;
13807
13862
  checkedAt: string;
13808
13863
  } | null;
@@ -13827,7 +13882,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13827
13882
  masked: string | null;
13828
13883
  }[];
13829
13884
  lastVerification: {
13830
- result: "FAILED" | "SUCCESS";
13885
+ result: "SUCCESS" | "FAILED";
13831
13886
  message: string | null;
13832
13887
  checkedAt: string;
13833
13888
  } | null;
@@ -13851,7 +13906,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13851
13906
  masked: string | null;
13852
13907
  }[];
13853
13908
  lastVerification: {
13854
- result: "FAILED" | "SUCCESS";
13909
+ result: "SUCCESS" | "FAILED";
13855
13910
  message: string | null;
13856
13911
  checkedAt: string;
13857
13912
  } | null;
@@ -13879,7 +13934,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13879
13934
  verify: (provider: PgProvider, body?: VerifyPaymentProviderRequest) => Promise<{
13880
13935
  provider: "tosspayments" | "portone";
13881
13936
  environment: "TEST" | "LIVE";
13882
- result: "FAILED" | "SUCCESS";
13937
+ result: "SUCCESS" | "FAILED";
13883
13938
  message: string | null;
13884
13939
  checkedAt: string;
13885
13940
  }>;
@@ -13945,7 +14000,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13945
14000
  eventId: string;
13946
14001
  eventType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK" | "ORDER.FLOW_NOTIFICATION" | "ORDER.FLOW_STATE_CHANGED";
13947
14002
  url: string;
13948
- status: "FAILED" | "PENDING" | "PENDING_RETRY" | "SUCCESS";
14003
+ status: "PENDING" | "PENDING_RETRY" | "SUCCESS" | "FAILED";
13949
14004
  responseStatusCode: number | null;
13950
14005
  responseTimeMs: number | null;
13951
14006
  responseBodyExcerpt: string | null;
@@ -13972,7 +14027,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13972
14027
  eventId: string;
13973
14028
  eventType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK" | "ORDER.FLOW_NOTIFICATION" | "ORDER.FLOW_STATE_CHANGED";
13974
14029
  url: string;
13975
- status: "FAILED" | "PENDING" | "PENDING_RETRY" | "SUCCESS";
14030
+ status: "PENDING" | "PENDING_RETRY" | "SUCCESS" | "FAILED";
13976
14031
  responseStatusCode: number | null;
13977
14032
  responseTimeMs: number | null;
13978
14033
  responseBodyExcerpt: string | null;
@@ -14007,7 +14062,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14007
14062
  eventId: string;
14008
14063
  eventType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK" | "ORDER.FLOW_NOTIFICATION" | "ORDER.FLOW_STATE_CHANGED";
14009
14064
  url: string;
14010
- status: "FAILED" | "PENDING" | "PENDING_RETRY" | "SUCCESS";
14065
+ status: "PENDING" | "PENDING_RETRY" | "SUCCESS" | "FAILED";
14011
14066
  responseStatusCode: number | null;
14012
14067
  responseTimeMs: number | null;
14013
14068
  responseBodyExcerpt: string | null;
@@ -14103,7 +14158,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14103
14158
  method: string | null;
14104
14159
  path: string | null;
14105
14160
  statusCode: number | null;
14106
- outcome: "SUCCEEDED" | "FAILED" | "PENDING_APPROVAL" | "DENIED" | "DRY_RUN" | null;
14161
+ outcome: "FAILED" | "SUCCEEDED" | "PENDING_APPROVAL" | "DENIED" | "DRY_RUN" | null;
14107
14162
  errorCode: string | null;
14108
14163
  traceId: string | null;
14109
14164
  idempotencyKey: string | null;
@@ -14121,7 +14176,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14121
14176
  list: (params?: ApprovalListOptions) => Promise<{
14122
14177
  items: {
14123
14178
  approvalId: string;
14124
- status: "SUCCEEDED" | "FAILED" | "PENDING" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
14179
+ status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
14125
14180
  operationId: string;
14126
14181
  method: string;
14127
14182
  path: string;
@@ -14173,7 +14228,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14173
14228
  }>;
14174
14229
  get: (approvalId: string) => Promise<{
14175
14230
  approvalId: string;
14176
- status: "SUCCEEDED" | "FAILED" | "PENDING" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
14231
+ status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
14177
14232
  operationId: string;
14178
14233
  method: string;
14179
14234
  path: string;
@@ -14227,7 +14282,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14227
14282
  */
14228
14283
  approve: (approvalId: string, body?: ApprovalDecisionRequest) => Promise<{
14229
14284
  approvalId: string;
14230
- status: "SUCCEEDED" | "FAILED" | "PENDING" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
14285
+ status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
14231
14286
  operationId: string;
14232
14287
  method: string;
14233
14288
  path: string;
@@ -14277,7 +14332,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14277
14332
  }>;
14278
14333
  reject: (approvalId: string, body?: ApprovalDecisionRequest) => Promise<{
14279
14334
  approvalId: string;
14280
- status: "SUCCEEDED" | "FAILED" | "PENDING" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
14335
+ status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
14281
14336
  operationId: string;
14282
14337
  method: string;
14283
14338
  path: string;
@@ -14481,7 +14536,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14481
14536
  createdVia?: string | null | undefined;
14482
14537
  } | null;
14483
14538
  provisioning: {
14484
- status: "FAILED" | "PENDING" | "SYNCED";
14539
+ status: "PENDING" | "FAILED" | "SYNCED";
14485
14540
  lastErrorCode: string | null;
14486
14541
  syncedAt: string | null;
14487
14542
  };
@@ -14539,7 +14594,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14539
14594
  createdVia?: string | null | undefined;
14540
14595
  } | null;
14541
14596
  provisioning: {
14542
- status: "FAILED" | "PENDING" | "SYNCED";
14597
+ status: "PENDING" | "FAILED" | "SYNCED";
14543
14598
  lastErrorCode: string | null;
14544
14599
  syncedAt: string | null;
14545
14600
  };
@@ -14557,13 +14612,13 @@ export declare function createStoreClient(options: StoreClientOptions): {
14557
14612
  /** `GET /v1/storefront/site/deployment` — 배포 진행(단계·기록). 만든 뒤 반영이 끝날 때까지 폴링한다 */
14558
14613
  getDeployment: () => Promise<{
14559
14614
  siteId: string;
14560
- status: "SUCCEEDED" | "FAILED" | "IN_PROGRESS";
14615
+ status: "IN_PROGRESS" | "FAILED" | "SUCCEEDED";
14561
14616
  url: string;
14562
14617
  startedAt: string;
14563
14618
  finishedAt: string | null;
14564
14619
  steps: {
14565
14620
  key: "SITE" | "UPLOAD" | "PUBLISH";
14566
- status: "FAILED" | "PENDING" | "RUNNING" | "DONE";
14621
+ status: "PENDING" | "FAILED" | "RUNNING" | "DONE";
14567
14622
  finishedAt: string | null;
14568
14623
  }[];
14569
14624
  log: {
@@ -14579,13 +14634,13 @@ export declare function createStoreClient(options: StoreClientOptions): {
14579
14634
  /** `POST /v1/storefront/site/deployment/retry` (202) — 밀린 반영을 곧바로 다시 시도한다. 이미 반영됐으면 그대로다 */
14580
14635
  retryDeployment: () => Promise<{
14581
14636
  siteId: string;
14582
- status: "SUCCEEDED" | "FAILED" | "IN_PROGRESS";
14637
+ status: "IN_PROGRESS" | "FAILED" | "SUCCEEDED";
14583
14638
  url: string;
14584
14639
  startedAt: string;
14585
14640
  finishedAt: string | null;
14586
14641
  steps: {
14587
14642
  key: "SITE" | "UPLOAD" | "PUBLISH";
14588
- status: "FAILED" | "PENDING" | "RUNNING" | "DONE";
14643
+ status: "PENDING" | "FAILED" | "RUNNING" | "DONE";
14589
14644
  finishedAt: string | null;
14590
14645
  }[];
14591
14646
  log: {
@@ -14635,7 +14690,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14635
14690
  createdVia?: string | null | undefined;
14636
14691
  } | null;
14637
14692
  provisioning: {
14638
- status: "FAILED" | "PENDING" | "SYNCED";
14693
+ status: "PENDING" | "FAILED" | "SYNCED";
14639
14694
  lastErrorCode: string | null;
14640
14695
  syncedAt: string | null;
14641
14696
  };
@@ -14699,7 +14754,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14699
14754
  createdVia?: string | null | undefined;
14700
14755
  } | null;
14701
14756
  provisioning: {
14702
- status: "FAILED" | "PENDING" | "SYNCED";
14757
+ status: "PENDING" | "FAILED" | "SYNCED";
14703
14758
  lastErrorCode: string | null;
14704
14759
  syncedAt: string | null;
14705
14760
  };
@@ -14747,7 +14802,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14747
14802
  createdVia?: string | null | undefined;
14748
14803
  } | null;
14749
14804
  provisioning: {
14750
- status: "FAILED" | "PENDING" | "SYNCED";
14805
+ status: "PENDING" | "FAILED" | "SYNCED";
14751
14806
  lastErrorCode: string | null;
14752
14807
  syncedAt: string | null;
14753
14808
  };
@@ -14795,7 +14850,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14795
14850
  createdVia?: string | null | undefined;
14796
14851
  } | null;
14797
14852
  provisioning: {
14798
- status: "FAILED" | "PENDING" | "SYNCED";
14853
+ status: "PENDING" | "FAILED" | "SYNCED";
14799
14854
  lastErrorCode: string | null;
14800
14855
  syncedAt: string | null;
14801
14856
  };
@@ -14843,7 +14898,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14843
14898
  createdVia?: string | null | undefined;
14844
14899
  } | null;
14845
14900
  provisioning: {
14846
- status: "FAILED" | "PENDING" | "SYNCED";
14901
+ status: "PENDING" | "FAILED" | "SYNCED";
14847
14902
  lastErrorCode: string | null;
14848
14903
  syncedAt: string | null;
14849
14904
  };
@@ -14875,7 +14930,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14875
14930
  domainId: string;
14876
14931
  hostname: string;
14877
14932
  kind: "PLATFORM" | "CUSTOM";
14878
- status: "FAILED" | "ACTIVE" | "PENDING_DNS" | "PENDING_VALIDATION";
14933
+ status: "ACTIVE" | "FAILED" | "PENDING_DNS" | "PENDING_VALIDATION";
14879
14934
  isPrimary: boolean;
14880
14935
  dnsRecords: {
14881
14936
  type: "CNAME" | "TXT";
@@ -14883,7 +14938,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14883
14938
  value: string;
14884
14939
  purpose: "ROUTING" | "OWNERSHIP";
14885
14940
  }[];
14886
- certificateStatus: "FAILED" | "PENDING" | "ACTIVE" | null;
14941
+ certificateStatus: "ACTIVE" | "PENDING" | "FAILED" | null;
14887
14942
  failureCode: string | null;
14888
14943
  verifiedAt: string | null;
14889
14944
  activatedAt: string | null;
@@ -14899,7 +14954,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14899
14954
  domainId: string;
14900
14955
  hostname: string;
14901
14956
  kind: "PLATFORM" | "CUSTOM";
14902
- status: "FAILED" | "ACTIVE" | "PENDING_DNS" | "PENDING_VALIDATION";
14957
+ status: "ACTIVE" | "FAILED" | "PENDING_DNS" | "PENDING_VALIDATION";
14903
14958
  isPrimary: boolean;
14904
14959
  dnsRecords: {
14905
14960
  type: "CNAME" | "TXT";
@@ -14907,7 +14962,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14907
14962
  value: string;
14908
14963
  purpose: "ROUTING" | "OWNERSHIP";
14909
14964
  }[];
14910
- certificateStatus: "FAILED" | "PENDING" | "ACTIVE" | null;
14965
+ certificateStatus: "ACTIVE" | "PENDING" | "FAILED" | null;
14911
14966
  failureCode: string | null;
14912
14967
  verifiedAt: string | null;
14913
14968
  activatedAt: string | null;
@@ -14919,7 +14974,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14919
14974
  domainId: string;
14920
14975
  hostname: string;
14921
14976
  kind: "PLATFORM" | "CUSTOM";
14922
- status: "FAILED" | "ACTIVE" | "PENDING_DNS" | "PENDING_VALIDATION";
14977
+ status: "ACTIVE" | "FAILED" | "PENDING_DNS" | "PENDING_VALIDATION";
14923
14978
  isPrimary: boolean;
14924
14979
  dnsRecords: {
14925
14980
  type: "CNAME" | "TXT";
@@ -14927,7 +14982,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14927
14982
  value: string;
14928
14983
  purpose: "ROUTING" | "OWNERSHIP";
14929
14984
  }[];
14930
- certificateStatus: "FAILED" | "PENDING" | "ACTIVE" | null;
14985
+ certificateStatus: "ACTIVE" | "PENDING" | "FAILED" | null;
14931
14986
  failureCode: string | null;
14932
14987
  verifiedAt: string | null;
14933
14988
  activatedAt: string | null;
@@ -14943,7 +14998,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14943
14998
  domainId: string;
14944
14999
  hostname: string;
14945
15000
  kind: "PLATFORM" | "CUSTOM";
14946
- status: "FAILED" | "ACTIVE" | "PENDING_DNS" | "PENDING_VALIDATION";
15001
+ status: "ACTIVE" | "FAILED" | "PENDING_DNS" | "PENDING_VALIDATION";
14947
15002
  isPrimary: boolean;
14948
15003
  dnsRecords: {
14949
15004
  type: "CNAME" | "TXT";
@@ -14951,7 +15006,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14951
15006
  value: string;
14952
15007
  purpose: "ROUTING" | "OWNERSHIP";
14953
15008
  }[];
14954
- certificateStatus: "FAILED" | "PENDING" | "ACTIVE" | null;
15009
+ certificateStatus: "ACTIVE" | "PENDING" | "FAILED" | null;
14955
15010
  failureCode: string | null;
14956
15011
  verifiedAt: string | null;
14957
15012
  activatedAt: string | null;
@@ -14994,7 +15049,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14994
15049
  createdVia?: string | null | undefined;
14995
15050
  } | null;
14996
15051
  provisioning: {
14997
- status: "FAILED" | "PENDING" | "SYNCED";
15052
+ status: "PENDING" | "FAILED" | "SYNCED";
14998
15053
  lastErrorCode: string | null;
14999
15054
  syncedAt: string | null;
15000
15055
  };
@@ -15154,7 +15209,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
15154
15209
  runCheck: (body: RunStorefrontCheckRequest) => Promise<{
15155
15210
  checkId: string;
15156
15211
  check: string;
15157
- status: "FAILED" | "UNKNOWN" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
15212
+ status: "UNKNOWN" | "FAILED" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
15158
15213
  exitCode: number | null;
15159
15214
  durationMs: number | null;
15160
15215
  outputTail: string | null;
@@ -15168,7 +15223,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
15168
15223
  getCheck: (checkId: string) => Promise<{
15169
15224
  checkId: string;
15170
15225
  check: string;
15171
- status: "FAILED" | "UNKNOWN" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
15226
+ status: "UNKNOWN" | "FAILED" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
15172
15227
  exitCode: number | null;
15173
15228
  durationMs: number | null;
15174
15229
  outputTail: string | null;
@@ -15235,7 +15290,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
15235
15290
  buildId: string;
15236
15291
  versionId: string;
15237
15292
  versionNumber: number;
15238
- status: "SUCCEEDED" | "FAILED" | "RUNNING" | "QUEUED" | "TIMED_OUT";
15293
+ status: "FAILED" | "SUCCEEDED" | "RUNNING" | "QUEUED" | "TIMED_OUT";
15239
15294
  failureStage: string | null;
15240
15295
  errorCode: string | null;
15241
15296
  logTail: string | null;
@@ -15316,7 +15371,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
15316
15371
  buildId: string;
15317
15372
  versionId: string;
15318
15373
  versionNumber: number;
15319
- status: "SUCCEEDED" | "FAILED" | "RUNNING" | "QUEUED" | "TIMED_OUT";
15374
+ status: "FAILED" | "SUCCEEDED" | "RUNNING" | "QUEUED" | "TIMED_OUT";
15320
15375
  failureStage: string | null;
15321
15376
  errorCode: string | null;
15322
15377
  logTail: string | null;
@@ -15394,7 +15449,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
15394
15449
  buildId: string;
15395
15450
  versionId: string;
15396
15451
  versionNumber: number;
15397
- status: "SUCCEEDED" | "FAILED" | "RUNNING" | "QUEUED" | "TIMED_OUT";
15452
+ status: "FAILED" | "SUCCEEDED" | "RUNNING" | "QUEUED" | "TIMED_OUT";
15398
15453
  failureStage: string | null;
15399
15454
  errorCode: string | null;
15400
15455
  logTail: string | null;
@@ -17215,8 +17270,8 @@ export declare const claimWebhookEventDataSchema: z.ZodObject<{
17215
17270
  CANCEL: "CANCEL";
17216
17271
  }>;
17217
17272
  status: z.ZodEnum<{
17218
- REJECTED: "REJECTED";
17219
17273
  COMPLETED: "COMPLETED";
17274
+ REJECTED: "REJECTED";
17220
17275
  REQUESTED: "REQUESTED";
17221
17276
  HELD: "HELD";
17222
17277
  COLLECTING: "COLLECTING";
@@ -17446,8 +17501,8 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
17446
17501
  CANCEL: "CANCEL";
17447
17502
  }>;
17448
17503
  status: z.ZodEnum<{
17449
- REJECTED: "REJECTED";
17450
17504
  COMPLETED: "COMPLETED";
17505
+ REJECTED: "REJECTED";
17451
17506
  REQUESTED: "REQUESTED";
17452
17507
  HELD: "HELD";
17453
17508
  COLLECTING: "COLLECTING";
@@ -17757,8 +17812,8 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
17757
17812
  CANCEL: "CANCEL";
17758
17813
  }>;
17759
17814
  status: z.ZodEnum<{
17760
- REJECTED: "REJECTED";
17761
17815
  COMPLETED: "COMPLETED";
17816
+ REJECTED: "REJECTED";
17762
17817
  REQUESTED: "REQUESTED";
17763
17818
  HELD: "HELD";
17764
17819
  COLLECTING: "COLLECTING";