@reopt-ai/brandapp-sdk 4.7.0-rc.14 → 4.7.0-rc.16
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 +56 -0
- package/README.md +5 -3
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/index.js +2 -2
- package/dist/ai-provider/index.d.ts +1 -1
- package/dist/ai-provider/index.js +1 -1
- package/dist/analytics/index.d.ts +1 -1
- package/dist/analytics/index.js +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/better-auth/index.d.ts +2 -2
- package/dist/better-auth/index.js +3 -3
- package/dist/{client-Ce0z7WTl.js → client-B4pglmTS.js} +2 -2
- package/dist/{client-loa5Z9hY.js → client-BFfyuoNI.js} +4 -4
- package/dist/{client-wNzcgEJu.d.ts → client-BpTb2n0k.d.ts} +2 -2
- package/dist/{client-NUhpPkl2.d.ts → client-BuAtrkbd.d.ts} +2 -2
- package/dist/{client-CJFsLk3_.d.ts → client-C7L3X-6K.d.ts} +2 -2
- package/dist/{client-DF-tOyrY.d.ts → client-CC7rcBX6.d.ts} +2 -2
- package/dist/{client-CD6uK0dA.d.ts → client-CJRCG-km.d.ts} +2 -2
- package/dist/{client-Dwf6UuGH.d.ts → client-CRaeubc_.d.ts} +2 -2
- package/dist/{client-Dn5CjA4d.js → client-CZe_S1HM.js} +3 -3
- package/dist/{client-CwfUFDWS.js → client-CbQP3u9_.js} +2 -2
- package/dist/{client-BbmslwWV.d.ts → client-CcoGEXUB.d.ts} +2 -2
- package/dist/{client-CyFOwE5p.d.ts → client-ChLjP8Zx.d.ts} +49 -23
- package/dist/{client-OEX6i4XJ.js → client-D3zSBcPj.js} +2 -2
- package/dist/{client-DHmwj3qm.js → client-D5ZVsy8Y.js} +4 -4
- package/dist/{client-BH7PYWbE.js → client-DU8XR4_z.js} +2 -2
- package/dist/{client-BBx2uOT6.js → client-DeyC3NFp.js} +2 -2
- package/dist/{client-BL-Ljwki.d.ts → client-DfsH-x4k.d.ts} +2 -2
- package/dist/{client-BAr_BNfz.js → client-M1yp71xP.js} +3 -3
- package/dist/{client-CP1Jgq4R.d.ts → client-ShqkrIQ6.d.ts} +2 -2
- package/dist/{client-CU_ot3SS.js → client-lHWyhnKI.js} +2 -2
- package/dist/cms/index.d.ts +1 -1
- package/dist/cms/index.js +1 -1
- package/dist/{config-BGT9h1OW.d.ts → config-CDI6Rb8i.d.ts} +19 -3
- package/dist/{config-DrtdQNzj.js → config-CjwPB89K.js} +4 -60
- package/dist/eav/index.d.ts +23 -20
- package/dist/eav/index.js +6 -3
- package/dist/eav/migrate.d.ts +2 -2
- package/dist/eav/schema.d.ts +2 -2
- package/dist/feedback/index.d.ts +1 -1
- package/dist/feedback/index.js +1 -1
- package/dist/files/index.d.ts +1 -1
- package/dist/files/index.js +1 -1
- package/dist/{http-client-DQf8pVNw.js → http-client-he14vKAL.js} +2 -2
- package/dist/{index-BQaGBa_K.d.ts → index-C6TGVSOF.d.ts} +12 -12
- package/dist/index.d.ts +4 -4
- package/dist/index.js +12 -12
- package/dist/installation/index.d.ts +1 -415
- package/dist/installation/index.js +2 -840
- package/dist/logout/index.d.ts +1 -1
- package/dist/logout/index.js +1 -1
- package/dist/machine/index.d.ts +1 -3
- package/dist/machine/index.js +2 -3
- package/dist/machine/keygen-cli.d.ts +1 -7
- package/dist/machine/keygen-cli.js +2 -55
- package/dist/plans/index.d.ts +1 -1
- package/dist/plans/index.js +1 -1
- package/dist/push/index.d.ts +1 -1
- package/dist/push/index.js +1 -1
- package/dist/{query-ktdIV5kz.js → query-BmI60Jw2.js} +2 -2
- package/dist/react/hooks.d.ts +4 -4
- package/dist/resource/index.d.ts +1 -176
- package/dist/resource/index.js +2 -344
- package/dist/social/index.d.ts +1 -284
- package/dist/social/index.js +2 -305
- package/dist/terms/index.d.ts +1 -1
- package/dist/terms/index.js +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/workspace/index.d.ts +1 -2
- package/dist/workspace/index.js +2 -2
- package/docs/api-reference.md +3 -2
- package/package.json +3 -2
- package/dist/client-BLmIi1fg.js +0 -745
- package/dist/client-DlgVNj3w.d.ts +0 -72
- package/dist/client-OHAVqTBu.js +0 -194
- package/dist/client-seu-0lbh.d.ts +0 -654
- package/dist/keys-B2pA8EkU.d.ts +0 -44
- package/dist/keys-B_R_lsyF.js +0 -102
- package/docs/installation.md +0 -128
- package/docs/machine.md +0 -109
- package/docs/resource.md +0 -75
- package/docs/social.md +0 -92
- package/docs/workspace.md +0 -153
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,62 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [4.7.0-rc.16] — 2026-11-20
|
|
11
|
+
|
|
12
|
+
Pre-release (`npm i @reopt-ai/brandapp-sdk@next`) — 플랫폼 계층을 `@reopt-ai/workspace-sdk@0.1.0-rc.0`으로 분리하고,
|
|
13
|
+
워크스페이스 앱(RFC-0043)의 위임 클라이언트·게시본 읽기를 더했다.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- **플랫폼 계층을 `@reopt-ai/workspace-sdk`로 분리**(RFC-0043 — 워크스페이스 계층이 브랜드앱 계층 아래다). `/workspace`·
|
|
18
|
+
`/social`·`/machine`·`/installation`·`/resource`는 그 패키지의 **재수출**이 되고(같은 구현 — `PlatformApiError` 등
|
|
19
|
+
클래스 정체성도 같다), 이 SDK가 그 패키지에 의존한다. 새 코드는 `@reopt-ai/workspace-sdk`를 직접 import한다 —
|
|
20
|
+
이 서브패스들은 5.0에서 지운다. `reopt-keygen` bin은 그대로 쓸 수 있다(그 패키지 구현을 부르는 shim). id 호스트
|
|
21
|
+
해석(`resolveIdBaseUrl`·`deriveIdFromBaseUrl`·`REOPT_ID_BASE_URLS`)도 그 패키지의 `/urls` 한 벌을 재수출한다.
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- **설치 매니페스트 `kind`**(RFC-0043 워크스페이스 앱) — `kind: "workspace"`는 브랜드·브랜드앱을 만들지 않는 설치다.
|
|
26
|
+
클라이언트는 설치에만 묶이고 용도는 `connect`(멤버 위임 로그인)·`machine`(앱 서버) 둘뿐, `workspace.brandapps`
|
|
27
|
+
선언은 거절된다. 생략은 `"brandapp"`(종전)이고 기본값을 채우지 않으므로 기존 매니페스트의 해시는 그대로다.
|
|
28
|
+
`INSTALLATION_KINDS`·`WORKSPACE_APP_CLIENT_PURPOSES`·`installationKindOf`, `deriveInstallationManifest({ kind })`.
|
|
29
|
+
- **위임 클라이언트 `createConnectClient`**(`/workspace`, RFC-0043) — 워크스페이스 앱의 직원이 리옵트로 로그인해 받은
|
|
30
|
+
**자기** 토큰(설치의 `connect` 클라이언트)으로 `/v1/connect/*`를 부른다: `me`(권한 키 `permissions`)·`members`,
|
|
31
|
+
`works`(파이프라인·업무 목록·생성·수정·이동·삭제), `posts`(그룹·목록·읽기·생성·수정(`baseVersion`)·게시·내리기·삭제),
|
|
32
|
+
`folders`·`files`(업로드 4MB·원본 바이트), `forms`, `inquiries`(목록 — `customer:read`, 단계 이동). 워크스페이스와 행위자는
|
|
33
|
+
요청에 없다(동의 바인딩·토큰의 사용자). 응답 스키마(`connect*Schema`)는 약속한 필드만 검사하고 서버가 더한 필드는 통과시킨다.
|
|
34
|
+
- **게시된 글 읽기**(`/workspace`, RFC-0043 §3.6, scope `posts:read`) — `platform.posts.list({ groupId, limit, offset })`·
|
|
35
|
+
`platform.posts.get(slug)`. 게시된 글만 나온다(초안·보관은 없음). 워크스페이스 앱 공개 사이트의 소식 페이지용 —
|
|
36
|
+
브랜드앱 CMS(`sdk.cms`)는 브랜드앱이 없는 자격에서 쓸 수 없다. `platformPublishedPost{,Summary,Page,ListQuery}Schema`.
|
|
37
|
+
|
|
38
|
+
### Fixed
|
|
39
|
+
|
|
40
|
+
- **`platform.me()`가 워크스페이스 앱 자격에서 파싱 실패하던 것** — 서버는 브랜드앱이 없는 자격에 `brandappId`·
|
|
41
|
+
`defaultBrandId`를 `null`로 답하는데 스키마가 문자열을 요구했다. `PlatformMe`의 두 필드가 `string | null`이다
|
|
42
|
+
(⚠️ 타입이 넓어졌다 — 브랜드앱 자격만 쓰는 코드는 값이 그대로지만 `string`으로 받던 곳은 좁혀야 한다).
|
|
43
|
+
|
|
44
|
+
### Changed
|
|
45
|
+
|
|
46
|
+
- `TypedPatch` 값에 `undefined`도 받는다(`?: T | null | undefined`) — `exactOptionalPropertyTypes`에서 zod
|
|
47
|
+
`.partial()` 출력을 그대로 넘기면 TS2375가 났다. `undefined` 키는 JSON에서 빠지므로 값은 그대로 둔다.
|
|
48
|
+
|
|
49
|
+
## [4.7.0-rc.15] — 2026-11-20
|
|
50
|
+
|
|
51
|
+
Pre-release (`npm i @reopt-ai/brandapp-sdk@next`) — rc.14 타입 클라이언트의 타입 갭 둘(enterprise-bootstrap 보고).
|
|
52
|
+
런타임 동작은 rc.14와 같다.
|
|
53
|
+
|
|
54
|
+
### Changed
|
|
55
|
+
|
|
56
|
+
- **`entity()`의 속성 참조가 스키마 이름으로 좁혀진다** — `filters[].attributeId`·`sortBy`·`select`·`increments`가
|
|
57
|
+
`string`이 아니라 그 엔티티의 속성 이름이라 오타가 컴파일 에러가 된다(rc.14는 런타임 `UNKNOWN_ATTRIBUTE`뿐).
|
|
58
|
+
`where("name")`이 리터럴 이름을 유지하도록 `where`·`FilterExpression`·`AttributeFilter`가 키 타입 인자를 받는다
|
|
59
|
+
(기본값 `string`이라 원시 API·`createFilterBuilder`는 그대로). 스키마 없이 만든 SDK는 종전처럼 아무 문자열이나
|
|
60
|
+
받는다. ⚠️ 타입 클라이언트에 속성 ID를 키로 넘기던 코드는 런타임에선 여전히 통하지만 타입은 이름만 받는다.
|
|
61
|
+
- **`update`·`bulkUpdate`·`backfill`의 값에 `null`을 쓸 수 있다**(`TypedPatch` — 값 지우기, 서버가 받는다).
|
|
62
|
+
`exactOptionalPropertyTypes`에서도 캐스트가 필요 없다.
|
|
63
|
+
- 새 공개 타입: `TypedPatch`, `TypedAttributeFilter`, `TypedListQuery`, `TypedCountQuery`, `TypedDeleteWhereInput`,
|
|
64
|
+
`TypedUpdateInput`, `TypedBackfillOptions`, `AttributeName`(`@reopt-ai/brandapp-sdk/eav`).
|
|
65
|
+
|
|
10
66
|
## [4.7.0-rc.14] — 2026-11-20
|
|
11
67
|
|
|
12
68
|
Pre-release (`npm i @reopt-ai/brandapp-sdk@next`) — 타입 EAV 클라이언트(`sdk.eav.entity(name)`)가 실서버에서
|
package/README.md
CHANGED
|
@@ -72,8 +72,10 @@ const entities = await sdk.eav.entities.list();
|
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
Register `${origin}/.well-known/reopt-client-jwks.json` as the client's
|
|
75
|
-
`jwksUri`.
|
|
76
|
-
[
|
|
75
|
+
`jwksUri`. Machine credentials, installations and the platform API now live in
|
|
76
|
+
[`@reopt-ai/workspace-sdk`](https://www.npmjs.com/package/@reopt-ai/workspace-sdk) — this SDK depends on it
|
|
77
|
+
and keeps `/machine`, `/installation`, `/workspace`, `/social` and `/resource` as re-exports (removed in 5.0).
|
|
78
|
+
Rotation and errors are in that package's machine docs.
|
|
77
79
|
|
|
78
80
|
### Connect to Reopt (installation, 4.7+)
|
|
79
81
|
|
|
@@ -105,7 +107,7 @@ const connection = createReoptConnection({
|
|
|
105
107
|
await connection.requestConnection(); // pending until an operator approves
|
|
106
108
|
```
|
|
107
109
|
|
|
108
|
-
States, the back-channel receiver and key rotation
|
|
110
|
+
States, the back-channel receiver and key rotation are in `@reopt-ai/workspace-sdk`'s installation docs.
|
|
109
111
|
|
|
110
112
|
### Better Auth
|
|
111
113
|
|
package/dist/ai/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as StreamEvent, S as StreamDoneData, _ as ImageGenerateOptions, a as CompletionContentPart, b as ModelInfo, c as CompletionUsage, d as EvaluateOptions, f as EvaluationAnswer, g as FinishReason, h as EvaluationResult, i as ChatMessage, l as CompletionWarning, m as EvaluationQuestion, n as createReoptAiClient, o as CompletionOptions, p as EvaluationInput, r as AgentInfo, s as CompletionResult, t as ReoptAiClient, u as CreditInfo, v as ImageGenerateResult, x as PartProviderMetadata, y as MessageRole } from "../client-
|
|
1
|
+
import { C as StreamEvent, S as StreamDoneData, _ as ImageGenerateOptions, a as CompletionContentPart, b as ModelInfo, c as CompletionUsage, d as EvaluateOptions, f as EvaluationAnswer, g as FinishReason, h as EvaluationResult, i as ChatMessage, l as CompletionWarning, m as EvaluationQuestion, n as createReoptAiClient, o as CompletionOptions, p as EvaluationInput, r as AgentInfo, s as CompletionResult, t as ReoptAiClient, u as CreditInfo, v as ImageGenerateResult, x as PartProviderMetadata, y as MessageRole } from "../client-ShqkrIQ6.js";
|
|
2
2
|
//#region src/ai/evaluator.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* json-render `experimental_composeSpec`의 `evaluate`와 같은 모양(0.21 `Experimental_CompositionEvaluator`).
|
package/dist/ai/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as ReoptSDKError } from "../config-
|
|
2
|
-
import { n as createReoptAiClient, t as ReoptAiClient } from "../client-
|
|
1
|
+
import { S as ReoptSDKError } from "../config-CjwPB89K.js";
|
|
2
|
+
import { n as createReoptAiClient, t as ReoptAiClient } from "../client-D5ZVsy8Y.js";
|
|
3
3
|
|
|
4
4
|
//#region src/ai/evaluator.ts
|
|
5
5
|
function createBrandappEvaluator(source, options = {}) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ReoptSDKConfig } from "../config-
|
|
1
|
+
import { n as ReoptSDKConfig } from "../config-CDI6Rb8i.js";
|
|
2
2
|
import { Experimental_DecisionModelV4, Experimental_DecisionModelV4CallOptions, Experimental_DecisionModelV4Result, ImageModelV3, ImageModelV3CallOptions, LanguageModelV3, LanguageModelV3CallOptions, LanguageModelV3GenerateResult, LanguageModelV3StreamResult, ProviderV3 } from "@ai-sdk/provider";
|
|
3
3
|
//#region src/ai-provider/brandapp-language-model.d.ts
|
|
4
4
|
type BrandappLanguageModelConfig = {
|
|
@@ -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-CjwPB89K.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-D65dmL4A.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createReoptAnalyticsClient, r as AnalyticsConfig, t as ReoptAnalyticsClient } from "../client-
|
|
1
|
+
import { n as createReoptAnalyticsClient, r as AnalyticsConfig, t as ReoptAnalyticsClient } from "../client-C7L3X-6K.js";
|
|
2
2
|
import { identify, pageView, setConsent, track } from "@reopt-ai/data-sdk";
|
|
3
3
|
//#region src/analytics/browser.d.ts
|
|
4
4
|
type BrandappAnalytics = {
|
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-lHWyhnKI.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.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as UserInfoClaims, n as createReoptAuthClient, r as LinkCurrentUserResult, t as ReoptAuthClient } from "../client-
|
|
1
|
+
import { i as UserInfoClaims, n as createReoptAuthClient, r as LinkCurrentUserResult, t as ReoptAuthClient } from "../client-DfsH-x4k.js";
|
|
2
2
|
//#region src/auth/session.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* 세션 쿠키 검증 — apps/id의 Better Auth `/api/auth/get-session`을 호출해
|
package/dist/auth/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as ReoptSDKConfig, t as REOPT_BASE_URLS } from "../config-
|
|
1
|
+
import { n as ReoptSDKConfig, t as REOPT_BASE_URLS } from "../config-CDI6Rb8i.js";
|
|
2
2
|
import { a as REOPT_PROVIDER_IDS, i as REOPT_PROVIDER_ID, n as AdapterRequestBody, o as REOPT_STEP_UP_PROVIDER_ID, r as REOPT_DEFAULT_SCOPES, s as STEP_UP_MAX_AUTH_AGE_SECONDS, t as AdapterOperation } from "../types-FazBnzhg.js";
|
|
3
|
-
import { i as ClientPrivateJwk } from "../keys-B2pA8EkU.js";
|
|
4
3
|
import { T as isReoptSDKError, _ as RateLimitError, t as AuthError, v as ReoptSDKError, x as ServerError } from "../errors-D-Va8oeC.js";
|
|
5
4
|
import { AdapterFactory } from "better-auth/adapters";
|
|
5
|
+
import { ClientPrivateJwk } from "@reopt-ai/workspace-sdk/machine";
|
|
6
6
|
import { PhoneNumberOptions } from "better-auth/plugins/phone-number";
|
|
7
7
|
import { BetterAuthOptions, BetterAuthPlugin } from "better-auth";
|
|
8
8
|
//#region src/better-auth/adapter.d.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
3
|
-
import { o as readClientKeyRing } from "../keys-B_R_lsyF.js";
|
|
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-CjwPB89K.js";
|
|
2
|
+
import { t as BaseHttpClient } from "../http-client-he14vKAL.js";
|
|
4
3
|
import { a as STEP_UP_MAX_AUTH_AGE_SECONDS, i as REOPT_STEP_UP_PROVIDER_ID, n as REOPT_PROVIDER_ID, r as REOPT_PROVIDER_IDS, t as REOPT_DEFAULT_SCOPES } from "../types-DGAVaUCc.js";
|
|
5
4
|
import { createAdapterFactory } from "better-auth/adapters";
|
|
6
5
|
import { createPrivateKeyJwtClientAssertionGetter } from "@better-auth/core/oauth2";
|
|
7
6
|
import { genericOAuth } from "better-auth/plugins";
|
|
7
|
+
import { readClientKeyRing } from "@reopt-ai/workspace-sdk/machine";
|
|
8
8
|
import { phoneNumber } from "better-auth/plugins/phone-number";
|
|
9
9
|
import { APIError, createAuthMiddleware, getIP } from "better-auth/api";
|
|
10
10
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
1
|
+
import { t as BaseHttpClient } from "./http-client-he14vKAL.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-B4pglmTS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as ReoptSDKError, u as BadRequestError } from "./config-
|
|
2
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
3
|
-
import { t as buildQuery } from "./query-
|
|
1
|
+
import { S as ReoptSDKError, u as BadRequestError } from "./config-CjwPB89K.js";
|
|
2
|
+
import { t as BaseHttpClient } from "./http-client-he14vKAL.js";
|
|
3
|
+
import { t as buildQuery } from "./query-BmI60Jw2.js";
|
|
4
4
|
|
|
5
5
|
//#region src/eav/attribute-keys.ts
|
|
6
6
|
const BUILT_IN_SORT_KEYS = /* @__PURE__ */ new Set(["createdAt", "updatedAt"]);
|
|
@@ -740,4 +740,4 @@ function createReoptEavClient(config) {
|
|
|
740
740
|
|
|
741
741
|
//#endregion
|
|
742
742
|
export { RECORDS_PAGE_LIMIT_MAX as i, ATTRIBUTE_FILTER_LIST_MAX as n, ATTRIBUTE_FILTER_OPERATORS as r, createReoptEavClient as t };
|
|
743
|
-
//# sourceMappingURL=client-
|
|
743
|
+
//# sourceMappingURL=client-BFfyuoNI.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ReoptSDKConfig } from "./config-
|
|
1
|
+
import { n as ReoptSDKConfig } from "./config-CDI6Rb8i.js";
|
|
2
2
|
//#region src/files/types.d.ts
|
|
3
3
|
/** 파일 정보 */
|
|
4
4
|
type FileInfo = {
|
|
@@ -269,4 +269,4 @@ declare class ReoptFileClient {
|
|
|
269
269
|
declare function createReoptFileClient(config: ReoptSDKConfig): ReoptFileClient;
|
|
270
270
|
//#endregion
|
|
271
271
|
export { FileListQuery as a, FolderInfo as c, UpdateFolderInput as d, UploadOptions as f, FileInfo as i, FolderListQuery as l, createReoptFileClient as n, FileListResponse as o, CreateFolderInput as r, FileUsageInfo as s, ReoptFileClient as t, UpdateFileInput as u };
|
|
272
|
-
//# sourceMappingURL=client-
|
|
272
|
+
//# sourceMappingURL=client-BpTb2n0k.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ReoptSDKConfig } from "./config-
|
|
1
|
+
import { n as ReoptSDKConfig } from "./config-CDI6Rb8i.js";
|
|
2
2
|
import { a as ListTagsQuery, c as PostGroup, d as Tag, i as ListPostsQuery, o as Post, r as ListPostGroupsQuery, s as PostDetail, t as CmsPaginatedResponse } from "./types-BXDcoJHG.js";
|
|
3
3
|
//#region src/cms/client.d.ts
|
|
4
4
|
/**
|
|
@@ -50,4 +50,4 @@ declare function createReoptCmsClient(config: ReoptSDKConfig): {
|
|
|
50
50
|
};
|
|
51
51
|
//#endregion
|
|
52
52
|
export { createReoptCmsClient as n, ReoptCmsClient as t };
|
|
53
|
-
//# sourceMappingURL=client-
|
|
53
|
+
//# sourceMappingURL=client-BuAtrkbd.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ReoptSDKConfig } from "./config-
|
|
1
|
+
import { n as ReoptSDKConfig } from "./config-CDI6Rb8i.js";
|
|
2
2
|
//#region src/analytics/types.d.ts
|
|
3
3
|
/** `GET /brandapp/{id}/analytics/config` — 브랜드의 reopt-data 브라우저 수집 설정. */
|
|
4
4
|
type AnalyticsConfig = {
|
|
@@ -21,4 +21,4 @@ declare class ReoptAnalyticsClient {
|
|
|
21
21
|
declare function createReoptAnalyticsClient(config: ReoptSDKConfig): ReoptAnalyticsClient;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { createReoptAnalyticsClient as n, AnalyticsConfig as r, ReoptAnalyticsClient as t };
|
|
24
|
-
//# sourceMappingURL=client-
|
|
24
|
+
//# sourceMappingURL=client-C7L3X-6K.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ReoptSDKConfig } from "./config-
|
|
1
|
+
import { n as ReoptSDKConfig } from "./config-CDI6Rb8i.js";
|
|
2
2
|
//#region src/feedback/types.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Feedback processing status. `responded` means staff have answered but the
|
|
@@ -146,4 +146,4 @@ declare class ReoptFeedbackClient {
|
|
|
146
146
|
declare function createReoptFeedbackClient(config: ReoptSDKConfig): ReoptFeedbackClient;
|
|
147
147
|
//#endregion
|
|
148
148
|
export { CreateFeedbackResult as a, FeedbackListMeta as c, FeedbackReplyAuthor as d, FeedbackStatus as f, CreateFeedbackReplyResult as i, FeedbackListResult as l, RateFeedbackReplyResult as m, createReoptFeedbackClient as n, Feedback as o, ListFeedbackQuery as p, CreateFeedbackInput as r, FeedbackDetail as s, ReoptFeedbackClient as t, FeedbackReply as u };
|
|
149
|
-
//# sourceMappingURL=client-
|
|
149
|
+
//# sourceMappingURL=client-CC7rcBX6.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ReoptSDKConfig } from "./config-
|
|
1
|
+
import { n as ReoptSDKConfig } from "./config-CDI6Rb8i.js";
|
|
2
2
|
//#region src/plans/types.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Brandapp Plans types.
|
|
@@ -289,4 +289,4 @@ declare class ReoptPlansClient {
|
|
|
289
289
|
declare function createReoptPlansClient(config: ReoptSDKConfig): ReoptPlansClient;
|
|
290
290
|
//#endregion
|
|
291
291
|
export { CheckoutStatus as a, MeterPricingMode as c, PlanInterval as d, PlanMeter as f, PlanRequiredTerms as h, CheckoutSession as i, Plan as l, PlanPaymentEnvironment as m, createReoptPlansClient as n, CreateCheckoutInput as o, PlanMeterTier as p, CancelSubscriptionResult as r, CurrentPlan as s, ReoptPlansClient as t, PlanBillingModel as u };
|
|
292
|
-
//# sourceMappingURL=client-
|
|
292
|
+
//# sourceMappingURL=client-CJRCG-km.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ReoptSDKConfig } from "./config-
|
|
1
|
+
import { n as ReoptSDKConfig } from "./config-CDI6Rb8i.js";
|
|
2
2
|
import { a as CreateConsentsResult, f as WithdrawConsentResult, i as CreateConsentsRequest, l as TermsListResponse, n as ConsentRecord, o as ListTermsOptions, s as TermsItem } from "./types-C69OzBn6.js";
|
|
3
3
|
//#region src/terms/client.d.ts
|
|
4
4
|
declare class ReoptTermsClient {
|
|
@@ -45,4 +45,4 @@ declare class ReoptTermsClient {
|
|
|
45
45
|
declare function createReoptTermsClient(config: ReoptSDKConfig): ReoptTermsClient;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { createReoptTermsClient as n, ReoptTermsClient as t };
|
|
48
|
-
//# sourceMappingURL=client-
|
|
48
|
+
//# sourceMappingURL=client-CRaeubc_.d.ts.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-CjwPB89K.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-he14vKAL.js";
|
|
4
4
|
|
|
5
5
|
//#region src/files/client.ts
|
|
6
6
|
var ReoptFileClient = class {
|
|
@@ -276,4 +276,4 @@ function createReoptFileClient(config) {
|
|
|
276
276
|
|
|
277
277
|
//#endregion
|
|
278
278
|
export { createReoptFileClient as n, ReoptFileClient as t };
|
|
279
|
-
//# sourceMappingURL=client-
|
|
279
|
+
//# sourceMappingURL=client-CZe_S1HM.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
1
|
+
import { t as BaseHttpClient } from "./http-client-he14vKAL.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-CbQP3u9_.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ReoptSDKConfig } from "./config-
|
|
1
|
+
import { n as ReoptSDKConfig } from "./config-CDI6Rb8i.js";
|
|
2
2
|
//#region src/push/types.d.ts
|
|
3
3
|
/** Push provider — native token kind. */
|
|
4
4
|
type PushProvider = "fcm" | "apns";
|
|
@@ -50,4 +50,4 @@ declare class ReoptPushClient {
|
|
|
50
50
|
declare function createReoptPushClient(config: ReoptSDKConfig): ReoptPushClient;
|
|
51
51
|
//#endregion
|
|
52
52
|
export { RegisterPushTokenInput as a, UnregisterPushTokenInput as c, PushProvider as i, UnregisterPushTokenResult as l, createReoptPushClient as n, RegisterPushTokenResult as o, PushPlatform as r, RegisteredPushDevice as s, ReoptPushClient as t };
|
|
53
|
-
//# sourceMappingURL=client-
|
|
53
|
+
//# sourceMappingURL=client-CcoGEXUB.d.ts.map
|
|
@@ -1,23 +1,56 @@
|
|
|
1
|
-
import { A as ListRecordsQuery, C as EavAttribute, D as EavRecord, E as EavEntity, F as UpdateRecordInput, I as UpsertRecordInput, L as UpsertRecordResult, N as UpdateAttributeInput, P as UpdateEntityInput, S as DeleteWhereInput, _ as BulkUpdateItem, b as CreateEntityInput, c as InferValues, f as AttributeFilter, g as BackfillResult, h as BackfillOptions, j as PaginatedResponse, l as SchemaDef, n as ReoptSDKConfig, s as EntityDef, v as CountRecordsQuery, x as CreateRecordInput, y as CreateAttributeInput } from "./config-
|
|
1
|
+
import { A as ListRecordsQuery, C as EavAttribute, D as EavRecord, E as EavEntity, F as UpdateRecordInput, I as UpsertRecordInput, L as UpsertRecordResult, N as UpdateAttributeInput, P as UpdateEntityInput, S as DeleteWhereInput, _ as BulkUpdateItem, b as CreateEntityInput, c as InferValues, f as AttributeFilter, g as BackfillResult, h as BackfillOptions, j as PaginatedResponse, l as SchemaDef, n as ReoptSDKConfig, s as EntityDef, v as CountRecordsQuery, x as CreateRecordInput, y as CreateAttributeInput } from "./config-CDI6Rb8i.js";
|
|
2
2
|
//#region src/eav/typed-client.d.ts
|
|
3
3
|
/** EavRecord with typed values instead of Record<string, unknown> */
|
|
4
4
|
type TypedEavRecord<V> = Omit<EavRecord, "values"> & {
|
|
5
5
|
values: V;
|
|
6
6
|
};
|
|
7
|
+
/** Attribute names of a typed entity's values. */
|
|
8
|
+
type AttributeName<V> = keyof V & string;
|
|
9
|
+
/** A filter written by attribute name — `where("name")` keeps the literal. */
|
|
10
|
+
type TypedAttributeFilter<V> = AttributeFilter<AttributeName<V>>;
|
|
11
|
+
/**
|
|
12
|
+
* A partial write. `null` clears a value (the server accepts it); `undefined`
|
|
13
|
+
* leaves it alone (dropped by JSON), so zod `.partial()` output passes as-is
|
|
14
|
+
* under `exactOptionalPropertyTypes`.
|
|
15
|
+
*/
|
|
16
|
+
type TypedPatch<V> = { [A in keyof V]?: V[A] | null | undefined; };
|
|
17
|
+
type TypedListQuery<V> = Omit<ListRecordsQuery, "filters" | "sortBy" | "select"> & {
|
|
18
|
+
filters?: TypedAttributeFilter<V>[];
|
|
19
|
+
sortBy?: "createdAt" | "updatedAt" | AttributeName<V>;
|
|
20
|
+
select?: AttributeName<V>[];
|
|
21
|
+
};
|
|
22
|
+
type TypedCountQuery<V> = Omit<CountRecordsQuery, "filters"> & {
|
|
23
|
+
filters?: TypedAttributeFilter<V>[];
|
|
24
|
+
};
|
|
25
|
+
type TypedDeleteWhereInput<V> = Omit<DeleteWhereInput, "filters"> & {
|
|
26
|
+
filters: TypedAttributeFilter<V>[];
|
|
27
|
+
};
|
|
28
|
+
type TypedUpdateInput<V> = Omit<UpdateRecordInput, "values" | "increments"> & {
|
|
29
|
+
values?: TypedPatch<V>;
|
|
30
|
+
/** Atomic number deltas keyed by attribute name. */
|
|
31
|
+
increments?: Partial<Record<AttributeName<V>, number>>;
|
|
32
|
+
};
|
|
33
|
+
type TypedBackfillOptions<V> = Omit<BackfillOptions, "transform" | "filters" | "sortBy"> & {
|
|
34
|
+
filters?: TypedAttributeFilter<V>[];
|
|
35
|
+
sortBy?: TypedListQuery<V>["sortBy"];
|
|
36
|
+
/** Receives the record with name-keyed values; returns name-keyed values. */
|
|
37
|
+
transform: (record: TypedEavRecord<V>) => TypedPatch<V> | null | undefined;
|
|
38
|
+
};
|
|
7
39
|
/**
|
|
8
40
|
* Entity-scoped client with typed records API.
|
|
9
41
|
*
|
|
10
42
|
* Every attribute reference — `values`, `increments`, `filters[].attributeId`,
|
|
11
|
-
* `sortBy`, `select` — is written by **attribute name**
|
|
12
|
-
*
|
|
13
|
-
* translates to the server's attribute IDs and rejects unknown keys
|
|
14
|
-
* `UNKNOWN_ATTRIBUTE` instead of letting the server drop them
|
|
43
|
+
* `sortBy`, `select` — is written by **attribute name** and checked against
|
|
44
|
+
* the schema at compile time; returned records carry name-keyed `values`.
|
|
45
|
+
* The client translates to the server's attribute IDs and rejects unknown keys
|
|
46
|
+
* at run time with `UNKNOWN_ATTRIBUTE` instead of letting the server drop them
|
|
47
|
+
* (an attribute ID is also accepted at run time, behind a cast).
|
|
15
48
|
*/
|
|
16
49
|
type EntityClient<E extends EntityDef> = {
|
|
17
50
|
readonly entityName: string;
|
|
18
51
|
records: {
|
|
19
|
-
list(query?:
|
|
20
|
-
findOne(query?: Omit<
|
|
52
|
+
list(query?: TypedListQuery<InferValues<E>>): Promise<PaginatedResponse<TypedEavRecord<InferValues<E>>>>;
|
|
53
|
+
findOne(query?: Omit<TypedListQuery<InferValues<E>>, "page">): Promise<TypedEavRecord<InferValues<E>> | null>;
|
|
21
54
|
create(input: {
|
|
22
55
|
authUserId?: string;
|
|
23
56
|
values: InferValues<E>;
|
|
@@ -26,17 +59,13 @@ type EntityClient<E extends EntityDef> = {
|
|
|
26
59
|
}): Promise<TypedEavRecord<InferValues<E>>>;
|
|
27
60
|
upsert(input: {
|
|
28
61
|
authUserId?: string;
|
|
29
|
-
filters:
|
|
62
|
+
filters: TypedAttributeFilter<InferValues<E>>[];
|
|
30
63
|
values: InferValues<E>;
|
|
31
64
|
}): Promise<UpsertRecordResult<TypedEavRecord<InferValues<E>>>>;
|
|
32
65
|
get(recordId: string): Promise<TypedEavRecord<InferValues<E>>>;
|
|
33
|
-
update(recordId: string, input:
|
|
34
|
-
values?: Partial<InferValues<E>>;
|
|
35
|
-
/** Atomic number deltas keyed by attribute name. */
|
|
36
|
-
increments?: Partial<Record<keyof InferValues<E> & string, number>>;
|
|
37
|
-
}): Promise<TypedEavRecord<InferValues<E>>>;
|
|
66
|
+
update(recordId: string, input: TypedUpdateInput<InferValues<E>>): Promise<TypedEavRecord<InferValues<E>>>;
|
|
38
67
|
delete(recordId: string): Promise<void>;
|
|
39
|
-
count(query?:
|
|
68
|
+
count(query?: TypedCountQuery<InferValues<E>>): Promise<number>;
|
|
40
69
|
bulkCreate(records: Array<{
|
|
41
70
|
authUserId?: string;
|
|
42
71
|
values: InferValues<E>;
|
|
@@ -45,14 +74,11 @@ type EntityClient<E extends EntityDef> = {
|
|
|
45
74
|
bulkDelete(ids: string[]): Promise<number>;
|
|
46
75
|
bulkUpdate(updates: Array<{
|
|
47
76
|
id: string;
|
|
48
|
-
values:
|
|
77
|
+
values: TypedPatch<InferValues<E>>;
|
|
49
78
|
}>): Promise<TypedEavRecord<InferValues<E>>[]>;
|
|
50
|
-
deleteWhere(input:
|
|
51
|
-
listAll(query?: Omit<
|
|
52
|
-
|
|
53
|
-
backfill(opts: Omit<BackfillOptions, "transform"> & {
|
|
54
|
-
transform: (record: TypedEavRecord<InferValues<E>>) => Partial<InferValues<E>> | null | undefined;
|
|
55
|
-
}): Promise<BackfillResult>;
|
|
79
|
+
deleteWhere(input: TypedDeleteWhereInput<InferValues<E>>): Promise<number>;
|
|
80
|
+
listAll(query?: Omit<TypedListQuery<InferValues<E>>, "page">): AsyncGenerator<TypedEavRecord<InferValues<E>>>;
|
|
81
|
+
backfill(opts: TypedBackfillOptions<InferValues<E>>): Promise<BackfillResult>;
|
|
56
82
|
};
|
|
57
83
|
};
|
|
58
84
|
//#endregion
|
|
@@ -118,5 +144,5 @@ type ReoptEavClient<S extends SchemaDef = SchemaDef> = {
|
|
|
118
144
|
};
|
|
119
145
|
declare function createReoptEavClient<S extends SchemaDef = SchemaDef>(config: ReoptSDKConfig<S>): ReoptEavClient<S>;
|
|
120
146
|
//#endregion
|
|
121
|
-
export {
|
|
122
|
-
//# sourceMappingURL=client-
|
|
147
|
+
export { TypedAttributeFilter as a, TypedDeleteWhereInput as c, TypedPatch as d, TypedUpdateInput as f, EntityClient as i, TypedEavRecord as l, createReoptEavClient as n, TypedBackfillOptions as o, AttributeName as r, TypedCountQuery as s, ReoptEavClient as t, TypedListQuery as u };
|
|
148
|
+
//# sourceMappingURL=client-ChLjP8Zx.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
1
|
+
import { t as BaseHttpClient } from "./http-client-he14vKAL.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-D3zSBcPj.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-CjwPB89K.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-he14vKAL.js";
|
|
4
4
|
import { n as parseSSEStream } from "./sse-parser-D65dmL4A.js";
|
|
5
5
|
|
|
6
6
|
//#region src/ai/client.ts
|
|
@@ -262,7 +262,7 @@ var ReoptAiClient = class {
|
|
|
262
262
|
}
|
|
263
263
|
async fetchSSE(options) {
|
|
264
264
|
const url = `${this.http.requestBaseUrl}/chat/completions`;
|
|
265
|
-
const requestId = globalThis.crypto?.randomUUID?.() ?? `sdk-${"4.7.0-rc.
|
|
265
|
+
const requestId = globalThis.crypto?.randomUUID?.() ?? `sdk-${"4.7.0-rc.16"}-${url.length}`;
|
|
266
266
|
const ctx = {
|
|
267
267
|
method: "POST",
|
|
268
268
|
url,
|
|
@@ -343,4 +343,4 @@ function createReoptAiClient(config) {
|
|
|
343
343
|
|
|
344
344
|
//#endregion
|
|
345
345
|
export { createReoptAiClient as n, ReoptAiClient as t };
|
|
346
|
-
//# sourceMappingURL=client-
|
|
346
|
+
//# sourceMappingURL=client-D5ZVsy8Y.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
1
|
+
import { t as BaseHttpClient } from "./http-client-he14vKAL.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-DU8XR4_z.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
1
|
+
import { t as BaseHttpClient } from "./http-client-he14vKAL.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plans/client.ts
|
|
4
4
|
function unwrap(body) {
|
|
@@ -143,4 +143,4 @@ function createReoptPlansClient(config) {
|
|
|
143
143
|
|
|
144
144
|
//#endregion
|
|
145
145
|
export { createReoptPlansClient as n, ReoptPlansClient as t };
|
|
146
|
-
//# sourceMappingURL=client-
|
|
146
|
+
//# sourceMappingURL=client-DeyC3NFp.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ReoptSDKConfig } from "./config-
|
|
1
|
+
import { n as ReoptSDKConfig } from "./config-CDI6Rb8i.js";
|
|
2
2
|
//#region src/auth/types.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* User-scoped auth types.
|
|
@@ -68,4 +68,4 @@ declare class ReoptAuthClient {
|
|
|
68
68
|
declare function createReoptAuthClient(config: ReoptSDKConfig): ReoptAuthClient;
|
|
69
69
|
//#endregion
|
|
70
70
|
export { UserInfoClaims as i, createReoptAuthClient as n, LinkCurrentUserResult as r, ReoptAuthClient as t };
|
|
71
|
-
//# sourceMappingURL=client-
|
|
71
|
+
//# sourceMappingURL=client-DfsH-x4k.d.ts.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-he14vKAL.js";
|
|
2
|
+
import { t as buildQuery } from "./query-BmI60Jw2.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-M1yp71xP.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ReoptSDKConfig } from "./config-
|
|
1
|
+
import { n as ReoptSDKConfig } from "./config-CDI6Rb8i.js";
|
|
2
2
|
//#region src/ai/types.d.ts
|
|
3
3
|
/** 메시지 역할 */
|
|
4
4
|
type MessageRole = "system" | "user" | "assistant";
|
|
@@ -407,4 +407,4 @@ declare class ReoptAiClient {
|
|
|
407
407
|
declare function createReoptAiClient(config: ReoptSDKConfig): ReoptAiClient;
|
|
408
408
|
//#endregion
|
|
409
409
|
export { StreamEvent as C, StreamDoneData as S, ImageGenerateOptions as _, CompletionContentPart as a, ModelInfo as b, CompletionUsage as c, EvaluateOptions as d, EvaluationAnswer as f, FinishReason as g, EvaluationResult as h, ChatMessage as i, CompletionWarning as l, EvaluationQuestion as m, createReoptAiClient as n, CompletionOptions as o, EvaluationInput as p, AgentInfo as r, CompletionResult as s, ReoptAiClient as t, CreditInfo as u, ImageGenerateResult as v, PartProviderMetadata as x, MessageRole as y };
|
|
410
|
-
//# sourceMappingURL=client-
|
|
410
|
+
//# sourceMappingURL=client-ShqkrIQ6.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
1
|
+
import { t as BaseHttpClient } from "./http-client-he14vKAL.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-lHWyhnKI.js.map
|
package/dist/cms/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ListTagsQuery, c as PostGroup, d as Tag, i as ListPostsQuery, l as PostSeo, n as EditorSpec, o as Post, r as ListPostGroupsQuery, s as PostDetail, t as CmsPaginatedResponse, u as PostStatus } from "../types-BXDcoJHG.js";
|
|
2
|
-
import { n as createReoptCmsClient, t as ReoptCmsClient } from "../client-
|
|
2
|
+
import { n as createReoptCmsClient, t as ReoptCmsClient } from "../client-BuAtrkbd.js";
|
|
3
3
|
//#region src/cms/helpers.d.ts
|
|
4
4
|
type SeoMetadata = {
|
|
5
5
|
title?: string;
|
package/dist/cms/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "@reopt-ai/workspace-sdk/urls";
|
|
1
2
|
//#region src/eav/types.d.ts
|
|
2
3
|
type EavDataType = "string" | "textarea" | "number" | "boolean" | "date" | "email" | "url" | "select" | "multiselect";
|
|
3
4
|
/**
|
|
@@ -135,8 +136,12 @@ type AttributeFilterOperator = (typeof ATTRIBUTE_FILTER_OPERATORS)[number];
|
|
|
135
136
|
type AttributeFilterListValue = string | number | boolean | null;
|
|
136
137
|
/** Maximum number of entries in one `in` / `not_in` list (server-enforced). */
|
|
137
138
|
declare const ATTRIBUTE_FILTER_LIST_MAX = 100;
|
|
138
|
-
type AttributeFilter = {
|
|
139
|
-
|
|
139
|
+
type AttributeFilter<K extends string = string> = {
|
|
140
|
+
/**
|
|
141
|
+
* Attribute ID for the raw `records.*` API. In the typed `entity()` client
|
|
142
|
+
* this is the attribute **name** (narrowed to the schema's names).
|
|
143
|
+
*/
|
|
144
|
+
attributeId: K;
|
|
140
145
|
operator: AttributeFilterOperator;
|
|
141
146
|
/**
|
|
142
147
|
* `in` / `not_in` require a non-empty array of at most
|
|
@@ -357,6 +362,17 @@ declare const REOPT_BASE_URLS: {
|
|
|
357
362
|
readonly production: "https://brandapp.reopt.ai";
|
|
358
363
|
readonly development: "https://brand.local.reopt.io";
|
|
359
364
|
};
|
|
365
|
+
/**
|
|
366
|
+
* Better Auth handler (`/api/auth/*`) and CLI device-flow endpoints live on
|
|
367
|
+
* the dedicated id server, not the main API host. SDK helpers that hit OIDC
|
|
368
|
+
* (`getUserInfo`, OAuth discovery) must use these URLs.
|
|
369
|
+
*
|
|
370
|
+
* Override via `config.idBaseUrl` or the `REOPT_ID_BASE_URL` env var. If only
|
|
371
|
+
* the main host is overridden (`config.baseUrl` or `REOPT_BASE_URL`), the id
|
|
372
|
+
* host is auto-derived via {@link deriveIdFromBaseUrl} — e.g. setting
|
|
373
|
+
* `REOPT_BASE_URL=https://brand.local.reopt.io` is enough; `id.local.reopt.io` is
|
|
374
|
+
* inferred automatically.
|
|
375
|
+
*/
|
|
360
376
|
type ReoptSDKConfig<S extends SchemaDef = SchemaDef> = {
|
|
361
377
|
/**
|
|
362
378
|
* OAuth Client ID. Required for Basic Auth (client credentials). **Optional**
|
|
@@ -465,4 +481,4 @@ type ReoptSDKConfig<S extends SchemaDef = SchemaDef> = {
|
|
|
465
481
|
declare function resolveBaseUrl(config: ReoptSDKConfig): string;
|
|
466
482
|
//#endregion
|
|
467
483
|
export { ListRecordsQuery as A, EavAttribute as C, EavRecord as D, EavEntity as E, UpdateRecordInput as F, UpsertRecordInput as I, UpsertRecordResult as L, RECORDS_PAGE_LIMIT_MAX as M, UpdateAttributeInput as N, EavSchemaLinkedTo as O, UpdateEntityInput as P, DeleteWhereInput as S, EavDataType as T, BulkUpdateItem as _, DebugLogger as a, CreateEntityInput as b, InferValues as c, ATTRIBUTE_FILTER_OPERATORS as d, AttributeFilter as f, BackfillResult as g, BackfillOptions as h, DebugLevel as i, PaginatedResponse as j, EavValidation as k, SchemaDef as l, AttributeFilterOperator as m, ReoptSDKConfig as n, AttributeDef as o, AttributeFilterListValue as p, resolveBaseUrl as r, EntityDef as s, REOPT_BASE_URLS as t, ATTRIBUTE_FILTER_LIST_MAX as u, CountRecordsQuery as v, EavAttributeOption as w, CreateRecordInput as x, CreateAttributeInput as y };
|
|
468
|
-
//# sourceMappingURL=config-
|
|
484
|
+
//# sourceMappingURL=config-CDI6Rb8i.d.ts.map
|