@reopt-ai/workspace-sdk 0.1.0-rc.10 → 0.1.0-rc.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +1 -0
  3. package/dist/better-auth/index.d.ts +1 -1
  4. package/dist/better-auth/index.js +1 -1
  5. package/dist/{client-XAvKlbbn.js → client-BLaFMBbS.js} +2 -2
  6. package/dist/{client-BOl6q9Q5.js → client-CJekFhCW.js} +5 -5
  7. package/dist/{client-DlgVNj3w.d.ts → client-DVozA5Ep.d.ts} +2 -2
  8. package/dist/{client-BF4-fVag.d.ts → client-olMIaJZH.d.ts} +3 -3
  9. package/dist/{connect-ukgmn0Fx.d.ts → connect-3zkyD_-0.d.ts} +200 -4
  10. package/dist/connect.d.ts +6 -5
  11. package/dist/connect.js +4 -3
  12. package/dist/{errors-VxWmrlix.d.ts → errors-CLUuzCNG.d.ts} +10 -3
  13. package/dist/{errors-CqgpUVKp.js → errors-CkgGRAPR.js} +13 -4
  14. package/dist/index.d.ts +7 -6
  15. package/dist/index.js +5 -4
  16. package/dist/installation/index.d.ts +3 -3
  17. package/dist/installation/index.js +3 -3
  18. package/dist/{keys-6gwtNd0g.js → keys--ef_VwZ-.js} +6 -5
  19. package/dist/{keys-B2pA8EkU.d.ts → keys-BXkGh0VM.d.ts} +10 -2
  20. package/dist/machine/index.d.ts +2 -2
  21. package/dist/machine/index.js +2 -2
  22. package/dist/machine/keygen-cli.js +1 -1
  23. package/dist/mentions-BMI2c7O6.d.ts +26 -0
  24. package/dist/mentions.d.ts +2 -0
  25. package/dist/mentions.js +45 -0
  26. package/dist/{page-D9XyBLLC.js → page-CV3oG_Zu.js} +156 -9
  27. package/dist/{page-BB2P_WUd.d.ts → page-j1OCu4of.d.ts} +10 -4
  28. package/dist/{permissions-CyEr04jl.d.ts → permissions-LF1orSvQ.d.ts} +4 -2
  29. package/dist/permissions.d.ts +1 -1
  30. package/dist/permissions.js +61 -1
  31. package/dist/social/index.d.ts +2 -2
  32. package/dist/social/index.js +2 -2
  33. package/dist/testing/index.d.ts +40 -6
  34. package/dist/testing/index.js +623 -12
  35. package/dist/{transport-BuVYzuQz.js → transport-BVPl0lgF.js} +5 -4
  36. package/docs/machine.md +14 -4
  37. package/docs/testing.md +12 -7
  38. package/docs/workspace.md +84 -36
  39. package/package.json +5 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,67 @@ This project adheres to [Semantic Versioning](https://semver.org/).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.0-rc.12] — 2026-11-22
11
+
12
+ Pre-release (`npm i @reopt-ai/workspace-sdk@next`). 깨지는 변경 없음.
13
+
14
+ ### Added
15
+
16
+ - **업무 댓글·활동** — `works.listFeed(taskId)`(댓글과 활동이 시간순으로 섞인 타임라인)·`works.addComment`·
17
+ `works.updateComment`·`works.deleteComment`. 코어는 Studio 댓글과 같은 함수라 멘션된 멤버와 담당자에게 리옵트 알림이 간다.
18
+ 수정은 작성자 본인만, 삭제는 본인 또는 `works:delete`(아니면 403 `FORBIDDEN`).
19
+ - 고객: `customers.list`가 `CountedPage`(= `Page` + `total: number`)를 돌려준다(`?? items.length`가 필요 없다),
20
+ `ConnectCustomerField.name`(쓰기의 `attributes` 키 — 커스텀 필드 편집 화면), `CONTACT_TAKEN`의 `fields[].relatedId`
21
+ (겹친 고객의 id — "그 고객 열기").
22
+ - `listAll`·`iterate`가 질의를 받지 않는 목록(`customers.listTags`·`listFields`·`members`…)도 받는다.
23
+ - `mentionToken(member)`·`splitMentions(content)` — 댓글의 멘션 토큰(`@[이름](member:<id>)`)을 만들고 나눈다.
24
+ 의존 없는 진입점 `@reopt-ai/workspace-sdk/mentions`에서도 나간다(클라이언트 컴포넌트의 입력 미리보기).
25
+ - `/testing` — 위 넷과 `seed.tasks[].comments`. 폼 제출이 이메일(없으면 전화)로 고객 명부에 이어지고(`customerId`),
26
+ 고객 타임라인이 실제 서버와 같은 종류(`customer.create`·`customer.update` + `metadata.changes`)로 남는다.
27
+
28
+ ### Changed
29
+
30
+ - **키 회전: NEXT 키는 게시만 하고 서명은 현재 키로 한다**(`readClientKeyRing().signing`). 예전엔 NEXT를 두는 순간 NEXT로
31
+ 서명했다 — 콘솔의 회전 안내("서명은 아직 지금 키로")와 반대였고, 리옵트가 공개키를 등록해 두는 연결 중 자기 도메인의
32
+ 앱은 새 키가 등록되기 전까지 토큰을 받지 못할 수 있었다. 회전은 ①NEXT 설정(JWKS에 둘 다) ②콘솔 "공개키 다시 읽기"로
33
+ 새 키 등록 확인 ③NEXT를 본 키로 승격의 세 단계다(`docs/machine.md`).
34
+
35
+ ### Fixed
36
+
37
+ - 패키지 루트(`.`)가 위임 클라이언트의 새 타입(`ConnectCustomer`·`ConnectInquiryMoveResult` 등)을 내보내지 않던 것 —
38
+ 이름을 하나씩 적던 목록을 `export type *`로 바꿨다(`/connect`는 처음부터 전부 내보냈다).
39
+
40
+ ## [0.1.0-rc.11] — 2026-11-22
41
+
42
+ Pre-release (`npm i @reopt-ai/workspace-sdk@next`). 깨지는 변경 없음.
43
+
44
+ ### Added
45
+
46
+ - **고객(CRM)** — `reopt.customers`: `list`(검색·태그·기록 종류·여정·브랜드·기간, `total` 포함)·`get`·`create`·`update`·
47
+ `updateTags`·`listTags`·`listFields`·`listNotes`·`addNote`·`updateNote`·`deleteNote`·`timeline`. 코어는 Studio·CLI와 같은
48
+ 함수다(연락처 정규화·충돌 판정·커스텀 필드 검증).
49
+ - 명부는 연락처라 읽기는 `customer:read` scope, 쓰기는 `workspace:write`에 **더해** `customer:read`가 필요하다
50
+ (`CONNECT_OPERATIONS[…].alsoScopes`, `canCall`이 함께 본다). 리옵트는 명부 읽기를 감사에 남긴다.
51
+ - 연락처가 다른 고객과 겹치면 409 **`CONTACT_TAKEN`**(새 코드) — `error.fieldMap()`이 `email`·`phoneNumber`를 짚는다.
52
+ `create({ onConflict: "link" })`는 그 고객에 덧붙이고 그 고객을 돌려준다.
53
+ - **`NOT_IMPLEMENTED`(501)·`isNotImplemented(error)`** — 서버에 그 라우트가 없다(서버가 SDK보다 오래됐다). 화면에서 그 기능을
54
+ "아직 쓸 수 없음"으로 보이게 한다. 🔴 예전 서버는 위임 표면에 없는 경로에 **401**("machine tokens only")로 답했다 — 새 SDK를
55
+ 먼저 올린 앱이 그것을 "다시 로그인"으로 읽어 로그인 루프에 빠진다. 이 버전의 클라이언트는 그 401도 `NOT_IMPLEMENTED`로
56
+ 맞춰 던진다(서버도 501로 고쳤다).
57
+ - `Page.total` — 서버가 세는 목록(`customers.list`)에 전체 건수가 실린다.
58
+ - `/testing` — 고객(`seed.customers`·`customerFields`)과 위 규칙, `seed.pipelines[].stages[].isEntry`(시작 단계 지정),
59
+ 폼 선택지 `{ value, label }`, `machine.clientName`. `requests`는 최근 1,000건만 남긴다.
60
+
61
+ ### Changed
62
+
63
+ - **id 모양이 아닌 값은 404 `NOT_FOUND`다**(예전엔 400 `VALIDATION_ERROR`) — `getTask("아무거나")`가 "그런 것이 없다"로
64
+ 답해 잘못된 주소가 404 화면으로 간다. 위임 표면의 id 자리 전부.
65
+
66
+ ### Fixed
67
+
68
+ - `/testing` — 글 주소를 영문 소문자·숫자·하이픈만 받던 것(실제 서버는 1~64자면 한글도 받는다), id 모양이 아닌 경로가 501이던
69
+ 것(404). 둘 다 계약 시나리오에 넣어 실제 서버와 대조한다(bootstrap 보고).
70
+
10
71
  ## [0.1.0-rc.10] — 2026-11-22
11
72
 
12
73
  Pre-release (`npm i @reopt-ai/workspace-sdk@next`). 위임 클라이언트(`createConnectClient`)의 계약을 한 번에 정리했다 — **깨지는 변경이 있다**. 옮기는 표는
package/README.md CHANGED
@@ -14,6 +14,7 @@ a company site, a service that files work into Studio) rather than being one bra
14
14
  keys and `can(me, "post:publish")` / `canCall(me, "works.deleteTask")`.
15
15
  - **Dev platform** (`/testing`) — an in-memory Reopt for dev mode and E2E: keep the real clients,
16
16
  swap their `fetch`. See `docs/testing.md`.
17
+ - **Mentions** (`/mentions`, no dependencies) — `mentionToken`, `splitMentions` for task comments.
17
18
  - **Webhooks** (`/webhooks`, no dependencies) — receive Reopt's events with the signature and
18
19
  replay window checked: `createWebhookHandler({ secret, handlers })`.
19
20
  - **Machine credentials** (`/machine`) — `private_key_jwt` + DPoP, key generation (`reopt-keygen`), JWKS.
@@ -1,4 +1,4 @@
1
- import { r as ClientKeyRing } from "../keys-B2pA8EkU.js";
1
+ import { r as ClientKeyRing } from "../keys-BXkGh0VM.js";
2
2
  import { genericOAuth } from "better-auth/plugins";
3
3
  //#region src/better-auth/index.d.ts
4
4
  /** Better Auth 제공자 id — `signIn.social({ provider })`와 콜백 경로(`/api/auth/callback/reopt`)의 마지막 조각. */
@@ -1,5 +1,5 @@
1
1
  import { resolvePlatformUrls } from "../urls.js";
2
- import { o as readClientKeyRing } from "../keys-6gwtNd0g.js";
2
+ import { o as readClientKeyRing } from "../keys--ef_VwZ-.js";
3
3
  import { createPrivateKeyJwtClientAssertionGetter } from "@better-auth/core/oauth2";
4
4
  import { genericOAuth } from "better-auth/plugins";
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { resolveIdBaseUrl } from "./urls.js";
2
- import { o as readClientKeyRing, s as toPublicJwk } from "./keys-6gwtNd0g.js";
2
+ import { o as readClientKeyRing, s as toPublicJwk } from "./keys--ef_VwZ-.js";
3
3
  import { createPrivateKeyJwtClientAssertionGetter } from "@better-auth/core/oauth2";
4
4
  import * as jose from "jose";
5
5
 
