@sayren/store-sdk 0.59.0 → 0.60.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 +5 -12
- package/dist/index.mjs +5 -6
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/schemas/storefront-hosting.ts +6 -12
package/dist/index.d.mts
CHANGED
|
@@ -167,8 +167,8 @@ export declare const auditLogPageSchema: z$1.ZodObject<{
|
|
|
167
167
|
export type AuditLogPage = z$1.infer<typeof auditLogPageSchema>;
|
|
168
168
|
export declare const agentPolicyDecisionSchema: z$1.ZodEnum<{
|
|
169
169
|
DENIED: "DENIED";
|
|
170
|
-
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
171
170
|
ALLOW: "ALLOW";
|
|
171
|
+
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
172
172
|
}>;
|
|
173
173
|
export type AgentPolicyDecision = z$1.infer<typeof agentPolicyDecisionSchema>;
|
|
174
174
|
export declare const writePreviewSchema: z$1.ZodObject<{
|
|
@@ -193,8 +193,8 @@ export declare const writeDryRunResultSchema: z$1.ZodObject<{
|
|
|
193
193
|
dryRun: z$1.ZodLiteral<true>;
|
|
194
194
|
decision: z$1.ZodEnum<{
|
|
195
195
|
DENIED: "DENIED";
|
|
196
|
-
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
197
196
|
ALLOW: "ALLOW";
|
|
197
|
+
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
198
198
|
}>;
|
|
199
199
|
reason: z$1.ZodNullable<z$1.ZodString>;
|
|
200
200
|
preview: z$1.ZodObject<{
|
|
@@ -18201,17 +18201,13 @@ export declare const storefrontSourceReplacedSchema: z$1.ZodObject<{
|
|
|
18201
18201
|
}, z$1.core.$strip>;
|
|
18202
18202
|
export type StorefrontSourceReplaced = z$1.infer<typeof storefrontSourceReplacedSchema>;
|
|
18203
18203
|
/**
|
|
18204
|
-
* `GET /v1/storefront/site/git` — 사이트의 Git 원천.
|
|
18204
|
+
* `GET /v1/storefront/site/git` — 사이트의 Git 원천. 셀러가 GitHub 저장소를 연결했으면 발행한 소스가 그 저장소 운영 브랜치에 있다.
|
|
18205
18205
|
* 연결 전이면 필드가 null이다
|
|
18206
18206
|
*/
|
|
18207
18207
|
export declare const storefrontGitStatusSchema: z$1.ZodObject<{
|
|
18208
18208
|
provider: z$1.ZodNullable<z$1.ZodEnum<{
|
|
18209
18209
|
GITHUB: "GITHUB";
|
|
18210
18210
|
}>>;
|
|
18211
|
-
owner: z$1.ZodNullable<z$1.ZodEnum<{
|
|
18212
|
-
SELLER: "SELLER";
|
|
18213
|
-
SAYREN: "SAYREN";
|
|
18214
|
-
}>>;
|
|
18215
18211
|
repository: z$1.ZodNullable<z$1.ZodString>;
|
|
18216
18212
|
productionBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
18217
18213
|
rootDirectory: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -28391,7 +28387,6 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
28391
28387
|
/** `GET /v1/storefront/site/git` — Git 원천(발행 소스를 둔 저장소)과 상태(#138) */
|
|
28392
28388
|
getGit: () => Promise<{
|
|
28393
28389
|
provider: "GITHUB" | null;
|
|
28394
|
-
owner: "SELLER" | "SAYREN" | null;
|
|
28395
28390
|
repository: string | null;
|
|
28396
28391
|
productionBranch: string | null;
|
|
28397
28392
|
rootDirectory: string | null;
|
|
@@ -28428,7 +28423,6 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
28428
28423
|
/** `POST /v1/storefront/site/git/connect` — 셀러 GitHub 저장소 연결(상점 플랫폼 전용) */
|
|
28429
28424
|
connectGit: (body: ConnectStorefrontGitRequest) => Promise<{
|
|
28430
28425
|
provider: "GITHUB" | null;
|
|
28431
|
-
owner: "SELLER" | "SAYREN" | null;
|
|
28432
28426
|
repository: string | null;
|
|
28433
28427
|
productionBranch: string | null;
|
|
28434
28428
|
rootDirectory: string | null;
|
|
@@ -28445,10 +28439,9 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
28445
28439
|
at: string;
|
|
28446
28440
|
} | null | undefined;
|
|
28447
28441
|
}>;
|
|
28448
|
-
/** `POST /v1/storefront/site/git/disconnect` — 연결 해제(
|
|
28442
|
+
/** `POST /v1/storefront/site/git/disconnect` — 연결 해제(R2 원천으로 되돌림, 상점 플랫폼 전용) */
|
|
28449
28443
|
disconnectGit: () => Promise<{
|
|
28450
28444
|
provider: "GITHUB" | null;
|
|
28451
|
-
owner: "SELLER" | "SAYREN" | null;
|
|
28452
28445
|
repository: string | null;
|
|
28453
28446
|
productionBranch: string | null;
|
|
28454
28447
|
rootDirectory: string | null;
|
|
@@ -30273,8 +30266,8 @@ export declare const storeScopeResourceSchema: z$1.ZodEnum<{
|
|
|
30273
30266
|
order: "order";
|
|
30274
30267
|
flow: "flow";
|
|
30275
30268
|
analytics: "analytics";
|
|
30276
|
-
storefront: "storefront";
|
|
30277
30269
|
customer: "customer";
|
|
30270
|
+
storefront: "storefront";
|
|
30278
30271
|
claim: "claim";
|
|
30279
30272
|
inquiry: "inquiry";
|
|
30280
30273
|
review: "review";
|
package/dist/index.mjs
CHANGED
|
@@ -2495,13 +2495,12 @@ const storefrontSourceReplacedSchema = z$1.object({
|
|
|
2495
2495
|
dependencyWarnings: z$1.array(storefrontDependencyFindingSchema).describe("배포를 막지 않는 의존성 경고 (보안 권고 등)")
|
|
2496
2496
|
});
|
|
2497
2497
|
/**
|
|
2498
|
-
* `GET /v1/storefront/site/git` — 사이트의 Git 원천.
|
|
2498
|
+
* `GET /v1/storefront/site/git` — 사이트의 Git 원천. 셀러가 GitHub 저장소를 연결했으면 발행한 소스가 그 저장소 운영 브랜치에 있다.
|
|
2499
2499
|
* 연결 전이면 필드가 null이다
|
|
2500
2500
|
*/
|
|
2501
2501
|
const storefrontGitStatusSchema = z$1.object({
|
|
2502
|
-
provider: z$1.enum(["GITHUB"]).nullable().describe("
|
|
2503
|
-
|
|
2504
|
-
repository: z$1.string().nullable().describe("연결한 셀러 저장소(`owner/name`). sayren 저장소면 null"),
|
|
2502
|
+
provider: z$1.enum(["GITHUB"]).nullable().describe("셀러 저장소가 연결돼 있으면 `GITHUB`, 아니면 null"),
|
|
2503
|
+
repository: z$1.string().nullable().describe("연결한 셀러 저장소(`owner/name`). 연결 전이면 null"),
|
|
2505
2504
|
productionBranch: z$1.string().nullable().describe("운영 배포 브랜치"),
|
|
2506
2505
|
rootDirectory: z$1.string().nullable().describe("저장소 안 사이트 루트(빈 문자열 = 저장소 루트)"),
|
|
2507
2506
|
connectedAt: z$1.string().nullable().describe("원천이 켜진 시각 (ISO 8601)"),
|
|
@@ -2515,7 +2514,7 @@ const storefrontGitStatusSchema = z$1.object({
|
|
|
2515
2514
|
reason: z$1.string().describe("`APP_UNINSTALLED` GitHub App 설치 삭제·정지 · `REPO_ACCESS_REMOVED` 설치에서 저장소 제외 · `STORE_TRANSFERRED` 상점 양도"),
|
|
2516
2515
|
repository: z$1.string().nullable().describe("연결이 끊긴 셀러 저장소(`owner/name`). 상점 양도면 이전 소유자의 저장소라 null"),
|
|
2517
2516
|
at: z$1.string().describe("끊긴 시각 (ISO 8601)")
|
|
2518
|
-
}).nullish().describe("셀러 저장소 연결이 셀러의 해제 없이
|
|
2517
|
+
}).nullish().describe("셀러 저장소 연결이 셀러의 해제 없이 끊겼으면 그 까닭. 다시 연결하면 null")
|
|
2519
2518
|
});
|
|
2520
2519
|
const storefrontGitRepositorySchema = z$1.object({
|
|
2521
2520
|
repoId: z$1.number().int().describe("GitHub 저장소 id"),
|
|
@@ -12927,7 +12926,7 @@ list: (params) => storeHttp.request("GET", "/audit-logs", auditLogPageSchema, {
|
|
|
12927
12926
|
listGitRepositories: (installationId) => storeHttp.request("GET", `/storefront/site/git/installations/${encodeURIComponent(String(installationId))}/repositories`, z$1.array(storefrontGitRepositorySchema)),
|
|
12928
12927
|
/** `POST /v1/storefront/site/git/connect` — 셀러 GitHub 저장소 연결(상점 플랫폼 전용) */
|
|
12929
12928
|
connectGit: (body) => storeHttp.request("POST", "/storefront/site/git/connect", storefrontGitStatusSchema, { body: connectStorefrontGitRequestSchema.parse(body) }),
|
|
12930
|
-
/** `POST /v1/storefront/site/git/disconnect` — 연결 해제(
|
|
12929
|
+
/** `POST /v1/storefront/site/git/disconnect` — 연결 해제(R2 원천으로 되돌림, 상점 플랫폼 전용) */
|
|
12931
12930
|
disconnectGit: () => storeHttp.request("POST", "/storefront/site/git/disconnect", storefrontGitStatusSchema)
|
|
12932
12931
|
},
|
|
12933
12932
|
subscription: {
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -2579,7 +2579,7 @@ export function createStoreClient(options: StoreClientOptions) {
|
|
|
2579
2579
|
storeHttp.request("POST", "/storefront/site/git/connect", storefrontGitStatusSchema, {
|
|
2580
2580
|
body: connectStorefrontGitRequestSchema.parse(body),
|
|
2581
2581
|
}),
|
|
2582
|
-
/** `POST /v1/storefront/site/git/disconnect` — 연결 해제(
|
|
2582
|
+
/** `POST /v1/storefront/site/git/disconnect` — 연결 해제(R2 원천으로 되돌림, 상점 플랫폼 전용) */
|
|
2583
2583
|
disconnectGit: () =>
|
|
2584
2584
|
storeHttp.request("POST", "/storefront/site/git/disconnect", storefrontGitStatusSchema),
|
|
2585
2585
|
},
|
|
@@ -1636,19 +1636,15 @@ export type StorefrontSourceReplaced = z.infer<typeof storefrontSourceReplacedSc
|
|
|
1636
1636
|
// ─── Git 원천 (#138 G5) ───────────────────────────────────
|
|
1637
1637
|
|
|
1638
1638
|
/**
|
|
1639
|
-
* `GET /v1/storefront/site/git` — 사이트의 Git 원천.
|
|
1639
|
+
* `GET /v1/storefront/site/git` — 사이트의 Git 원천. 셀러가 GitHub 저장소를 연결했으면 발행한 소스가 그 저장소 운영 브랜치에 있다.
|
|
1640
1640
|
* 연결 전이면 필드가 null이다
|
|
1641
1641
|
*/
|
|
1642
1642
|
export const storefrontGitStatusSchema = z.object({
|
|
1643
|
-
provider: z
|
|
1644
|
-
|
|
1645
|
-
.enum(["SAYREN", "SELLER"])
|
|
1643
|
+
provider: z
|
|
1644
|
+
.enum(["GITHUB"])
|
|
1646
1645
|
.nullable()
|
|
1647
|
-
.describe("
|
|
1648
|
-
repository: z
|
|
1649
|
-
.string()
|
|
1650
|
-
.nullable()
|
|
1651
|
-
.describe("연결한 셀러 저장소(`owner/name`). sayren 저장소면 null"),
|
|
1646
|
+
.describe("셀러 저장소가 연결돼 있으면 `GITHUB`, 아니면 null"),
|
|
1647
|
+
repository: z.string().nullable().describe("연결한 셀러 저장소(`owner/name`). 연결 전이면 null"),
|
|
1652
1648
|
productionBranch: z.string().nullable().describe("운영 배포 브랜치"),
|
|
1653
1649
|
rootDirectory: z.string().nullable().describe("저장소 안 사이트 루트(빈 문자열 = 저장소 루트)"),
|
|
1654
1650
|
connectedAt: z.string().nullable().describe("원천이 켜진 시각 (ISO 8601)"),
|
|
@@ -1688,9 +1684,7 @@ export const storefrontGitStatusSchema = z.object({
|
|
|
1688
1684
|
at: z.string().describe("끊긴 시각 (ISO 8601)"),
|
|
1689
1685
|
})
|
|
1690
1686
|
.nullish()
|
|
1691
|
-
.describe(
|
|
1692
|
-
"셀러 저장소 연결이 셀러의 해제 없이 끊겨 sayren 저장소로 돌아왔으면 그 까닭. 다시 연결하면 null",
|
|
1693
|
-
),
|
|
1687
|
+
.describe("셀러 저장소 연결이 셀러의 해제 없이 끊겼으면 그 까닭. 다시 연결하면 null"),
|
|
1694
1688
|
});
|
|
1695
1689
|
export type StorefrontGitStatus = z.infer<typeof storefrontGitStatusSchema>;
|
|
1696
1690
|
|