@reopt-ai/workspace-sdk 0.1.0-rc.11 → 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.
- package/CHANGELOG.md +30 -0
- package/README.md +1 -0
- package/dist/better-auth/index.d.ts +1 -1
- package/dist/better-auth/index.js +1 -1
- package/dist/{client-XAvKlbbn.js → client-BLaFMBbS.js} +2 -2
- package/dist/{client-WEomQekp.js → client-CJekFhCW.js} +5 -5
- package/dist/{client-DlgVNj3w.d.ts → client-DVozA5Ep.d.ts} +2 -2
- package/dist/{client-ByIjKnf3.d.ts → client-olMIaJZH.d.ts} +3 -3
- package/dist/{connect-BBf9QfQB.d.ts → connect-3zkyD_-0.d.ts} +51 -5
- package/dist/connect.d.ts +6 -5
- package/dist/connect.js +4 -3
- package/dist/{errors-DLJlABJL.d.ts → errors-CLUuzCNG.d.ts} +3 -1
- package/dist/{errors-C5_fhcqb.js → errors-CkgGRAPR.js} +2 -2
- package/dist/index.d.ts +7 -6
- package/dist/index.js +5 -4
- package/dist/installation/index.d.ts +3 -3
- package/dist/installation/index.js +3 -3
- package/dist/{keys-6gwtNd0g.js → keys--ef_VwZ-.js} +6 -5
- package/dist/{keys-B2pA8EkU.d.ts → keys-BXkGh0VM.d.ts} +10 -2
- package/dist/machine/index.d.ts +2 -2
- package/dist/machine/index.js +2 -2
- package/dist/machine/keygen-cli.js +1 -1
- package/dist/mentions-BMI2c7O6.d.ts +26 -0
- package/dist/mentions.d.ts +2 -0
- package/dist/mentions.js +45 -0
- package/dist/{page-SjWh1rqY.js → page-CV3oG_Zu.js} +43 -6
- package/dist/{page-79Ab4UGQ.d.ts → page-j1OCu4of.d.ts} +8 -4
- package/dist/{permissions-COCbNJeQ.d.ts → permissions-LF1orSvQ.d.ts} +2 -2
- package/dist/permissions.d.ts +1 -1
- package/dist/permissions.js +24 -0
- package/dist/social/index.d.ts +2 -2
- package/dist/social/index.js +2 -2
- package/dist/testing/index.d.ts +7 -2
- package/dist/testing/index.js +238 -15
- package/dist/{transport-CN64IoHx.js → transport-BVPl0lgF.js} +2 -2
- package/docs/machine.md +14 -4
- package/docs/workspace.md +39 -19
- package/package.json +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,36 @@ 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
|
+
|
|
10
40
|
## [0.1.0-rc.11] — 2026-11-22
|
|
11
41
|
|
|
12
42
|
Pre-release (`npm i @reopt-ai/workspace-sdk@next`). 깨지는 변경 없음.
|
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-
|
|
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
|
|
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
|
|
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-
|
|
191
|
+
//# sourceMappingURL=client-BLaFMBbS.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as SDK_VERSION, n as PlatformApiError } from "./errors-
|
|
2
|
-
import { n as readPlatformFailure } from "./transport-
|
|
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
|
|
5
|
-
import { r as createMachineClient } from "./client-
|
|
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-
|
|
275
|
+
//# sourceMappingURL=client-CJekFhCW.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ClientPrivateJwk, r as ClientKeyRing } from "./keys-
|
|
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-
|
|
72
|
+
//# sourceMappingURL=client-DVozA5Ep.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as ClientPrivateJwk, r as ClientKeyRing } from "./keys-
|
|
2
|
-
import {
|
|
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-
|
|
689
|
+
//# sourceMappingURL=client-olMIaJZH.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as WorkspacePermissionKey, o as ConnectScope } from "./permissions-
|
|
2
|
-
import { n as
|
|
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;
|
|
@@ -394,6 +424,8 @@ type ConnectCustomerTag = {
|
|
|
394
424
|
};
|
|
395
425
|
type ConnectCustomerField = {
|
|
396
426
|
id: string;
|
|
427
|
+
/** 쓰기의 `attributes` 키 — `update(id, { attributes: { [field.name]: value } })`. 이름을 알 수 없는 옛 필드는 null */
|
|
428
|
+
name: string | null;
|
|
397
429
|
label: string;
|
|
398
430
|
dataType: string;
|
|
399
431
|
/** 선택형 필드의 값 후보 */
|
|
@@ -598,6 +630,8 @@ declare const connectBrandSchema: z.ZodType<ConnectBrand>;
|
|
|
598
630
|
declare const connectMemberSchema: z.ZodType<ConnectMember>;
|
|
599
631
|
declare const connectPipelineSchema: z.ZodType<ConnectPipeline>;
|
|
600
632
|
declare const connectTaskSchema: z.ZodType<ConnectTask>;
|
|
633
|
+
declare const connectTaskCommentSchema: z.ZodType<ConnectTaskComment>;
|
|
634
|
+
declare const connectTaskFeedItemSchema: z.ZodType<ConnectTaskFeedItem>;
|
|
601
635
|
declare const connectPostGroupSchema: z.ZodType<ConnectPostGroup>;
|
|
602
636
|
declare const connectPostTagSchema: z.ZodType<ConnectPostTag>;
|
|
603
637
|
declare const connectPostSummarySchema: z.ZodType<ConnectPostSummary>;
|
|
@@ -638,6 +672,18 @@ type ConnectClient = {
|
|
|
638
672
|
deleted: string[];
|
|
639
673
|
notFound: string[];
|
|
640
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
|
+
}>;
|
|
641
687
|
};
|
|
642
688
|
posts: {
|
|
643
689
|
listGroups: (options?: Options) => Promise<Page<ConnectPostGroup>>;
|
|
@@ -748,7 +794,7 @@ type ConnectClient = {
|
|
|
748
794
|
*/
|
|
749
795
|
customers: {
|
|
750
796
|
/** 최근 등록순. `limit`을 안 주면 한 장에 50명(최대 100). `total`은 조건에 맞는 전체 수 */
|
|
751
|
-
list: (query?: ConnectCustomerListQuery, options?: Options) => Promise<
|
|
797
|
+
list: (query?: ConnectCustomerListQuery, options?: Options) => Promise<CountedPage<ConnectCustomerSummary>>;
|
|
752
798
|
/** 태그 어휘 — `list({ tags })` 필터와 태그 입력 자동완성에 쓴다 */
|
|
753
799
|
listTags: (options?: Options) => Promise<Page<ConnectCustomerTag>>;
|
|
754
800
|
/** 커스텀 필드 정의 — `ConnectCustomer.fields[].id`의 뜻 */
|
|
@@ -799,5 +845,5 @@ type ConnectClient = {
|
|
|
799
845
|
};
|
|
800
846
|
declare function createConnectClient(config: ConnectClientConfig): ConnectClient;
|
|
801
847
|
//#endregion
|
|
802
|
-
export { ConnectTask as $, ConnectInquiryMoveResult as A, ConnectPostListQuery as B, ConnectFolder as C,
|
|
803
|
-
//# sourceMappingURL=connect-
|
|
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-
|
|
2
|
-
import { a as
|
|
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-
|
|
4
|
-
import { $ as ConnectTask, A as ConnectInquiryMoveResult, B as ConnectPostListQuery, C as ConnectFolder, Ct as
|
|
5
|
-
|
|
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 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-
|
|
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 {
|
|
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, isNotImplemented, 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 };
|
|
@@ -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;
|
|
@@ -73,4 +75,4 @@ declare function isSignInRequired(error: unknown): boolean;
|
|
|
73
75
|
declare function isPermissionDenied(error: unknown): boolean;
|
|
74
76
|
//#endregion
|
|
75
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 };
|
|
76
|
-
//# sourceMappingURL=errors-
|
|
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.
|
|
3
|
+
const SDK_VERSION = "0.1.0-rc.12";
|
|
4
4
|
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/workspace/errors.ts
|
|
@@ -120,4 +120,4 @@ function isPermissionDenied(error) {
|
|
|
120
120
|
|
|
121
121
|
//#endregion
|
|
122
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-
|
|
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-
|
|
2
|
-
import { a as
|
|
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-
|
|
4
|
-
import { $ as ConnectTask, B as ConnectPostListQuery, C as ConnectFolder, Ct as
|
|
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-
|
|
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, isNotImplemented, 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 };
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
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-
|
|
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 { REOPT_PLATFORM_ID_URLS, REOPT_PLATFORM_URLS, resolvePlatformUrls } from "./urls.js";
|
|
3
3
|
import { $ as platformWorkTaskStageChangedEventSchema, A as platformOAuthClientImportInputSchema, B as platformPublishedPostPageSchema, C as platformEavSchemaApplyResultSchema, D as platformLockAcquiredSchema, E as platformExternalIdSchema, F as platformPipelineSchema, G as platformResourcesV2Schema, H as platformPublishedPostSummarySchema, I as platformPipelineStageInputSchema, J as platformTaskStageSchema, K as platformTaskSchema, L as platformPipelineUpsertInputSchema, M as platformOAuthClientUpsertInputSchema, N as platformPipelineImportInputSchema, O as platformLockReleasedSchema, P as platformPipelineResourceSchema, Q as platformWebhookUpsertInputSchema, R as platformPublishedPostDetailQuerySchema, S as platformEavSchemaApplyInputSchema, T as platformErrorSchema, U as platformResourceKeySchema, V as platformPublishedPostSchema, W as platformResourcesSchema, X as platformWebhookResourceSchema, Y as platformTaskUpsertInputSchema, Z as platformWebhookSchema, _ as platformBrandappResourceSchema, a as PLATFORM_MANAGED_BY_VALUES, b as platformEavBrandappResourcesSchema, c as PLATFORM_OAUTH_GRANT_TYPES, d as PLATFORM_TASK_PRIORITIES, et as platformWriteMetaSchema, f as PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS, g as platformBrandUpsertInputSchema, h as platformBrandResourceSchema, i as PLATFORM_EAV_DATA_TYPES, j as platformOAuthClientResourceSchema, k as platformMeSchema, l as PLATFORM_STAGE_COLORS, m as platformBrandImportInputSchema, n as PLATFORM_BRANDAPP_STATUSES, o as PLATFORM_OAUTH_APPLICATION_TYPES, p as PLATFORM_WEBHOOK_TRIGGERS, q as platformTaskStageInputSchema, r as PLATFORM_DOMAIN_STATUSES, s as PLATFORM_OAUTH_CLIENT_PURPOSES, t as PLATFORM_ADMIN_SCOPE, u as PLATFORM_TASK_OUTCOMES, v as platformBrandappUpsertInputSchema, w as platformEavSchemaOperationSchema, x as platformEavEntityResourceSchema, y as platformCustomerUpsertInputSchema, z as platformPublishedPostListQuerySchema } from "./schemas-eWh_FUfh.js";
|
|
4
|
-
import { n as createPlatformClient, t as DEFAULT_PLATFORM_SCOPES } from "./client-
|
|
4
|
+
import { n as createPlatformClient, t as DEFAULT_PLATFORM_SCOPES } from "./client-CJekFhCW.js";
|
|
5
5
|
import { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, WORKSPACE_PERMISSION_KEYS, can, canAll, canAny, canCall } from "./permissions.js";
|
|
6
|
-
import {
|
|
6
|
+
import { mentionToken, splitMentions } from "./mentions.js";
|
|
7
|
+
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";
|
|
7
8
|
|
|
8
|
-
export { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, 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, PlatformApiError, REOPT_PLATFORM_ID_URLS, REOPT_PLATFORM_URLS, 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, createPlatformClient, isNotImplemented, 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 };
|
|
9
|
+
export { CONNECT_OPERATIONS, CONNECT_OPERATION_NAMES, CONNECT_SCOPES, 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, PlatformApiError, REOPT_PLATFORM_ID_URLS, REOPT_PLATFORM_URLS, 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, 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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as ClientPrivateJwk, r as ClientKeyRing } from "../keys-
|
|
1
|
+
import { i as ClientPrivateJwk, r as ClientKeyRing } from "../keys-BXkGh0VM.js";
|
|
2
2
|
import { n as PlatformUrls } from "../urls-DiYp_PHg.js";
|
|
3
|
-
import { Ft as platformPipelineUpsertInputSchema, f as PLATFORM_OAUTH_CLIENT_PURPOSES, gt as platformBrandappUpsertInputSchema, mt as platformBrandUpsertInputSchema, v as PLATFORM_WEBHOOK_TRIGGERS } from "../client-
|
|
4
|
-
import { t as MachineClient } from "../client-
|
|
3
|
+
import { Ft as platformPipelineUpsertInputSchema, f as PLATFORM_OAUTH_CLIENT_PURPOSES, gt as platformBrandappUpsertInputSchema, mt as platformBrandUpsertInputSchema, v as PLATFORM_WEBHOOK_TRIGGERS } from "../client-olMIaJZH.js";
|
|
4
|
+
import { t as MachineClient } from "../client-DVozA5Ep.js";
|
|
5
5
|
import * as jose from "jose";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/installation/schema.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { l as SDK_VERSION, n as PlatformApiError } from "../errors-
|
|
1
|
+
import { l as SDK_VERSION, n as PlatformApiError } from "../errors-CkgGRAPR.js";
|
|
2
2
|
import { resolvePlatformUrls } from "../urls.js";
|
|
3
|
-
import { o as readClientKeyRing } from "../keys
|
|
4
|
-
import { r as createMachineClient } from "../client-
|
|
3
|
+
import { o as readClientKeyRing } from "../keys--ef_VwZ-.js";
|
|
4
|
+
import { r as createMachineClient } from "../client-BLaFMBbS.js";
|
|
5
5
|
import { L as platformPipelineUpsertInputSchema, T as platformErrorSchema, U as platformResourceKeySchema, g as platformBrandUpsertInputSchema, p as PLATFORM_WEBHOOK_TRIGGERS, s as PLATFORM_OAUTH_CLIENT_PURPOSES, v as platformBrandappUpsertInputSchema } from "../schemas-eWh_FUfh.js";
|
|
6
6
|
import * as jose from "jose";
|
|
7
7
|
import { z } from "zod";
|
|
@@ -5,9 +5,10 @@ import * as jose from "jose";
|
|
|
5
5
|
* 기계 클라이언트 키 자재 (RFC-0034 §3.3) — 생성 · 공개키 추출 · JWKS 문서 · env 읽기.
|
|
6
6
|
*
|
|
7
7
|
* 서브 제품은 키쌍을 **자기 쪽에서** 만들고 개인키는 env(`REOPT_CLIENT_PRIVATE_KEY_JWK`)에만 둔다.
|
|
8
|
-
* 리옵트에는 공개키 주소(`jwksUri`)만 등록되므로 비밀이 전송되는 순간이 없다. 회전은
|
|
9
|
-
* ① `REOPT_CLIENT_PRIVATE_KEY_JWK_NEXT`에 새 키를
|
|
10
|
-
* ② 리옵트가 새
|
|
8
|
+
* 리옵트에는 공개키 주소(`jwksUri`)만 등록되므로 비밀이 전송되는 순간이 없다. 회전은 3단계다:
|
|
9
|
+
* ① `REOPT_CLIENT_PRIVATE_KEY_JWK_NEXT`에 새 키를 둔다 — JWKS에 두 키가 실린다. **서명은 그대로 현재 키다**
|
|
10
|
+
* ② 리옵트가 새 키를 알게 한다(콘솔 연동 상세의 "키 바꾸기", 또는 하루 한 번의 점검 — `jwksUri`를 직접 읽는 클라이언트는 5분)
|
|
11
|
+
* ③ NEXT를 본 키로 승격하고 옛 키를 지운다 — 이때부터 새 키로 서명한다. 옛 키는 JWKS에서 사라져 죽는다.
|
|
11
12
|
*
|
|
12
13
|
* 🔑 kid는 **JWK 지문(RFC 7638)**이다 — 사람이 이름을 짓지 않고, 같은 키는 어디서 만들어도 같은 kid다.
|
|
13
14
|
*/
|
|
@@ -86,7 +87,7 @@ function readClientKeyRing(env = typeof process === "undefined" ? {} : process.e
|
|
|
86
87
|
const next = nextRaw ? parseClientPrivateJwk(nextRaw, nextName) : null;
|
|
87
88
|
if (next && next.kid === current.kid) throw new Error(`[@reopt-ai/workspace-sdk/machine] ${nextName} has the same kid as ${currentName} — generate a new key for rotation`);
|
|
88
89
|
return {
|
|
89
|
-
signing:
|
|
90
|
+
signing: current,
|
|
90
91
|
published: next ? [current, next] : [current]
|
|
91
92
|
};
|
|
92
93
|
}
|
|
@@ -99,4 +100,4 @@ const CLIENT_JWKS_PATH = "/.well-known/reopt-client-jwks.json";
|
|
|
99
100
|
|
|
100
101
|
//#endregion
|
|
101
102
|
export { parseClientPrivateJwk as a, generateClientKeyPair as i, DEFAULT_CLIENT_KEY_ALGORITHM as n, readClientKeyRing as o, buildClientJwks as r, toPublicJwk as s, CLIENT_JWKS_PATH as t };
|
|
102
|
-
//# sourceMappingURL=keys
|
|
103
|
+
//# sourceMappingURL=keys--ef_VwZ-.js.map
|
|
@@ -20,7 +20,15 @@ declare function toPublicJwk(privateKeyJwk: ClientPrivateJwk): ClientPublicJwk;
|
|
|
20
20
|
/** JSON 문자열(env 값)을 개인키 JWK로 — 모양이 틀리면 **어디가** 틀렸는지 말하고 값은 절대 되풀이하지 않는다. */
|
|
21
21
|
declare function parseClientPrivateJwk(raw: string, envName?: string): ClientPrivateJwk;
|
|
22
22
|
type ClientKeyRing = {
|
|
23
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* 서명에 쓰는 키 — **언제나 현재 키**다. NEXT는 게시만 한다.
|
|
25
|
+
*
|
|
26
|
+
* 🔴 0.1.0-rc.11까지는 NEXT가 있으면 NEXT로 서명했다 — 플랫폼 콘솔의 회전 안내("서명은 아직 지금 키로 합니다")와 반대였다.
|
|
27
|
+
* 리옵트가 앱의 공개키를 **등록해 두는** 연결(워크스페이스 앱 — RFC-0043 §8 Q6)은 등록되지 않은 키의 서명을 앱의
|
|
28
|
+
* `jwks_uri`를 다시 읽어 확인하는데, 그 경로는 리옵트가 신뢰하는 도메인만 지난다. 고객 자기 도메인의 앱은 새 키가
|
|
29
|
+
* 등록되기 전(콘솔의 "공개키 다시 읽기" 또는 하루 한 번의 점검 전)까지 토큰을 받지 못할 수 있었다(코드로 확인, 미실측).
|
|
30
|
+
* 현재 키로 서명하면 새 키가 등록될 때까지 아무것도 달라지지 않는다.
|
|
31
|
+
*/
|
|
24
32
|
signing: ClientPrivateJwk;
|
|
25
33
|
/** JWKS에 실을 키 전부(현재 + NEXT). */
|
|
26
34
|
published: ClientPrivateJwk[];
|
|
@@ -41,4 +49,4 @@ declare function buildClientJwks(keys: readonly ClientPrivateJwk[]): {
|
|
|
41
49
|
declare const CLIENT_JWKS_PATH = "/.well-known/reopt-client-jwks.json";
|
|
42
50
|
//#endregion
|
|
43
51
|
export { ClientPublicJwk as a, generateClientKeyPair as c, toPublicJwk as d, ClientPrivateJwk as i, parseClientPrivateJwk as l, ClientKeyAlgorithm as n, DEFAULT_CLIENT_KEY_ALGORITHM as o, ClientKeyRing as r, buildClientJwks as s, CLIENT_JWKS_PATH as t, readClientKeyRing as u };
|
|
44
|
-
//# sourceMappingURL=keys-
|
|
52
|
+
//# sourceMappingURL=keys-BXkGh0VM.d.ts.map
|
package/dist/machine/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as ClientPublicJwk, c as generateClientKeyPair, d as toPublicJwk, i as ClientPrivateJwk, l as parseClientPrivateJwk, n as ClientKeyAlgorithm, o as DEFAULT_CLIENT_KEY_ALGORITHM, r as ClientKeyRing, s as buildClientJwks, t as CLIENT_JWKS_PATH, u as readClientKeyRing } from "../keys-
|
|
2
|
-
import { a as createDpopProof, i as MachineTokenState, n as MachineClientConfig, o as createMachineClient, r as MachineTokenError, t as MachineClient } from "../client-
|
|
1
|
+
import { a as ClientPublicJwk, c as generateClientKeyPair, d as toPublicJwk, i as ClientPrivateJwk, l as parseClientPrivateJwk, n as ClientKeyAlgorithm, o as DEFAULT_CLIENT_KEY_ALGORITHM, r as ClientKeyRing, s as buildClientJwks, t as CLIENT_JWKS_PATH, u as readClientKeyRing } from "../keys-BXkGh0VM.js";
|
|
2
|
+
import { a as createDpopProof, i as MachineTokenState, n as MachineClientConfig, o as createMachineClient, r as MachineTokenError, t as MachineClient } from "../client-DVozA5Ep.js";
|
|
3
3
|
export { CLIENT_JWKS_PATH, type ClientKeyAlgorithm, type ClientKeyRing, type ClientPrivateJwk, type ClientPublicJwk, DEFAULT_CLIENT_KEY_ALGORITHM, type MachineClient, type MachineClientConfig, MachineTokenError, type MachineTokenState, buildClientJwks, createDpopProof, createMachineClient, generateClientKeyPair, parseClientPrivateJwk, readClientKeyRing, toPublicJwk };
|
package/dist/machine/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as parseClientPrivateJwk, i as generateClientKeyPair, n as DEFAULT_CLIENT_KEY_ALGORITHM, o as readClientKeyRing, r as buildClientJwks, s as toPublicJwk, t as CLIENT_JWKS_PATH } from "../keys
|
|
2
|
-
import { n as createDpopProof, r as createMachineClient, t as MachineTokenError } from "../client-
|
|
1
|
+
import { a as parseClientPrivateJwk, i as generateClientKeyPair, n as DEFAULT_CLIENT_KEY_ALGORITHM, o as readClientKeyRing, r as buildClientJwks, s as toPublicJwk, t as CLIENT_JWKS_PATH } from "../keys--ef_VwZ-.js";
|
|
2
|
+
import { n as createDpopProof, r as createMachineClient, t as MachineTokenError } from "../client-BLaFMBbS.js";
|
|
3
3
|
|
|
4
4
|
export { CLIENT_JWKS_PATH, DEFAULT_CLIENT_KEY_ALGORITHM, MachineTokenError, buildClientJwks, createDpopProof, createMachineClient, generateClientKeyPair, parseClientPrivateJwk, readClientKeyRing, toPublicJwk };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/mentions.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* 댓글 본문에 넣는 멘션 토큰 — `@[이름](member:<id>)`. Studio 댓글과 같은 형식이라 양쪽에서 같게 보이고,
|
|
4
|
+
* 리옵트가 이 토큰으로 알림 대상을 찾는다. 이름의 `]`는 토큰을 깨므로 뺀다.
|
|
5
|
+
*
|
|
6
|
+
* ```ts
|
|
7
|
+
* await reopt.works.addComment(task.id, `${mentionToken(member)} 확인 부탁드립니다`);
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
10
|
+
declare function mentionToken(member: {
|
|
11
|
+
memberId: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}): string;
|
|
14
|
+
type MentionSegment = {
|
|
15
|
+
type: "text";
|
|
16
|
+
text: string;
|
|
17
|
+
} | {
|
|
18
|
+
type: "mention";
|
|
19
|
+
name: string;
|
|
20
|
+
memberId: string;
|
|
21
|
+
};
|
|
22
|
+
/** 댓글 본문을 글과 멘션으로 나눈다 — 멘션을 강조해 그릴 때. 토큰이 없으면 글 한 조각이다. */
|
|
23
|
+
declare function splitMentions(content: string): MentionSegment[];
|
|
24
|
+
//#endregion
|
|
25
|
+
export { mentionToken as n, splitMentions as r, MentionSegment as t };
|
|
26
|
+
//# sourceMappingURL=mentions-BMI2c7O6.d.ts.map
|
package/dist/mentions.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//#region src/mentions.ts
|
|
2
|
+
/**
|
|
3
|
+
* `@reopt-ai/workspace-sdk/mentions` — 업무 댓글의 멘션 토큰을 만들고 나눈다.
|
|
4
|
+
*
|
|
5
|
+
* 의존이 없다 — **클라이언트 컴포넌트에서 써도 된다**(입력 중인 댓글의 멘션 미리보기). 같은 함수가 `/connect`와
|
|
6
|
+
* 패키지 루트에서도 나간다.
|
|
7
|
+
*/
|
|
8
|
+
const MENTION = /@\[([^\]]+)\]\(member:([0-9a-fA-F-]{36})\)/g;
|
|
9
|
+
/**
|
|
10
|
+
* 댓글 본문에 넣는 멘션 토큰 — `@[이름](member:<id>)`. Studio 댓글과 같은 형식이라 양쪽에서 같게 보이고,
|
|
11
|
+
* 리옵트가 이 토큰으로 알림 대상을 찾는다. 이름의 `]`는 토큰을 깨므로 뺀다.
|
|
12
|
+
*
|
|
13
|
+
* ```ts
|
|
14
|
+
* await reopt.works.addComment(task.id, `${mentionToken(member)} 확인 부탁드립니다`);
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
function mentionToken(member) {
|
|
18
|
+
return `@[${member.name.replace(/\]/g, "")}](member:${member.memberId})`;
|
|
19
|
+
}
|
|
20
|
+
/** 댓글 본문을 글과 멘션으로 나눈다 — 멘션을 강조해 그릴 때. 토큰이 없으면 글 한 조각이다. */
|
|
21
|
+
function splitMentions(content) {
|
|
22
|
+
const segments = [];
|
|
23
|
+
let last = 0;
|
|
24
|
+
for (const match of content.matchAll(MENTION)) {
|
|
25
|
+
if (match.index > last) segments.push({
|
|
26
|
+
type: "text",
|
|
27
|
+
text: content.slice(last, match.index)
|
|
28
|
+
});
|
|
29
|
+
segments.push({
|
|
30
|
+
type: "mention",
|
|
31
|
+
name: match[1],
|
|
32
|
+
memberId: match[2]
|
|
33
|
+
});
|
|
34
|
+
last = match.index + match[0].length;
|
|
35
|
+
}
|
|
36
|
+
if (last < content.length) segments.push({
|
|
37
|
+
type: "text",
|
|
38
|
+
text: content.slice(last)
|
|
39
|
+
});
|
|
40
|
+
return segments;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export { mentionToken, splitMentions };
|
|
45
|
+
//# sourceMappingURL=mentions.js.map
|