@@ -188,4 +188,4 @@ function createMachineClient(config) {
188
188
 
189
189
  //#endregion
190
190
  export { createDpopProof as n, createMachineClient as r, MachineTokenError as t };
191
- //# sourceMappingURL=client-XAvKlbbn.js.map
191
+ //# sourceMappingURL=client-BLaFMBbS.js.map
@@ -1,8 +1,8 @@
1
- import { c as SDK_VERSION, n as PlatformApiError } from "./errors-CqgpUVKp.js";
2
- import { n as readPlatformFailure } from "./transport-BuVYzuQz.js";
1
+ import { l as SDK_VERSION, n as PlatformApiError } from "./errors-CkgGRAPR.js";
2
+ import { n as readPlatformFailure } from "./transport-BVPl0lgF.js";
3
3
  import { resolvePlatformUrls } from "./urls.js";
4
- import { o as readClientKeyRing } from "./keys-6gwtNd0g.js";
5
- import { r as createMachineClient } from "./client-XAvKlbbn.js";
4
+ import { o as readClientKeyRing } from "./keys--ef_VwZ-.js";
5
+ import { r as createMachineClient } from "./client-BLaFMBbS.js";
6
6
  import { B as platformPublishedPostPageSchema, C as platformEavSchemaApplyResultSchema, D as platformLockAcquiredSchema, F as platformPipelineSchema, G as platformResourcesV2Schema, K as platformTaskSchema, O as platformLockReleasedSchema, P as platformPipelineResourceSchema, V as platformPublishedPostSchema, Z as platformWebhookSchema, _ as platformBrandappResourceSchema, et as platformWriteMetaSchema, h as platformBrandResourceSchema, j as platformOAuthClientResourceSchema, k as platformMeSchema } from "./schemas-eWh_FUfh.js";
7
7
 
8
8
  //#region src/workspace/client.ts
@@ -272,4 +272,4 @@ function createPlatformClient(config) {
272
272
 
273
273
  //#endregion
274
274
  export { createPlatformClient as n, createPlatformRequester as r, DEFAULT_PLATFORM_SCOPES as t };
275
- //# sourceMappingURL=client-BOl6q9Q5.js.map
275
+ //# sourceMappingURL=client-CJekFhCW.js.map
@@ -1,4 +1,4 @@
1
- import { i as ClientPrivateJwk, r as ClientKeyRing } from "./keys-B2pA8EkU.js";
1
+ import { i as ClientPrivateJwk, r as ClientKeyRing } from "./keys-BXkGh0VM.js";
2
2
  //#region src/machine/client.d.ts
3
3
  type MachineClientConfig = {
4
4
  /** `purpose: machine`(또는 `adapter`) 클라이언트의 client_id */
@@ -69,4 +69,4 @@ declare function createDpopProof(input: {
69
69
  declare function createMachineClient(config: MachineClientConfig): MachineClient;
70
70
  //#endregion
71
71
  export { createDpopProof as a, MachineTokenState as i, MachineClientConfig as n, createMachineClient as o, MachineTokenError as r, MachineClient as t };
72
- //# sourceMappingURL=client-DlgVNj3w.d.ts.map
72
+ //# sourceMappingURL=client-DVozA5Ep.d.ts.map
@@ -1,5 +1,5 @@
1
- import { i as ClientPrivateJwk, r as ClientKeyRing } from "./keys-B2pA8EkU.js";
2
- import { t as Page } from "./page-BB2P_WUd.js";
1
+ import { i as ClientPrivateJwk, r as ClientKeyRing } from "./keys-BXkGh0VM.js";
2
+ import { n as Page } from "./page-j1OCu4of.js";
3
3
  import { n as PlatformUrls } from "./urls-DiYp_PHg.js";
4
4
  import { z } from "zod";
5
5
  //#region src/workspace/schemas.d.ts
@@ -686,4 +686,4 @@ type PlatformClient = {
686
686
  declare function createPlatformClient(config: PlatformClientConfig): PlatformClient;
687
687
  //#endregion
688
688
  export { PlatformStageColor as $, PlatformEavSchemaApplyResult as A, platformOAuthClientUpsertInputSchema as At, PlatformOAuthClientUpsertInput as B, platformPublishedPostSummarySchema as Bt, PlatformBrandappUpsertInput as C, platformErrorSchema as Ct, PlatformEavDataType as D, platformMeSchema as Dt, PlatformEavBrandappResources as E, platformLockReleasedSchema as Et, PlatformManagedBy as F, platformPipelineUpsertInputSchema as Ft, PlatformPipelineUpsertInput as G, platformTaskStageInputSchema as Gt, PlatformPipelineImportInput as H, platformResourcesSchema as Ht, PlatformMe as I, platformPublishedPostDetailQuerySchema as It, PlatformPublishedPostListOptions as J, platformWebhookResourceSchema as Jt, PlatformPublishedPost as K, platformTaskStageSchema as Kt, PlatformOAuthClientImportInput as L, platformPublishedPostListQuerySchema as Lt, PlatformErrorBody as M, platformPipelineResourceSchema as Mt, PlatformLockAcquired as N, platformPipelineSchema as Nt, PlatformEavEntityResource as O, platformOAuthClientImportInputSchema as Ot, PlatformLockReleased as P, platformPipelineStageInputSchema as Pt, PlatformResourcesV2 as Q, platformWriteMetaSchema as Qt, PlatformOAuthClientPurpose as R, platformPublishedPostPageSchema as Rt, PlatformBrandappResource as S, platformEavSchemaOperationSchema as St, PlatformDomainStatus as T, platformLockAcquiredSchema as Tt, PlatformPipelineResource as U, platformResourcesV2Schema as Ut, PlatformPipeline as V, platformResourceKeySchema as Vt, PlatformPipelineStageInput as W, platformTaskSchema as Wt, PlatformPublishedPostSummary as X, platformWebhookUpsertInputSchema as Xt, PlatformPublishedPostPage as Y, platformWebhookSchema as Yt, PlatformResources as Z, platformWorkTaskStageChangedEventSchema as Zt, PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS as _, platformCustomerUpsertInputSchema as _t, createPlatformClient as a, PlatformTaskUpsertInput as at, PlatformBrandResource as b, platformEavSchemaApplyInputSchema as bt, PLATFORM_DOMAIN_STATUSES as c, PlatformWebhookTrigger as ct, PLATFORM_OAUTH_APPLICATION_TYPES as d, PlatformWriteMeta as dt, PlatformTask as et, PLATFORM_OAUTH_CLIENT_PURPOSES as f, platformBrandImportInputSchema as ft, PLATFORM_TASK_PRIORITIES as g, platformBrandappUpsertInputSchema as gt, PLATFORM_TASK_OUTCOMES as h, platformBrandappResourceSchema as ht, PlatformWriteResult as i, PlatformTaskStageInput as it, PlatformEavSchemaOperation as j, platformPipelineImportInputSchema as jt, PlatformEavSchemaApplyInput as k, platformOAuthClientResourceSchema as kt, PLATFORM_EAV_DATA_TYPES as l, PlatformWebhookUpsertInput as lt, PLATFORM_STAGE_COLORS as m, platformBrandUpsertInputSchema as mt, PlatformClient as n, PlatformTaskPriority as nt, PLATFORM_ADMIN_SCOPE as o, PlatformWebhook as ot, PLATFORM_OAUTH_GRANT_TYPES as p, platformBrandResourceSchema as pt, PlatformPublishedPostGetOptions as q, platformTaskUpsertInputSchema as qt, PlatformClientConfig as r, PlatformTaskStage as rt, PLATFORM_BRANDAPP_STATUSES as s, PlatformWebhookResource as st, DEFAULT_PLATFORM_SCOPES as t, PlatformTaskOutcome as tt, PLATFORM_MANAGED_BY_VALUES as u, PlatformWorkTaskStageChangedEvent as ut, PLATFORM_WEBHOOK_TRIGGERS as v, platformEavBrandappResourcesSchema as vt, PlatformCustomerUpsertInput as w, platformExternalIdSchema as wt, PlatformBrandUpsertInput as x, platformEavSchemaApplyResultSchema as xt, PlatformBrandImportInput as y, platformEavEntityResourceSchema as yt, PlatformOAuthClientResource as z, platformPublishedPostSchema as zt };
689
- //# sourceMappingURL=client-BF4-fVag.d.ts.map
689
+ //# sourceMappingURL=client-olMIaJZH.d.ts.map
@@ -1,5 +1,5 @@
1
- import { c as WorkspacePermissionKey, o as ConnectScope } from "./permissions-CyEr04jl.js";
2
- import { n as PageQuery, r as SortOf, t as Page } from "./page-BB2P_WUd.js";
1
+ import { c as WorkspacePermissionKey, o as ConnectScope } from "./permissions-LF1orSvQ.js";
2
+ import { i as SortOf, n as Page, r as PageQuery, t as CountedPage } from "./page-j1OCu4of.js";
3
3
  import { z } from "zod";
4
4
  //#region src/workspace/transport.d.ts
5
5
  /**
@@ -180,6 +180,36 @@ type ConnectTask = {
180
180
  createdAt: string;
181
181
  updatedAt: string;
182
182
  };
183
+ /** 업무 타임라인의 사람 — 댓글 작성자·활동의 행위자 */
184
+ type ConnectTaskFeedMember = {
185
+ memberId: string;
186
+ name: string;
187
+ image: string | null;
188
+ };
189
+ type ConnectTaskComment = {
190
+ type: "comment";
191
+ id: string;
192
+ taskId: string;
193
+ /** 탈퇴한 멤버의 댓글은 null */
194
+ author: ConnectTaskFeedMember | null;
195
+ /** 평문 + 멘션 토큰(`@[이름](member:<id>)`) — `mentionToken()`으로 만들고 `splitMentions()`로 그린다 */
196
+ content: string;
197
+ isEdited: boolean;
198
+ createdAt: string;
199
+ };
200
+ /** 업무에 일어난 일 — 생성·단계 이동·담당자 변경 등. `activityType`은 서버가 더할 수 있어 문자열이다 */
201
+ type ConnectTaskActivity = {
202
+ type: "activity";
203
+ id: string;
204
+ /** 자동화·시스템이 한 일은 null */
205
+ actor: ConnectTaskFeedMember | null;
206
+ activityType: "created" | "stage_changed" | "assignees_changed" | "due_date_changed" | "priority_changed" | "retitled" | "external_synced" | (string & {});
207
+ payload: Record<string, unknown> | null;
208
+ createdAt: string;
209
+ };
210
+ type ConnectTaskFeedItem = (Omit<ConnectTaskComment, "taskId"> & {
211
+ taskId?: string;
212
+ }) | ConnectTaskActivity;
183
213
  type ConnectPostGroupKind = "generic" | "blog" | "newsletter" | "announcement" | "changelog" | "faq" | "social" | (string & {});
184
214
  type ConnectPostGroup = {
185
215
  id: string;
@@ -347,6 +377,119 @@ type ConnectInquiryMoveResult = ConnectInquiryDetail & {
347
377
  /** 고객 여정 단계도 함께 옮겨졌는가 */
348
378
  journeySynced: boolean;
349
379
  };
380
+ type ConnectCustomerRecord = "person" | "company";
381
+ type ConnectCustomerSummary = {
382
+ id: string;
383
+ name: string;
384
+ /** 사람인가 회사인가 */
385
+ record: ConnectCustomerRecord;
386
+ email: string | null;
387
+ phoneNumber: string | null;
388
+ tags: string[];
389
+ /** 이 고객이 놓인 여정과 단계(여정 여럿에 동시에 있을 수 있다) */
390
+ journeys: Array<{
391
+ journeyId: string;
392
+ journey: string;
393
+ stageId: string;
394
+ stage: string;
395
+ }>;
396
+ createdAt: string;
397
+ };
398
+ type ConnectCustomer = Omit<ConnectCustomerSummary, "journeys"> & {
399
+ /** 반송·수신거부 상태 — 메일을 보낼 수 있는지 */
400
+ emailStatus: string | null;
401
+ address: string | null;
402
+ journeys: Array<ConnectCustomerSummary["journeys"][number] & {
403
+ outcome: string | null;
404
+ joinedAt: string;
405
+ }>;
406
+ /** 커스텀 필드 값 — `id`는 `customers.listFields()`의 id, 정의가 사라진 값은 `label`이 null */
407
+ fields: Array<{
408
+ id: string;
409
+ label: string | null;
410
+ value?: unknown;
411
+ }>;
412
+ counts: {
413
+ notes: number;
414
+ tasks: number;
415
+ comments: number;
416
+ formSubmissions: number;
417
+ };
418
+ updatedAt: string;
419
+ };
420
+ type ConnectCustomerTag = {
421
+ id: string;
422
+ name: string;
423
+ customerCount: number;
424
+ };
425
+ type ConnectCustomerField = {
426
+ id: string;
427
+ /** 쓰기의 `attributes` 키 — `update(id, { attributes: { [field.name]: value } })`. 이름을 알 수 없는 옛 필드는 null */
428
+ name: string | null;
429
+ label: string;
430
+ dataType: string;
431
+ /** 선택형 필드의 값 후보 */
432
+ options: string[];
433
+ };
434
+ type ConnectCustomerNote = {
435
+ id: string;
436
+ customerId: string;
437
+ text: string;
438
+ /** 작성자 이름 */
439
+ author: string;
440
+ edited: boolean;
441
+ createdAt: string;
442
+ updatedAt: string;
443
+ };
444
+ /** 타임라인 한 줄 — 기록된 활동(`activity`) 또는 내부 코멘트(`comment`) */
445
+ type ConnectCustomerEvent = {
446
+ kind: "activity" | "comment";
447
+ id: string;
448
+ /** 활동 종류(`customer.created` 등) 또는 `"comment"` */
449
+ type: string;
450
+ createdAt: string;
451
+ text?: string;
452
+ actorType?: string | null;
453
+ metadata?: unknown;
454
+ };
455
+ type ConnectCustomerListQuery = PageQuery & {
456
+ /** 이름·이메일·전화 검색 */
457
+ q?: string;
458
+ /** 이 태그 중 하나라도 붙은 고객(20개까지) */
459
+ tags?: string[];
460
+ record?: ConnectCustomerRecord;
461
+ journeyId?: string;
462
+ stageId?: string;
463
+ /** `connect.brands()`의 id — 그 브랜드에 귀속된 고객 */
464
+ brandId?: string;
465
+ /** ISO 시각 */
466
+ createdAfter?: string;
467
+ createdBefore?: string;
468
+ };
469
+ type ConnectCustomerContactInput = {
470
+ record?: ConnectCustomerRecord;
471
+ /** null·빈 문자열은 지운다(수정) */
472
+ email?: string | null;
473
+ phoneNumber?: string | null;
474
+ address?: string | null;
475
+ /** 커스텀 필드 — `customers.listFields()`의 **라벨이 아니라 이름** → 값. 선언되지 않은 이름은 400(`fields`) */
476
+ attributes?: Record<string, unknown>;
477
+ };
478
+ type ConnectCustomerCreateInput = ConnectCustomerContactInput & {
479
+ name: string;
480
+ tags?: string[];
481
+ /** 첫 메모 */
482
+ note?: string;
483
+ brandId?: string;
484
+ /**
485
+ * 이메일·전화가 기존 고객과 겹칠 때 — 기본은 거절(409 `CONTACT_TAKEN`, `fields`가 어느 칸인지 말한다).
486
+ * `"link"`는 그 고객에 덧붙이고 그 고객을 돌려준다.
487
+ */
488
+ onConflict?: "fail" | "link";
489
+ };
490
+ type ConnectCustomerUpdateInput = ConnectCustomerContactInput & {
491
+ name?: string;
492
+ };
350
493
  /** 워크스페이스 앱이 소유한 테이블(RFC-0043 5단계) — 선언은 앱의 기계 자격이 `platform.eav.applySchema`로 한다 */
351
494
  type ConnectEavEntity = {
352
495
  id: string;
@@ -487,6 +630,8 @@ declare const connectBrandSchema: z.ZodType<ConnectBrand>;
487
630
  declare const connectMemberSchema: z.ZodType<ConnectMember>;
488
631
  declare const connectPipelineSchema: z.ZodType<ConnectPipeline>;
489
632
  declare const connectTaskSchema: z.ZodType<ConnectTask>;
633
+ declare const connectTaskCommentSchema: z.ZodType<ConnectTaskComment>;
634
+ declare const connectTaskFeedItemSchema: z.ZodType<ConnectTaskFeedItem>;
490
635
  declare const connectPostGroupSchema: z.ZodType<ConnectPostGroup>;
491
636
  declare const connectPostTagSchema: z.ZodType<ConnectPostTag>;
492
637
  declare const connectPostSummarySchema: z.ZodType<ConnectPostSummary>;
@@ -498,6 +643,9 @@ declare const connectFormSchema: z.ZodType<ConnectForm>;
498
643
  declare const connectInquirySchema: z.ZodType<ConnectInquiry>;
499
644
  declare const connectInquiryDetailSchema: z.ZodType<ConnectInquiryDetail>;
500
645
  declare const connectInquiryMoveResultSchema: z.ZodType<ConnectInquiryMoveResult>;
646
+ declare const connectCustomerSummarySchema: z.ZodType<ConnectCustomerSummary>;
647
+ declare const connectCustomerSchema: z.ZodType<ConnectCustomer>;
648
+ declare const connectCustomerNoteSchema: z.ZodType<ConnectCustomerNote>;
501
649
  declare const connectEavEntitySchema: z.ZodType<ConnectEavEntity>;
502
650
  declare const connectEavRecordSchema: z.ZodType<ConnectEavRecord>;
503
651
  type Options = ConnectRequestOptions;
@@ -524,6 +672,18 @@ type ConnectClient = {
524
672
  deleted: string[];
525
673
  notFound: string[];
526
674
  }>;
675
+ /** 업무의 타임라인 — 댓글과 활동(생성·단계 이동·담당자 변경…)이 시간순(오래된 것부터)으로 섞여 온다 */
676
+ listFeed: (taskId: string, options?: Options) => Promise<Page<ConnectTaskFeedItem>>;
677
+ /**
678
+ * 댓글 — 4,000자까지. 본문의 멘션 토큰(`mentionToken(member)`)마다 그 멤버에게, 그리고 담당자에게 리옵트 알림이 간다.
679
+ */
680
+ addComment: (taskId: string, content: string, options?: Options) => Promise<ConnectTaskComment>;
681
+ /** 작성자 본인만 고칠 수 있다(403 `FORBIDDEN`) */
682
+ updateComment: (commentId: string, content: string, options?: Options) => Promise<ConnectTaskComment>;
683
+ /** 작성자 본인, 또는 `works:delete` 권한이 있는 멤버 */
684
+ deleteComment: (commentId: string, options?: Options) => Promise<{
685
+ id: string;
686
+ }>;
527
687
  };
528
688
  posts: {
529
689
  listGroups: (options?: Options) => Promise<Page<ConnectPostGroup>>;
@@ -628,6 +788,42 @@ type ConnectClient = {
628
788
  get: (submissionId: string, options?: Options) => Promise<ConnectInquiryDetail>;
629
789
  moveStage: (submissionId: string, stageId: string, options?: Options) => Promise<ConnectInquiryMoveResult>;
630
790
  };
791
+ /**
792
+ * 고객(CRM 명부). 연락처가 있어 읽기는 `customer:read` scope, 쓰기는 `workspace:write`에 **더해** `customer:read`가
793
+ * 필요하다(쓰기 응답에 고객 전체가 실린다). 리옵트는 명부를 읽은 호출을 감사에 남긴다(누가·어느 앱으로·몇 건).
794
+ */
795
+ customers: {
796
+ /** 최근 등록순. `limit`을 안 주면 한 장에 50명(최대 100). `total`은 조건에 맞는 전체 수 */
797
+ list: (query?: ConnectCustomerListQuery, options?: Options) => Promise<CountedPage<ConnectCustomerSummary>>;
798
+ /** 태그 어휘 — `list({ tags })` 필터와 태그 입력 자동완성에 쓴다 */
799
+ listTags: (options?: Options) => Promise<Page<ConnectCustomerTag>>;
800
+ /** 커스텀 필드 정의 — `ConnectCustomer.fields[].id`의 뜻 */
801
+ listFields: (options?: Options) => Promise<Page<ConnectCustomerField>>;
802
+ get: (id: string, options?: Options) => Promise<ConnectCustomer>;
803
+ /**
804
+ * 등록. 연락처(이메일·전화)가 다른 고객과 겹치면 409 `CONTACT_TAKEN` — `error.fields`가 어느 칸인지 말한다.
805
+ * `onConflict: "link"`면 그 고객에 덧붙이고 그 고객을 돌려준다.
806
+ */
807
+ create: (input: ConnectCustomerCreateInput, options?: Options) => Promise<ConnectCustomer>;
808
+ /** 부분 수정 — 준 필드만 바뀐다. 연락처 충돌은 409 `CONTACT_TAKEN` */
809
+ update: (id: string, input: ConnectCustomerUpdateInput, options?: Options) => Promise<ConnectCustomer>;
810
+ /** 태그 붙이기·떼기 — 없는 이름은 만든다. 고친 고객을 돌려준다 */
811
+ updateTags: (id: string, change: {
812
+ add?: string[];
813
+ remove?: string[];
814
+ }, options?: Options) => Promise<ConnectCustomer>;
815
+ /** 메모 — 오래된 것부터 */
816
+ listNotes: (id: string, options?: Options) => Promise<Page<ConnectCustomerNote>>;
817
+ addNote: (id: string, text: string, options?: Options) => Promise<ConnectCustomerNote>;
818
+ updateNote: (noteId: string, text: string, options?: Options) => Promise<ConnectCustomerNote>;
819
+ deleteNote: (noteId: string, options?: Options) => Promise<{
820
+ id: string;
821
+ }>;
822
+ /** 활동 + 내부 코멘트, 최근 것부터(기본 50, 최대 100) */
823
+ timeline: (id: string, query?: {
824
+ limit?: number;
825
+ }, options?: Options) => Promise<Page<ConnectCustomerEvent>>;
826
+ };
631
827
  /**
632
828
  * 워크스페이스 앱이 소유한 테이블(RFC-0043 5단계). 이 연결 클라이언트의 설치가 소유한 테이블만 보인다 — 다른 앱·브랜드앱의
633
829
  * 테이블 경로는 404. 쓰기 거절: 값 검증 400(`fields`는 속성 이름), 고유값 409 `CONFLICT`, `ifVersion` 불일치 409
@@ -649,5 +845,5 @@ type ConnectClient = {
649
845
  };
650
846
  declare function createConnectClient(config: ConnectClientConfig): ConnectClient;
651
847
  //#endregion
652
- export { connectEavRecordSchema as $, ConnectPostListQuery as A, ConnectSignedUrlOptions as B, ConnectMemberRole as C, ConnectPostCreateInput as D, ConnectPostAuthor as E, ConnectPostSummary as F, ConnectTaskListQuery as G, ConnectStageOutcome as H, ConnectPostTag as I, ConnectTaskSortField as J, ConnectTaskMoveInput as K, ConnectPostUpdateInput as L, ConnectPostSortField as M, ConnectPostSpec as N, ConnectPostGroup as O, ConnectPostStatus as P, connectEavEntitySchema as Q, ConnectRequestOptions as R, ConnectMember as S, ConnectPost as T, ConnectTask as U, ConnectStageColor as V, ConnectTaskCreateInput as W, ConnectWorkspaceTier as X, ConnectTaskUpdateInput as Y, connectBrandSchema as Z, ConnectFormType as _, ConnectClientConfig as a, connectInquiryMoveResultSchema as at, ConnectInquiryMoveResult as b, ConnectFile as c, connectMemberSchema as ct, ConnectFileUsage as d, connectPostSchema as dt, connectFileSchema as et, ConnectFileVisibility as f, connectPostSummarySchema as ft, ConnectFormStatus as g, ConnectForm as h, createConnectClient as ht, ConnectClient as i, connectInquiryDetailSchema as it, ConnectPostMetaInput as j, ConnectPostGroupKind as k, ConnectFileListQuery as l, connectPipelineSchema as lt, ConnectFolderKind as m, connectTaskSchema as mt, ConnectAnswerValue as n, connectFolderSchema as nt, ConnectEavEntity as o, connectInquirySchema as ot, ConnectFolder as p, connectPostTagSchema as pt, ConnectTaskPriority as q, ConnectBrand as r, connectFormSchema as rt, ConnectEavRecord as s, connectMeSchema as st, ConnectAccessToken as t, connectFileUsageSchema as tt, ConnectFileSortField as u, connectPostGroupSchema as ut, ConnectInquiry as v, ConnectPipeline as w, ConnectMe as x, ConnectInquiryDetail as y, ConnectSignedUrl as z };
653
- //# sourceMappingURL=connect-ukgmn0Fx.d.ts.map
848
+ export { ConnectTask as $, ConnectInquiryMoveResult as A, connectPostTagSchema as At, ConnectPostListQuery as B, ConnectFolder as C, connectInquirySchema as Ct, ConnectFormType as D, connectPostGroupSchema as Dt, ConnectFormStatus as E, connectPipelineSchema as Et, ConnectPost as F, ConnectPostSummary as G, ConnectPostSortField as H, ConnectPostAuthor as I, ConnectRequestOptions as J, ConnectPostTag as K, ConnectPostCreateInput as L, ConnectMember as M, connectTaskFeedItemSchema as Mt, ConnectMemberRole as N, connectTaskSchema as Nt, ConnectInquiry as O, connectPostSchema as Ot, ConnectPipeline as P, createConnectClient as Pt, ConnectStageOutcome as Q, ConnectPostGroup as R, ConnectFileVisibility as S, connectInquiryMoveResultSchema as St, ConnectForm as T, connectMemberSchema as Tt, ConnectPostSpec as U, ConnectPostMetaInput as V, ConnectPostStatus as W, ConnectSignedUrlOptions as X, ConnectSignedUrl as Y, ConnectStageColor as Z, ConnectEavRecord as _, connectFileSchema as _t, ConnectClientConfig as a, ConnectTaskListQuery as at, ConnectFileSortField as b, connectFormSchema as bt, ConnectCustomerEvent as c, ConnectTaskSortField as ct, ConnectCustomerNote as d, connectBrandSchema as dt, ConnectTaskActivity as et, ConnectCustomerRecord as f, connectCustomerNoteSchema as ft, ConnectEavEntity as g, connectEavRecordSchema as gt, ConnectCustomerUpdateInput as h, connectEavEntitySchema as ht, ConnectClient as i, ConnectTaskFeedMember as it, ConnectMe as j, connectTaskCommentSchema as jt, ConnectInquiryDetail as k, connectPostSummarySchema as kt, ConnectCustomerField as l, ConnectTaskUpdateInput as lt, ConnectCustomerTag as m, connectCustomerSummarySchema as mt, ConnectAnswerValue as n, ConnectTaskCreateInput as nt, ConnectCustomer as o, ConnectTaskMoveInput as ot, ConnectCustomerSummary as p, connectCustomerSchema as pt, ConnectPostUpdateInput as q, ConnectBrand as r, ConnectTaskFeedItem as rt, ConnectCustomerCreateInput as s, ConnectTaskPriority as st, ConnectAccessToken as t, ConnectTaskComment as tt, ConnectCustomerListQuery as u, ConnectWorkspaceTier as ut, ConnectFile as v, connectFileUsageSchema as vt, ConnectFolderKind as w, connectMeSchema as wt, ConnectFileUsage as x, connectInquiryDetailSchema as xt, ConnectFileListQuery as y, connectFolderSchema as yt, ConnectPostGroupKind as z };
849
+ //# sourceMappingURL=connect-3zkyD_-0.d.ts.map
package/dist/connect.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { a as ConnectOperationRule, c as WorkspacePermissionKey, d as canAny, f as canCall, i as ConnectOperation, l as can, n as CONNECT_OPERATION_NAMES, o as ConnectScope, r as CONNECT_SCOPES, s as WORKSPACE_PERMISSION_KEYS, t as CONNECT_OPERATIONS, u as canAll } from "./permissions-CyEr04jl.js";
2
- import { a as listAll, i as iterate, n as PageQuery, r as SortOf, t as Page } from "./page-BB2P_WUd.js";
3
- import { a as PlatformSdkErrorCode, c as isPermissionDenied, d as isSignInRequired, i as PlatformFieldError, l as isPlatformApiError, n as PlatformApiError, o as PlatformServerErrorCode, r as PlatformErrorCode, s as SDK_ERROR_CODES, t as PLATFORM_ERROR_CODES, u as isPlatformError } from "./errors-VxWmrlix.js";
4
- import { $ as connectEavRecordSchema, A as ConnectPostListQuery, B as ConnectSignedUrlOptions, C as ConnectMemberRole, D as ConnectPostCreateInput, E as ConnectPostAuthor, F as ConnectPostSummary, G as ConnectTaskListQuery, H as ConnectStageOutcome, I as ConnectPostTag, J as ConnectTaskSortField, K as ConnectTaskMoveInput, L as ConnectPostUpdateInput, M as ConnectPostSortField, N as ConnectPostSpec, O as ConnectPostGroup, P as ConnectPostStatus, Q as connectEavEntitySchema, R as ConnectRequestOptions, S as ConnectMember, T as ConnectPost, U as ConnectTask, V as ConnectStageColor, W as ConnectTaskCreateInput, X as ConnectWorkspaceTier, Y as ConnectTaskUpdateInput, Z as connectBrandSchema, _ as ConnectFormType, a as ConnectClientConfig, at as connectInquiryMoveResultSchema, b as ConnectInquiryMoveResult, c as ConnectFile, ct as connectMemberSchema, d as ConnectFileUsage, dt as connectPostSchema, et as connectFileSchema, f as ConnectFileVisibility, ft as connectPostSummarySchema, g as ConnectFormStatus, h as ConnectForm, ht as createConnectClient, i as ConnectClient, it as connectInquiryDetailSchema, j as ConnectPostMetaInput, k as ConnectPostGroupKind, l as ConnectFileListQuery, lt as connectPipelineSchema, m as ConnectFolderKind, mt as connectTaskSchema, n as ConnectAnswerValue, nt as connectFolderSchema, o as ConnectEavEntity, ot as connectInquirySchema, p as ConnectFolder, pt as connectPostTagSchema, q as ConnectTaskPriority, r as ConnectBrand, rt as connectFormSchema, s as ConnectEavRecord, st as connectMeSchema, t as ConnectAccessToken, tt as connectFileUsageSchema, u as ConnectFileSortField, ut as connectPostGroupSchema, v as ConnectInquiry, w as ConnectPipeline, x as ConnectMe, y as ConnectInquiryDetail, z as ConnectSignedUrl } from "./connect-ukgmn0Fx.js";
5
- export { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, type ConnectAccessToken, type ConnectAnswerValue, type ConnectBrand, type ConnectClient, type ConnectClientConfig, type ConnectEavEntity, type ConnectEavRecord, type ConnectFile, type ConnectFileListQuery, type ConnectFileSortField, type ConnectFileUsage, type ConnectFileVisibility, type ConnectFolder, type ConnectFolderKind, type ConnectForm, type ConnectFormStatus, type ConnectFormType, type ConnectInquiry, type ConnectInquiryDetail, type ConnectInquiryMoveResult, type ConnectMe, type ConnectMember, type ConnectMemberRole, type ConnectOperation, type ConnectOperationRule, type ConnectPipeline, type ConnectPost, type ConnectPostAuthor, type ConnectPostCreateInput, type ConnectPostGroup, type ConnectPostGroupKind, type ConnectPostListQuery, type ConnectPostMetaInput, type ConnectPostSortField, type ConnectPostSpec, type ConnectPostStatus, type ConnectPostSummary, type ConnectPostTag, type ConnectPostUpdateInput, type ConnectRequestOptions, type ConnectScope, type ConnectSignedUrl, type ConnectSignedUrlOptions, type ConnectStageColor, type ConnectStageOutcome, type ConnectTask, type ConnectTaskCreateInput, type ConnectTaskListQuery, type ConnectTaskMoveInput, type ConnectTaskPriority, type ConnectTaskSortField, type ConnectTaskUpdateInput, type ConnectWorkspaceTier, PLATFORM_ERROR_CODES, type Page, type PageQuery, PlatformApiError, type PlatformErrorCode, type PlatformFieldError, type PlatformSdkErrorCode, type PlatformServerErrorCode, SDK_ERROR_CODES, type SortOf, WORKSPACE_PERMISSION_KEYS, type WorkspacePermissionKey, can, canAll, canAny, canCall, connectBrandSchema, connectEavEntitySchema, connectEavRecordSchema, connectFileSchema, connectFileUsageSchema, connectFolderSchema, connectFormSchema, connectInquiryDetailSchema, type connectInquiryMoveResultSchema, connectInquirySchema, connectMeSchema, connectMemberSchema, connectPipelineSchema, connectPostGroupSchema, connectPostSchema, connectPostSummarySchema, connectPostTagSchema, connectTaskSchema, createConnectClient, isPermissionDenied, isPlatformApiError, isPlatformError, isSignInRequired, iterate, listAll };
1
+ import { a as ConnectOperationRule, c as WorkspacePermissionKey, d as canAny, f as canCall, i as ConnectOperation, l as can, n as CONNECT_OPERATION_NAMES, o as ConnectScope, r as CONNECT_SCOPES, s as WORKSPACE_PERMISSION_KEYS, t as CONNECT_OPERATIONS, u as canAll } from "./permissions-LF1orSvQ.js";
2
+ import { a as iterate, i as SortOf, n as Page, o as listAll, r as PageQuery, t as CountedPage } from "./page-j1OCu4of.js";
3
+ import { a as PlatformSdkErrorCode, c as isNotImplemented, d as isPlatformError, f as isSignInRequired, i as PlatformFieldError, l as isPermissionDenied, n as PlatformApiError, o as PlatformServerErrorCode, r as PlatformErrorCode, s as SDK_ERROR_CODES, t as PLATFORM_ERROR_CODES, u as isPlatformApiError } from "./errors-CLUuzCNG.js";
4
+ import { $ as ConnectTask, A as ConnectInquiryMoveResult, At as connectPostTagSchema, B as ConnectPostListQuery, C as ConnectFolder, Ct as connectInquirySchema, D as ConnectFormType, Dt as connectPostGroupSchema, E as ConnectFormStatus, Et as connectPipelineSchema, F as ConnectPost, G as ConnectPostSummary, H as ConnectPostSortField, I as ConnectPostAuthor, J as ConnectRequestOptions, K as ConnectPostTag, L as ConnectPostCreateInput, M as ConnectMember, Mt as connectTaskFeedItemSchema, N as ConnectMemberRole, Nt as connectTaskSchema, O as ConnectInquiry, Ot as connectPostSchema, P as ConnectPipeline, Pt as createConnectClient, Q as ConnectStageOutcome, R as ConnectPostGroup, S as ConnectFileVisibility, St as connectInquiryMoveResultSchema, T as ConnectForm, Tt as connectMemberSchema, U as ConnectPostSpec, V as ConnectPostMetaInput, W as ConnectPostStatus, X as ConnectSignedUrlOptions, Y as ConnectSignedUrl, Z as ConnectStageColor, _ as ConnectEavRecord, _t as connectFileSchema, a as ConnectClientConfig, at as ConnectTaskListQuery, b as ConnectFileSortField, bt as connectFormSchema, c as ConnectCustomerEvent, ct as ConnectTaskSortField, d as ConnectCustomerNote, dt as connectBrandSchema, et as ConnectTaskActivity, f as ConnectCustomerRecord, ft as connectCustomerNoteSchema, g as ConnectEavEntity, gt as connectEavRecordSchema, h as ConnectCustomerUpdateInput, ht as connectEavEntitySchema, i as ConnectClient, it as ConnectTaskFeedMember, j as ConnectMe, jt as connectTaskCommentSchema, k as ConnectInquiryDetail, kt as connectPostSummarySchema, l as ConnectCustomerField, lt as ConnectTaskUpdateInput, m as ConnectCustomerTag, mt as connectCustomerSummarySchema, n as ConnectAnswerValue, nt as ConnectTaskCreateInput, o as ConnectCustomer, ot as ConnectTaskMoveInput, p as ConnectCustomerSummary, pt as connectCustomerSchema, q as ConnectPostUpdateInput, r as ConnectBrand, rt as ConnectTaskFeedItem, s as ConnectCustomerCreateInput, st as ConnectTaskPriority, t as ConnectAccessToken, tt as ConnectTaskComment, u as ConnectCustomerListQuery, ut as ConnectWorkspaceTier, v as ConnectFile, vt as connectFileUsageSchema, w as ConnectFolderKind, wt as connectMeSchema, x as ConnectFileUsage, xt as connectInquiryDetailSchema, y as ConnectFileListQuery, yt as connectFolderSchema, z as ConnectPostGroupKind } from "./connect-3zkyD_-0.js";
5
+ import { n as mentionToken, r as splitMentions, t as MentionSegment } from "./mentions-BMI2c7O6.js";
6
+ export { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, type ConnectAccessToken, type ConnectAnswerValue, type ConnectBrand, type ConnectClient, type ConnectClientConfig, type ConnectCustomer, type ConnectCustomerCreateInput, type ConnectCustomerEvent, type ConnectCustomerField, type ConnectCustomerListQuery, type ConnectCustomerNote, type ConnectCustomerRecord, type ConnectCustomerSummary, type ConnectCustomerTag, type ConnectCustomerUpdateInput, type ConnectEavEntity, type ConnectEavRecord, type ConnectFile, type ConnectFileListQuery, type ConnectFileSortField, type ConnectFileUsage, type ConnectFileVisibility, type ConnectFolder, type ConnectFolderKind, type ConnectForm, type ConnectFormStatus, type ConnectFormType, type ConnectInquiry, type ConnectInquiryDetail, type ConnectInquiryMoveResult, type ConnectMe, type ConnectMember, type ConnectMemberRole, type ConnectOperation, type ConnectOperationRule, type ConnectPipeline, type ConnectPost, type ConnectPostAuthor, type ConnectPostCreateInput, type ConnectPostGroup, type ConnectPostGroupKind, type ConnectPostListQuery, type ConnectPostMetaInput, type ConnectPostSortField, type ConnectPostSpec, type ConnectPostStatus, type ConnectPostSummary, type ConnectPostTag, type ConnectPostUpdateInput, type ConnectRequestOptions, type ConnectScope, type ConnectSignedUrl, type ConnectSignedUrlOptions, type ConnectStageColor, type ConnectStageOutcome, type ConnectTask, type ConnectTaskActivity, type ConnectTaskComment, type ConnectTaskCreateInput, type ConnectTaskFeedItem, type ConnectTaskFeedMember, type ConnectTaskListQuery, type ConnectTaskMoveInput, type ConnectTaskPriority, type ConnectTaskSortField, type ConnectTaskUpdateInput, type ConnectWorkspaceTier, type CountedPage, type MentionSegment, PLATFORM_ERROR_CODES, type Page, type PageQuery, PlatformApiError, type PlatformErrorCode, type PlatformFieldError, type PlatformSdkErrorCode, type PlatformServerErrorCode, SDK_ERROR_CODES, type SortOf, WORKSPACE_PERMISSION_KEYS, type WorkspacePermissionKey, can, canAll, canAny, canCall, connectBrandSchema, type connectCustomerNoteSchema, type connectCustomerSchema, type connectCustomerSummarySchema, connectEavEntitySchema, connectEavRecordSchema, connectFileSchema, connectFileUsageSchema, connectFolderSchema, connectFormSchema, connectInquiryDetailSchema, type connectInquiryMoveResultSchema, connectInquirySchema, connectMeSchema, connectMemberSchema, connectPipelineSchema, connectPostGroupSchema, connectPostSchema, connectPostSummarySchema, connectPostTagSchema, type connectTaskCommentSchema, type connectTaskFeedItemSchema, connectTaskSchema, createConnectClient, isNotImplemented, isPermissionDenied, isPlatformApiError, isPlatformError, isSignInRequired, iterate, listAll, mentionToken, splitMentions };
package/dist/connect.js CHANGED
@@ -1,5 +1,6 @@
1
- import { a as isPlatformApiError, i as isPermissionDenied, n as PlatformApiError, o as isPlatformError, r as SDK_ERROR_CODES, s as isSignInRequired, t as PLATFORM_ERROR_CODES } from "./errors-CqgpUVKp.js";
1
+ import { a as isPermissionDenied, c as isSignInRequired, i as isNotImplemented, n as PlatformApiError, o as isPlatformApiError, r as SDK_ERROR_CODES, s as isPlatformError, t as PLATFORM_ERROR_CODES } from "./errors-CkgGRAPR.js";
2
2
  import { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, WORKSPACE_PERMISSION_KEYS, can, canAll, canAny, canCall } from "./permissions.js";
3
- import { _ as connectPostSummarySchema, a as connectEavRecordSchema, b as createConnectClient, c as connectFolderSchema, d as connectInquirySchema, f as connectMeSchema, g as connectPostSchema, h as connectPostGroupSchema, i as connectEavEntitySchema, l as connectFormSchema, m as connectPipelineSchema, n as listAll, o as connectFileSchema, p as connectMemberSchema, r as connectBrandSchema, s as connectFileUsageSchema, t as iterate, u as connectInquiryDetailSchema, v as connectPostTagSchema, y as connectTaskSchema } from "./page-D9XyBLLC.js";
3
+ import { mentionToken, splitMentions } from "./mentions.js";
4
+ import { _ as connectPostSummarySchema, a as connectEavRecordSchema, b as createConnectClient, c as connectFolderSchema, d as connectInquirySchema, f as connectMeSchema, g as connectPostSchema, h as connectPostGroupSchema, i as connectEavEntitySchema, l as connectFormSchema, m as connectPipelineSchema, n as listAll, o as connectFileSchema, p as connectMemberSchema, r as connectBrandSchema, s as connectFileUsageSchema, t as iterate, u as connectInquiryDetailSchema, v as connectPostTagSchema, y as connectTaskSchema } from "./page-CV3oG_Zu.js";
4
5
 
5
- export { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, PLATFORM_ERROR_CODES, PlatformApiError, SDK_ERROR_CODES, WORKSPACE_PERMISSION_KEYS, can, canAll, canAny, canCall, connectBrandSchema, connectEavEntitySchema, connectEavRecordSchema, connectFileSchema, connectFileUsageSchema, connectFolderSchema, connectFormSchema, connectInquiryDetailSchema, connectInquirySchema, connectMeSchema, connectMemberSchema, connectPipelineSchema, connectPostGroupSchema, connectPostSchema, connectPostSummarySchema, connectPostTagSchema, connectTaskSchema, createConnectClient, isPermissionDenied, isPlatformApiError, isPlatformError, isSignInRequired, iterate, listAll };
6
+ export { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, PLATFORM_ERROR_CODES, PlatformApiError, SDK_ERROR_CODES, WORKSPACE_PERMISSION_KEYS, can, canAll, canAny, canCall, connectBrandSchema, connectEavEntitySchema, connectEavRecordSchema, connectFileSchema, connectFileUsageSchema, connectFolderSchema, connectFormSchema, connectInquiryDetailSchema, connectInquirySchema, connectMeSchema, connectMemberSchema, connectPipelineSchema, connectPostGroupSchema, connectPostSchema, connectPostSummarySchema, connectPostTagSchema, connectTaskSchema, createConnectClient, isNotImplemented, isPermissionDenied, isPlatformApiError, isPlatformError, isSignInRequired, iterate, listAll, mentionToken, splitMentions };
@@ -19,7 +19,7 @@
19
19
  * 서버가 내는 코드 전부(`apps/web/server/hono/lib/platform-response.ts`와 양방향 대조 — 한쪽만 늘면 테스트가 깨진다) +
20
20
  * SDK가 스스로 만드는 셋(`HTTP_ERROR`·`INVALID_RESPONSE`·`TIMEOUT`·`NETWORK_ERROR`).
21
21
  */
22
- declare const PLATFORM_ERROR_CODES: readonly ["VALIDATION_ERROR", "UNAUTHORIZED", "INSUFFICIENT_SCOPE", "FORBIDDEN", "WORKSPACE_MISMATCH", "TIER_REQUIRED", "NOT_FOUND", "STAGE_NOT_AVAILABLE", "DESTRUCTIVE_BLOCKED", "CONFLICT", "LOCK_HELD", "LOCK_UNAVAILABLE", "RATE_LIMITED", "INTERNAL_ERROR", "INVALID_MANIFEST", "SIGNATURE_INVALID", "JWKS_UNREACHABLE", "MANIFEST_EXPIRED", "SCOPE_NOT_ALLOWED", "SLUG_TAKEN", "INVALID_TRANSITION", "REAUTH_REQUIRED", "MANIFEST_UNSUPPORTED", "JWKS_REJECTED", "VERSION_CONFLICT", "PAYLOAD_TOO_LARGE", "UNSUPPORTED_MEDIA_TYPE", "QUOTA_EXCEEDED", "LINK_EXPIRED"];
22
+ declare const PLATFORM_ERROR_CODES: readonly ["VALIDATION_ERROR", "UNAUTHORIZED", "INSUFFICIENT_SCOPE", "FORBIDDEN", "WORKSPACE_MISMATCH", "TIER_REQUIRED", "NOT_FOUND", "STAGE_NOT_AVAILABLE", "DESTRUCTIVE_BLOCKED", "CONFLICT", "LOCK_HELD", "LOCK_UNAVAILABLE", "RATE_LIMITED", "INTERNAL_ERROR", "INVALID_MANIFEST", "SIGNATURE_INVALID", "JWKS_UNREACHABLE", "MANIFEST_EXPIRED", "SCOPE_NOT_ALLOWED", "SLUG_TAKEN", "INVALID_TRANSITION", "REAUTH_REQUIRED", "MANIFEST_UNSUPPORTED", "JWKS_REJECTED", "VERSION_CONFLICT", "PAYLOAD_TOO_LARGE", "UNSUPPORTED_MEDIA_TYPE", "QUOTA_EXCEEDED", "LINK_EXPIRED", "CONTACT_TAKEN", "NOT_IMPLEMENTED"];
23
23
  /** SDK가 응답 없이(또는 읽을 수 없는 응답으로) 스스로 만드는 코드. */
24
24
  declare const SDK_ERROR_CODES: readonly ["HTTP_ERROR", "INVALID_RESPONSE", "TIMEOUT", "NETWORK_ERROR"];
25
25
  type PlatformServerErrorCode = (typeof PLATFORM_ERROR_CODES)[number];
@@ -32,6 +32,8 @@ type PlatformErrorCode = PlatformServerErrorCode | PlatformSdkErrorCode | (strin
32
32
  type PlatformFieldError = {
33
33
  field: string;
34
34
  message: string;
35
+ /** 이 값을 이미 가진 레코드의 id — `CONTACT_TAKEN`에서 겹친 고객(`customers.get(relatedId)`로 연다) */
36
+ relatedId?: string;
35
37
  };
36
38
  declare class PlatformApiError extends Error {
37
39
  readonly status: number;
@@ -63,9 +65,14 @@ declare function isPlatformApiError(error: unknown): error is PlatformApiError;
63
65
  /** 코드로 가른다 — 여러 개를 주면 그중 하나. */
64
66
  declare function isPlatformError(error: unknown, ...codes: PlatformErrorCode[]): error is PlatformApiError;
65
67
  /** 다시 로그인해야 풀리는가 — 토큰 만료·폐기(401). 직원 앱은 로그인 화면으로 보낸다. */
68
+ /**
69
+ * 이 서버에는 그 기능이 아직 없다 — 서버가 SDK보다 오래됐다(새 SDK를 먼저 올렸거나, 자체 호스팅 서버가 뒤처졌다).
70
+ * 화면에서 그 기능을 "아직 쓸 수 없음"으로 보이게 할 때 쓴다. 로그인 문제(`isSignInRequired`)가 아니다.
71
+ */
72
+ declare function isNotImplemented(error: unknown): boolean;
66
73
  declare function isSignInRequired(error: unknown): boolean;
67
74
  /** 이 멤버에게 없는 권한·scope·플랜 때문인가 — 버튼을 숨기거나 안내한다(다시 로그인해도 안 풀린다). */
68
75
  declare function isPermissionDenied(error: unknown): boolean;
69
76
  //#endregion
70
- export { PlatformSdkErrorCode as a, isPermissionDenied as c, isSignInRequired as d, PlatformFieldError as i, isPlatformApiError as l, PlatformApiError as n, PlatformServerErrorCode as o, PlatformErrorCode as r, SDK_ERROR_CODES as s, PLATFORM_ERROR_CODES as t, isPlatformError as u };
71
- //# sourceMappingURL=errors-VxWmrlix.d.ts.map
77
+ export { PlatformSdkErrorCode as a, isNotImplemented as c, isPlatformError as d, isSignInRequired as f, PlatformFieldError as i, isPermissionDenied as l, PlatformApiError as n, PlatformServerErrorCode as o, PlatformErrorCode as r, SDK_ERROR_CODES as s, PLATFORM_ERROR_CODES as t, isPlatformApiError as u };
78
+ //# sourceMappingURL=errors-CLUuzCNG.d.ts.map
@@ -1,6 +1,6 @@
1
1
  //#region src/version.ts
2
2
  /** 이 패키지(`@reopt-ai/workspace-sdk`)의 버전 — 빌드가 package.json에서 주입한다(미번들 실행은 `0.0.0-dev`). */
3
- const SDK_VERSION = "0.1.0-rc.10";
3
+ const SDK_VERSION = "0.1.0-rc.12";
4
4
 
5
5
  //#endregion
6
6
  //#region src/workspace/errors.ts
@@ -53,7 +53,9 @@ const PLATFORM_ERROR_CODES = [
53
53
  "PAYLOAD_TOO_LARGE",
54
54
  "UNSUPPORTED_MEDIA_TYPE",
55
55
  "QUOTA_EXCEEDED",
56
- "LINK_EXPIRED"
56
+ "LINK_EXPIRED",
57
+ "CONTACT_TAKEN",
58
+ "NOT_IMPLEMENTED"
57
59
  ];
58
60
  /** SDK가 응답 없이(또는 읽을 수 없는 응답으로) 스스로 만드는 코드. */
59
61
  const SDK_ERROR_CODES = [
@@ -101,6 +103,13 @@ function isPlatformError(error, ...codes) {
101
103
  return isPlatformApiError(error) && (codes.length === 0 || codes.includes(error.code));
102
104
  }
103
105
  /** 다시 로그인해야 풀리는가 — 토큰 만료·폐기(401). 직원 앱은 로그인 화면으로 보낸다. */
106
+ /**
107
+ * 이 서버에는 그 기능이 아직 없다 — 서버가 SDK보다 오래됐다(새 SDK를 먼저 올렸거나, 자체 호스팅 서버가 뒤처졌다).
108
+ * 화면에서 그 기능을 "아직 쓸 수 없음"으로 보이게 할 때 쓴다. 로그인 문제(`isSignInRequired`)가 아니다.
109
+ */
110
+ function isNotImplemented(error) {
111
+ return isPlatformError(error, "NOT_IMPLEMENTED");
112
+ }
104
113
  function isSignInRequired(error) {
105
114
  return isPlatformApiError(error) && error.status === 401;
106
115
  }
@@ -110,5 +119,5 @@ function isPermissionDenied(error) {
110
119
  }
111
120
 
112
121
  //#endregion
113
- export { isPlatformApiError as a, SDK_VERSION as c, isPermissionDenied as i, PlatformApiError as n, isPlatformError as o, SDK_ERROR_CODES as r, isSignInRequired as s, PLATFORM_ERROR_CODES as t };
114
- //# sourceMappingURL=errors-CqgpUVKp.js.map
122
+ export { isPermissionDenied as a, isSignInRequired as c, isNotImplemented as i, SDK_VERSION as l, PlatformApiError as n, isPlatformApiError as o, SDK_ERROR_CODES as r, isPlatformError as s, PLATFORM_ERROR_CODES as t };
123
+ //# sourceMappingURL=errors-CkgGRAPR.js.map
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import { a as ConnectOperationRule, c as WorkspacePermissionKey, d as canAny, f as canCall, i as ConnectOperation, l as can, n as CONNECT_OPERATION_NAMES, o as ConnectScope, r as CONNECT_SCOPES, s as WORKSPACE_PERMISSION_KEYS, t as CONNECT_OPERATIONS, u as canAll } from "./permissions-CyEr04jl.js";
2
- import { a as listAll, i as iterate, n as PageQuery, r as SortOf, t as Page } from "./page-BB2P_WUd.js";
3
- import { a as PlatformSdkErrorCode, c as isPermissionDenied, d as isSignInRequired, i as PlatformFieldError, l as isPlatformApiError, n as PlatformApiError, o as PlatformServerErrorCode, r as PlatformErrorCode, s as SDK_ERROR_CODES, t as PLATFORM_ERROR_CODES, u as isPlatformError } from "./errors-VxWmrlix.js";
4
- import { $ as connectEavRecordSchema, A as ConnectPostListQuery, B as ConnectSignedUrlOptions, C as ConnectMemberRole, D as ConnectPostCreateInput, E as ConnectPostAuthor, F as ConnectPostSummary, G as ConnectTaskListQuery, H as ConnectStageOutcome, I as ConnectPostTag, J as ConnectTaskSortField, K as ConnectTaskMoveInput, L as ConnectPostUpdateInput, M as ConnectPostSortField, N as ConnectPostSpec, O as ConnectPostGroup, P as ConnectPostStatus, Q as connectEavEntitySchema, R as ConnectRequestOptions, S as ConnectMember, T as ConnectPost, U as ConnectTask, V as ConnectStageColor, W as ConnectTaskCreateInput, X as ConnectWorkspaceTier, Y as ConnectTaskUpdateInput, Z as connectBrandSchema, _ as ConnectFormType, a as ConnectClientConfig, c as ConnectFile, ct as connectMemberSchema, d as ConnectFileUsage, dt as connectPostSchema, et as connectFileSchema, f as ConnectFileVisibility, ft as connectPostSummarySchema, g as ConnectFormStatus, h as ConnectForm, ht as createConnectClient, i as ConnectClient, it as connectInquiryDetailSchema, j as ConnectPostMetaInput, k as ConnectPostGroupKind, l as ConnectFileListQuery, lt as connectPipelineSchema, m as ConnectFolderKind, mt as connectTaskSchema, n as ConnectAnswerValue, nt as connectFolderSchema, o as ConnectEavEntity, ot as connectInquirySchema, p as ConnectFolder, pt as connectPostTagSchema, q as ConnectTaskPriority, r as ConnectBrand, rt as connectFormSchema, s as ConnectEavRecord, st as connectMeSchema, t as ConnectAccessToken, tt as connectFileUsageSchema, u as ConnectFileSortField, ut as connectPostGroupSchema, v as ConnectInquiry, w as ConnectPipeline, x as ConnectMe, y as ConnectInquiryDetail, z as ConnectSignedUrl } from "./connect-ukgmn0Fx.js";
1
+ import { a as ConnectOperationRule, c as WorkspacePermissionKey, d as canAny, f as canCall, i as ConnectOperation, l as can, n as CONNECT_OPERATION_NAMES, o as ConnectScope, r as CONNECT_SCOPES, s as WORKSPACE_PERMISSION_KEYS, t as CONNECT_OPERATIONS, u as canAll } from "./permissions-LF1orSvQ.js";
2
+ import { a as iterate, i as SortOf, n as Page, o as listAll, r as PageQuery, t as CountedPage } from "./page-j1OCu4of.js";
3
+ import { a as PlatformSdkErrorCode, c as isNotImplemented, d as isPlatformError, f as isSignInRequired, i as PlatformFieldError, l as isPermissionDenied, n as PlatformApiError, o as PlatformServerErrorCode, r as PlatformErrorCode, s as SDK_ERROR_CODES, t as PLATFORM_ERROR_CODES, u as isPlatformApiError } from "./errors-CLUuzCNG.js";
4
+ import { $ as ConnectTask, A as ConnectInquiryMoveResult, At as connectPostTagSchema, B as ConnectPostListQuery, C as ConnectFolder, Ct as connectInquirySchema, D as ConnectFormType, Dt as connectPostGroupSchema, E as ConnectFormStatus, Et as connectPipelineSchema, F as ConnectPost, G as ConnectPostSummary, H as ConnectPostSortField, I as ConnectPostAuthor, J as ConnectRequestOptions, K as ConnectPostTag, L as ConnectPostCreateInput, M as ConnectMember, Mt as connectTaskFeedItemSchema, N as ConnectMemberRole, Nt as connectTaskSchema, O as ConnectInquiry, Ot as connectPostSchema, P as ConnectPipeline, Pt as createConnectClient, Q as ConnectStageOutcome, R as ConnectPostGroup, S as ConnectFileVisibility, St as connectInquiryMoveResultSchema, T as ConnectForm, Tt as connectMemberSchema, U as ConnectPostSpec, V as ConnectPostMetaInput, W as ConnectPostStatus, X as ConnectSignedUrlOptions, Y as ConnectSignedUrl, Z as ConnectStageColor, _ as ConnectEavRecord, _t as connectFileSchema, a as ConnectClientConfig, at as ConnectTaskListQuery, b as ConnectFileSortField, bt as connectFormSchema, c as ConnectCustomerEvent, ct as ConnectTaskSortField, d as ConnectCustomerNote, dt as connectBrandSchema, et as ConnectTaskActivity, f as ConnectCustomerRecord, ft as connectCustomerNoteSchema, g as ConnectEavEntity, gt as connectEavRecordSchema, h as ConnectCustomerUpdateInput, ht as connectEavEntitySchema, i as ConnectClient, it as ConnectTaskFeedMember, j as ConnectMe, jt as connectTaskCommentSchema, k as ConnectInquiryDetail, kt as connectPostSummarySchema, l as ConnectCustomerField, lt as ConnectTaskUpdateInput, m as ConnectCustomerTag, mt as connectCustomerSummarySchema, n as ConnectAnswerValue, nt as ConnectTaskCreateInput, o as ConnectCustomer, ot as ConnectTaskMoveInput, p as ConnectCustomerSummary, pt as connectCustomerSchema, q as ConnectPostUpdateInput, r as ConnectBrand, rt as ConnectTaskFeedItem, s as ConnectCustomerCreateInput, st as ConnectTaskPriority, t as ConnectAccessToken, tt as ConnectTaskComment, u as ConnectCustomerListQuery, ut as ConnectWorkspaceTier, v as ConnectFile, vt as connectFileUsageSchema, w as ConnectFolderKind, wt as connectMeSchema, x as ConnectFileUsage, xt as connectInquiryDetailSchema, y as ConnectFileListQuery, yt as connectFolderSchema, z as ConnectPostGroupKind } from "./connect-3zkyD_-0.js";
5
+ import { n as mentionToken, r as splitMentions, t as MentionSegment } from "./mentions-BMI2c7O6.js";
5
6
  import { a as REOPT_PLATFORM_URLS, c as resolvePlatformUrls, i as REOPT_PLATFORM_ID_URLS, n as PlatformUrls } from "./urls-DiYp_PHg.js";
6
- import { $ as PlatformStageColor, A as PlatformEavSchemaApplyResult, At as platformOAuthClientUpsertInputSchema, B as PlatformOAuthClientUpsertInput, Bt as platformPublishedPostSummarySchema, C as PlatformBrandappUpsertInput, Ct as platformErrorSchema, D as PlatformEavDataType, Dt as platformMeSchema, E as PlatformEavBrandappResources, Et as platformLockReleasedSchema, F as PlatformManagedBy, Ft as platformPipelineUpsertInputSchema, G as PlatformPipelineUpsertInput, Gt as platformTaskStageInputSchema, H as PlatformPipelineImportInput, Ht as platformResourcesSchema, I as PlatformMe, It as platformPublishedPostDetailQuerySchema, J as PlatformPublishedPostListOptions, Jt as platformWebhookResourceSchema, K as PlatformPublishedPost, Kt as platformTaskStageSchema, L as PlatformOAuthClientImportInput, Lt as platformPublishedPostListQuerySchema, M as PlatformErrorBody, Mt as platformPipelineResourceSchema, N as PlatformLockAcquired, Nt as platformPipelineSchema, O as PlatformEavEntityResource, Ot as platformOAuthClientImportInputSchema, P as PlatformLockReleased, Pt as platformPipelineStageInputSchema, Q as PlatformResourcesV2, Qt as platformWriteMetaSchema, R as PlatformOAuthClientPurpose, Rt as platformPublishedPostPageSchema, S as PlatformBrandappResource, St as platformEavSchemaOperationSchema, T as PlatformDomainStatus, Tt as platformLockAcquiredSchema, U as PlatformPipelineResource, Ut as platformResourcesV2Schema, V as PlatformPipeline, Vt as platformResourceKeySchema, W as PlatformPipelineStageInput, Wt as platformTaskSchema, X as PlatformPublishedPostSummary, Xt as platformWebhookUpsertInputSchema, Y as PlatformPublishedPostPage, Yt as platformWebhookSchema, Z as PlatformResources, Zt as platformWorkTaskStageChangedEventSchema, _ as PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS, _t as platformCustomerUpsertInputSchema, a as createPlatformClient, at as PlatformTaskUpsertInput, b as PlatformBrandResource, bt as platformEavSchemaApplyInputSchema, c as PLATFORM_DOMAIN_STATUSES, ct as PlatformWebhookTrigger, d as PLATFORM_OAUTH_APPLICATION_TYPES, dt as PlatformWriteMeta, et as PlatformTask, f as PLATFORM_OAUTH_CLIENT_PURPOSES, ft as platformBrandImportInputSchema, g as PLATFORM_TASK_PRIORITIES, gt as platformBrandappUpsertInputSchema, h as PLATFORM_TASK_OUTCOMES, ht as platformBrandappResourceSchema, i as PlatformWriteResult, it as PlatformTaskStageInput, j as PlatformEavSchemaOperation, jt as platformPipelineImportInputSchema, k as PlatformEavSchemaApplyInput, kt as platformOAuthClientResourceSchema, l as PLATFORM_EAV_DATA_TYPES, lt as PlatformWebhookUpsertInput, m as PLATFORM_STAGE_COLORS, mt as platformBrandUpsertInputSchema, n as PlatformClient, nt as PlatformTaskPriority, o as PLATFORM_ADMIN_SCOPE, ot as PlatformWebhook, p as PLATFORM_OAUTH_GRANT_TYPES, pt as platformBrandResourceSchema, q as PlatformPublishedPostGetOptions, qt as platformTaskUpsertInputSchema, r as PlatformClientConfig, rt as PlatformTaskStage, s as PLATFORM_BRANDAPP_STATUSES, st as PlatformWebhookResource, t as DEFAULT_PLATFORM_SCOPES, tt as PlatformTaskOutcome, u as PLATFORM_MANAGED_BY_VALUES, ut as PlatformWorkTaskStageChangedEvent, v as PLATFORM_WEBHOOK_TRIGGERS, vt as platformEavBrandappResourcesSchema, w as PlatformCustomerUpsertInput, wt as platformExternalIdSchema, x as PlatformBrandUpsertInput, xt as platformEavSchemaApplyResultSchema, y as PlatformBrandImportInput, yt as platformEavEntityResourceSchema, z as PlatformOAuthClientResource, zt as platformPublishedPostSchema } from "./client-BF4-fVag.js";
7
- export { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, type ConnectAccessToken, type ConnectAnswerValue, type ConnectBrand, type ConnectClient, type ConnectClientConfig, type ConnectEavEntity, type ConnectEavRecord, type ConnectFile, type ConnectFileListQuery, type ConnectFileSortField, type ConnectFileUsage, type ConnectFileVisibility, type ConnectFolder, type ConnectFolderKind, type ConnectForm, type ConnectFormStatus, type ConnectFormType, type ConnectInquiry, type ConnectInquiryDetail, type ConnectMe, type ConnectMember, type ConnectMemberRole, type ConnectOperation, type ConnectOperationRule, type ConnectPipeline, type ConnectPost, type ConnectPostAuthor, type ConnectPostCreateInput, type ConnectPostGroup, type ConnectPostGroupKind, type ConnectPostListQuery, type ConnectPostMetaInput, type ConnectPostSortField, type ConnectPostSpec, type ConnectPostStatus, type ConnectPostSummary, type ConnectPostTag, type ConnectPostUpdateInput, type ConnectRequestOptions, type ConnectScope, type ConnectSignedUrl, type ConnectSignedUrlOptions, type ConnectStageColor, type ConnectStageOutcome, type ConnectTask, type ConnectTaskCreateInput, type ConnectTaskListQuery, type ConnectTaskMoveInput, type ConnectTaskPriority, type ConnectTaskSortField, type ConnectTaskUpdateInput, type ConnectWorkspaceTier, DEFAULT_PLATFORM_SCOPES, PLATFORM_ADMIN_SCOPE, PLATFORM_BRANDAPP_STATUSES, PLATFORM_DOMAIN_STATUSES, PLATFORM_EAV_DATA_TYPES, PLATFORM_ERROR_CODES, PLATFORM_MANAGED_BY_VALUES, PLATFORM_OAUTH_APPLICATION_TYPES, PLATFORM_OAUTH_CLIENT_PURPOSES, PLATFORM_OAUTH_GRANT_TYPES, PLATFORM_STAGE_COLORS, PLATFORM_TASK_OUTCOMES, PLATFORM_TASK_PRIORITIES, PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS, PLATFORM_WEBHOOK_TRIGGERS, type Page, type PageQuery, PlatformApiError, type PlatformBrandImportInput, type PlatformBrandResource, type PlatformBrandUpsertInput, type PlatformBrandappResource, type PlatformBrandappUpsertInput, type PlatformClient, type PlatformClientConfig, type PlatformCustomerUpsertInput, type PlatformDomainStatus, type PlatformEavBrandappResources, type PlatformEavDataType, type PlatformEavEntityResource, type PlatformEavSchemaApplyInput, type PlatformEavSchemaApplyResult, type PlatformEavSchemaOperation, type PlatformErrorBody, type PlatformErrorCode, type PlatformFieldError, type PlatformLockAcquired, type PlatformLockReleased, type PlatformManagedBy, type PlatformMe, type PlatformOAuthClientImportInput, type PlatformOAuthClientPurpose, type PlatformOAuthClientResource, type PlatformOAuthClientUpsertInput, type PlatformPipeline, type PlatformPipelineImportInput, type PlatformPipelineResource, type PlatformPipelineStageInput, type PlatformPipelineUpsertInput, type PlatformPublishedPost, type PlatformPublishedPostGetOptions, type PlatformPublishedPostListOptions, type PlatformPublishedPostPage, type PlatformPublishedPostSummary, type PlatformResources, type PlatformResourcesV2, type PlatformSdkErrorCode, type PlatformServerErrorCode, type PlatformStageColor, type PlatformTask, type PlatformTaskOutcome, type PlatformTaskPriority, type PlatformTaskStage, type PlatformTaskStageInput, type PlatformTaskUpsertInput, type PlatformUrls, type PlatformWebhook, type PlatformWebhookResource, type PlatformWebhookTrigger, type PlatformWebhookUpsertInput, type PlatformWorkTaskStageChangedEvent, type PlatformWriteMeta, type PlatformWriteResult, REOPT_PLATFORM_ID_URLS, REOPT_PLATFORM_URLS, SDK_ERROR_CODES, type SortOf, WORKSPACE_PERMISSION_KEYS, type WorkspacePermissionKey, can, canAll, canAny, canCall, connectBrandSchema, connectEavEntitySchema, connectEavRecordSchema, connectFileSchema, connectFileUsageSchema, connectFolderSchema, connectFormSchema, connectInquiryDetailSchema, connectInquirySchema, connectMeSchema, connectMemberSchema, connectPipelineSchema, connectPostGroupSchema, connectPostSchema, connectPostSummarySchema, connectPostTagSchema, connectTaskSchema, createConnectClient, createPlatformClient, isPermissionDenied, isPlatformApiError, isPlatformError, isSignInRequired, iterate, listAll, platformBrandImportInputSchema, platformBrandResourceSchema, platformBrandUpsertInputSchema, platformBrandappResourceSchema, platformBrandappUpsertInputSchema, platformCustomerUpsertInputSchema, platformEavBrandappResourcesSchema, platformEavEntityResourceSchema, platformEavSchemaApplyInputSchema, platformEavSchemaApplyResultSchema, platformEavSchemaOperationSchema, platformErrorSchema, platformExternalIdSchema, platformLockAcquiredSchema, platformLockReleasedSchema, platformMeSchema, platformOAuthClientImportInputSchema, platformOAuthClientResourceSchema, platformOAuthClientUpsertInputSchema, platformPipelineImportInputSchema, platformPipelineResourceSchema, platformPipelineSchema, platformPipelineStageInputSchema, platformPipelineUpsertInputSchema, platformPublishedPostDetailQuerySchema, platformPublishedPostListQuerySchema, platformPublishedPostPageSchema, platformPublishedPostSchema, platformPublishedPostSummarySchema, platformResourceKeySchema, platformResourcesSchema, platformResourcesV2Schema, platformTaskSchema, platformTaskStageInputSchema, platformTaskStageSchema, platformTaskUpsertInputSchema, platformWebhookResourceSchema, platformWebhookSchema, platformWebhookUpsertInputSchema, platformWorkTaskStageChangedEventSchema, platformWriteMetaSchema, resolvePlatformUrls };
7
+ import { $ as PlatformStageColor, A as PlatformEavSchemaApplyResult, At as platformOAuthClientUpsertInputSchema, B as PlatformOAuthClientUpsertInput, Bt as platformPublishedPostSummarySchema, C as PlatformBrandappUpsertInput, Ct as platformErrorSchema, D as PlatformEavDataType, Dt as platformMeSchema, E as PlatformEavBrandappResources, Et as platformLockReleasedSchema, F as PlatformManagedBy, Ft as platformPipelineUpsertInputSchema, G as PlatformPipelineUpsertInput, Gt as platformTaskStageInputSchema, H as PlatformPipelineImportInput, Ht as platformResourcesSchema, I as PlatformMe, It as platformPublishedPostDetailQuerySchema, J as PlatformPublishedPostListOptions, Jt as platformWebhookResourceSchema, K as PlatformPublishedPost, Kt as platformTaskStageSchema, L as PlatformOAuthClientImportInput, Lt as platformPublishedPostListQuerySchema, M as PlatformErrorBody, Mt as platformPipelineResourceSchema, N as PlatformLockAcquired, Nt as platformPipelineSchema, O as PlatformEavEntityResource, Ot as platformOAuthClientImportInputSchema, P as PlatformLockReleased, Pt as platformPipelineStageInputSchema, Q as PlatformResourcesV2, Qt as platformWriteMetaSchema, R as PlatformOAuthClientPurpose, Rt as platformPublishedPostPageSchema, S as PlatformBrandappResource, St as platformEavSchemaOperationSchema, T as PlatformDomainStatus, Tt as platformLockAcquiredSchema, U as PlatformPipelineResource, Ut as platformResourcesV2Schema, V as PlatformPipeline, Vt as platformResourceKeySchema, W as PlatformPipelineStageInput, Wt as platformTaskSchema, X as PlatformPublishedPostSummary, Xt as platformWebhookUpsertInputSchema, Y as PlatformPublishedPostPage, Yt as platformWebhookSchema, Z as PlatformResources, Zt as platformWorkTaskStageChangedEventSchema, _ as PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS, _t as platformCustomerUpsertInputSchema, a as createPlatformClient, at as PlatformTaskUpsertInput, b as PlatformBrandResource, bt as platformEavSchemaApplyInputSchema, c as PLATFORM_DOMAIN_STATUSES, ct as PlatformWebhookTrigger, d as PLATFORM_OAUTH_APPLICATION_TYPES, dt as PlatformWriteMeta, et as PlatformTask, f as PLATFORM_OAUTH_CLIENT_PURPOSES, ft as platformBrandImportInputSchema, g as PLATFORM_TASK_PRIORITIES, gt as platformBrandappUpsertInputSchema, h as PLATFORM_TASK_OUTCOMES, ht as platformBrandappResourceSchema, i as PlatformWriteResult, it as PlatformTaskStageInput, j as PlatformEavSchemaOperation, jt as platformPipelineImportInputSchema, k as PlatformEavSchemaApplyInput, kt as platformOAuthClientResourceSchema, l as PLATFORM_EAV_DATA_TYPES, lt as PlatformWebhookUpsertInput, m as PLATFORM_STAGE_COLORS, mt as platformBrandUpsertInputSchema, n as PlatformClient, nt as PlatformTaskPriority, o as PLATFORM_ADMIN_SCOPE, ot as PlatformWebhook, p as PLATFORM_OAUTH_GRANT_TYPES, pt as platformBrandResourceSchema, q as PlatformPublishedPostGetOptions, qt as platformTaskUpsertInputSchema, r as PlatformClientConfig, rt as PlatformTaskStage, s as PLATFORM_BRANDAPP_STATUSES, st as PlatformWebhookResource, t as DEFAULT_PLATFORM_SCOPES, tt as PlatformTaskOutcome, u as PLATFORM_MANAGED_BY_VALUES, ut as PlatformWorkTaskStageChangedEvent, v as PLATFORM_WEBHOOK_TRIGGERS, vt as platformEavBrandappResourcesSchema, w as PlatformCustomerUpsertInput, wt as platformExternalIdSchema, x as PlatformBrandUpsertInput, xt as platformEavSchemaApplyResultSchema, y as PlatformBrandImportInput, yt as platformEavEntityResourceSchema, z as PlatformOAuthClientResource, zt as platformPublishedPostSchema } from "./client-olMIaJZH.js";
8
+ export { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, type ConnectAccessToken, type ConnectAnswerValue, type ConnectBrand, type ConnectClient, type ConnectClientConfig, type ConnectCustomer, type ConnectCustomerCreateInput, type ConnectCustomerEvent, type ConnectCustomerField, type ConnectCustomerListQuery, type ConnectCustomerNote, type ConnectCustomerRecord, type ConnectCustomerSummary, type ConnectCustomerTag, type ConnectCustomerUpdateInput, type ConnectEavEntity, type ConnectEavRecord, type ConnectFile, type ConnectFileListQuery, type ConnectFileSortField, type ConnectFileUsage, type ConnectFileVisibility, type ConnectFolder, type ConnectFolderKind, type ConnectForm, type ConnectFormStatus, type ConnectFormType, type ConnectInquiry, type ConnectInquiryDetail, type ConnectInquiryMoveResult, type ConnectMe, type ConnectMember, type ConnectMemberRole, type ConnectOperation, type ConnectOperationRule, type ConnectPipeline, type ConnectPost, type ConnectPostAuthor, type ConnectPostCreateInput, type ConnectPostGroup, type ConnectPostGroupKind, type ConnectPostListQuery, type ConnectPostMetaInput, type ConnectPostSortField, type ConnectPostSpec, type ConnectPostStatus, type ConnectPostSummary, type ConnectPostTag, type ConnectPostUpdateInput, type ConnectRequestOptions, type ConnectScope, type ConnectSignedUrl, type ConnectSignedUrlOptions, type ConnectStageColor, type ConnectStageOutcome, type ConnectTask, type ConnectTaskActivity, type ConnectTaskComment, type ConnectTaskCreateInput, type ConnectTaskFeedItem, type ConnectTaskFeedMember, type ConnectTaskListQuery, type ConnectTaskMoveInput, type ConnectTaskPriority, type ConnectTaskSortField, type ConnectTaskUpdateInput, type ConnectWorkspaceTier, type CountedPage, DEFAULT_PLATFORM_SCOPES, type MentionSegment, PLATFORM_ADMIN_SCOPE, PLATFORM_BRANDAPP_STATUSES, PLATFORM_DOMAIN_STATUSES, PLATFORM_EAV_DATA_TYPES, PLATFORM_ERROR_CODES, PLATFORM_MANAGED_BY_VALUES, PLATFORM_OAUTH_APPLICATION_TYPES, PLATFORM_OAUTH_CLIENT_PURPOSES, PLATFORM_OAUTH_GRANT_TYPES, PLATFORM_STAGE_COLORS, PLATFORM_TASK_OUTCOMES, PLATFORM_TASK_PRIORITIES, PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS, PLATFORM_WEBHOOK_TRIGGERS, type Page, type PageQuery, PlatformApiError, type PlatformBrandImportInput, type PlatformBrandResource, type PlatformBrandUpsertInput, type PlatformBrandappResource, type PlatformBrandappUpsertInput, type PlatformClient, type PlatformClientConfig, type PlatformCustomerUpsertInput, type PlatformDomainStatus, type PlatformEavBrandappResources, type PlatformEavDataType, type PlatformEavEntityResource, type PlatformEavSchemaApplyInput, type PlatformEavSchemaApplyResult, type PlatformEavSchemaOperation, type PlatformErrorBody, type PlatformErrorCode, type PlatformFieldError, type PlatformLockAcquired, type PlatformLockReleased, type PlatformManagedBy, type PlatformMe, type PlatformOAuthClientImportInput, type PlatformOAuthClientPurpose, type PlatformOAuthClientResource, type PlatformOAuthClientUpsertInput, type PlatformPipeline, type PlatformPipelineImportInput, type PlatformPipelineResource, type PlatformPipelineStageInput, type PlatformPipelineUpsertInput, type PlatformPublishedPost, type PlatformPublishedPostGetOptions, type PlatformPublishedPostListOptions, type PlatformPublishedPostPage, type PlatformPublishedPostSummary, type PlatformResources, type PlatformResourcesV2, type PlatformSdkErrorCode, type PlatformServerErrorCode, type PlatformStageColor, type PlatformTask, type PlatformTaskOutcome, type PlatformTaskPriority, type PlatformTaskStage, type PlatformTaskStageInput, type PlatformTaskUpsertInput, type PlatformUrls, type PlatformWebhook, type PlatformWebhookResource, type PlatformWebhookTrigger, type PlatformWebhookUpsertInput, type PlatformWorkTaskStageChangedEvent, type PlatformWriteMeta, type PlatformWriteResult, REOPT_PLATFORM_ID_URLS, REOPT_PLATFORM_URLS, SDK_ERROR_CODES, type SortOf, WORKSPACE_PERMISSION_KEYS, type WorkspacePermissionKey, can, canAll, canAny, canCall, connectBrandSchema, type connectCustomerNoteSchema, type connectCustomerSchema, type connectCustomerSummarySchema, connectEavEntitySchema, connectEavRecordSchema, connectFileSchema, connectFileUsageSchema, connectFolderSchema, connectFormSchema, connectInquiryDetailSchema, type connectInquiryMoveResultSchema, connectInquirySchema, connectMeSchema, connectMemberSchema, connectPipelineSchema, connectPostGroupSchema, connectPostSchema, connectPostSummarySchema, connectPostTagSchema, type connectTaskCommentSchema, type connectTaskFeedItemSchema, connectTaskSchema, createConnectClient, createPlatformClient, isNotImplemented, isPermissionDenied, isPlatformApiError, isPlatformError, isSignInRequired, iterate, listAll, mentionToken, platformBrandImportInputSchema, platformBrandResourceSchema, platformBrandUpsertInputSchema, platformBrandappResourceSchema, platformBrandappUpsertInputSchema, platformCustomerUpsertInputSchema, platformEavBrandappResourcesSchema, platformEavEntityResourceSchema, platformEavSchemaApplyInputSchema, platformEavSchemaApplyResultSchema, platformEavSchemaOperationSchema, platformErrorSchema, platformExternalIdSchema, platformLockAcquiredSchema, platformLockReleasedSchema, platformMeSchema, platformOAuthClientImportInputSchema, platformOAuthClientResourceSchema, platformOAuthClientUpsertInputSchema, platformPipelineImportInputSchema, platformPipelineResourceSchema, platformPipelineSchema, platformPipelineStageInputSchema, platformPipelineUpsertInputSchema, platformPublishedPostDetailQuerySchema, platformPublishedPostListQuerySchema, platformPublishedPostPageSchema, platformPublishedPostSchema, platformPublishedPostSummarySchema, platformResourceKeySchema, platformResourcesSchema, platformResourcesV2Schema, platformTaskSchema, platformTaskStageInputSchema, platformTaskStageSchema, platformTaskUpsertInputSchema, platformWebhookResourceSchema, platformWebhookSchema, platformWebhookUpsertInputSchema, platformWorkTaskStageChangedEventSchema, platformWriteMetaSchema, resolvePlatformUrls, splitMentions };