@reopt-ai/brandapp-sdk 4.7.0-rc.17 → 4.7.0-rc.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/README.md +9 -3
  3. package/dist/ai/index.d.ts +1 -1
  4. package/dist/ai/index.js +2 -2
  5. package/dist/ai-provider/index.d.ts +5 -2
  6. package/dist/ai-provider/index.js +1 -1
  7. package/dist/analytics/index.d.ts +1 -1
  8. package/dist/analytics/index.js +1 -1
  9. package/dist/auth/index.d.ts +1 -1
  10. package/dist/auth/index.js +1 -1
  11. package/dist/better-auth/client.d.ts +1 -1
  12. package/dist/better-auth/client.js +1 -1
  13. package/dist/better-auth/index.d.ts +3 -3
  14. package/dist/better-auth/index.js +4 -4
  15. package/dist/{client-CcoGEXUB.d.ts → client-1bKsyJyo.d.ts} +2 -2
  16. package/dist/{client-DJemYtoz.js → client-B6lzuAA9.js} +4 -4
  17. package/dist/{client-DfsH-x4k.d.ts → client-B8pBCudo.d.ts} +2 -2
  18. package/dist/{client-CRaeubc_.d.ts → client-BT1MQfQF.d.ts} +2 -2
  19. package/dist/{client-CVeE_j0G.js → client-C40CSsIa.js} +4 -4
  20. package/dist/{client-CeyTfrL7.js → client-CIhl2PY7.js} +2 -2
  21. package/dist/{client-D1iwvFdf.js → client-CRhgd-ua.js} +3 -3
  22. package/dist/{client-C7L3X-6K.d.ts → client-CTagug07.d.ts} +2 -2
  23. package/dist/{client-BpTb2n0k.d.ts → client-CUC1Ignp.d.ts} +2 -2
  24. package/dist/{client-Dsp0BKoL.js → client-CV0tF5Ks.js} +2 -2
  25. package/dist/{client-CVeBSkoM.js → client-CxHEiGgA.js} +2 -2
  26. package/dist/{client-60obCSiP.js → client-CxJrZ2Mp.js} +2 -2
  27. package/dist/{client-CC7rcBX6.d.ts → client-D9z_dcrN.d.ts} +2 -2
  28. package/dist/{client-0WbiigTy.js → client-DUSN1VHA.js} +3 -3
  29. package/dist/{client-BDa6bFFM.js → client-DlR4d-wh.js} +2 -2
  30. package/dist/{client-ShqkrIQ6.d.ts → client-DqZXU9pY.d.ts} +2 -2
  31. package/dist/{client-BuAtrkbd.d.ts → client-DuzINPQo.d.ts} +2 -2
  32. package/dist/{client-ChLjP8Zx.d.ts → client-KkCYwia-.d.ts} +6 -2
  33. package/dist/{client-BOBNqTK-.js → client-RZnBdWRi.js} +2 -2
  34. package/dist/{client-CJRCG-km.d.ts → client-qL_92Irv.d.ts} +2 -2
  35. package/dist/cms/index.d.ts +1 -1
  36. package/dist/cms/index.js +1 -1
  37. package/dist/{config-CDI6Rb8i.d.ts → config-BugNVP5q.d.ts} +5 -1
  38. package/dist/{config-Dz4Qk5qN.js → config-CVP1tz1i.js} +68 -14
  39. package/dist/eav/index.d.ts +3 -3
  40. package/dist/eav/index.js +2 -2
  41. package/dist/eav/migrate.d.ts +17 -2
  42. package/dist/eav/migrate.js +15 -0
  43. package/dist/eav/schema.d.ts +12 -2
  44. package/dist/eav/schema.js +10 -0
  45. package/dist/{errors-D-Va8oeC.d.ts → errors-suUYUdWb.d.ts} +17 -3
  46. package/dist/feedback/index.d.ts +1 -1
  47. package/dist/feedback/index.js +1 -1
  48. package/dist/files/index.d.ts +1 -1
  49. package/dist/files/index.js +1 -1
  50. package/dist/{http-client-BqV3EwdH.js → http-client-Bmx6EffK.js} +4 -3
  51. package/dist/{index-C6TGVSOF.d.ts → index-nJgNCO5P.d.ts} +12 -12
  52. package/dist/index.d.ts +6 -6
  53. package/dist/index.js +13 -13
  54. package/dist/logout/index.d.ts +1 -1
  55. package/dist/logout/index.js +1 -1
  56. package/dist/plans/index.d.ts +1 -1
  57. package/dist/plans/index.js +1 -1
  58. package/dist/push/index.d.ts +1 -1
  59. package/dist/push/index.js +1 -1
  60. package/dist/{query-DZ80YmH1.js → query-jIN6hp6x.js} +2 -2
  61. package/dist/react/hooks.d.ts +5 -5
  62. package/dist/superadmin/index.d.ts +1 -80
  63. package/dist/superadmin/index.js +2 -147
  64. package/dist/terms/index.d.ts +1 -1
  65. package/dist/terms/index.js +1 -1
  66. package/dist/testing/index.d.ts +1 -1
  67. package/dist/{types-FazBnzhg.d.ts → types-BFg1ywqD.d.ts} +2 -8
  68. package/dist/types-Dq032jKk.js +12 -0
  69. package/docs/api-reference.md +3 -2
  70. package/docs/environment.md +10 -0
  71. package/docs/errors.md +12 -0
  72. package/docs/superadmin.md +12 -47
  73. package/package.json +2 -2
  74. package/dist/types-DGAVaUCc.js +0 -17
