@reopt-ai/brandapp-sdk 4.6.0 → 4.7.0-rc.2

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 (76) hide show
  1. package/CHANGELOG.md +56 -1
  2. package/README.md +13 -13
  3. package/dist/ai/index.d.ts +1 -1
  4. package/dist/ai/index.js +1 -1
  5. package/dist/ai-provider/index.d.ts +1 -1
  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/index.d.ts +8 -2
  12. package/dist/better-auth/index.js +19 -5
  13. package/dist/{client-FM6_YJbr.js → client--ELBxfna.js} +3 -3
  14. package/dist/{client-IUSZDJio.d.ts → client-BQJepjoD.d.ts} +44 -4
  15. package/dist/{client-tJq0U_jn.js → client-BVBl3gPQ.js} +4 -4
  16. package/dist/{client-DeC127BD.js → client-BeiMpmXQ.js} +2 -2
  17. package/dist/{client-C6OXGMMV.d.ts → client-C2W4RAZV.d.ts} +2 -2
  18. package/dist/{client-7I-mz3Dw.d.ts → client-C6lx3RUQ.d.ts} +2 -2
  19. package/dist/{client-Ce0gs5Ma.js → client-C7X3w8t6.js} +2 -2
  20. package/dist/{client-DCqp0Bis.js → client-CGulAXhy.js} +2 -2
  21. package/dist/{client-yKeRJnIB.d.ts → client-CSl3o0s3.d.ts} +2 -2
  22. package/dist/{client-D1AFtJRw.d.ts → client-Cnq_X3Wp.d.ts} +2 -2
  23. package/dist/{client-Bfutv3LK.d.ts → client-Cod87ThY.d.ts} +2 -2
  24. package/dist/{client-BSW0Ncjj.d.ts → client-CsWSxMhB.d.ts} +2 -2
  25. package/dist/{client-C2xE9HGZ.js → client-D6333rpA.js} +4 -4
  26. package/dist/{client-CI2Y00Qx.js → client-DE1ynLgS.js} +23 -2
  27. package/dist/{client-BzAgabAs.js → client-DFxq2GcS.js} +2 -2
  28. package/dist/{client-DjLhTNsZ.js → client-DNZsyjA0.js} +3 -3
  29. package/dist/{client-Dmvtr1nS.d.ts → client-DfnaH99z.d.ts} +2 -2
  30. package/dist/{client-COKDtHO9.d.ts → client-MDNS9Ubf.d.ts} +2 -2
  31. package/dist/client-RPOH-LNC.js +194 -0
  32. package/dist/{client-eDd4aWDs.js → client-iyzEsEEg.js} +2 -2
  33. package/dist/{client-CniCGdmi.d.ts → client-xblzWFAL.d.ts} +2 -2
  34. package/dist/cms/index.d.ts +1 -1
  35. package/dist/cms/index.js +1 -1
  36. package/dist/{config-BeOelISH.js → config-B6U6kZxR.js} +13 -10
  37. package/dist/{config-D3SblxWt.d.ts → config-CnFnzh7Q.d.ts} +21 -6
  38. package/dist/dev/index.d.ts +1 -1
  39. package/dist/eav/index.d.ts +2 -2
  40. package/dist/eav/index.js +2 -2
  41. package/dist/eav/migrate.d.ts +2 -2
  42. package/dist/eav/schema.d.ts +2 -2
  43. package/dist/feedback/index.d.ts +1 -1
  44. package/dist/feedback/index.js +1 -1
  45. package/dist/files/index.d.ts +1 -1
  46. package/dist/files/index.js +1 -1
  47. package/dist/{http-client-Bl8u1vHN.js → http-client-pEcJtik8.js} +9 -3
  48. package/dist/{index-BnAYxnwq.d.ts → index-Bkci7euU.d.ts} +14 -12
  49. package/dist/{index-C6fyJTud.d.ts → index-Dh8XMVFF.d.ts} +2 -2
  50. package/dist/index.d.ts +4 -4
  51. package/dist/index.js +12 -12
  52. package/dist/keys-B2pA8EkU.d.ts +44 -0
  53. package/dist/keys-B_R_lsyF.js +102 -0
  54. package/dist/logout/index.d.ts +1 -1
  55. package/dist/logout/index.js +1 -1
  56. package/dist/machine/index.d.ts +72 -0
  57. package/dist/machine/index.js +4 -0
  58. package/dist/machine/keygen-cli.d.ts +7 -0
  59. package/dist/machine/keygen-cli.js +57 -0
  60. package/dist/plans/index.d.ts +2 -2
  61. package/dist/plans/index.js +1 -1
  62. package/dist/push/index.d.ts +1 -1
  63. package/dist/push/index.js +1 -1
  64. package/dist/{query-JPVK_8N5.js → query-MrzuQOFF.js} +2 -2
  65. package/dist/react/hooks.d.ts +4 -4
  66. package/dist/terms/index.d.ts +1 -1
  67. package/dist/terms/index.js +1 -1
  68. package/dist/testing/index.d.ts +2 -2
  69. package/dist/workspace/index.d.ts +39 -9
  70. package/dist/workspace/index.js +51 -9
  71. package/docs/api-reference.md +43 -24
  72. package/docs/dev-server.md +2 -2
  73. package/docs/environment.md +4 -4
  74. package/docs/machine.md +104 -0
  75. package/docs/workspace.md +12 -0
  76. package/package.json +18 -4
