@reopt-ai/brandapp-sdk 4.5.0 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/ai/index.js +1 -1
- package/dist/ai-provider/index.js +1 -1
- package/dist/analytics/index.js +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/better-auth/index.d.ts +2 -7
- package/dist/better-auth/index.js +2 -3
- package/dist/{client-BnRfa5hI.js → client-BzAgabAs.js} +2 -2
- package/dist/{client-BlKXDOUb.js → client-C2xE9HGZ.js} +4 -4
- package/dist/{client-ijQDMf1X.js → client-CI2Y00Qx.js} +2 -2
- package/dist/{client-p-tpQ1xj.js → client-Ce0gs5Ma.js} +2 -2
- package/dist/{client-D9QA4f3H.js → client-DCqp0Bis.js} +2 -2
- package/dist/{client-NQ0p6XSB.js → client-DeC127BD.js} +2 -2
- package/dist/{client-d0EwZNc4.js → client-DjLhTNsZ.js} +3 -3
- package/dist/{client-CU9KBiDi.js → client-FM6_YJbr.js} +3 -3
- package/dist/{client-Cg_gl0Gk.js → client-eDd4aWDs.js} +2 -2
- package/dist/{client-DLvWSpaz.js → client-tJq0U_jn.js} +4 -4
- package/dist/cms/index.js +1 -1
- package/dist/{config-DCFgtfSu.js → config-BeOelISH.js} +2 -2
- package/dist/eav/index.js +2 -2
- package/dist/feedback/index.js +1 -1
- package/dist/files/index.js +1 -1
- package/dist/{http-client-CHXNS9TI.js → http-client-Bl8u1vHN.js} +2 -2
- package/dist/index.js +12 -12
- package/dist/logout/index.js +1 -1
- package/dist/plans/index.js +1 -1
- package/dist/push/index.js +1 -1
- package/dist/{query-ZVC28Rp8.js → query-JPVK_8N5.js} +2 -2
- package/dist/terms/index.js +1 -1
- package/dist/workspace/index.d.ts +23 -1
- package/dist/workspace/index.js +8 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,19 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [4.6.0] — 2026-09-22
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- `./workspace`에 `platformCustomerUpsertInputSchema`·`PlatformCustomerUpsertInput`을 추가했다
|
|
15
|
+
(RFC-0029 §13 — 외부 앱 고객을 워크스페이스 CRM에 미러링하는 입력). `attributes` 키는
|
|
16
|
+
워크스페이스에 선언된 속성 **이름**이고, 선언에 없거나 타입이 어긋나면 서버가 400으로 거절한다.
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- Better Auth 의존성을 1.7.4로 갱신하고 제거된 `accountIssuer` 설정 전달을 중단했다.
|
|
21
|
+
SDK의 같은 이름 옵션은 소스 호환성을 위해 deprecated 상태로 유지하지만 동작하지 않는다.
|
|
22
|
+
|
|
10
23
|
## [4.5.0] — 2026-09-09
|
|
11
24
|
|
|
12
25
|
`4.5.0-platform.0`(platform 태그)의 정식 릴리스 — 그 프리릴리스 내용을 모두 포함한다.
|
package/dist/ai/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as resolveBaseUrl, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig, r as assertBrowserSafe } from "../config-
|
|
1
|
+
import { i as resolveBaseUrl, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig, r as assertBrowserSafe } from "../config-BeOelISH.js";
|
|
2
2
|
import { t as createManagedAbort } from "../abort--nOBFN4M.js";
|
|
3
3
|
import { t as createAuthHeader } from "../encoding-Bwfm3iaE.js";
|
|
4
4
|
import { t as createSSELineProcessor } from "../sse-parser-FMjxM7sY.js";
|
package/dist/analytics/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createReoptAnalyticsClient, t as ReoptAnalyticsClient } from "../client-
|
|
1
|
+
import { n as createReoptAnalyticsClient, t as ReoptAnalyticsClient } from "../client-BzAgabAs.js";
|
|
2
2
|
import { getInstance, identify, init, pageView, setConsent, track } from "@reopt-ai/data-sdk";
|
|
3
3
|
|
|
4
4
|
//#region src/analytics/browser.ts
|
package/dist/auth/index.js
CHANGED
|
@@ -26,13 +26,8 @@ type ReoptOAuthOptions = ReoptSDKConfig & {
|
|
|
26
26
|
/** Additional OAuth scopes */
|
|
27
27
|
additionalScopes?: string[];
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* Reopt's OIDC discovery document reports as `issuer` — so the default
|
|
32
|
-
* changes nothing for existing accounts.
|
|
33
|
-
*
|
|
34
|
-
* Set this only if you point `idBaseUrl` at a proxy whose discovery
|
|
35
|
-
* `issuer` differs from the URL you configured.
|
|
29
|
+
* @deprecated Better Auth 1.7.3+ identifies accounts by providerId/accountId.
|
|
30
|
+
* Retained for source compatibility; this option is no longer forwarded.
|
|
36
31
|
*/
|
|
37
32
|
accountIssuer?: string;
|
|
38
33
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as isReoptSDKError, S as ReoptSDKError, a as resolveIdBaseUrl, s as AuthError, t as REOPT_BASE_URLS, w as ServerError, x as RateLimitError } from "../config-
|
|
2
|
-
import { t as BaseHttpClient } from "../http-client-
|
|
1
|
+
import { O as isReoptSDKError, S as ReoptSDKError, a as resolveIdBaseUrl, s as AuthError, t as REOPT_BASE_URLS, w as ServerError, x as RateLimitError } from "../config-BeOelISH.js";
|
|
2
|
+
import { t as BaseHttpClient } from "../http-client-Bl8u1vHN.js";
|
|
3
3
|
import { n as REOPT_PROVIDER_ID, t as REOPT_DEFAULT_SCOPES } from "../types-DjDRszNj.js";
|
|
4
4
|
import { createAdapterFactory } from "better-auth/adapters";
|
|
5
5
|
import { genericOAuth } from "better-auth/plugins";
|
|
@@ -164,7 +164,6 @@ function createReoptOAuth(options) {
|
|
|
164
164
|
return genericOAuth({ config: [{
|
|
165
165
|
providerId: REOPT_PROVIDER_ID,
|
|
166
166
|
discoveryUrl: `${idBaseUrl}/api/auth/.well-known/openid-configuration`,
|
|
167
|
-
accountIssuer: options.accountIssuer ?? idBaseUrl,
|
|
168
167
|
authorizationUrl: `${idBaseUrl}/api/auth/oauth2/authorize`,
|
|
169
168
|
tokenUrl: `${idBaseUrl}/api/auth/oauth2/token`,
|
|
170
169
|
userInfoUrl: `${idBaseUrl}/api/auth/oauth2/userinfo`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
1
|
+
import { t as BaseHttpClient } from "./http-client-Bl8u1vHN.js";
|
|
2
2
|
|
|
3
3
|
//#region src/analytics/client.ts
|
|
4
4
|
var ReoptAnalyticsClient = class {
|
|
@@ -17,4 +17,4 @@ function createReoptAnalyticsClient(config) {
|
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
19
|
export { createReoptAnalyticsClient as n, ReoptAnalyticsClient as t };
|
|
20
|
-
//# sourceMappingURL=client-
|
|
20
|
+
//# sourceMappingURL=client-BzAgabAs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as ReoptSDKError, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig } from "./config-
|
|
1
|
+
import { S as ReoptSDKError, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig } from "./config-BeOelISH.js";
|
|
2
2
|
import { t as createManagedAbort } from "./abort--nOBFN4M.js";
|
|
3
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
3
|
+
import { t as BaseHttpClient } from "./http-client-Bl8u1vHN.js";
|
|
4
4
|
import { n as parseSSEStream } from "./sse-parser-FMjxM7sY.js";
|
|
5
5
|
|
|
6
6
|
//#region src/ai/client.ts
|
|
@@ -231,7 +231,7 @@ var ReoptAiClient = class {
|
|
|
231
231
|
}
|
|
232
232
|
async fetchSSE(options) {
|
|
233
233
|
const url = `${this.http.requestBaseUrl}/chat/completions`;
|
|
234
|
-
const requestId = globalThis.crypto?.randomUUID?.() ?? `sdk-${"4.
|
|
234
|
+
const requestId = globalThis.crypto?.randomUUID?.() ?? `sdk-${"4.6.0"}-${url.length}`;
|
|
235
235
|
const ctx = {
|
|
236
236
|
method: "POST",
|
|
237
237
|
url,
|
|
@@ -309,4 +309,4 @@ function createReoptAiClient(config) {
|
|
|
309
309
|
|
|
310
310
|
//#endregion
|
|
311
311
|
export { createReoptAiClient as n, ReoptAiClient as t };
|
|
312
|
-
//# sourceMappingURL=client-
|
|
312
|
+
//# sourceMappingURL=client-C2xE9HGZ.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
1
|
+
import { t as BaseHttpClient } from "./http-client-Bl8u1vHN.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plans/client.ts
|
|
4
4
|
function unwrap(body) {
|
|
@@ -78,4 +78,4 @@ function createReoptPlansClient(config) {
|
|
|
78
78
|
|
|
79
79
|
//#endregion
|
|
80
80
|
export { createReoptPlansClient as n, ReoptPlansClient as t };
|
|
81
|
-
//# sourceMappingURL=client-
|
|
81
|
+
//# sourceMappingURL=client-CI2Y00Qx.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
1
|
+
import { t as BaseHttpClient } from "./http-client-Bl8u1vHN.js";
|
|
2
2
|
|
|
3
3
|
//#region src/feedback/client.ts
|
|
4
4
|
function buildListQuery(query) {
|
|
@@ -83,4 +83,4 @@ function createReoptFeedbackClient(config) {
|
|
|
83
83
|
|
|
84
84
|
//#endregion
|
|
85
85
|
export { createReoptFeedbackClient as n, ReoptFeedbackClient as t };
|
|
86
|
-
//# sourceMappingURL=client-
|
|
86
|
+
//# sourceMappingURL=client-Ce0gs5Ma.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
1
|
+
import { t as BaseHttpClient } from "./http-client-Bl8u1vHN.js";
|
|
2
2
|
|
|
3
3
|
//#region src/terms/client.ts
|
|
4
4
|
function unwrap(body) {
|
|
@@ -80,4 +80,4 @@ function createReoptTermsClient(config) {
|
|
|
80
80
|
|
|
81
81
|
//#endregion
|
|
82
82
|
export { createReoptTermsClient as n, ReoptTermsClient as t };
|
|
83
|
-
//# sourceMappingURL=client-
|
|
83
|
+
//# sourceMappingURL=client-DCqp0Bis.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
1
|
+
import { t as BaseHttpClient } from "./http-client-Bl8u1vHN.js";
|
|
2
2
|
|
|
3
3
|
//#region src/push/client.ts
|
|
4
4
|
var ReoptPushClient = class {
|
|
@@ -25,4 +25,4 @@ function createReoptPushClient(config) {
|
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
27
|
export { createReoptPushClient as n, ReoptPushClient as t };
|
|
28
|
-
//# sourceMappingURL=client-
|
|
28
|
+
//# sourceMappingURL=client-DeC127BD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as ReoptSDKError, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig } from "./config-
|
|
1
|
+
import { S as ReoptSDKError, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig } from "./config-BeOelISH.js";
|
|
2
2
|
import { t as createManagedAbort } from "./abort--nOBFN4M.js";
|
|
3
|
-
import { n as parseFieldErrors, t as BaseHttpClient } from "./http-client-
|
|
3
|
+
import { n as parseFieldErrors, t as BaseHttpClient } from "./http-client-Bl8u1vHN.js";
|
|
4
4
|
|
|
5
5
|
//#region src/files/client.ts
|
|
6
6
|
var ReoptFileClient = class {
|
|
@@ -270,4 +270,4 @@ function createReoptFileClient(config) {
|
|
|
270
270
|
|
|
271
271
|
//#endregion
|
|
272
272
|
export { createReoptFileClient as n, ReoptFileClient as t };
|
|
273
|
-
//# sourceMappingURL=client-
|
|
273
|
+
//# sourceMappingURL=client-DjLhTNsZ.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
2
|
-
import { t as buildQuery } from "./query-
|
|
1
|
+
import { t as BaseHttpClient } from "./http-client-Bl8u1vHN.js";
|
|
2
|
+
import { t as buildQuery } from "./query-JPVK_8N5.js";
|
|
3
3
|
|
|
4
4
|
//#region src/cms/client.ts
|
|
5
5
|
function createReoptCmsClient(config) {
|
|
@@ -52,4 +52,4 @@ async list(query) {
|
|
|
52
52
|
|
|
53
53
|
//#endregion
|
|
54
54
|
export { createReoptCmsClient as t };
|
|
55
|
-
//# sourceMappingURL=client-
|
|
55
|
+
//# sourceMappingURL=client-FM6_YJbr.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
1
|
+
import { t as BaseHttpClient } from "./http-client-Bl8u1vHN.js";
|
|
2
2
|
|
|
3
3
|
//#region src/auth/client.ts
|
|
4
4
|
function unwrap(body) {
|
|
@@ -50,4 +50,4 @@ function createReoptAuthClient(config) {
|
|
|
50
50
|
|
|
51
51
|
//#endregion
|
|
52
52
|
export { createReoptAuthClient as n, ReoptAuthClient as t };
|
|
53
|
-
//# sourceMappingURL=client-
|
|
53
|
+
//# sourceMappingURL=client-eDd4aWDs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as BadRequestError } from "./config-
|
|
2
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
3
|
-
import { t as buildQuery } from "./query-
|
|
1
|
+
import { u as BadRequestError } from "./config-BeOelISH.js";
|
|
2
|
+
import { t as BaseHttpClient } from "./http-client-Bl8u1vHN.js";
|
|
3
|
+
import { t as buildQuery } from "./query-JPVK_8N5.js";
|
|
4
4
|
|
|
5
5
|
//#region src/eav/cache.ts
|
|
6
6
|
var SchemaCache = class {
|
|
@@ -564,4 +564,4 @@ function createReoptEavClient(config) {
|
|
|
564
564
|
|
|
565
565
|
//#endregion
|
|
566
566
|
export { RECORDS_PAGE_LIMIT_MAX as i, ATTRIBUTE_FILTER_LIST_MAX as n, ATTRIBUTE_FILTER_OPERATORS as r, createReoptEavClient as t };
|
|
567
|
-
//# sourceMappingURL=client-
|
|
567
|
+
//# sourceMappingURL=client-tJq0U_jn.js.map
|
package/dist/cms/index.js
CHANGED
|
@@ -319,7 +319,7 @@ function mapHttpStatusToError(status, code, message, ctx, fieldErrors) {
|
|
|
319
319
|
|
|
320
320
|
//#endregion
|
|
321
321
|
//#region src/core/config.ts
|
|
322
|
-
const SDK_VERSION = "4.
|
|
322
|
+
const SDK_VERSION = "4.6.0";
|
|
323
323
|
/**
|
|
324
324
|
* Default API host for EAV / AI / Files / CMS / Terms. Consumers can override
|
|
325
325
|
* via `config.baseUrl` or the `REOPT_BASE_URL` env var.
|
|
@@ -498,4 +498,4 @@ function deriveIdFromBaseUrl(baseUrl) {
|
|
|
498
498
|
|
|
499
499
|
//#endregion
|
|
500
500
|
export { isValidationError as A, RequiredTermsError as C, isModelAccessError as D, isCreditLimitError as E, isReoptSDKError as O, ReoptSDKError as S, ValidationError as T, ModelAccessError as _, resolveIdBaseUrl as a, PreconditionFailedError as b, AuthUserNotFoundError as c, ConflictError as d, ContentFilterError as f, LimitExceededError as g, ForbiddenError as h, resolveBaseUrl as i, mapHttpStatusToError as j, isRequiredTermsError as k, AuthUserRecordExistsError as l, DuplicateAuthUserError as m, SDK_VERSION as n, validateConfig as o, CreditLimitError as p, assertBrowserSafe as r, AuthError as s, REOPT_BASE_URLS as t, BadRequestError as u, ModelNotFoundError as v, ServerError as w, RateLimitError as x, NotFoundError as y };
|
|
501
|
-
//# sourceMappingURL=config-
|
|
501
|
+
//# sourceMappingURL=config-BeOelISH.js.map
|
package/dist/eav/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as AuthUserNotFoundError, g as LimitExceededError, l as AuthUserRecordExistsError, m as DuplicateAuthUserError } from "../config-
|
|
2
|
-
import { i as RECORDS_PAGE_LIMIT_MAX, n as ATTRIBUTE_FILTER_LIST_MAX, r as ATTRIBUTE_FILTER_OPERATORS, t as createReoptEavClient } from "../client-
|
|
1
|
+
import { c as AuthUserNotFoundError, g as LimitExceededError, l as AuthUserRecordExistsError, m as DuplicateAuthUserError } from "../config-BeOelISH.js";
|
|
2
|
+
import { i as RECORDS_PAGE_LIMIT_MAX, n as ATTRIBUTE_FILTER_LIST_MAX, r as ATTRIBUTE_FILTER_OPERATORS, t as createReoptEavClient } from "../client-tJq0U_jn.js";
|
|
3
3
|
|
|
4
4
|
//#region src/eav/verify.ts
|
|
5
5
|
async function verifyEavSchema(input) {
|
package/dist/feedback/index.js
CHANGED
package/dist/files/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as ReoptSDKError, a as resolveIdBaseUrl, i as resolveBaseUrl, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig, w as ServerError, x as RateLimitError } from "./config-
|
|
1
|
+
import { S as ReoptSDKError, a as resolveIdBaseUrl, i as resolveBaseUrl, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig, w as ServerError, x as RateLimitError } from "./config-BeOelISH.js";
|
|
2
2
|
import { t as createAuthHeader } from "./encoding-Bwfm3iaE.js";
|
|
3
3
|
|
|
4
4
|
//#region src/core/debug.ts
|
|
@@ -383,4 +383,4 @@ function parseFieldErrors(body) {
|
|
|
383
383
|
|
|
384
384
|
//#endregion
|
|
385
385
|
export { parseFieldErrors as n, BaseHttpClient as t };
|
|
386
|
-
//# sourceMappingURL=http-client-
|
|
386
|
+
//# sourceMappingURL=http-client-Bl8u1vHN.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { A as isValidationError, C as RequiredTermsError, D as isModelAccessError, E as isCreditLimitError, O as isReoptSDKError, S as ReoptSDKError, T as ValidationError, _ as ModelAccessError, b as PreconditionFailedError, c as AuthUserNotFoundError, d as ConflictError, f as ContentFilterError, g as LimitExceededError, h as ForbiddenError, i as resolveBaseUrl, j as mapHttpStatusToError, k as isRequiredTermsError, l as AuthUserRecordExistsError, m as DuplicateAuthUserError, p as CreditLimitError, r as assertBrowserSafe, s as AuthError, t as REOPT_BASE_URLS, u as BadRequestError, v as ModelNotFoundError, w as ServerError, x as RateLimitError, y as NotFoundError } from "./config-
|
|
2
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
3
|
-
import { n as createReoptAiClient } from "./client-
|
|
4
|
-
import { n as createReoptAuthClient } from "./client-
|
|
5
|
-
import { t as createReoptCmsClient } from "./client-
|
|
6
|
-
import { t as createReoptEavClient } from "./client-
|
|
7
|
-
import { n as createReoptFeedbackClient } from "./client-
|
|
8
|
-
import { n as createReoptFileClient } from "./client-
|
|
9
|
-
import { n as createReoptAnalyticsClient } from "./client-
|
|
10
|
-
import { n as createReoptPlansClient } from "./client-
|
|
11
|
-
import { n as createReoptPushClient } from "./client-
|
|
12
|
-
import { n as createReoptTermsClient } from "./client-
|
|
1
|
+
import { A as isValidationError, C as RequiredTermsError, D as isModelAccessError, E as isCreditLimitError, O as isReoptSDKError, S as ReoptSDKError, T as ValidationError, _ as ModelAccessError, b as PreconditionFailedError, c as AuthUserNotFoundError, d as ConflictError, f as ContentFilterError, g as LimitExceededError, h as ForbiddenError, i as resolveBaseUrl, j as mapHttpStatusToError, k as isRequiredTermsError, l as AuthUserRecordExistsError, m as DuplicateAuthUserError, p as CreditLimitError, r as assertBrowserSafe, s as AuthError, t as REOPT_BASE_URLS, u as BadRequestError, v as ModelNotFoundError, w as ServerError, x as RateLimitError, y as NotFoundError } from "./config-BeOelISH.js";
|
|
2
|
+
import { t as BaseHttpClient } from "./http-client-Bl8u1vHN.js";
|
|
3
|
+
import { n as createReoptAiClient } from "./client-C2xE9HGZ.js";
|
|
4
|
+
import { n as createReoptAuthClient } from "./client-eDd4aWDs.js";
|
|
5
|
+
import { t as createReoptCmsClient } from "./client-FM6_YJbr.js";
|
|
6
|
+
import { t as createReoptEavClient } from "./client-tJq0U_jn.js";
|
|
7
|
+
import { n as createReoptFeedbackClient } from "./client-Ce0gs5Ma.js";
|
|
8
|
+
import { n as createReoptFileClient } from "./client-DjLhTNsZ.js";
|
|
9
|
+
import { n as createReoptAnalyticsClient } from "./client-BzAgabAs.js";
|
|
10
|
+
import { n as createReoptPlansClient } from "./client-CI2Y00Qx.js";
|
|
11
|
+
import { n as createReoptPushClient } from "./client-DeC127BD.js";
|
|
12
|
+
import { n as createReoptTermsClient } from "./client-DCqp0Bis.js";
|
|
13
13
|
|
|
14
14
|
//#region src/singleton.ts
|
|
15
15
|
let _instance;
|
package/dist/logout/index.js
CHANGED
package/dist/plans/index.js
CHANGED
package/dist/push/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as ReoptSDKError } from "./config-
|
|
1
|
+
import { S as ReoptSDKError } from "./config-BeOelISH.js";
|
|
2
2
|
|
|
3
3
|
//#region src/core/query.ts
|
|
4
4
|
/**
|
|
@@ -32,4 +32,4 @@ function buildQuery(params) {
|
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
34
|
export { buildQuery as t };
|
|
35
|
-
//# sourceMappingURL=query-
|
|
35
|
+
//# sourceMappingURL=query-JPVK_8N5.js.map
|
package/dist/terms/index.js
CHANGED
|
@@ -22,6 +22,27 @@ type PlatformTaskStage = {
|
|
|
22
22
|
outcome?: PlatformTaskOutcome;
|
|
23
23
|
stageId?: string;
|
|
24
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* RFC-0029 §13 — 외부 앱 고객을 워크스페이스 CRM에 미러링하는 입력.
|
|
27
|
+
*
|
|
28
|
+
* 🔴 `attributes`의 키는 **워크스페이스에 선언된 속성 이름**이다(UUID 아님). 선언에 없는 이름이나
|
|
29
|
+
* 타입이 어긋난 값은 400으로 거절되고 **아무것도 저장되지 않는다** — 조용히 통과시키면 값은
|
|
30
|
+
* 들어가고 세그먼트·고객 화면에서만 안 보이는 상태가 되기 때문이다.
|
|
31
|
+
*
|
|
32
|
+
* 🔑 숫자는 JSON number, 날짜는 ISO 8601 문자열이어야 한다. 세그먼트의 숫자·날짜 비교가
|
|
33
|
+
* `jsonb_typeof` 가드를 통과해야 돌아서, `"12"`처럼 문자열로 보내면 그 행이 모든 숫자 비교에서
|
|
34
|
+
* 빠진다(저장은 되고 필터만 안 되는 상태).
|
|
35
|
+
*/
|
|
36
|
+
type PlatformCustomerUpsertInput = {
|
|
37
|
+
/** 소스 쪽 단조 증가 version(ms epoch 권장). 저장값 이하면 서버가 no-op으로 답한다 */
|
|
38
|
+
version?: number;
|
|
39
|
+
/** CRM 목록에 보이는 이름. 가명만 있으면 그 표기를 보낸다(빈 문자열 불가) */
|
|
40
|
+
name: string;
|
|
41
|
+
/** null = 지움, 생략 = 건드리지 않음 */
|
|
42
|
+
email?: string | null;
|
|
43
|
+
/** 선언된 속성 **이름** → 값 */
|
|
44
|
+
attributes?: Record<string, unknown>;
|
|
45
|
+
};
|
|
25
46
|
type PlatformTaskUpsertInput = {
|
|
26
47
|
/** 소스 쪽 단조 증가 version(ms epoch 권장). 저장값 이하면 서버가 no-op으로 답한다 */
|
|
27
48
|
version: number;
|
|
@@ -56,6 +77,7 @@ type PlatformWebhookUpsertInput = {
|
|
|
56
77
|
/** 소스 쪽 식별자 — 경로 세그먼트라 슬래시·공백 금지, ≤255 */
|
|
57
78
|
declare const platformExternalIdSchema: z.ZodType<string>;
|
|
58
79
|
declare const platformTaskStageSchema: z.ZodType<PlatformTaskStage>;
|
|
80
|
+
declare const platformCustomerUpsertInputSchema: z.ZodType<PlatformCustomerUpsertInput>;
|
|
59
81
|
declare const platformTaskUpsertInputSchema: z.ZodType<PlatformTaskUpsertInput>;
|
|
60
82
|
declare const platformTaskStageInputSchema: z.ZodType<PlatformTaskStageInput>;
|
|
61
83
|
declare const platformWebhookUpsertInputSchema: z.ZodType<PlatformWebhookUpsertInput>;
|
|
@@ -598,5 +620,5 @@ type PlatformClient = {
|
|
|
598
620
|
};
|
|
599
621
|
declare function createPlatformClient(config: PlatformClientConfig): PlatformClient;
|
|
600
622
|
//#endregion
|
|
601
|
-
export { DEFAULT_PLATFORM_SCOPES, PLATFORM_ADMIN_SCOPE, PLATFORM_BRANDAPP_STATUSES, PLATFORM_DOMAIN_STATUSES, PLATFORM_MANAGED_BY_VALUES, PLATFORM_OAUTH_APPLICATION_TYPES, PLATFORM_OAUTH_GRANT_TYPES, PLATFORM_STAGE_COLORS, PLATFORM_TASK_OUTCOMES, PLATFORM_TASK_PRIORITIES, PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS, PLATFORM_WEBHOOK_TRIGGERS, PlatformApiError, type PlatformBrandImportInput, type PlatformBrandResource, type PlatformBrandUpsertInput, type PlatformBrandappResource, type PlatformBrandappUpsertInput, type PlatformClient, type PlatformClientConfig, type PlatformDomainStatus, type PlatformEavBrandappResources, type PlatformEavEntityResource, type PlatformEavSchemaApplyInput, type PlatformEavSchemaApplyResult, type PlatformEavSchemaOperation, type PlatformErrorBody, type PlatformLockAcquired, type PlatformLockReleased, type PlatformManagedBy, type PlatformMe, type PlatformOAuthClientImportInput, type PlatformOAuthClientResource, type PlatformOAuthClientUpsertInput, type PlatformPipeline, type PlatformPipelineImportInput, type PlatformPipelineResource, type PlatformPipelineStageInput, type PlatformPipelineUpsertInput, type PlatformResources, type PlatformResourcesV2, 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, createPlatformClient, platformBrandImportInputSchema, platformBrandResourceSchema, platformBrandUpsertInputSchema, platformBrandappResourceSchema, platformBrandappUpsertInputSchema, platformEavBrandappResourcesSchema, platformEavEntityResourceSchema, platformEavSchemaApplyInputSchema, platformEavSchemaApplyResultSchema, platformEavSchemaOperationSchema, platformErrorSchema, platformExternalIdSchema, platformLockAcquiredSchema, platformLockReleasedSchema, platformMeSchema, platformOAuthClientImportInputSchema, platformOAuthClientResourceSchema, platformOAuthClientUpsertInputSchema, platformPipelineImportInputSchema, platformPipelineResourceSchema, platformPipelineSchema, platformPipelineStageInputSchema, platformPipelineUpsertInputSchema, platformResourceKeySchema, platformResourcesSchema, platformResourcesV2Schema, platformTaskSchema, platformTaskStageInputSchema, platformTaskStageSchema, platformTaskUpsertInputSchema, platformWebhookResourceSchema, platformWebhookSchema, platformWebhookUpsertInputSchema, platformWorkTaskStageChangedEventSchema, platformWriteMetaSchema, resolvePlatformUrls };
|
|
623
|
+
export { DEFAULT_PLATFORM_SCOPES, PLATFORM_ADMIN_SCOPE, PLATFORM_BRANDAPP_STATUSES, PLATFORM_DOMAIN_STATUSES, PLATFORM_MANAGED_BY_VALUES, PLATFORM_OAUTH_APPLICATION_TYPES, PLATFORM_OAUTH_GRANT_TYPES, PLATFORM_STAGE_COLORS, PLATFORM_TASK_OUTCOMES, PLATFORM_TASK_PRIORITIES, PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS, PLATFORM_WEBHOOK_TRIGGERS, PlatformApiError, type PlatformBrandImportInput, type PlatformBrandResource, type PlatformBrandUpsertInput, type PlatformBrandappResource, type PlatformBrandappUpsertInput, type PlatformClient, type PlatformClientConfig, type PlatformCustomerUpsertInput, type PlatformDomainStatus, type PlatformEavBrandappResources, type PlatformEavEntityResource, type PlatformEavSchemaApplyInput, type PlatformEavSchemaApplyResult, type PlatformEavSchemaOperation, type PlatformErrorBody, type PlatformLockAcquired, type PlatformLockReleased, type PlatformManagedBy, type PlatformMe, type PlatformOAuthClientImportInput, type PlatformOAuthClientResource, type PlatformOAuthClientUpsertInput, type PlatformPipeline, type PlatformPipelineImportInput, type PlatformPipelineResource, type PlatformPipelineStageInput, type PlatformPipelineUpsertInput, type PlatformResources, type PlatformResourcesV2, 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, createPlatformClient, platformBrandImportInputSchema, platformBrandResourceSchema, platformBrandUpsertInputSchema, platformBrandappResourceSchema, platformBrandappUpsertInputSchema, platformCustomerUpsertInputSchema, platformEavBrandappResourcesSchema, platformEavEntityResourceSchema, platformEavSchemaApplyInputSchema, platformEavSchemaApplyResultSchema, platformEavSchemaOperationSchema, platformErrorSchema, platformExternalIdSchema, platformLockAcquiredSchema, platformLockReleasedSchema, platformMeSchema, platformOAuthClientImportInputSchema, platformOAuthClientResourceSchema, platformOAuthClientUpsertInputSchema, platformPipelineImportInputSchema, platformPipelineResourceSchema, platformPipelineSchema, platformPipelineStageInputSchema, platformPipelineUpsertInputSchema, platformResourceKeySchema, platformResourcesSchema, platformResourcesV2Schema, platformTaskSchema, platformTaskStageInputSchema, platformTaskStageSchema, platformTaskUpsertInputSchema, platformWebhookResourceSchema, platformWebhookSchema, platformWebhookUpsertInputSchema, platformWorkTaskStageChangedEventSchema, platformWriteMetaSchema, resolvePlatformUrls };
|
|
602
624
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/workspace/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as SDK_VERSION } from "../config-
|
|
1
|
+
import { n as SDK_VERSION } from "../config-BeOelISH.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/workspace/schemas.ts
|
|
@@ -29,6 +29,12 @@ const platformTaskStageSchema = z.object({
|
|
|
29
29
|
outcome: z.enum(PLATFORM_TASK_OUTCOMES).nullable().optional(),
|
|
30
30
|
stageId: z.uuid().optional()
|
|
31
31
|
}).strict().refine(exactlyOneOf, "stage needs exactly one of outcome or stageId");
|
|
32
|
+
const platformCustomerUpsertInputSchema = z.object({
|
|
33
|
+
version: versionSchema.optional(),
|
|
34
|
+
name: z.string().trim().min(1).max(255),
|
|
35
|
+
email: z.email().max(255).nullable().optional(),
|
|
36
|
+
attributes: z.record(z.string().min(1).max(64), z.unknown()).optional()
|
|
37
|
+
}).strict();
|
|
32
38
|
const platformTaskUpsertInputSchema = z.object({
|
|
33
39
|
version: versionSchema,
|
|
34
40
|
title: z.string().trim().min(1).max(255),
|
|
@@ -684,5 +690,5 @@ function createPlatformClient(config) {
|
|
|
684
690
|
}
|
|
685
691
|
|
|
686
692
|
//#endregion
|
|
687
|
-
export { DEFAULT_PLATFORM_SCOPES, PLATFORM_ADMIN_SCOPE, PLATFORM_BRANDAPP_STATUSES, PLATFORM_DOMAIN_STATUSES, PLATFORM_MANAGED_BY_VALUES, PLATFORM_OAUTH_APPLICATION_TYPES, 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, createPlatformClient, platformBrandImportInputSchema, platformBrandResourceSchema, platformBrandUpsertInputSchema, platformBrandappResourceSchema, platformBrandappUpsertInputSchema, platformEavBrandappResourcesSchema, platformEavEntityResourceSchema, platformEavSchemaApplyInputSchema, platformEavSchemaApplyResultSchema, platformEavSchemaOperationSchema, platformErrorSchema, platformExternalIdSchema, platformLockAcquiredSchema, platformLockReleasedSchema, platformMeSchema, platformOAuthClientImportInputSchema, platformOAuthClientResourceSchema, platformOAuthClientUpsertInputSchema, platformPipelineImportInputSchema, platformPipelineResourceSchema, platformPipelineSchema, platformPipelineStageInputSchema, platformPipelineUpsertInputSchema, platformResourceKeySchema, platformResourcesSchema, platformResourcesV2Schema, platformTaskSchema, platformTaskStageInputSchema, platformTaskStageSchema, platformTaskUpsertInputSchema, platformWebhookResourceSchema, platformWebhookSchema, platformWebhookUpsertInputSchema, platformWorkTaskStageChangedEventSchema, platformWriteMetaSchema, resolvePlatformUrls };
|
|
693
|
+
export { DEFAULT_PLATFORM_SCOPES, PLATFORM_ADMIN_SCOPE, PLATFORM_BRANDAPP_STATUSES, PLATFORM_DOMAIN_STATUSES, PLATFORM_MANAGED_BY_VALUES, PLATFORM_OAUTH_APPLICATION_TYPES, 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, createPlatformClient, platformBrandImportInputSchema, platformBrandResourceSchema, platformBrandUpsertInputSchema, platformBrandappResourceSchema, platformBrandappUpsertInputSchema, platformCustomerUpsertInputSchema, platformEavBrandappResourcesSchema, platformEavEntityResourceSchema, platformEavSchemaApplyInputSchema, platformEavSchemaApplyResultSchema, platformEavSchemaOperationSchema, platformErrorSchema, platformExternalIdSchema, platformLockAcquiredSchema, platformLockReleasedSchema, platformMeSchema, platformOAuthClientImportInputSchema, platformOAuthClientResourceSchema, platformOAuthClientUpsertInputSchema, platformPipelineImportInputSchema, platformPipelineResourceSchema, platformPipelineSchema, platformPipelineStageInputSchema, platformPipelineUpsertInputSchema, platformResourceKeySchema, platformResourcesSchema, platformResourcesV2Schema, platformTaskSchema, platformTaskStageInputSchema, platformTaskStageSchema, platformTaskUpsertInputSchema, platformWebhookResourceSchema, platformWebhookSchema, platformWebhookUpsertInputSchema, platformWorkTaskStageChangedEventSchema, platformWriteMetaSchema, resolvePlatformUrls };
|
|
688
694
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reopt-ai/brandapp-sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"description": "Reopt Brandapp SDK — Better Auth adapter, OAuth login, and EAV client",
|
|
5
5
|
"author": "Reopt",
|
|
6
6
|
"license": "MIT",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"@ai-sdk/provider": ">=4.0.0",
|
|
120
120
|
"@reopt-ai/opt-editor": ">=1.0.0",
|
|
121
121
|
"@tanstack/react-query": ">=5.0.0",
|
|
122
|
-
"better-auth": "^1.7.
|
|
122
|
+
"better-auth": "^1.7.4",
|
|
123
123
|
"hono": ">=4.0.0",
|
|
124
124
|
"react": ">=18.0.0",
|
|
125
125
|
"@reopt-ai/data-sdk": ">=0.1.1",
|
|
@@ -152,11 +152,11 @@
|
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
154
|
"devDependencies": {
|
|
155
|
-
"@ai-sdk/provider": "4.0.
|
|
155
|
+
"@ai-sdk/provider": "4.0.17",
|
|
156
156
|
"@reopt-ai/opt-editor": "2.0.0",
|
|
157
157
|
"@testing-library/react": "^16.3.2",
|
|
158
158
|
"@types/node": "22.13.9",
|
|
159
|
-
"better-auth": "^1.7.
|
|
159
|
+
"better-auth": "^1.7.4",
|
|
160
160
|
"happy-dom": "^20.8.9",
|
|
161
161
|
"hono": "^4.7.0",
|
|
162
162
|
"tsdown": "^0.22.14",
|