package/CHANGELOG.md CHANGED
@@ -7,6 +7,57 @@ This project adheres to [Semantic Versioning](https://semver.org/).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [4.7.0-rc.19] — 2026-11-22
11
+
12
+ Pre-release (`npm i @reopt-ai/brandapp-sdk@next`) — `@reopt-ai/workspace-sdk@0.1.0-rc.10`을 싣는다.
13
+
14
+ ### Changed (breaking — `/workspace` 재수출만)
15
+
16
+ - `@reopt-ai/brandapp-sdk/workspace`는 `@reopt-ai/workspace-sdk`의 재수출이라 그 패키지의 rc.10 변경이 그대로 온다: 위임
17
+ 클라이언트(`createConnectClient`)의 목록이 전부 `{ items, nextOffset }`, 쓰기가 객체 전체, 기계 `platform.posts.list`가
18
+ `{ posts }` → `{ items }`. 옮기는 표는 workspace-sdk의 `docs/workspace.md` "Migrating from 0.1.0-rc.9". 브랜드앱 표면
19
+ (`createBrandappSdk`·`cms`·`eav`·결제·인증)은 바뀌지 않았다.
20
+ - 새 서브패스(`/connect`·`/permissions`·`/webhooks`)는 여기서 재수출하지 않는다 — 워크스페이스 앱은 `@reopt-ai/workspace-sdk`를 직접 쓴다
21
+ (`/workspace` 재수출은 5.0에서 제거).
22
+
23
+ ### Fixed
24
+
25
+ - **400 `VALIDATION_ERROR`의 필드별 이유가 버려지던 것.** 서버는 요청 검증 실패를 400 + `fields`로 보내는데 SDK는 422에서만
26
+ 읽었다. `BadRequestError`가 `fieldErrors`·`getFieldError()`·`toFieldMap()`을 갖고(클래스·상태·코드는 그대로),
27
+ `fieldErrorsOf(error)`가 400·422를 가리지 않고 읽는다.
28
+
29
+ ### Security
30
+
31
+ - `/resource` 재수출 — 키에 묶인 위임 토큰의 DPoP 증명 검증, 재생 저장소 기본값(workspace-sdk rc.10 "Security").
32
+
33
+ ## [4.7.0-rc.18] — 2026-11-21
34
+
35
+ Pre-release (`npm i @reopt-ai/brandapp-sdk@next`) — `@reopt-ai/workspace-sdk@0.1.0-rc.9`를 싣는다. 소비자 SDK 리뷰 결과:
36
+ 브라우저 앱 자격 거절(Security), `/superadmin`·EAV 스키마 변경 표면 deprecated(관리자 표면은 workspace-sdk·CLI로).
37
+
38
+ ### Deprecated
39
+
40
+ - EAV **스키마 변경** 표면 — `eav.entities.create/update/delete`·`eav.attributes.*`, `/eav/schema`의 `syncSchema`·`applySync`,
41
+ `/eav/migrate`의 실행기 `runMigration*`·`createMigrationContext`. (`defineMigration`·`isMigration`·마이그레이션 타입은
42
+ 사용자 마이그레이션 파일이 import하는 **정의** 도우미라 남는다.) CLI는 이 실행기를 자기 사본(`@reopt-ai/cli` 내부)으로 돌려
43
+ 더 이상 이 경로를 쓰지 않는다. 스키마 변경은 관리자 표면이라 소비자 SDK에서는
44
+ 5.0에서 뺀다. 서버 관리 도구는 `@reopt-ai/workspace-sdk`의 `createPlatformClient().eav.applySchema`(기계 자격, scope
45
+ `workspace:admin`)를, 손으로는 CLI `reopt brandapp eav sync`를 쓴다. 스키마 **정의**(`defineSchema`·`defineEntity`·타입이 있는
46
+ `entity()`)와 레코드 API, `computeDiff`·`assessCompatibility` 같은 순수 도우미는 그대로 남는다.
47
+ - `/superadmin` — 운영자 가드는 관리자 표면이라 `@reopt-ai/workspace-sdk/operator`로 옮겼다. 이 서브패스는 그 재수출이고
48
+ 5.0에서 지운다(import 경로만 바꾸면 된다). `REOPT_PROVIDER_ID`·`REOPT_PROVIDER_IDS`·`REOPT_STEP_UP_PROVIDER_ID`·
49
+ `STEP_UP_MAX_AUTH_AGE_SECONDS`도 정본이 그 모듈이고 `/better-auth`가 재수출한다 — 로그인과 가드가 다른 값을 들 수 없다.
50
+
51
+ ### Security
52
+
53
+ - **Breaking (browser)** — 브라우저·워커에서 **앱 자격**을 모두 거절한다. 종전엔 `clientSecret`만 막고 브라우저용으로
54
+ `/token/mint` 서비스 토큰을 권했는데, 그 토큰은 고객 구분이 없는 앱 전체 자격이라 받은 방문자 누구나 모든 고객의
55
+ EAV 레코드·파일을 읽고 바꾸고(기본 scope `eav:migrate`로는 스키마까지) 바꿀 수 있었다. 이제 서비스 토큰(`iss`
56
+ `reopt-cli-mint`)·기계 자격(`authorization`)은 `CONFIG_BROWSER_APP_CREDENTIAL`, `clientSecret`은 종전대로
57
+ `CONFIG_BROWSER_SECRET`. 브라우저 자격은 로그인한 **고객의 액세스 토큰**(`{ token }`) 하나다 — 고객 표면(CMS·AI·플랜·
58
+ 약관·분석·`/me`)에만 닿는다. 모듈 클라이언트(`createReoptEavClient` 등)를 직접 만들어도 같은 가드를 지난다(종전엔
59
+ `createReoptSDK`·`createBrandappProvider`만).
60
+
10
61
  ## [4.7.0-rc.17] — 2026-11-20
11
62
 
12
63
  Pre-release (`npm i @reopt-ai/brandapp-sdk@next`) — `@reopt-ai/workspace-sdk@0.1.0-rc.1`을 싣는다. 옛 서브패스
package/README.md CHANGED
@@ -426,6 +426,12 @@ const all = await collectAll(sdk.eav.entity("contacts").records.listAll());
426
426
 
427
427
  ### Schema Sync
428
428
 
429
+ > **Deprecated in this SDK — admin surface.** Changing the schema is an admin action, not part of a
430
+ > customer-facing app. It leaves this SDK in 5.0. Admin tooling on a server should call
431
+ > `createPlatformClient().eav.applySchema({ brandapp, operations })` from `@reopt-ai/workspace-sdk`
432
+ > (machine credential, scope `workspace:admin`, together with the workspace apply lock). By hand, run
433
+ > `reopt brandapp eav sync`. Schema _definitions_ (`defineSchema`, typed `entity()`) and the record APIs stay here.
434
+
429
435
  Sync your schema definition to the server programmatically:
430
436
 
431
437
  ```typescript
@@ -467,9 +473,9 @@ const meta = asJson<Meta>(record.values.meta); // Meta | undefined
467
473
  | `"./better-auth"` | `createReoptBetterAuth`, `createReoptAdapter`, `createReoptOAuth` | Yes |
468
474
  | `"./better-auth/client"` | `signInWithReopt` (`{ stepUp }`), `linkReoptAccount`, `REOPT_PROVIDER_ID(S)` | Yes |
469
475
  | `"./eav"` | `createReoptEavClient`, `collectAll`, EAV types, `TypedEavRecord`, `EntityClient` | No |
470
- | `"./eav/schema"` | `defineEntity`, `defineSchema`, `syncSchema`, `computeDiff`, schema/sync types | No |
476
+ | `"./eav/schema"` | `defineEntity`, `defineSchema`, `computeDiff`, types — `syncSchema`/`applySync` deprecated (admin, see above) | No |
471
477
  | `"./eav/coerce"` | `asString`, `asNumber`, `asBoolean`, `asDate`, `asJson`, `asStringArray` | No |
472
- | `"./eav/migrate"` | `defineMigration`, `runMigrations`, migration types | No |
478
+ | `"./eav/migrate"` | `defineMigration` (definition, stays); runners `runMigration*` deprecated (admin — the CLI runs migrations) | No |
473
479
  | `"./ai"` / `"./ai-provider"` | `ReoptAiClient` / `createBrandappProvider` (Vercel AI SDK) | No |
474
480
  | `"./auth"` | `getSessionFromCookies`, `verifySession`, `sdk.auth` client | No |
475
481
  | `"./cms"` | `sdk.cms` types + `toMetadata` / `toSitemapItems` / `toRssFeed` / `EditorSpec` | No |
@@ -485,7 +491,7 @@ const meta = asJson<Meta>(record.values.meta); // Meta | undefined
485
491
  | `"./social"` | `createSocialClient` — social operations platform API: convert · review · submit · propose (**server-only**) | No |
486
492
  | `"./machine"` | `createMachineClient`, `readClientKeyRing`, `buildClientJwks` — machine credentials (**server-only**) | No (`@better-auth/core`) |
487
493
  | `"./resource"` | `createResourceVerifier`, `createRedisDpopReplayStore` — verify reopt machine tokens on your API (**server-only**) | No (`@better-auth/core`) |
488
- | `"./superadmin"` | `requireOperator`, `evaluateOperator`, `decodeIdTokenClaims` — operator guard from reopt id-token claims | No |
494
+ | `"./superadmin"` | **Deprecated** re-export of `@reopt-ai/workspace-sdk/operator` (operator guard) — removed in 5.0 | No |
489
495
  | `"./dev"` / `"./testing"` | `createDevServer` / `createTestSDK` (local dev + fixtures) | No |
490
496
 
491
497
  > Full signatures for every sub-path: [`docs/api-reference.md`](./docs/api-reference.md).
@@ -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-ShqkrIQ6.js";
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-DqZXU9pY.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-Dz4Qk5qN.js";
2
- import { n as createReoptAiClient, t as ReoptAiClient } from "../client-CVeE_j0G.js";
1
+ import { S as ReoptSDKError } from "../config-CVP1tz1i.js";
2
+ import { n as createReoptAiClient, t as ReoptAiClient } from "../client-C40CSsIa.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-CDI6Rb8i.js";
1
+ import { n as ReoptSDKConfig } from "../config-BugNVP5q.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 = {
@@ -106,7 +106,10 @@ type BrandappProviderConfig = {
106
106
  clientSecret?: string;
107
107
  /** BrandApp ID */
108
108
  brandappId: string;
109
- /** Short-lived service token minted by `/token/mint`. */
109
+ /**
110
+ * Bearer token — on the server a `/token/mint` service token; in the browser only the
111
+ * signed-in customer's access token (app credentials are refused there, see {@link assertBrowserSafe}).
112
+ */
110
113
  token?: string;
111
114
  /**
112
115
  * RFC-0034 per-request auth header provider — pass `machine.headers` from
@@ -1,4 +1,4 @@
1
- import { i as resolveBaseUrl, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig, r as assertBrowserSafe } from "../config-Dz4Qk5qN.js";
1
+ import { M as mapHttpStatusToError, i as resolveBaseUrl, n as SDK_VERSION, o as validateConfig, r as assertBrowserSafe } from "../config-CVP1tz1i.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-C7L3X-6K.js";
1
+ import { n as createReoptAnalyticsClient, r as AnalyticsConfig, t as ReoptAnalyticsClient } from "../client-CTagug07.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 = {
@@ -1,4 +1,4 @@
1
- import { n as createReoptAnalyticsClient, t as ReoptAnalyticsClient } from "../client-CeyTfrL7.js";
1
+ import { n as createReoptAnalyticsClient, t as ReoptAnalyticsClient } from "../client-CIhl2PY7.js";
2
2
  import { getInstance, identify, init, pageView, setConsent, track } from "@reopt-ai/data-sdk";
3
3
 
4
4
  //#region src/analytics/browser.ts
@@ -1,4 +1,4 @@
1
- import { i as UserInfoClaims, n as createReoptAuthClient, r as LinkCurrentUserResult, t as ReoptAuthClient } from "../client-DfsH-x4k.js";
1
+ import { i as UserInfoClaims, n as createReoptAuthClient, r as LinkCurrentUserResult, t as ReoptAuthClient } from "../client-B8pBCudo.js";
2
2
  //#region src/auth/session.d.ts
3
3
  /**
4
4
  * 세션 쿠키 검증 — apps/id의 Better Auth `/api/auth/get-session`을 호출해
@@ -1,4 +1,4 @@
1
- import { n as createReoptAuthClient, t as ReoptAuthClient } from "../client-60obCSiP.js";
1
+ import { n as createReoptAuthClient, t as ReoptAuthClient } from "../client-CxJrZ2Mp.js";
2
2
 
3
3
  //#region src/auth/session.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { a as REOPT_PROVIDER_IDS, i as REOPT_PROVIDER_ID, o as REOPT_STEP_UP_PROVIDER_ID } from "../types-FazBnzhg.js";
1
+ import { a as REOPT_PROVIDER_IDS, i as REOPT_PROVIDER_ID, o as REOPT_STEP_UP_PROVIDER_ID } from "../types-BFg1ywqD.js";
2
2
  //#region src/better-auth/client.d.ts
3
3
  /**
4
4
  * Minimal shape of a Better Auth client that can start a social sign-in /
@@ -1,4 +1,4 @@
1
- import { i as REOPT_STEP_UP_PROVIDER_ID, n as REOPT_PROVIDER_ID, r as REOPT_PROVIDER_IDS } from "../types-DGAVaUCc.js";
1
+ import { i as REOPT_STEP_UP_PROVIDER_ID, n as REOPT_PROVIDER_ID, r as REOPT_PROVIDER_IDS } from "../types-Dq032jKk.js";
2
2
 
3
3
  //#region src/better-auth/client.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { n as ReoptSDKConfig, t as REOPT_BASE_URLS } from "../config-CDI6Rb8i.js";
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 { T as isReoptSDKError, _ as RateLimitError, t as AuthError, v as ReoptSDKError, x as ServerError } from "../errors-D-Va8oeC.js";
1
+ import { n as ReoptSDKConfig, t as REOPT_BASE_URLS } from "../config-BugNVP5q.js";
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-BFg1ywqD.js";
3
+ import { E as isReoptSDKError, _ as RateLimitError, t as AuthError, v as ReoptSDKError, x as ServerError } from "../errors-suUYUdWb.js";
4
4
  import { AdapterFactory } from "better-auth/adapters";
5
5
  import { ClientPrivateJwk } from "@reopt-ai/workspace-sdk/machine";
6
6
  import { PhoneNumberOptions } from "better-auth/plugins/phone-number";
@@ -1,6 +1,6 @@
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-Dz4Qk5qN.js";
2
- import { t as BaseHttpClient } from "../http-client-BqV3EwdH.js";
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";
1
+ import { S as ReoptSDKError, a as resolveIdBaseUrl, k as isReoptSDKError, s as AuthError, t as REOPT_BASE_URLS, w as ServerError, x as RateLimitError } from "../config-CVP1tz1i.js";
2
+ import { t as BaseHttpClient } from "../http-client-Bmx6EffK.js";
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-Dq032jKk.js";
4
4
  import { createAdapterFactory } from "better-auth/adapters";
5
5
  import { createPrivateKeyJwtClientAssertionGetter } from "@better-auth/core/oauth2";
6
6
  import { genericOAuth } from "better-auth/plugins";
@@ -180,7 +180,7 @@ function createReoptOAuth(options) {
180
180
  if (method === "private_key_jwt" && !privateKey) throw new Error("[@reopt-ai/brandapp-sdk] createReoptOAuth() with private_key_jwt requires privateKeyJwk or REOPT_CLIENT_PRIVATE_KEY_JWK.");
181
181
  if (method !== "private_key_jwt" && !options.clientSecret) throw new Error("[@reopt-ai/brandapp-sdk] createReoptOAuth() requires clientSecret for secret-based token endpoint auth (or use tokenEndpointAuthMethod: \"private_key_jwt\").");
182
182
  const idBaseUrl = resolveIdBaseUrl(options);
183
- const stepUpMaxAge = options.stepUp === true ? 300 : typeof options.stepUp === "number" ? Math.max(0, Math.floor(options.stepUp)) : null;
183
+ const stepUpMaxAge = options.stepUp === true ? STEP_UP_MAX_AUTH_AGE_SECONDS : typeof options.stepUp === "number" ? Math.max(0, Math.floor(options.stepUp)) : null;
184
184
  const providerConfig = {
185
185
  providerId: REOPT_PROVIDER_ID,
186
186
  discoveryUrl: `${idBaseUrl}/api/auth/.well-known/openid-configuration`,
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-CDI6Rb8i.js";
1
+ import { n as ReoptSDKConfig } from "./config-BugNVP5q.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-CcoGEXUB.d.ts.map
53
+ //# sourceMappingURL=client-1bKsyJyo.d.ts.map
@@ -1,6 +1,6 @@
1
- import { S as ReoptSDKError, u as BadRequestError } from "./config-Dz4Qk5qN.js";
2
- import { t as BaseHttpClient } from "./http-client-BqV3EwdH.js";
3
- import { t as buildQuery } from "./query-DZ80YmH1.js";
1
+ import { S as ReoptSDKError, u as BadRequestError } from "./config-CVP1tz1i.js";
2
+ import { t as BaseHttpClient } from "./http-client-Bmx6EffK.js";
3
+ import { t as buildQuery } from "./query-jIN6hp6x.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-DJemYtoz.js.map
743
+ //# sourceMappingURL=client-B6lzuAA9.js.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-CDI6Rb8i.js";
1
+ import { n as ReoptSDKConfig } from "./config-BugNVP5q.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-DfsH-x4k.d.ts.map
71
+ //# sourceMappingURL=client-B8pBCudo.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-CDI6Rb8i.js";
1
+ import { n as ReoptSDKConfig } from "./config-BugNVP5q.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-CRaeubc_.d.ts.map
48
+ //# sourceMappingURL=client-BT1MQfQF.d.ts.map
@@ -1,6 +1,6 @@
1
- import { S as ReoptSDKError, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig } from "./config-Dz4Qk5qN.js";
1
+ import { M as mapHttpStatusToError, S as ReoptSDKError, n as SDK_VERSION, o as validateConfig } from "./config-CVP1tz1i.js";
2
2
  import { t as createManagedAbort } from "./abort--nOBFN4M.js";
3
- import { t as BaseHttpClient } from "./http-client-BqV3EwdH.js";
3
+ import { t as BaseHttpClient } from "./http-client-Bmx6EffK.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.17"}-${url.length}`;
265
+ const requestId = globalThis.crypto?.randomUUID?.() ?? `sdk-${"4.7.0-rc.19"}-${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-CVeE_j0G.js.map
346
+ //# sourceMappingURL=client-C40CSsIa.js.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-BqV3EwdH.js";
1
+ import { t as BaseHttpClient } from "./http-client-Bmx6EffK.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-CeyTfrL7.js.map
20
+ //# sourceMappingURL=client-CIhl2PY7.js.map
@@ -1,5 +1,5 @@
1
- import { t as BaseHttpClient } from "./http-client-BqV3EwdH.js";
2
- import { t as buildQuery } from "./query-DZ80YmH1.js";
1
+ import { t as BaseHttpClient } from "./http-client-Bmx6EffK.js";
2
+ import { t as buildQuery } from "./query-jIN6hp6x.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-D1iwvFdf.js.map
55
+ //# sourceMappingURL=client-CRhgd-ua.js.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-CDI6Rb8i.js";
1
+ import { n as ReoptSDKConfig } from "./config-BugNVP5q.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-C7L3X-6K.d.ts.map
24
+ //# sourceMappingURL=client-CTagug07.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-CDI6Rb8i.js";
1
+ import { n as ReoptSDKConfig } from "./config-BugNVP5q.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-BpTb2n0k.d.ts.map
272
+ //# sourceMappingURL=client-CUC1Ignp.d.ts.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-BqV3EwdH.js";
1
+ import { t as BaseHttpClient } from "./http-client-Bmx6EffK.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-Dsp0BKoL.js.map
28
+ //# sourceMappingURL=client-CV0tF5Ks.js.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-BqV3EwdH.js";
1
+ import { t as BaseHttpClient } from "./http-client-Bmx6EffK.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-CVeBSkoM.js.map
86
+ //# sourceMappingURL=client-CxHEiGgA.js.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-BqV3EwdH.js";
1
+ import { t as BaseHttpClient } from "./http-client-Bmx6EffK.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-60obCSiP.js.map
53
+ //# sourceMappingURL=client-CxJrZ2Mp.js.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-CDI6Rb8i.js";
1
+ import { n as ReoptSDKConfig } from "./config-BugNVP5q.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-CC7rcBX6.d.ts.map
149
+ //# sourceMappingURL=client-D9z_dcrN.d.ts.map
@@ -1,6 +1,6 @@
1
- import { S as ReoptSDKError, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig } from "./config-Dz4Qk5qN.js";
1
+ import { M as mapHttpStatusToError, S as ReoptSDKError, n as SDK_VERSION, o as validateConfig } from "./config-CVP1tz1i.js";
2
2
  import { t as createManagedAbort } from "./abort--nOBFN4M.js";
3
- import { n as parseFieldErrors, t as BaseHttpClient } from "./http-client-BqV3EwdH.js";
3
+ import { n as parseFieldErrors, t as BaseHttpClient } from "./http-client-Bmx6EffK.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-0WbiigTy.js.map
279
+ //# sourceMappingURL=client-DUSN1VHA.js.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-BqV3EwdH.js";
1
+ import { t as BaseHttpClient } from "./http-client-Bmx6EffK.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-BDa6bFFM.js.map
146
+ //# sourceMappingURL=client-DlR4d-wh.js.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-CDI6Rb8i.js";
1
+ import { n as ReoptSDKConfig } from "./config-BugNVP5q.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-ShqkrIQ6.d.ts.map
410
+ //# sourceMappingURL=client-DqZXU9pY.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-CDI6Rb8i.js";
1
+ import { n as ReoptSDKConfig } from "./config-BugNVP5q.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-BuAtrkbd.d.ts.map
53
+ //# sourceMappingURL=client-DuzINPQo.d.ts.map
@@ -1,4 +1,4 @@
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";
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-BugNVP5q.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"> & {
@@ -102,13 +102,17 @@ type EntityClient<E extends EntityDef> = {
102
102
  type ReoptEavClient<S extends SchemaDef = SchemaDef> = {
103
103
  entities: {
104
104
  list(): Promise<EavEntity[]>;
105
+ /** @deprecated 스키마 변경(관리자 표면) — 5.0에서 이 SDK에서 뺀다. `@reopt-ai/workspace-sdk` `createPlatformClient().eav.applySchema` 또는 CLI `reopt brandapp eav sync`. */
105
106
  create(input: CreateEntityInput): Promise<EavEntity>;
106
107
  get(entityId: string): Promise<EavEntity & {
107
108
  attributes: EavAttribute[];
108
109
  }>;
110
+ /** @deprecated 스키마 변경(관리자 표면) — 5.0에서 이 SDK에서 뺀다. `@reopt-ai/workspace-sdk` `createPlatformClient().eav.applySchema` 또는 CLI `reopt brandapp eav sync`. */
109
111
  update(entityId: string, input: UpdateEntityInput): Promise<EavEntity>;
112
+ /** @deprecated 스키마 변경(관리자 표면) — 5.0에서 이 SDK에서 뺀다. `@reopt-ai/workspace-sdk` `createPlatformClient().eav.applySchema` 또는 CLI `reopt brandapp eav sync`. */
110
113
  delete(entityId: string): Promise<void>;
111
114
  };
115
+ /** @deprecated 속성 정의 변경(관리자 표면) — 5.0에서 이 SDK에서 뺀다. `@reopt-ai/workspace-sdk` `createPlatformClient().eav.applySchema` 또는 CLI `reopt brandapp eav sync`. 정의 조회는 `entities.get`. */
112
116
  attributes: {
113
117
  create(entityId: string, input: CreateAttributeInput): Promise<EavAttribute>;
114
118
  update(entityId: string, attributeId: string, input: UpdateAttributeInput): Promise<EavAttribute>;
@@ -145,4 +149,4 @@ type ReoptEavClient<S extends SchemaDef = SchemaDef> = {
145
149
  declare function createReoptEavClient<S extends SchemaDef = SchemaDef>(config: ReoptSDKConfig<S>): ReoptEavClient<S>;
146
150
  //#endregion
147
151
  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
152
+ //# sourceMappingURL=client-KkCYwia-.d.ts.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-BqV3EwdH.js";
1
+ import { t as BaseHttpClient } from "./http-client-Bmx6EffK.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-BOBNqTK-.js.map
83
+ //# sourceMappingURL=client-RZnBdWRi.js.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-CDI6Rb8i.js";
1
+ import { n as ReoptSDKConfig } from "./config-BugNVP5q.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-CJRCG-km.d.ts.map
292
+ //# sourceMappingURL=client-qL_92Irv.d.ts.map
@@ -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-BuAtrkbd.js";
2
+ import { n as createReoptCmsClient, t as ReoptCmsClient } from "../client-DuzINPQo.js";
3
3
  //#region src/cms/helpers.d.ts
4
4
  type SeoMetadata = {
5
5
  title?: string;
package/dist/cms/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as createReoptCmsClient } from "../client-D1iwvFdf.js";
1
+ import { t as createReoptCmsClient } from "../client-CRhgd-ua.js";
2
2
 
3
3
  //#region src/cms/helpers.ts
4
4
  function joinUrl(siteUrl, path) {
@@ -400,6 +400,10 @@ type ReoptSDKConfig<S extends SchemaDef = SchemaDef> = {
400
400
  * stay around in case the caller wants to fall back (e.g. mint a fresh
401
401
  * token after expiry, or hit `/token/mint` itself). Per-call overrides
402
402
  * via `FetchOptions.bearerToken` still take precedence.
403
+ *
404
+ * 🔴 A minted service token is an **app** credential (no customer, app-wide) — server only.
405
+ * In the browser pass the signed-in customer's access token here instead; the SDK refuses a
406
+ * service token there with `CONFIG_BROWSER_APP_CREDENTIAL`.
403
407
  */
404
408
  token?: string;
405
409
  /**
@@ -481,4 +485,4 @@ type ReoptSDKConfig<S extends SchemaDef = SchemaDef> = {
481
485
  declare function resolveBaseUrl(config: ReoptSDKConfig): string;
482
486
  //#endregion
483
487
  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 };
484
- //# sourceMappingURL=config-CDI6Rb8i.d.ts.map
488
+ //# sourceMappingURL=config-BugNVP5q.d.ts.map