package/CHANGELOG.md CHANGED
@@ -7,6 +7,61 @@ This project adheres to [Semantic Versioning](https://semver.org/).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [4.7.0-rc.2] — 2026-10-10
11
+
12
+ ### Changed
13
+
14
+ - peer `better-auth` `^1.7.4` → `^1.7.7`. `/machine`이 쓰는 `@better-auth/core/oauth2`의 DPoP·private_key_jwt 자재는
15
+ 1.7.7부터라, 1.7.4~1.7.6 앱은 core peer가 unmet으로 떴다(핸드북 실측). 두 peer가 같은 버전을 가리킨다.
16
+
17
+ ## [4.7.0-rc.1] — 2026-10-10
18
+
19
+ Pre-release (`npm i @reopt-ai/brandapp-sdk@next`) — RFC-0034 machine credentials. Everything below ships here.
20
+
21
+ ### Added
22
+
23
+ - **`@reopt-ai/brandapp-sdk/machine`** (RFC-0034) — 서버 간 호출용 기계 자격. 공유 시크릿 대신 **`private_key_jwt`**(RFC 7523)
24
+ 단언과 **DPoP**(RFC 9449) 증명으로 id.reopt.ai에서 토큰을 받는다. `generateClientKeyPair()`(EdDSA, `kid`=JWK 지문),
25
+ `readClientKeyRing()`(env `REOPT_CLIENT_PRIVATE_KEY_JWK`, 회전 중 `_NEXT`), `buildClientJwks()`·`CLIENT_JWKS_PATH`
26
+ (`/.well-known/reopt-client-jwks.json`에 공개키 게시), `createMachineClient({ clientId, keyRing|privateKeyJwk, resource, scopes })`
27
+ — `getToken()`·`headers({ method, url })`·`fetch()`(401 시 한 번 재발급)·`invalidateToken()`. 토큰은 resource(audience) 하나에
28
+ 묶이고 만료 60초 전 재발급된다. 실패는 `MachineTokenError`(`code`·`status`). **서버 전용**(브라우저에서 호출하면 throw).
29
+ - bin **`reopt-keygen`** — 개인키 env 한 줄과 JWKS 라우트 안내를 출력한다(키는 그 줄에만 찍힌다).
30
+ - `createReoptSDK({ authorization })` — 요청마다 인증 헤더를 만드는 훅. `authorization: machine.headers`로 어댑터·EAV 호출을
31
+ 기계 토큰(DPoP)으로 보낸다. `clientSecret` 없이 만들 수 있다.
32
+ - `createReoptOAuth({ tokenEndpointAuthMethod: "private_key_jwt", privateKeyJwk? })` — 로그인 클라이언트의 토큰 엔드포인트
33
+ 인증을 비대칭으로. 키는 인자 또는 env 키 링에서 읽고, 없으면 즉시 throw.
34
+ - `createPlatformClient({ privateKeyJwk | keyRing })` — 플랫폼 API 클라이언트도 시크릿 없이 private_key_jwt + DPoP로 간다
35
+ (`clientSecret`은 이제 선택). 요청마다 메서드·URL에 묶인 DPoP 증명이 붙는다.
36
+ - 플랫폼 OAuth 클라이언트 리소스에 **`purpose`**(`web`·`adapter`·`machine`·`connect`, `PLATFORM_OAUTH_CLIENT_PURPOSES`)·
37
+ `jwksUri`·`dpopBoundAccessTokens` 필드와 `tokenEndpointAuthMethod: "private_key_jwt"`가 생겼다. `purpose`를 생략하면
38
+ 그랜트에서 추정한다(`client_credentials`만 → `machine`, 그 밖엔 `web`).
39
+
40
+ - `plans.getCustomerPlan(authUserId)` — 고객의 토큰 없이 **앱 자격 증명으로** 고객 한 명의 현재 플랜을
41
+ 읽는다(`GET /plans/customers/{authUserId}/plan`). 백그라운드 작업, 자체 기기·API 토큰으로 들어온 요청,
42
+ 토큰이 만료된 고객의 엔타이틀먼트 확인용이다. `authUserId`는 Better Auth `session.user.id`,
43
+ 응답은 `getMyPlan`과 같은 모양이다. 서버 전용 — 고객 토큰으로 부르면 403 `APP_CREDENTIAL_REQUIRED`.
44
+
45
+ - `CurrentPlan.paymentEnvironment`(`"live" | "test" | "simulation" | null`) — 지금 플랜을 만든 체크아웃의
46
+ 결제 환경. `paymentProvider`와 달리 해지 뒤 남은 이용 기간에도 유지되므로 "실 결제로 얻은 플랜만 인정"의
47
+ 근거로 쓸 수 있다. `null`은 모름(체크아웃을 거치지 않은 플랜)이다. 타입 `PlanPaymentEnvironment` export.
48
+ - `getCustomerPlan`의 404가 탈퇴를 구분한다 — 연결된 적 없으면 `NOT_FOUND`, 탈퇴했으면 `CUSTOMER_WITHDRAWN`.
49
+
50
+ ### Changed
51
+
52
+ - 파일·폴더 라우트(`sdk.files`·폴더)는 **앱 자격 증명 전용**이다 — 고객 액세스 토큰을 거절한다
53
+ (403 `APP_CREDENTIAL_REQUIRED`). SDK는 이 라우트에 고객 토큰을 보낸 적이 없어 SDK 사용처는 영향이 없다.
54
+ - AI 라우트를 고객 액세스 토큰으로 부르면 사용량과 고객별 호출 제한이 **토큰 주인으로 고정**된다.
55
+ 본문의 `customerId`가 토큰 주인과 다르면 403이다. 앱 자격으로 부르는 호출은 그대로 본문 값을 쓴다.
56
+ - CMS 미발행 글은 앱의 관리 자격에만 보인다 — `brandapp:write`가 실린 고객 토큰에는 발행된 글만 나간다.
57
+ - `PUT /plans/external-subscription`(스토어 구독 미러)은 **앱 자격 증명 전용**이다 — 플랫폼이 고객 액세스
58
+ 토큰을 scope와 무관하게 거절한다(403 `APP_CREDENTIAL_REQUIRED`). Basic 자격이나 서비스 토큰으로
59
+ 부르는 서버 호출은 그대로다.
60
+
61
+ - 개발 기본 호스트에서 포트를 뗐다. `REOPT_BASE_URLS`·`REOPT_ID_BASE_URLS`·`REOPT_PLATFORM_URLS`·
62
+ `REOPT_PLATFORM_ID_URLS`의 `development` 값이 `https://{brand,id,platform}.local.reopt.io`다(이전 `:3443`) —
63
+ dev-proxy가 표준 HTTPS 포트(443)에서 듣는다. `REOPT_BASE_URL`·`config.baseUrl` 등으로 직접 준 값은 그대로 쓴다.
64
+
10
65
  ## [4.6.0] — 2026-09-22
11
66
 
12
67
  ### Added
@@ -724,7 +779,7 @@ reopt 플랫폼의 brandapp API host가 `brand.reopt.ai`로 분리됐다. Better
724
779
  ### Added
725
780
 
726
781
  - **`ReoptSDKConfig.idBaseUrl`** — id (auth) 서버 URL을 명시 override. 미설정 시 `baseUrl` / `isProduction` / `NODE_ENV`로부터 derive.
727
- - **`REOPT_ID_BASE_URLS`** export — `production: https://id.reopt.ai`, `development: https://id.reopt.de:3443`.
782
+ - **`REOPT_ID_BASE_URLS`** export — `production: https://id.reopt.ai`, `development: https://id.local.reopt.io:3443`.
728
783
  - **`resolveIdBaseUrl(config)`** / **`deriveIdFromBaseUrl(baseUrl)`** export — id URL 해석 헬퍼.
729
784
  - **`BaseHttpClient(config, pathPrefix, { useIdServer: true })`** — 옵션 인자로 id 서버 라우팅 활성화.
730
785
 
package/README.md CHANGED
@@ -323,7 +323,7 @@ const meta = asJson<Meta>(record.values.meta); // Meta | undefined
323
323
  brandappId: string; // Brandapp ID (required)
324
324
  token?: string; // Short-lived Bearer token (Phase D-2b) —
325
325
  // overrides Basic Auth when set
326
- isProduction?: boolean; // true → brandapp.reopt.ai, false → brand.reopt.de:3443
326
+ isProduction?: boolean; // true → brandapp.reopt.ai, false → brand.local.reopt.io
327
327
  // default: auto-detect from NODE_ENV
328
328
  baseUrl?: string; // Main API host override (REOPT_BASE_URL env equivalent)
329
329
  idBaseUrl?: string; // Auth host override (REOPT_ID_BASE_URL env equivalent)
@@ -347,11 +347,11 @@ const meta = asJson<Meta>(record.values.meta); // Meta | undefined
347
347
 
348
348
  ### Built-in URLs
349
349
 
350
- | `isProduction` | Main API host | Auth (id) host |
351
- | --------------------- | ----------------------------- | -------------------------- |
352
- | `false` | `https://brand.reopt.de:3443` | `https://id.reopt.de:3443` |
353
- | `true` | `https://brandapp.reopt.ai` | `https://id.reopt.ai` |
354
- | `undefined` (default) | auto from `NODE_ENV` | auto from `NODE_ENV` |
350
+ | `isProduction` | Main API host | Auth (id) host |
351
+ | --------------------- | ------------------------------ | --------------------------- |
352
+ | `false` | `https://brand.local.reopt.io` | `https://id.local.reopt.io` |
353
+ | `true` | `https://brandapp.reopt.ai` | `https://id.reopt.ai` |
354
+ | `undefined` (default) | auto from `NODE_ENV` | auto from `NODE_ENV` |
355
355
 
356
356
  ## Environment Variables
357
357
 
@@ -368,13 +368,13 @@ SDK는 `process.env`를 자동으로 읽습니다. 필수 변수 3개만 설정
368
368
 
369
369
  **선택 (없으면 `NODE_ENV`로 자동 분기)**
370
370
 
371
- | 변수 | 용도 | 기본값 |
372
- | ------------------------- | -------------------------------------- | --------------------------------------------------------------------- |
373
- | `REOPT_BASE_URL` | 메인 API host (reopt 플랫폼) | prod: `https://brandapp.reopt.ai`, dev: `https://brand.reopt.de:3443` |
374
- | `REOPT_ID_BASE_URL` | 인증 host (reopt id 서버) | `REOPT_BASE_URL`에서 자동 유도 |
375
- | `BRANDAPP_WEBHOOK_SECRET` | webhook HMAC 검증 | — (consumer가 `createWebhookHandler`에 명시 주입) |
376
- | `BRANDAPP_SDK_DEBUG` | 디버그 로그 (`trace` \| `info` \| `1`) | off |
377
- | `BRANDAPP_SDK_LOG_FORMAT` | 로그 포맷 (`json` 시 구조화) | plain |
371
+ | 변수 | 용도 | 기본값 |
372
+ | ------------------------- | -------------------------------------- | ---------------------------------------------------------------------- |
373
+ | `REOPT_BASE_URL` | 메인 API host (reopt 플랫폼) | prod: `https://brandapp.reopt.ai`, dev: `https://brand.local.reopt.io` |
374
+ | `REOPT_ID_BASE_URL` | 인증 host (reopt id 서버) | `REOPT_BASE_URL`에서 자동 유도 |
375
+ | `BRANDAPP_WEBHOOK_SECRET` | webhook HMAC 검증 | — (consumer가 `createWebhookHandler`에 명시 주입) |
376
+ | `BRANDAPP_SDK_DEBUG` | 디버그 로그 (`trace` \| `info` \| `1`) | off |
377
+ | `BRANDAPP_SDK_LOG_FORMAT` | 로그 포맷 (`json` 시 구조화) | plain |
378
378
 
379
379
  상세 우선순위·시나리오·트러블슈팅·브라우저(`NEXT_PUBLIC_BRANDAPP_*`)·CI/CD
380
380
  패턴은 **[docs/environment.md](./docs/environment.md)**.
@@ -1,2 +1,2 @@
1
- import { a as CompletionOptions, c as FinishReason, d as MessageRole, f as ModelInfo, i as ChatMessage, l as ImageGenerateOptions, m as StreamEvent, n as createReoptAiClient, o as CompletionResult, p as StreamDoneData, r as AgentInfo, s as CreditInfo, t as ReoptAiClient, u as ImageGenerateResult } from "../client-D1AFtJRw.js";
1
+ import { a as CompletionOptions, c as FinishReason, d as MessageRole, f as ModelInfo, i as ChatMessage, l as ImageGenerateOptions, m as StreamEvent, n as createReoptAiClient, o as CompletionResult, p as StreamDoneData, r as AgentInfo, s as CreditInfo, t as ReoptAiClient, u as ImageGenerateResult } from "../client-Cnq_X3Wp.js";
2
2
  export { type AgentInfo, type ChatMessage, type CompletionOptions, type CompletionResult, type CreditInfo, type FinishReason, type ImageGenerateOptions, type ImageGenerateResult, type MessageRole, type ModelInfo, ReoptAiClient, type StreamDoneData, type StreamEvent, createReoptAiClient };
package/dist/ai/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as createReoptAiClient, t as ReoptAiClient } from "../client-C2xE9HGZ.js";
1
+ import { n as createReoptAiClient, t as ReoptAiClient } from "../client-D6333rpA.js";
2
2
 
3
3
  export { ReoptAiClient, createReoptAiClient };
@@ -73,7 +73,7 @@ type BrandappProviderConfig = {
73
73
  /**
74
74
  * 프로덕션 환경 여부.
75
75
  * - `true`: https://brandapp.reopt.ai
76
- * - `false`: https://brand.reopt.de:3443 (dev)
76
+ * - `false`: https://brand.local.reopt.io (dev)
77
77
  * - 미지정 (기본): `NODE_ENV === "production"` 자동 감지
78
78
  */
79
79
  isProduction?: boolean;
@@ -1,4 +1,4 @@
1
- import { i as resolveBaseUrl, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig, r as assertBrowserSafe } from "../config-BeOelISH.js";
1
+ import { i as resolveBaseUrl, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig, r as assertBrowserSafe } from "../config-B6U6kZxR.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";
@@ -1,4 +1,4 @@
1
- import { n as createReoptAnalyticsClient, r as AnalyticsConfig, t as ReoptAnalyticsClient } from "../client-7I-mz3Dw.js";
1
+ import { n as createReoptAnalyticsClient, r as AnalyticsConfig, t as ReoptAnalyticsClient } from "../client-C6lx3RUQ.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-BzAgabAs.js";
1
+ import { n as createReoptAnalyticsClient, t as ReoptAnalyticsClient } from "../client-DFxq2GcS.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-Bfutv3LK.js";
1
+ import { i as UserInfoClaims, n as createReoptAuthClient, r as LinkCurrentUserResult, t as ReoptAuthClient } from "../client-Cod87ThY.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-eDd4aWDs.js";
1
+ import { n as createReoptAuthClient, t as ReoptAuthClient } from "../client-iyzEsEEg.js";
2
2
 
3
3
  //#region src/auth/session.ts
4
4
  /**
@@ -1,5 +1,6 @@
1
- import { n as ReoptSDKConfig, t as REOPT_BASE_URLS } from "../config-D3SblxWt.js";
1
+ import { n as ReoptSDKConfig, t as REOPT_BASE_URLS } from "../config-CnFnzh7Q.js";
2
2
  import { i as REOPT_PROVIDER_ID, n as AdapterRequestBody, r as REOPT_DEFAULT_SCOPES, t as AdapterOperation } from "../types-MXLudLBP.js";
3
+ import { i as ClientPrivateJwk } from "../keys-B2pA8EkU.js";
3
4
  import { T as isReoptSDKError, _ as RateLimitError, t as AuthError, v as ReoptSDKError, x as ServerError } from "../errors-U3TsyWVq.js";
4
5
  import { AdapterFactory } from "better-auth/adapters";
5
6
  import { BetterAuthOptions, BetterAuthPlugin } from "better-auth";
@@ -37,9 +38,14 @@ type ReoptOAuthOptions = ReoptSDKConfig & {
37
38
  * method (`invalid_client`). Reopt brandapp clients are registered with
38
39
  * `client_secret_post` unless noted otherwise in the studio.
39
40
  *
41
+ * `private_key_jwt`(RFC-0034)면 clientSecret 대신 `privateKeyJwk`(또는 env `REOPT_CLIENT_PRIVATE_KEY_JWK`)로
42
+ * RFC 7523 단언을 서명한다 — 서버에는 공개키 주소(`jwksUri`)만 등록돼 있고 비밀이 오가지 않는다.
43
+ *
40
44
  * @default "client_secret_post"
41
45
  */
42
- tokenEndpointAuthMethod?: "client_secret_post" | "client_secret_basic";
46
+ tokenEndpointAuthMethod?: "client_secret_post" | "client_secret_basic" | "private_key_jwt";
47
+ /** `private_key_jwt`용 개인키 JWK(kid·alg 포함). 생략하면 env `REOPT_CLIENT_PRIVATE_KEY_JWK`(+`_NEXT`)를 읽는다. */
48
+ privateKeyJwk?: ClientPrivateJwk;
43
49
  /**
44
50
  * Also end the user's Reopt (identity provider) session when your app calls
45
51
  * `authClient.signOut()` — OIDC RP-Initiated Logout through Reopt's
@@ -1,7 +1,9 @@
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";
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-B6U6kZxR.js";
2
+ import { t as BaseHttpClient } from "../http-client-pEcJtik8.js";
3
+ import { o as readClientKeyRing } from "../keys-B_R_lsyF.js";
3
4
  import { n as REOPT_PROVIDER_ID, t as REOPT_DEFAULT_SCOPES } from "../types-DjDRszNj.js";
4
5
  import { createAdapterFactory } from "better-auth/adapters";
6
+ import { createPrivateKeyJwtClientAssertionGetter } from "@better-auth/core/oauth2";
5
7
  import { genericOAuth } from "better-auth/plugins";
6
8
 
7
9
  //#region src/better-auth/adapter.ts
@@ -159,7 +161,11 @@ function createReoptAdapter(config) {
159
161
  */
160
162
  function createReoptOAuth(options) {
161
163
  if (typeof window !== "undefined") throw new Error("[@reopt-ai/brandapp-sdk] createReoptOAuth() must be called on the server. It uses clientSecret — exposing it to the browser is a security risk. For client-side OAuth sign-in, use signInWithReopt() from '@reopt-ai/brandapp-sdk/better-auth/client' instead.");
162
- if (!options.clientId || !options.clientSecret) throw new Error("[@reopt-ai/brandapp-sdk] createReoptOAuth() requires clientId and clientSecret.");
164
+ const method = options.tokenEndpointAuthMethod ?? "client_secret_post";
165
+ if (!options.clientId) throw new Error("[@reopt-ai/brandapp-sdk] createReoptOAuth() requires clientId.");
166
+ const privateKey = method === "private_key_jwt" ? options.privateKeyJwk ?? readClientKeyRing()?.signing ?? null : null;
167
+ 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.");
168
+ 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\").");
163
169
  const idBaseUrl = resolveIdBaseUrl(options);
164
170
  return genericOAuth({ config: [{
165
171
  providerId: REOPT_PROVIDER_ID,
@@ -168,8 +174,16 @@ function createReoptOAuth(options) {
168
174
  tokenUrl: `${idBaseUrl}/api/auth/oauth2/token`,
169
175
  userInfoUrl: `${idBaseUrl}/api/auth/oauth2/userinfo`,
170
176
  clientId: options.clientId,
171
- clientSecret: options.clientSecret,
172
- tokenEndpointAuth: { method: options.tokenEndpointAuthMethod ?? "client_secret_post" },
177
+ ...options.clientSecret ? { clientSecret: options.clientSecret } : {},
178
+ tokenEndpointAuth: privateKey ? {
179
+ method: "private_key_jwt",
180
+ getClientAssertion: createPrivateKeyJwtClientAssertionGetter({
181
+ privateKeyJwk: privateKey,
182
+ kid: privateKey.kid,
183
+ algorithm: privateKey.alg,
184
+ expiresIn: 120
185
+ })
186
+ } : { method },
173
187
  disableProviderLogout: !options.providerLogout,
174
188
  ...typeof options.providerLogout === "object" && options.providerLogout.postLogoutRedirectURI ? { postLogoutRedirectURI: options.providerLogout.postLogoutRedirectURI } : {},
175
189
  scopes: Array.from(/* @__PURE__ */ new Set([...REOPT_DEFAULT_SCOPES, ...options.additionalScopes ?? []])),
@@ -1,5 +1,5 @@
1
- import { t as BaseHttpClient } from "./http-client-Bl8u1vHN.js";
2
- import { t as buildQuery } from "./query-JPVK_8N5.js";
1
+ import { t as BaseHttpClient } from "./http-client-pEcJtik8.js";
2
+ import { t as buildQuery } from "./query-MrzuQOFF.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-FM6_YJbr.js.map
55
+ //# sourceMappingURL=client--ELBxfna.js.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-D3SblxWt.js";
1
+ import { n as ReoptSDKConfig } from "./config-CnFnzh7Q.js";
2
2
  //#region src/plans/types.d.ts
3
3
  /**
4
4
  * Brandapp Plans types.
@@ -69,6 +69,8 @@ type Plan = {
69
69
  type CheckoutStatus = "pending" | "completed" | "canceled" | "expired" | "failed";
70
70
  /** `plans.createCheckout` 입력. */
71
71
  type CreateCheckoutInput = {
72
+ /** Opaque Reopt click proofs; the server verifies brand ownership and click evidence. */
73
+ linkAttribution?: Partial<Record<"firstAcquisition" | "lastAcquisition" | "lastNavigation" | "referral", string>>;
72
74
  /** 구독할 플랜 ID (`plans.list()`가 반환하는 `Plan.id`). */
73
75
  planId: string;
74
76
  /**
@@ -148,9 +150,28 @@ type CurrentPlan = {
148
150
  planStartedAt: string | null;
149
151
  /** ISO-8601 문자열. `null`이면 무기한. */
150
152
  planExpiresAt: string | null;
151
- /** 활성 결제 제공자 — "paddle" | "toss" | null. */
153
+ /**
154
+ * **활성** 결제 연결의 제공자 — "paddle" | "toss" | null.
155
+ *
156
+ * ⚠️ "실 결제인가"의 근거로 쓰지 말 것. 해지하면 연결이 보관되어 남은 이용 기간 동안
157
+ * `null`이 되고, 가상 결제·스토어 구독·운영자 배정도 모두 `null`이다. 그 판정에는
158
+ * {@link CurrentPlan.paymentEnvironment}를 쓴다.
159
+ */
152
160
  paymentProvider: string | null;
161
+ /**
162
+ * 이 플랜을 만든 체크아웃의 결제 환경. 해지 뒤 남은 기간에도 유지된다.
163
+ * - `"live"` — 실 결제
164
+ * - `"test"` — 결제사의 테스트 환경(테스트 카드)
165
+ * - `"simulation"` — 가상 결제(결제사를 거치지 않음)
166
+ * - `null` — **모름**: 체크아웃을 거치지 않은 플랜(스토어 구독 미러, 운영자 배정)이거나
167
+ * 환경을 기록하기 전의 구독. "실 결제가 아니다"로 읽지 말 것.
168
+ *
169
+ * 구버전 서버는 내려주지 않는다.
170
+ */
171
+ paymentEnvironment?: PlanPaymentEnvironment | null;
153
172
  };
173
+ /** {@link CurrentPlan.paymentEnvironment}. */
174
+ type PlanPaymentEnvironment = "live" | "test" | "simulation";
154
175
  //#endregion
155
176
  //#region src/plans/client.d.ts
156
177
  declare class ReoptPlansClient {
@@ -168,6 +189,25 @@ declare class ReoptPlansClient {
168
189
  * `accessToken`. Returns `null` when the customer has no active plan.
169
190
  */
170
191
  getMyPlan(accessToken: string): Promise<CurrentPlan | null>;
192
+ /**
193
+ * Fetch one customer's current plan / entitlement with **app credentials** —
194
+ * no customer token needed. Use it where there is no live user session to take
195
+ * a token from: background jobs, requests authenticated by your own device or
196
+ * API token, or a customer whose OAuth tokens have expired.
197
+ *
198
+ * `authUserId` is your Better Auth `session.user.id` (the same id the EAV API
199
+ * calls `authUserId`). The result has the same shape as {@link getMyPlan} and
200
+ * is `null` when the customer has no plan.
201
+ *
202
+ * Server-only: the request is signed with this client's own credentials
203
+ * (Basic, or the service token in `config.token`). The platform rejects a
204
+ * customer access token on this route with 403 `APP_CREDENTIAL_REQUIRED`, so
205
+ * one customer can never read another's plan.
206
+ *
207
+ * @throws {ReoptSDKError} 404 when that user has no customer link to this
208
+ * Brandapp (never signed in with `brandapp:write`, or withdrew).
209
+ */
210
+ getCustomerPlan(authUserId: string): Promise<CurrentPlan | null>;
171
211
  /**
172
212
  * Start a hosted checkout to subscribe the current customer (identified by
173
213
  * `accessToken`) to `input.planId`, then redirect the browser to the returned
@@ -207,5 +247,5 @@ declare class ReoptPlansClient {
207
247
  }
208
248
  declare function createReoptPlansClient(config: ReoptSDKConfig): ReoptPlansClient;
209
249
  //#endregion
210
- export { CheckoutStatus as a, MeterPricingMode as c, PlanInterval as d, PlanMeter as f, CheckoutSession as i, Plan as l, PlanRequiredTerms as m, createReoptPlansClient as n, CreateCheckoutInput as o, PlanMeterTier as p, CancelSubscriptionResult as r, CurrentPlan as s, ReoptPlansClient as t, PlanBillingModel as u };
211
- //# sourceMappingURL=client-IUSZDJio.d.ts.map
250
+ 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 };
251
+ //# sourceMappingURL=client-BQJepjoD.d.ts.map
@@ -1,6 +1,6 @@
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";
1
+ import { u as BadRequestError } from "./config-B6U6kZxR.js";
2
+ import { t as BaseHttpClient } from "./http-client-pEcJtik8.js";
3
+ import { t as buildQuery } from "./query-MrzuQOFF.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-tJq0U_jn.js.map
567
+ //# sourceMappingURL=client-BVBl3gPQ.js.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-Bl8u1vHN.js";
1
+ import { t as BaseHttpClient } from "./http-client-pEcJtik8.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-DeC127BD.js.map
28
+ //# sourceMappingURL=client-BeiMpmXQ.js.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-D3SblxWt.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-CnFnzh7Q.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"> & {
@@ -100,4 +100,4 @@ type ReoptEavClient<S extends SchemaDef = SchemaDef> = {
100
100
  declare function createReoptEavClient<S extends SchemaDef = SchemaDef>(config: ReoptSDKConfig<S>): ReoptEavClient<S>;
101
101
  //#endregion
102
102
  export { TypedEavRecord as i, createReoptEavClient as n, EntityClient as r, ReoptEavClient as t };
103
- //# sourceMappingURL=client-C6OXGMMV.d.ts.map
103
+ //# sourceMappingURL=client-C2W4RAZV.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-D3SblxWt.js";
1
+ import { n as ReoptSDKConfig } from "./config-CnFnzh7Q.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-7I-mz3Dw.d.ts.map
24
+ //# sourceMappingURL=client-C6lx3RUQ.d.ts.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-Bl8u1vHN.js";
1
+ import { t as BaseHttpClient } from "./http-client-pEcJtik8.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-Ce0gs5Ma.js.map
86
+ //# sourceMappingURL=client-C7X3w8t6.js.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-Bl8u1vHN.js";
1
+ import { t as BaseHttpClient } from "./http-client-pEcJtik8.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-DCqp0Bis.js.map
83
+ //# sourceMappingURL=client-CGulAXhy.js.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-D3SblxWt.js";
1
+ import { n as ReoptSDKConfig } from "./config-CnFnzh7Q.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-yKeRJnIB.d.ts.map
48
+ //# sourceMappingURL=client-CSl3o0s3.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-D3SblxWt.js";
1
+ import { n as ReoptSDKConfig } from "./config-CnFnzh7Q.js";
2
2
  //#region src/ai/types.d.ts
3
3
  /** 메시지 역할 */
4
4
  type MessageRole = "system" | "user" | "assistant";
@@ -281,4 +281,4 @@ declare class ReoptAiClient {
281
281
  declare function createReoptAiClient(config: ReoptSDKConfig): ReoptAiClient;
282
282
  //#endregion
283
283
  export { CompletionOptions as a, FinishReason as c, MessageRole as d, ModelInfo as f, ChatMessage as i, ImageGenerateOptions as l, StreamEvent as m, createReoptAiClient as n, CompletionResult as o, StreamDoneData as p, AgentInfo as r, CreditInfo as s, ReoptAiClient as t, ImageGenerateResult as u };
284
- //# sourceMappingURL=client-D1AFtJRw.d.ts.map
284
+ //# sourceMappingURL=client-Cnq_X3Wp.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-D3SblxWt.js";
1
+ import { n as ReoptSDKConfig } from "./config-CnFnzh7Q.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-Bfutv3LK.d.ts.map
71
+ //# sourceMappingURL=client-Cod87ThY.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-D3SblxWt.js";
1
+ import { n as ReoptSDKConfig } from "./config-CnFnzh7Q.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-BSW0Ncjj.d.ts.map
53
+ //# sourceMappingURL=client-CsWSxMhB.d.ts.map
@@ -1,6 +1,6 @@
1
- import { S as ReoptSDKError, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig } from "./config-BeOelISH.js";
1
+ import { S as ReoptSDKError, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig } from "./config-B6U6kZxR.js";
2
2
  import { t as createManagedAbort } from "./abort--nOBFN4M.js";
3
- import { t as BaseHttpClient } from "./http-client-Bl8u1vHN.js";
3
+ import { t as BaseHttpClient } from "./http-client-pEcJtik8.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.6.0"}-${url.length}`;
234
+ const requestId = globalThis.crypto?.randomUUID?.() ?? `sdk-${"4.7.0-rc.2"}-${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-C2xE9HGZ.js.map
312
+ //# sourceMappingURL=client-D6333rpA.js.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-Bl8u1vHN.js";
1
+ import { t as BaseHttpClient } from "./http-client-pEcJtik8.js";
2
2
 
3
3
  //#region src/plans/client.ts
4
4
  function unwrap(body) {
@@ -30,6 +30,27 @@ var ReoptPlansClient = class {
30
30
  return unwrap(await this.http.fetch("GET", "/me/plan", void 0, { bearerToken: accessToken }));
31
31
  }
32
32
  /**
33
+ * Fetch one customer's current plan / entitlement with **app credentials** —
34
+ * no customer token needed. Use it where there is no live user session to take
35
+ * a token from: background jobs, requests authenticated by your own device or
36
+ * API token, or a customer whose OAuth tokens have expired.
37
+ *
38
+ * `authUserId` is your Better Auth `session.user.id` (the same id the EAV API
39
+ * calls `authUserId`). The result has the same shape as {@link getMyPlan} and
40
+ * is `null` when the customer has no plan.
41
+ *
42
+ * Server-only: the request is signed with this client's own credentials
43
+ * (Basic, or the service token in `config.token`). The platform rejects a
44
+ * customer access token on this route with 403 `APP_CREDENTIAL_REQUIRED`, so
45
+ * one customer can never read another's plan.
46
+ *
47
+ * @throws {ReoptSDKError} 404 when that user has no customer link to this
48
+ * Brandapp (never signed in with `brandapp:write`, or withdrew).
49
+ */
50
+ async getCustomerPlan(authUserId) {
51
+ return unwrap(await this.http.fetch("GET", `/customers/${encodeURIComponent(authUserId)}/plan`));
52
+ }
53
+ /**
33
54
  * Start a hosted checkout to subscribe the current customer (identified by
34
55
  * `accessToken`) to `input.planId`, then redirect the browser to the returned
35
56
  * `checkoutUrl`. That URL is an order-review page on id.reopt.ai showing the
@@ -78,4 +99,4 @@ function createReoptPlansClient(config) {
78
99
 
79
100
  //#endregion
80
101
  export { createReoptPlansClient as n, ReoptPlansClient as t };
81
- //# sourceMappingURL=client-CI2Y00Qx.js.map
102
+ //# sourceMappingURL=client-DE1ynLgS.js.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-Bl8u1vHN.js";
1
+ import { t as BaseHttpClient } from "./http-client-pEcJtik8.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-BzAgabAs.js.map
20
+ //# sourceMappingURL=client-DFxq2GcS.js.map
@@ -1,6 +1,6 @@
1
- import { S as ReoptSDKError, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig } from "./config-BeOelISH.js";
1
+ import { S as ReoptSDKError, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig } from "./config-B6U6kZxR.js";
2
2
  import { t as createManagedAbort } from "./abort--nOBFN4M.js";
3
- import { n as parseFieldErrors, t as BaseHttpClient } from "./http-client-Bl8u1vHN.js";
3
+ import { n as parseFieldErrors, t as BaseHttpClient } from "./http-client-pEcJtik8.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-DjLhTNsZ.js.map
273
+ //# sourceMappingURL=client-DNZsyjA0.js.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-D3SblxWt.js";
1
+ import { n as ReoptSDKConfig } from "./config-CnFnzh7Q.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-Dmvtr1nS.d.ts.map
53
+ //# sourceMappingURL=client-DfnaH99z.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-D3SblxWt.js";
1
+ import { n as ReoptSDKConfig } from "./config-CnFnzh7Q.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-COKDtHO9.d.ts.map
149
+ //# sourceMappingURL=client-MDNS9Ubf.d.ts.map