@reopt-ai/brandapp-sdk 4.7.0-rc.14 → 4.7.0-rc.15

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 (65) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/ai/index.d.ts +1 -1
  3. package/dist/ai/index.js +2 -2
  4. package/dist/ai-provider/index.d.ts +1 -1
  5. package/dist/ai-provider/index.js +1 -1
  6. package/dist/analytics/index.d.ts +1 -1
  7. package/dist/analytics/index.js +1 -1
  8. package/dist/auth/index.d.ts +1 -1
  9. package/dist/auth/index.js +1 -1
  10. package/dist/better-auth/index.d.ts +1 -1
  11. package/dist/better-auth/index.js +2 -2
  12. package/dist/{client-BbmslwWV.d.ts → client-33gSO7lm.d.ts} +2 -2
  13. package/dist/{client-BLmIi1fg.js → client-5N6dGCPl.js} +3 -3
  14. package/dist/{client-BAr_BNfz.js → client-5Z8ekxae.js} +3 -3
  15. package/dist/{client-Dwf6UuGH.d.ts → client-8phVQcw8.d.ts} +2 -2
  16. package/dist/{client-CwfUFDWS.js → client-B9_zWxmn.js} +2 -2
  17. package/dist/{client-CJFsLk3_.d.ts → client-BY0-0nhP.d.ts} +2 -2
  18. package/dist/{client-loa5Z9hY.js → client-BjX5K-Qh.js} +4 -4
  19. package/dist/{client-Ce0z7WTl.js → client-BlHPiBEo.js} +2 -2
  20. package/dist/{client-CD6uK0dA.d.ts → client-BrYt--zm.d.ts} +2 -2
  21. package/dist/{client-DF-tOyrY.d.ts → client-C08BvY3B.d.ts} +2 -2
  22. package/dist/{client-NUhpPkl2.d.ts → client-C2Yhtnhs.d.ts} +2 -2
  23. package/dist/{client-wNzcgEJu.d.ts → client-CTNoB_vH.d.ts} +2 -2
  24. package/dist/{client-BL-Ljwki.d.ts → client-CUdewN3W.d.ts} +2 -2
  25. package/dist/{client-OHAVqTBu.js → client-Ce3RqyOI.js} +2 -2
  26. package/dist/{client-Dn5CjA4d.js → client-DCd3T29e.js} +3 -3
  27. package/dist/{client-CP1Jgq4R.d.ts → client-DD9y7Qew.d.ts} +2 -2
  28. package/dist/{client-OEX6i4XJ.js → client-DIAWwOhv.js} +2 -2
  29. package/dist/{client-CU_ot3SS.js → client-DbbbBNJm.js} +2 -2
  30. package/dist/{client-BBx2uOT6.js → client-Dg-hO_LG.js} +2 -2
  31. package/dist/{client-CyFOwE5p.d.ts → client-QPvDSMNd.d.ts} +48 -23
  32. package/dist/{client-BH7PYWbE.js → client-Ylv0P82v.js} +2 -2
  33. package/dist/{client-DHmwj3qm.js → client-aB1rCHah.js} +4 -4
  34. package/dist/cms/index.d.ts +1 -1
  35. package/dist/cms/index.js +1 -1
  36. package/dist/{config-BGT9h1OW.d.ts → config-CSUlKyTp.d.ts} +7 -3
  37. package/dist/{config-DrtdQNzj.js → config-ChctVyuz.js} +2 -2
  38. package/dist/eav/index.d.ts +23 -20
  39. package/dist/eav/index.js +6 -3
  40. package/dist/eav/migrate.d.ts +2 -2
  41. package/dist/eav/schema.d.ts +2 -2
  42. package/dist/feedback/index.d.ts +1 -1
  43. package/dist/feedback/index.js +1 -1
  44. package/dist/files/index.d.ts +1 -1
  45. package/dist/files/index.js +1 -1
  46. package/dist/{http-client-DQf8pVNw.js → http-client-CpG8mEHO.js} +2 -2
  47. package/dist/{index-BQaGBa_K.d.ts → index-tEgiKb5o.d.ts} +12 -12
  48. package/dist/index.d.ts +4 -4
  49. package/dist/index.js +12 -12
  50. package/dist/installation/index.js +3 -3
  51. package/dist/logout/index.d.ts +1 -1
  52. package/dist/logout/index.js +1 -1
  53. package/dist/machine/index.js +1 -1
  54. package/dist/plans/index.d.ts +1 -1
  55. package/dist/plans/index.js +1 -1
  56. package/dist/push/index.d.ts +1 -1
  57. package/dist/push/index.js +1 -1
  58. package/dist/{query-ktdIV5kz.js → query-DFwpKnPG.js} +2 -2
  59. package/dist/react/hooks.d.ts +4 -4
  60. package/dist/social/index.js +1 -1
  61. package/dist/terms/index.d.ts +1 -1
  62. package/dist/terms/index.js +1 -1
  63. package/dist/testing/index.d.ts +1 -1
  64. package/dist/workspace/index.js +1 -1
  65. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -7,6 +7,23 @@ This project adheres to [Semantic Versioning](https://semver.org/).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [4.7.0-rc.15] — 2026-11-20
11
+
12
+ Pre-release (`npm i @reopt-ai/brandapp-sdk@next`) — rc.14 타입 클라이언트의 타입 갭 둘(enterprise-bootstrap 보고).
13
+ 런타임 동작은 rc.14와 같다.
14
+
15
+ ### Changed
16
+
17
+ - **`entity()`의 속성 참조가 스키마 이름으로 좁혀진다** — `filters[].attributeId`·`sortBy`·`select`·`increments`가
18
+ `string`이 아니라 그 엔티티의 속성 이름이라 오타가 컴파일 에러가 된다(rc.14는 런타임 `UNKNOWN_ATTRIBUTE`뿐).
19
+ `where("name")`이 리터럴 이름을 유지하도록 `where`·`FilterExpression`·`AttributeFilter`가 키 타입 인자를 받는다
20
+ (기본값 `string`이라 원시 API·`createFilterBuilder`는 그대로). 스키마 없이 만든 SDK는 종전처럼 아무 문자열이나
21
+ 받는다. ⚠️ 타입 클라이언트에 속성 ID를 키로 넘기던 코드는 런타임에선 여전히 통하지만 타입은 이름만 받는다.
22
+ - **`update`·`bulkUpdate`·`backfill`의 값에 `null`을 쓸 수 있다**(`TypedPatch` — 값 지우기, 서버가 받는다).
23
+ `exactOptionalPropertyTypes`에서도 캐스트가 필요 없다.
24
+ - 새 공개 타입: `TypedPatch`, `TypedAttributeFilter`, `TypedListQuery`, `TypedCountQuery`, `TypedDeleteWhereInput`,
25
+ `TypedUpdateInput`, `TypedBackfillOptions`, `AttributeName`(`@reopt-ai/brandapp-sdk/eav`).
26
+
10
27
  ## [4.7.0-rc.14] — 2026-11-20
11
28
 
12
29
  Pre-release (`npm i @reopt-ai/brandapp-sdk@next`) — 타입 EAV 클라이언트(`sdk.eav.entity(name)`)가 실서버에서
@@ -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-CP1Jgq4R.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-DD9y7Qew.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-DrtdQNzj.js";
2
- import { n as createReoptAiClient, t as ReoptAiClient } from "../client-DHmwj3qm.js";
1
+ import { S as ReoptSDKError } from "../config-ChctVyuz.js";
2
+ import { n as createReoptAiClient, t as ReoptAiClient } from "../client-aB1rCHah.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-BGT9h1OW.js";
1
+ import { n as ReoptSDKConfig } from "../config-CSUlKyTp.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-DrtdQNzj.js";
1
+ import { i as resolveBaseUrl, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig, r as assertBrowserSafe } from "../config-ChctVyuz.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-CJFsLk3_.js";
1
+ import { n as createReoptAnalyticsClient, r as AnalyticsConfig, t as ReoptAnalyticsClient } from "../client-BY0-0nhP.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-CU_ot3SS.js";
1
+ import { n as createReoptAnalyticsClient, t as ReoptAnalyticsClient } from "../client-DbbbBNJm.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-BL-Ljwki.js";
1
+ import { i as UserInfoClaims, n as createReoptAuthClient, r as LinkCurrentUserResult, t as ReoptAuthClient } from "../client-CUdewN3W.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-BH7PYWbE.js";
1
+ import { n as createReoptAuthClient, t as ReoptAuthClient } from "../client-Ylv0P82v.js";
2
2
 
3
3
  //#region src/auth/session.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig, t as REOPT_BASE_URLS } from "../config-BGT9h1OW.js";
1
+ import { n as ReoptSDKConfig, t as REOPT_BASE_URLS } from "../config-CSUlKyTp.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
3
  import { i as ClientPrivateJwk } from "../keys-B2pA8EkU.js";
4
4
  import { T as isReoptSDKError, _ as RateLimitError, t as AuthError, v as ReoptSDKError, x as ServerError } from "../errors-D-Va8oeC.js";
@@ -1,5 +1,5 @@
1
- import { O as isReoptSDKError, S as ReoptSDKError, a as resolveIdBaseUrl, s as AuthError, t as REOPT_BASE_URLS, w as ServerError, x as RateLimitError } from "../config-DrtdQNzj.js";
2
- import { t as BaseHttpClient } from "../http-client-DQf8pVNw.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-ChctVyuz.js";
2
+ import { t as BaseHttpClient } from "../http-client-CpG8mEHO.js";
3
3
  import { o as readClientKeyRing } from "../keys-B_R_lsyF.js";
4
4
  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
5
  import { createAdapterFactory } from "better-auth/adapters";
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-BGT9h1OW.js";
1
+ import { n as ReoptSDKConfig } from "./config-CSUlKyTp.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-BbmslwWV.d.ts.map
53
+ //# sourceMappingURL=client-33gSO7lm.d.ts.map
@@ -1,6 +1,6 @@
1
- import { n as SDK_VERSION } from "./config-DrtdQNzj.js";
1
+ import { n as SDK_VERSION } from "./config-ChctVyuz.js";
2
2
  import { o as readClientKeyRing } from "./keys-B_R_lsyF.js";
3
- import { r as createMachineClient } from "./client-OHAVqTBu.js";
3
+ import { r as createMachineClient } from "./client-Ce3RqyOI.js";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/workspace/schemas.ts
@@ -742,4 +742,4 @@ function createPlatformClient(config) {
742
742
 
743
743
  //#endregion
744
744
  export { platformWebhookUpsertInputSchema as $, platformEavSchemaOperationSchema as A, platformPipelineResourceSchema as B, platformBrandappResourceSchema as C, platformEavEntityResourceSchema as D, platformEavBrandappResourcesSchema as E, platformMeSchema as F, platformResourcesSchema as G, platformPipelineStageInputSchema as H, platformOAuthClientImportInputSchema as I, platformTaskStageInputSchema as J, platformResourcesV2Schema as K, platformOAuthClientResourceSchema as L, platformExternalIdSchema as M, platformLockAcquiredSchema as N, platformEavSchemaApplyInputSchema as O, platformLockReleasedSchema as P, platformWebhookSchema as Q, platformOAuthClientUpsertInputSchema as R, platformBrandUpsertInputSchema as S, platformCustomerUpsertInputSchema as T, platformPipelineUpsertInputSchema as U, platformPipelineSchema as V, platformResourceKeySchema as W, platformTaskUpsertInputSchema as X, platformTaskStageSchema as Y, platformWebhookResourceSchema as Z, PLATFORM_TASK_PRIORITIES as _, createPlatformClient as a, platformBrandImportInputSchema as b, PLATFORM_ADMIN_SCOPE as c, PLATFORM_MANAGED_BY_VALUES as d, platformWorkTaskStageChangedEventSchema as et, PLATFORM_OAUTH_APPLICATION_TYPES as f, PLATFORM_TASK_OUTCOMES as g, PLATFORM_STAGE_COLORS as h, REOPT_PLATFORM_URLS as i, platformErrorSchema as j, platformEavSchemaApplyResultSchema as k, PLATFORM_BRANDAPP_STATUSES as l, PLATFORM_OAUTH_GRANT_TYPES as m, PlatformApiError as n, createPlatformRequester as o, PLATFORM_OAUTH_CLIENT_PURPOSES as p, platformTaskSchema as q, REOPT_PLATFORM_ID_URLS as r, resolvePlatformUrls as s, DEFAULT_PLATFORM_SCOPES as t, platformWriteMetaSchema as tt, PLATFORM_DOMAIN_STATUSES as u, PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS as v, platformBrandappUpsertInputSchema as w, platformBrandResourceSchema as x, PLATFORM_WEBHOOK_TRIGGERS as y, platformPipelineImportInputSchema as z };
745
- //# sourceMappingURL=client-BLmIi1fg.js.map
745
+ //# sourceMappingURL=client-5N6dGCPl.js.map
@@ -1,5 +1,5 @@
1
- import { t as BaseHttpClient } from "./http-client-DQf8pVNw.js";
2
- import { t as buildQuery } from "./query-ktdIV5kz.js";
1
+ import { t as BaseHttpClient } from "./http-client-CpG8mEHO.js";
2
+ import { t as buildQuery } from "./query-DFwpKnPG.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-BAr_BNfz.js.map
55
+ //# sourceMappingURL=client-5Z8ekxae.js.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-BGT9h1OW.js";
1
+ import { n as ReoptSDKConfig } from "./config-CSUlKyTp.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-Dwf6UuGH.d.ts.map
48
+ //# sourceMappingURL=client-8phVQcw8.d.ts.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-DQf8pVNw.js";
1
+ import { t as BaseHttpClient } from "./http-client-CpG8mEHO.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-CwfUFDWS.js.map
83
+ //# sourceMappingURL=client-B9_zWxmn.js.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-BGT9h1OW.js";
1
+ import { n as ReoptSDKConfig } from "./config-CSUlKyTp.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-CJFsLk3_.d.ts.map
24
+ //# sourceMappingURL=client-BY0-0nhP.d.ts.map
@@ -1,6 +1,6 @@
1
- import { S as ReoptSDKError, u as BadRequestError } from "./config-DrtdQNzj.js";
2
- import { t as BaseHttpClient } from "./http-client-DQf8pVNw.js";
3
- import { t as buildQuery } from "./query-ktdIV5kz.js";
1
+ import { S as ReoptSDKError, u as BadRequestError } from "./config-ChctVyuz.js";
2
+ import { t as BaseHttpClient } from "./http-client-CpG8mEHO.js";
3
+ import { t as buildQuery } from "./query-DFwpKnPG.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-loa5Z9hY.js.map
743
+ //# sourceMappingURL=client-BjX5K-Qh.js.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-DQf8pVNw.js";
1
+ import { t as BaseHttpClient } from "./http-client-CpG8mEHO.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-Ce0z7WTl.js.map
28
+ //# sourceMappingURL=client-BlHPiBEo.js.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-BGT9h1OW.js";
1
+ import { n as ReoptSDKConfig } from "./config-CSUlKyTp.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-CD6uK0dA.d.ts.map
292
+ //# sourceMappingURL=client-BrYt--zm.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-BGT9h1OW.js";
1
+ import { n as ReoptSDKConfig } from "./config-CSUlKyTp.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-DF-tOyrY.d.ts.map
149
+ //# sourceMappingURL=client-C08BvY3B.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-BGT9h1OW.js";
1
+ import { n as ReoptSDKConfig } from "./config-CSUlKyTp.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-NUhpPkl2.d.ts.map
53
+ //# sourceMappingURL=client-C2Yhtnhs.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-BGT9h1OW.js";
1
+ import { n as ReoptSDKConfig } from "./config-CSUlKyTp.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-wNzcgEJu.d.ts.map
272
+ //# sourceMappingURL=client-CTNoB_vH.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-BGT9h1OW.js";
1
+ import { n as ReoptSDKConfig } from "./config-CSUlKyTp.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-BL-Ljwki.d.ts.map
71
+ //# sourceMappingURL=client-CUdewN3W.d.ts.map
@@ -1,4 +1,4 @@
1
- import { a as resolveIdBaseUrl } from "./config-DrtdQNzj.js";
1
+ import { a as resolveIdBaseUrl } from "./config-ChctVyuz.js";
2
2
  import { o as readClientKeyRing, s as toPublicJwk } from "./keys-B_R_lsyF.js";
3
3
  import { createPrivateKeyJwtClientAssertionGetter } from "@better-auth/core/oauth2";
4
4
  import * as jose from "jose";
@@ -191,4 +191,4 @@ function createMachineClient(config) {
191
191
 
192
192
  //#endregion
193
193
  export { createDpopProof as n, createMachineClient as r, MachineTokenError as t };
194
- //# sourceMappingURL=client-OHAVqTBu.js.map
194
+ //# sourceMappingURL=client-Ce3RqyOI.js.map
@@ -1,6 +1,6 @@
1
- import { S as ReoptSDKError, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig } from "./config-DrtdQNzj.js";
1
+ import { S as ReoptSDKError, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig } from "./config-ChctVyuz.js";
2
2
  import { t as createManagedAbort } from "./abort--nOBFN4M.js";
3
- import { n as parseFieldErrors, t as BaseHttpClient } from "./http-client-DQf8pVNw.js";
3
+ import { n as parseFieldErrors, t as BaseHttpClient } from "./http-client-CpG8mEHO.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-Dn5CjA4d.js.map
279
+ //# sourceMappingURL=client-DCd3T29e.js.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-BGT9h1OW.js";
1
+ import { n as ReoptSDKConfig } from "./config-CSUlKyTp.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-CP1Jgq4R.d.ts.map
410
+ //# sourceMappingURL=client-DD9y7Qew.d.ts.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-DQf8pVNw.js";
1
+ import { t as BaseHttpClient } from "./http-client-CpG8mEHO.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-OEX6i4XJ.js.map
86
+ //# sourceMappingURL=client-DIAWwOhv.js.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-DQf8pVNw.js";
1
+ import { t as BaseHttpClient } from "./http-client-CpG8mEHO.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-CU_ot3SS.js.map
20
+ //# sourceMappingURL=client-DbbbBNJm.js.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-DQf8pVNw.js";
1
+ import { t as BaseHttpClient } from "./http-client-CpG8mEHO.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-BBx2uOT6.js.map
146
+ //# sourceMappingURL=client-Dg-hO_LG.js.map
@@ -1,23 +1,55 @@
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-BGT9h1OW.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-CSUlKyTp.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), so every key
13
+ * may be `null` as well as its declared type.
14
+ */
15
+ type TypedPatch<V> = { [A in keyof V]?: V[A] | null; };
16
+ type TypedListQuery<V> = Omit<ListRecordsQuery, "filters" | "sortBy" | "select"> & {
17
+ filters?: TypedAttributeFilter<V>[];
18
+ sortBy?: "createdAt" | "updatedAt" | AttributeName<V>;
19
+ select?: AttributeName<V>[];
20
+ };
21
+ type TypedCountQuery<V> = Omit<CountRecordsQuery, "filters"> & {
22
+ filters?: TypedAttributeFilter<V>[];
23
+ };
24
+ type TypedDeleteWhereInput<V> = Omit<DeleteWhereInput, "filters"> & {
25
+ filters: TypedAttributeFilter<V>[];
26
+ };
27
+ type TypedUpdateInput<V> = Omit<UpdateRecordInput, "values" | "increments"> & {
28
+ values?: TypedPatch<V>;
29
+ /** Atomic number deltas keyed by attribute name. */
30
+ increments?: Partial<Record<AttributeName<V>, number>>;
31
+ };
32
+ type TypedBackfillOptions<V> = Omit<BackfillOptions, "transform" | "filters" | "sortBy"> & {
33
+ filters?: TypedAttributeFilter<V>[];
34
+ sortBy?: TypedListQuery<V>["sortBy"];
35
+ /** Receives the record with name-keyed values; returns name-keyed values. */
36
+ transform: (record: TypedEavRecord<V>) => TypedPatch<V> | null | undefined;
37
+ };
7
38
  /**
8
39
  * Entity-scoped client with typed records API.
9
40
  *
10
41
  * Every attribute reference — `values`, `increments`, `filters[].attributeId`,
11
- * `sortBy`, `select` — is written by **attribute name** (an attribute ID is
12
- * also accepted), and returned records carry name-keyed `values`. The client
13
- * translates to the server's attribute IDs and rejects unknown keys with
14
- * `UNKNOWN_ATTRIBUTE` instead of letting the server drop them.
42
+ * `sortBy`, `select` — is written by **attribute name** and checked against
43
+ * the schema at compile time; returned records carry name-keyed `values`.
44
+ * The client translates to the server's attribute IDs and rejects unknown keys
45
+ * at run time with `UNKNOWN_ATTRIBUTE` instead of letting the server drop them
46
+ * (an attribute ID is also accepted at run time, behind a cast).
15
47
  */
16
48
  type EntityClient<E extends EntityDef> = {
17
49
  readonly entityName: string;
18
50
  records: {
19
- list(query?: ListRecordsQuery): Promise<PaginatedResponse<TypedEavRecord<InferValues<E>>>>;
20
- findOne(query?: Omit<ListRecordsQuery, "page">): Promise<TypedEavRecord<InferValues<E>> | null>;
51
+ list(query?: TypedListQuery<InferValues<E>>): Promise<PaginatedResponse<TypedEavRecord<InferValues<E>>>>;
52
+ findOne(query?: Omit<TypedListQuery<InferValues<E>>, "page">): Promise<TypedEavRecord<InferValues<E>> | null>;
21
53
  create(input: {
22
54
  authUserId?: string;
23
55
  values: InferValues<E>;
@@ -26,17 +58,13 @@ type EntityClient<E extends EntityDef> = {
26
58
  }): Promise<TypedEavRecord<InferValues<E>>>;
27
59
  upsert(input: {
28
60
  authUserId?: string;
29
- filters: AttributeFilter[];
61
+ filters: TypedAttributeFilter<InferValues<E>>[];
30
62
  values: InferValues<E>;
31
63
  }): Promise<UpsertRecordResult<TypedEavRecord<InferValues<E>>>>;
32
64
  get(recordId: string): Promise<TypedEavRecord<InferValues<E>>>;
33
- update(recordId: string, input: Omit<UpdateRecordInput, "values" | "increments"> & {
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>>>;
65
+ update(recordId: string, input: TypedUpdateInput<InferValues<E>>): Promise<TypedEavRecord<InferValues<E>>>;
38
66
  delete(recordId: string): Promise<void>;
39
- count(query?: CountRecordsQuery): Promise<number>;
67
+ count(query?: TypedCountQuery<InferValues<E>>): Promise<number>;
40
68
  bulkCreate(records: Array<{
41
69
  authUserId?: string;
42
70
  values: InferValues<E>;
@@ -45,14 +73,11 @@ type EntityClient<E extends EntityDef> = {
45
73
  bulkDelete(ids: string[]): Promise<number>;
46
74
  bulkUpdate(updates: Array<{
47
75
  id: string;
48
- values: Partial<InferValues<E>>;
76
+ values: TypedPatch<InferValues<E>>;
49
77
  }>): Promise<TypedEavRecord<InferValues<E>>[]>;
50
- deleteWhere(input: DeleteWhereInput): Promise<number>;
51
- listAll(query?: Omit<ListRecordsQuery, "page">): AsyncGenerator<TypedEavRecord<InferValues<E>>>;
52
- /** `transform` receives the record with name-keyed values and returns name-keyed values. */
53
- backfill(opts: Omit<BackfillOptions, "transform"> & {
54
- transform: (record: TypedEavRecord<InferValues<E>>) => Partial<InferValues<E>> | null | undefined;
55
- }): Promise<BackfillResult>;
78
+ deleteWhere(input: TypedDeleteWhereInput<InferValues<E>>): Promise<number>;
79
+ listAll(query?: Omit<TypedListQuery<InferValues<E>>, "page">): AsyncGenerator<TypedEavRecord<InferValues<E>>>;
80
+ backfill(opts: TypedBackfillOptions<InferValues<E>>): Promise<BackfillResult>;
56
81
  };
57
82
  };
58
83
  //#endregion
@@ -118,5 +143,5 @@ type ReoptEavClient<S extends SchemaDef = SchemaDef> = {
118
143
  };
119
144
  declare function createReoptEavClient<S extends SchemaDef = SchemaDef>(config: ReoptSDKConfig<S>): ReoptEavClient<S>;
120
145
  //#endregion
121
- export { TypedEavRecord as i, createReoptEavClient as n, EntityClient as r, ReoptEavClient as t };
122
- //# sourceMappingURL=client-CyFOwE5p.d.ts.map
146
+ 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 };
147
+ //# sourceMappingURL=client-QPvDSMNd.d.ts.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-DQf8pVNw.js";
1
+ import { t as BaseHttpClient } from "./http-client-CpG8mEHO.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-BH7PYWbE.js.map
53
+ //# sourceMappingURL=client-Ylv0P82v.js.map
@@ -1,6 +1,6 @@
1
- import { S as ReoptSDKError, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig } from "./config-DrtdQNzj.js";
1
+ import { S as ReoptSDKError, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig } from "./config-ChctVyuz.js";
2
2
  import { t as createManagedAbort } from "./abort--nOBFN4M.js";
3
- import { t as BaseHttpClient } from "./http-client-DQf8pVNw.js";
3
+ import { t as BaseHttpClient } from "./http-client-CpG8mEHO.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.14"}-${url.length}`;
265
+ const requestId = globalThis.crypto?.randomUUID?.() ?? `sdk-${"4.7.0-rc.15"}-${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-DHmwj3qm.js.map
346
+ //# sourceMappingURL=client-aB1rCHah.js.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-NUhpPkl2.js";
2
+ import { n as createReoptCmsClient, t as ReoptCmsClient } from "../client-C2Yhtnhs.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-BAr_BNfz.js";
1
+ import { t as createReoptCmsClient } from "../client-5Z8ekxae.js";
2
2
 
3
3
  //#region src/cms/helpers.ts
4
4
  function joinUrl(siteUrl, path) {
@@ -135,8 +135,12 @@ type AttributeFilterOperator = (typeof ATTRIBUTE_FILTER_OPERATORS)[number];
135
135
  type AttributeFilterListValue = string | number | boolean | null;
136
136
  /** Maximum number of entries in one `in` / `not_in` list (server-enforced). */
137
137
  declare const ATTRIBUTE_FILTER_LIST_MAX = 100;
138
- type AttributeFilter = {
139
- attributeId: string;
138
+ type AttributeFilter<K extends string = string> = {
139
+ /**
140
+ * Attribute ID for the raw `records.*` API. In the typed `entity()` client
141
+ * this is the attribute **name** (narrowed to the schema's names).
142
+ */
143
+ attributeId: K;
140
144
  operator: AttributeFilterOperator;
141
145
  /**
142
146
  * `in` / `not_in` require a non-empty array of at most
@@ -465,4 +469,4 @@ type ReoptSDKConfig<S extends SchemaDef = SchemaDef> = {
465
469
  declare function resolveBaseUrl(config: ReoptSDKConfig): string;
466
470
  //#endregion
467
471
  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-BGT9h1OW.d.ts.map
472
+ //# sourceMappingURL=config-CSUlKyTp.d.ts.map
@@ -370,7 +370,7 @@ function mapHttpStatusToError(status, code, message, ctx, fieldErrors) {
370
370
 
371
371
  //#endregion
372
372
  //#region src/core/config.ts
373
- const SDK_VERSION = "4.7.0-rc.14";
373
+ const SDK_VERSION = "4.7.0-rc.15";
374
374
  /**
375
375
  * Default API host for EAV / AI / Files / CMS / Terms. Consumers can override
376
376
  * via `config.baseUrl` or the `REOPT_BASE_URL` env var.
@@ -552,4 +552,4 @@ function deriveIdFromBaseUrl(baseUrl) {
552
552
 
553
553
  //#endregion
554
554
  export { isValidationError as A, RequiredTermsError as C, isModelAccessError as D, isCreditLimitError as E, isReoptSDKError as O, ReoptSDKError as S, ValidationError as T, ModelAccessError as _, resolveIdBaseUrl as a, PreconditionFailedError as b, AuthUserNotFoundError as c, ConflictError as d, ContentFilterError as f, LimitExceededError as g, ForbiddenError as h, resolveBaseUrl as i, mapHttpStatusToError as j, isRequiredTermsError as k, AuthUserRecordExistsError as l, DuplicateAuthUserError as m, SDK_VERSION as n, validateConfig as o, CreditLimitError as p, assertBrowserSafe as r, AuthError as s, REOPT_BASE_URLS as t, BadRequestError as u, ModelNotFoundError as v, ServerError as w, RateLimitError as x, NotFoundError as y };
555
- //# sourceMappingURL=config-DrtdQNzj.js.map
555
+ //# sourceMappingURL=config-ChctVyuz.js.map
@@ -1,6 +1,6 @@
1
- import { A as ListRecordsQuery, C as EavAttribute, D as EavRecord, E as EavEntity, F as UpdateRecordInput, I as UpsertRecordInput, L as UpsertRecordResult, M as RECORDS_PAGE_LIMIT_MAX, N as UpdateAttributeInput, O as EavSchemaLinkedTo, P as UpdateEntityInput, S as DeleteWhereInput, T as EavDataType, _ as BulkUpdateItem, b as CreateEntityInput, d as ATTRIBUTE_FILTER_OPERATORS, f as AttributeFilter, j as PaginatedResponse, k as EavValidation, m as AttributeFilterOperator, n as ReoptSDKConfig, p as AttributeFilterListValue, u as ATTRIBUTE_FILTER_LIST_MAX, v as CountRecordsQuery, w as EavAttributeOption, x as CreateRecordInput, y as CreateAttributeInput } from "../config-BGT9h1OW.js";
1
+ import { A as ListRecordsQuery, C as EavAttribute, D as EavRecord, E as EavEntity, F as UpdateRecordInput, I as UpsertRecordInput, L as UpsertRecordResult, M as RECORDS_PAGE_LIMIT_MAX, N as UpdateAttributeInput, O as EavSchemaLinkedTo, P as UpdateEntityInput, S as DeleteWhereInput, T as EavDataType, _ as BulkUpdateItem, b as CreateEntityInput, d as ATTRIBUTE_FILTER_OPERATORS, f as AttributeFilter, j as PaginatedResponse, k as EavValidation, m as AttributeFilterOperator, n as ReoptSDKConfig, p as AttributeFilterListValue, u as ATTRIBUTE_FILTER_LIST_MAX, v as CountRecordsQuery, w as EavAttributeOption, x as CreateRecordInput, y as CreateAttributeInput } from "../config-CSUlKyTp.js";
2
2
  import { c as DuplicateAuthUserError, f as LimitExceededError, n as AuthUserNotFoundError, r as AuthUserRecordExistsError } from "../errors-D-Va8oeC.js";
3
- import { i as TypedEavRecord, n as createReoptEavClient, r as EntityClient, t as ReoptEavClient } from "../client-CyFOwE5p.js";
3
+ import { a as TypedAttributeFilter, c as TypedDeleteWhereInput, d as TypedPatch, f as TypedUpdateInput, i as EntityClient, l as TypedEavRecord, n as createReoptEavClient, o as TypedBackfillOptions, r as AttributeName, s as TypedCountQuery, t as ReoptEavClient, u as TypedListQuery } from "../client-QPvDSMNd.js";
4
4
  //#region src/eav/verify.d.ts
5
5
  /**
6
6
  * Runtime drift check between a deployed bundle and the live server schema
@@ -126,44 +126,47 @@ declare function computeEavSchemaHash(schemas: CanonicalEavSchema[]): Promise<st
126
126
  declare function collectAll<T>(gen: AsyncIterable<T>): Promise<T[]>;
127
127
  //#endregion
128
128
  //#region src/eav/filter-builder.d.ts
129
- declare class FilterExpression {
129
+ declare class FilterExpression<K extends string = string> {
130
130
  private readonly attributeId;
131
- constructor(attributeId: string);
131
+ constructor(attributeId: K);
132
132
  private make;
133
133
  /** 값이 같은 레코드 */
134
- eq(value: unknown): AttributeFilter;
134
+ eq(value: unknown): AttributeFilter<K>;
135
135
  /** 값이 다른 레코드 */
136
- neq(value: unknown): AttributeFilter;
136
+ neq(value: unknown): AttributeFilter<K>;
137
137
  /**
138
138
  * 값이 목록 안에 있는 레코드 (`eq`의 집합 확장)
139
139
  *
140
140
  * 🔴 빈 목록은 서버가 400으로 거절한다 — `[]`를 "조건 없음"으로 읽으면 필터를 건
141
141
  * 줄 아는 호출부에 무필터 결과가 간다. 제외가 없으면 필터를 **빼야** 한다.
142
142
  */
143
- in(values: readonly AttributeFilterListValue[]): AttributeFilter;
143
+ in(values: readonly AttributeFilterListValue[]): AttributeFilter<K>;
144
144
  /** 값이 목록에 없는 레코드 (`neq`의 집합 확장 — 값이 없는 레코드도 포함된다) */
145
- notIn(values: readonly AttributeFilterListValue[]): AttributeFilter;
145
+ notIn(values: readonly AttributeFilterListValue[]): AttributeFilter<K>;
146
146
  /** 값에 문자열을 포함하는 레코드 */
147
- contains(value: string): AttributeFilter;
147
+ contains(value: string): AttributeFilter<K>;
148
148
  /** 값이 큰 레코드 (숫자) */
149
- gt(value: number): AttributeFilter;
149
+ gt(value: number): AttributeFilter<K>;
150
150
  /** 값이 작은 레코드 (숫자) */
151
- lt(value: number): AttributeFilter;
151
+ lt(value: number): AttributeFilter<K>;
152
152
  /** 값이 크거나 같은 레코드 (숫자) */
153
- gte(value: number): AttributeFilter;
153
+ gte(value: number): AttributeFilter<K>;
154
154
  /** 값이 작거나 같은 레코드 (숫자) */
155
- lte(value: number): AttributeFilter;
155
+ lte(value: number): AttributeFilter<K>;
156
156
  /** 값이 null인 레코드 */
157
- isNull(): AttributeFilter;
157
+ isNull(): AttributeFilter<K>;
158
158
  /** 값이 null이 아닌 레코드 */
159
- isNotNull(): AttributeFilter;
159
+ isNotNull(): AttributeFilter<K>;
160
160
  /** 날짜 이후 레코드 */
161
- after(value: string | Date): AttributeFilter;
161
+ after(value: string | Date): AttributeFilter<K>;
162
162
  /** 날짜 이전 레코드 */
163
- before(value: string | Date): AttributeFilter;
163
+ before(value: string | Date): AttributeFilter<K>;
164
164
  }
165
165
  /**
166
- * 필터 표현식 생성 — attribute name을 ID로 직접 사용
166
+ * 필터 표현식 생성. 인자를 그대로 `attributeId`에 싣는다 — 이름을 ID로 바꾸는 것은
167
+ * `sdk.eav.entity(name)`의 몫이다. 타입 클라이언트에서는 리터럴 이름이 유지되어
168
+ * 스키마에 없는 이름이 컴파일 에러가 된다. 원시 API(`sdk.eav.records.*`)에는 속성 ID를
169
+ * 넘긴다(이름을 넘기면 서버가 모르는 속성으로 본다).
167
170
  *
168
171
  * @example
169
172
  * ```ts
@@ -172,7 +175,7 @@ declare class FilterExpression {
172
175
  * where("deletedAt").isNull()
173
176
  * ```
174
177
  */
175
- declare function where(attributeNameOrId: string): FilterExpression;
178
+ declare function where<const K extends string>(attributeNameOrId: K): FilterExpression<K>;
176
179
  /**
177
180
  * 스키마에서 생성된 ATTRIBUTE_IDS 맵 기반의 타입 안전 필터 빌더
178
181
  *
@@ -191,5 +194,5 @@ declare function where(attributeNameOrId: string): FilterExpression;
191
194
  */
192
195
  declare function createFilterBuilder<T extends Record<string, string>>(attributeIdMap: T): (name: keyof T & string) => FilterExpression;
193
196
  //#endregion
194
- export { ATTRIBUTE_FILTER_LIST_MAX, ATTRIBUTE_FILTER_OPERATORS, type AttributeFilter, type AttributeFilterListValue, type AttributeFilterOperator, AuthUserNotFoundError, AuthUserRecordExistsError, type BulkUpdateItem, type CanonicalEavField, type CanonicalEavSchema, type CountRecordsQuery, type CreateAttributeInput, type CreateEntityInput, type CreateRecordInput, type DeleteWhereInput, DuplicateAuthUserError, type EavAttribute, type EavAttributeOption, type EavDataType, type EavEntity, type EavRecord, type EavSchemaLinkedTo, type EavValidation, type EntityClient, FilterExpression, LimitExceededError, type ListRecordsQuery, type PaginatedResponse, RECORDS_PAGE_LIMIT_MAX, type ReoptEavClient, type ReoptSDKConfig, type TypedEavRecord, type UpdateAttributeInput, type UpdateEntityInput, type UpdateRecordInput, type UpsertRecordInput, type UpsertRecordResult, type VerifyEavSchemaInput, type VerifyEavSchemaResult, canonicalizeEavSchemas, collectAll, computeEavSchemaHash, createFilterBuilder, createReoptEavClient, hashCanonicalString, verifyEavSchema, where };
197
+ export { ATTRIBUTE_FILTER_LIST_MAX, ATTRIBUTE_FILTER_OPERATORS, type AttributeFilter, type AttributeFilterListValue, type AttributeFilterOperator, type AttributeName, AuthUserNotFoundError, AuthUserRecordExistsError, type BulkUpdateItem, type CanonicalEavField, type CanonicalEavSchema, type CountRecordsQuery, type CreateAttributeInput, type CreateEntityInput, type CreateRecordInput, type DeleteWhereInput, DuplicateAuthUserError, type EavAttribute, type EavAttributeOption, type EavDataType, type EavEntity, type EavRecord, type EavSchemaLinkedTo, type EavValidation, type EntityClient, FilterExpression, LimitExceededError, type ListRecordsQuery, type PaginatedResponse, RECORDS_PAGE_LIMIT_MAX, type ReoptEavClient, type ReoptSDKConfig, type TypedAttributeFilter, type TypedBackfillOptions, type TypedCountQuery, type TypedDeleteWhereInput, type TypedEavRecord, type TypedListQuery, type TypedPatch, type TypedUpdateInput, type UpdateAttributeInput, type UpdateEntityInput, type UpdateRecordInput, type UpsertRecordInput, type UpsertRecordResult, type VerifyEavSchemaInput, type VerifyEavSchemaResult, canonicalizeEavSchemas, collectAll, computeEavSchemaHash, createFilterBuilder, createReoptEavClient, hashCanonicalString, verifyEavSchema, where };
195
198
  //# sourceMappingURL=index.d.ts.map
package/dist/eav/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { c as AuthUserNotFoundError, g as LimitExceededError, l as AuthUserRecordExistsError, m as DuplicateAuthUserError } from "../config-DrtdQNzj.js";
2
- import { i as RECORDS_PAGE_LIMIT_MAX, n as ATTRIBUTE_FILTER_LIST_MAX, r as ATTRIBUTE_FILTER_OPERATORS, t as createReoptEavClient } from "../client-loa5Z9hY.js";
1
+ import { c as AuthUserNotFoundError, g as LimitExceededError, l as AuthUserRecordExistsError, m as DuplicateAuthUserError } from "../config-ChctVyuz.js";
2
+ import { i as RECORDS_PAGE_LIMIT_MAX, n as ATTRIBUTE_FILTER_LIST_MAX, r as ATTRIBUTE_FILTER_OPERATORS, t as createReoptEavClient } from "../client-BjX5K-Qh.js";
3
3
 
4
4
  //#region src/eav/verify.ts
5
5
  async function verifyEavSchema(input) {
@@ -152,7 +152,10 @@ var FilterExpression = class {
152
152
  }
153
153
  };
154
154
  /**
155
- * 필터 표현식 생성 — attribute name을 ID로 직접 사용
155
+ * 필터 표현식 생성. 인자를 그대로 `attributeId`에 싣는다 — 이름을 ID로 바꾸는 것은
156
+ * `sdk.eav.entity(name)`의 몫이다. 타입 클라이언트에서는 리터럴 이름이 유지되어
157
+ * 스키마에 없는 이름이 컴파일 에러가 된다. 원시 API(`sdk.eav.records.*`)에는 속성 ID를
158
+ * 넘긴다(이름을 넘기면 서버가 모르는 속성으로 본다).
156
159
  *
157
160
  * @example
158
161
  * ```ts
@@ -1,5 +1,5 @@
1
- import { o as AttributeDef, s as EntityDef } from "../config-BGT9h1OW.js";
2
- import { t as ReoptEavClient } from "../client-CyFOwE5p.js";
1
+ import { o as AttributeDef, s as EntityDef } from "../config-CSUlKyTp.js";
2
+ import { t as ReoptEavClient } from "../client-QPvDSMNd.js";
3
3
  //#region src/eav/migrate/types.d.ts
4
4
  /**
5
5
  * Subset of `ReoptEavClient.records` exposed inside a migration's `up`/`down`.
@@ -1,5 +1,5 @@
1
- import { C as EavAttribute, E as EavEntity, T as EavDataType, c as InferValues, l as SchemaDef, o as AttributeDef, s as EntityDef } from "../config-BGT9h1OW.js";
2
- import { t as ReoptEavClient } from "../client-CyFOwE5p.js";
1
+ import { C as EavAttribute, E as EavEntity, T as EavDataType, c as InferValues, l as SchemaDef, o as AttributeDef, s as EntityDef } from "../config-CSUlKyTp.js";
2
+ import { t as ReoptEavClient } from "../client-QPvDSMNd.js";
3
3
  //#region src/eav/schema/define.d.ts
4
4
  declare function defineEntity<const A extends Record<string, AttributeDef>>(def: EntityDef<A>): EntityDef<A>;
5
5
  declare function defineSchema<const E extends Record<string, EntityDef>>(def: SchemaDef<E>): SchemaDef<E>;
@@ -1,2 +1,2 @@
1
- import { a as CreateFeedbackResult, c as FeedbackListMeta, d as FeedbackReplyAuthor, f as FeedbackStatus, i as CreateFeedbackReplyResult, l as FeedbackListResult, m as RateFeedbackReplyResult, n as createReoptFeedbackClient, o as Feedback, p as ListFeedbackQuery, r as CreateFeedbackInput, s as FeedbackDetail, t as ReoptFeedbackClient, u as FeedbackReply } from "../client-DF-tOyrY.js";
1
+ import { a as CreateFeedbackResult, c as FeedbackListMeta, d as FeedbackReplyAuthor, f as FeedbackStatus, i as CreateFeedbackReplyResult, l as FeedbackListResult, m as RateFeedbackReplyResult, n as createReoptFeedbackClient, o as Feedback, p as ListFeedbackQuery, r as CreateFeedbackInput, s as FeedbackDetail, t as ReoptFeedbackClient, u as FeedbackReply } from "../client-C08BvY3B.js";
2
2
  export { type CreateFeedbackInput, type CreateFeedbackReplyResult, type CreateFeedbackResult, type Feedback, type FeedbackDetail, type FeedbackListMeta, type FeedbackListResult, type FeedbackReply, type FeedbackReplyAuthor, type FeedbackStatus, type ListFeedbackQuery, type RateFeedbackReplyResult, ReoptFeedbackClient, createReoptFeedbackClient };
@@ -1,3 +1,3 @@
1
- import { n as createReoptFeedbackClient, t as ReoptFeedbackClient } from "../client-OEX6i4XJ.js";
1
+ import { n as createReoptFeedbackClient, t as ReoptFeedbackClient } from "../client-DIAWwOhv.js";
2
2
 
3
3
  export { ReoptFeedbackClient, createReoptFeedbackClient };
@@ -1,4 +1,4 @@
1
- import { a as FileListQuery, c as FolderInfo, d as UpdateFolderInput, f as UploadOptions, i as FileInfo, l as FolderListQuery, n as createReoptFileClient, o as FileListResponse, r as CreateFolderInput, s as FileUsageInfo, t as ReoptFileClient, u as UpdateFileInput } from "../client-wNzcgEJu.js";
1
+ import { a as FileListQuery, c as FolderInfo, d as UpdateFolderInput, f as UploadOptions, i as FileInfo, l as FolderListQuery, n as createReoptFileClient, o as FileListResponse, r as CreateFolderInput, s as FileUsageInfo, t as ReoptFileClient, u as UpdateFileInput } from "../client-CTNoB_vH.js";
2
2
  //#region src/files/helpers.d.ts
3
3
  /**
4
4
  * 이미지 URL 헬퍼 — Next.js `<Image>`와 결합해 사용.
@@ -1,4 +1,4 @@
1
- import { n as createReoptFileClient, t as ReoptFileClient } from "../client-Dn5CjA4d.js";
1
+ import { n as createReoptFileClient, t as ReoptFileClient } from "../client-DCd3T29e.js";
2
2
 
3
3
  //#region src/files/helpers.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { S as ReoptSDKError, a as resolveIdBaseUrl, i as resolveBaseUrl, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig, w as ServerError, x as RateLimitError } from "./config-DrtdQNzj.js";
1
+ import { S as ReoptSDKError, a as resolveIdBaseUrl, i as resolveBaseUrl, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig, w as ServerError, x as RateLimitError } from "./config-ChctVyuz.js";
2
2
  import { t as createAuthHeader } from "./encoding-Bwfm3iaE.js";
3
3
 
4
4
  //#region src/core/debug.ts
@@ -412,4 +412,4 @@ function parseFieldErrors(body) {
412
412
 
413
413
  //#endregion
414
414
  export { parseFieldErrors as n, BaseHttpClient as t };
415
- //# sourceMappingURL=http-client-DQf8pVNw.js.map
415
+ //# sourceMappingURL=http-client-CpG8mEHO.js.map
@@ -1,14 +1,14 @@
1
- import { l as SchemaDef, n as ReoptSDKConfig } from "./config-BGT9h1OW.js";
2
- import { t as ReoptAiClient } from "./client-CP1Jgq4R.js";
3
- import { t as ReoptAnalyticsClient } from "./client-CJFsLk3_.js";
4
- import { t as ReoptAuthClient } from "./client-BL-Ljwki.js";
5
- import { t as ReoptCmsClient } from "./client-NUhpPkl2.js";
6
- import { t as ReoptEavClient } from "./client-CyFOwE5p.js";
7
- import { t as ReoptFeedbackClient } from "./client-DF-tOyrY.js";
8
- import { t as ReoptFileClient } from "./client-wNzcgEJu.js";
9
- import { t as ReoptPlansClient } from "./client-CD6uK0dA.js";
10
- import { t as ReoptPushClient } from "./client-BbmslwWV.js";
11
- import { t as ReoptTermsClient } from "./client-Dwf6UuGH.js";
1
+ import { l as SchemaDef, n as ReoptSDKConfig } from "./config-CSUlKyTp.js";
2
+ import { t as ReoptAiClient } from "./client-DD9y7Qew.js";
3
+ import { t as ReoptAnalyticsClient } from "./client-BY0-0nhP.js";
4
+ import { t as ReoptAuthClient } from "./client-CUdewN3W.js";
5
+ import { t as ReoptCmsClient } from "./client-C2Yhtnhs.js";
6
+ import { t as ReoptEavClient } from "./client-QPvDSMNd.js";
7
+ import { t as ReoptFeedbackClient } from "./client-C08BvY3B.js";
8
+ import { t as ReoptFileClient } from "./client-CTNoB_vH.js";
9
+ import { t as ReoptPlansClient } from "./client-BrYt--zm.js";
10
+ import { t as ReoptPushClient } from "./client-33gSO7lm.js";
11
+ import { t as ReoptTermsClient } from "./client-8phVQcw8.js";
12
12
  //#region src/core/http-client.d.ts
13
13
  type FetchOptions = {
14
14
  /** Abort the request via an external AbortSignal (merged with timeout signal). */
@@ -197,4 +197,4 @@ type ReoptSDK<S extends SchemaDef = SchemaDef> = {
197
197
  declare function createReoptSDK<S extends SchemaDef = SchemaDef>(config: ReoptSDKConfig<S>): ReoptSDK<S>;
198
198
  //#endregion
199
199
  export { initReoptSDK as a, getReoptSDK as i, createReoptSDK as n, resetSDK as o, createLazySDK as r, BaseHttpClient as s, ReoptSDK as t };
200
- //# sourceMappingURL=index-BQaGBa_K.d.ts.map
200
+ //# sourceMappingURL=index-tEgiKb5o.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { a as DebugLogger, i as DebugLevel, n as ReoptSDKConfig, r as resolveBaseUrl, t as REOPT_BASE_URLS } from "./config-BGT9h1OW.js";
2
- import { C as StreamEvent, S as StreamDoneData, _ as ImageGenerateOptions, b as ModelInfo, d as EvaluateOptions, f as EvaluationAnswer, g as FinishReason, h as EvaluationResult, i as ChatMessage, m as EvaluationQuestion, o as CompletionOptions, p as EvaluationInput, r as AgentInfo, s as CompletionResult, u as CreditInfo, v as ImageGenerateResult, y as MessageRole } from "./client-CP1Jgq4R.js";
1
+ import { a as DebugLogger, i as DebugLevel, n as ReoptSDKConfig, r as resolveBaseUrl, t as REOPT_BASE_URLS } from "./config-CSUlKyTp.js";
2
+ import { C as StreamEvent, S as StreamDoneData, _ as ImageGenerateOptions, b as ModelInfo, d as EvaluateOptions, f as EvaluationAnswer, g as FinishReason, h as EvaluationResult, i as ChatMessage, m as EvaluationQuestion, o as CompletionOptions, p as EvaluationInput, r as AgentInfo, s as CompletionResult, u as CreditInfo, v as ImageGenerateResult, y as MessageRole } from "./client-DD9y7Qew.js";
3
3
  import { C as isCreditLimitError, D as isValidationError, E as isRequiredTermsError, O as mapHttpStatusToError, S as ValidationError, T as isReoptSDKError, _ as RateLimitError, a as ConflictError, b as RequiredTermsError, c as DuplicateAuthUserError, d as ForbiddenError, f as LimitExceededError, g as PreconditionFailedError, h as NotFoundError, i as BadRequestError, l as ErrorDiagnostic, m as ModelNotFoundError, n as AuthUserNotFoundError, o as ContentFilterError, p as ModelAccessError, r as AuthUserRecordExistsError, s as CreditLimitError, t as AuthError, u as FieldError, v as ReoptSDKError, w as isModelAccessError, x as ServerError, y as ReoptSDKErrorContext } from "./errors-D-Va8oeC.js";
4
- import { i as TypedEavRecord, r as EntityClient } from "./client-CyFOwE5p.js";
5
- import { a as initReoptSDK, i as getReoptSDK, n as createReoptSDK, o as resetSDK, r as createLazySDK, s as BaseHttpClient, t as ReoptSDK } from "./index-BQaGBa_K.js";
4
+ import { i as EntityClient, l as TypedEavRecord } from "./client-QPvDSMNd.js";
5
+ import { a as initReoptSDK, i as getReoptSDK, n as createReoptSDK, o as resetSDK, r as createLazySDK, s as BaseHttpClient, t as ReoptSDK } from "./index-tEgiKb5o.js";
6
6
  export { type AgentInfo, AuthError, AuthUserNotFoundError, AuthUserRecordExistsError, BadRequestError, BaseHttpClient, type ChatMessage, type CompletionOptions, type CompletionResult, ConflictError, ContentFilterError, type CreditInfo, CreditLimitError, type DebugLevel, type DebugLogger, DuplicateAuthUserError, type EntityClient, type ErrorDiagnostic, type EvaluateOptions, type EvaluationAnswer, type EvaluationInput, type EvaluationQuestion, type EvaluationResult, type FieldError, type FinishReason, ForbiddenError, type ImageGenerateOptions, type ImageGenerateResult, LimitExceededError, type MessageRole, ModelAccessError, type ModelInfo, ModelNotFoundError, NotFoundError, PreconditionFailedError, REOPT_BASE_URLS, RateLimitError, ReoptSDK, type ReoptSDKConfig, ReoptSDKError, type ReoptSDKErrorContext, RequiredTermsError, ServerError, type StreamDoneData, type StreamEvent, type TypedEavRecord, ValidationError, createLazySDK, createReoptSDK, getReoptSDK, initReoptSDK, isCreditLimitError, isModelAccessError, isReoptSDKError, isRequiredTermsError, isValidationError, mapHttpStatusToError, resetSDK, resolveBaseUrl };
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
- import { A as isValidationError, C as RequiredTermsError, D as isModelAccessError, E as isCreditLimitError, O as isReoptSDKError, S as ReoptSDKError, T as ValidationError, _ as ModelAccessError, b as PreconditionFailedError, c as AuthUserNotFoundError, d as ConflictError, f as ContentFilterError, g as LimitExceededError, h as ForbiddenError, i as resolveBaseUrl, j as mapHttpStatusToError, k as isRequiredTermsError, l as AuthUserRecordExistsError, m as DuplicateAuthUserError, p as CreditLimitError, r as assertBrowserSafe, s as AuthError, t as REOPT_BASE_URLS, u as BadRequestError, v as ModelNotFoundError, w as ServerError, x as RateLimitError, y as NotFoundError } from "./config-DrtdQNzj.js";
2
- import { t as BaseHttpClient } from "./http-client-DQf8pVNw.js";
3
- import { n as createReoptAiClient } from "./client-DHmwj3qm.js";
4
- import { n as createReoptAuthClient } from "./client-BH7PYWbE.js";
5
- import { t as createReoptCmsClient } from "./client-BAr_BNfz.js";
6
- import { t as createReoptEavClient } from "./client-loa5Z9hY.js";
7
- import { n as createReoptFeedbackClient } from "./client-OEX6i4XJ.js";
8
- import { n as createReoptFileClient } from "./client-Dn5CjA4d.js";
9
- import { n as createReoptAnalyticsClient } from "./client-CU_ot3SS.js";
10
- import { n as createReoptPlansClient } from "./client-BBx2uOT6.js";
11
- import { n as createReoptPushClient } from "./client-Ce0z7WTl.js";
12
- import { n as createReoptTermsClient } from "./client-CwfUFDWS.js";
1
+ import { A as isValidationError, C as RequiredTermsError, D as isModelAccessError, E as isCreditLimitError, O as isReoptSDKError, S as ReoptSDKError, T as ValidationError, _ as ModelAccessError, b as PreconditionFailedError, c as AuthUserNotFoundError, d as ConflictError, f as ContentFilterError, g as LimitExceededError, h as ForbiddenError, i as resolveBaseUrl, j as mapHttpStatusToError, k as isRequiredTermsError, l as AuthUserRecordExistsError, m as DuplicateAuthUserError, p as CreditLimitError, r as assertBrowserSafe, s as AuthError, t as REOPT_BASE_URLS, u as BadRequestError, v as ModelNotFoundError, w as ServerError, x as RateLimitError, y as NotFoundError } from "./config-ChctVyuz.js";
2
+ import { t as BaseHttpClient } from "./http-client-CpG8mEHO.js";
3
+ import { n as createReoptAiClient } from "./client-aB1rCHah.js";
4
+ import { n as createReoptAuthClient } from "./client-Ylv0P82v.js";
5
+ import { t as createReoptCmsClient } from "./client-5Z8ekxae.js";
6
+ import { t as createReoptEavClient } from "./client-BjX5K-Qh.js";
7
+ import { n as createReoptFeedbackClient } from "./client-DIAWwOhv.js";
8
+ import { n as createReoptFileClient } from "./client-DCd3T29e.js";
9
+ import { n as createReoptAnalyticsClient } from "./client-DbbbBNJm.js";
10
+ import { n as createReoptPlansClient } from "./client-Dg-hO_LG.js";
11
+ import { n as createReoptPushClient } from "./client-BlHPiBEo.js";
12
+ import { n as createReoptTermsClient } from "./client-B9_zWxmn.js";
13
13
 
14
14
  //#region src/singleton.ts
15
15
  let _instance;
@@ -1,7 +1,7 @@
1
- import { n as SDK_VERSION } from "../config-DrtdQNzj.js";
1
+ import { n as SDK_VERSION } from "../config-ChctVyuz.js";
2
2
  import { o as readClientKeyRing } from "../keys-B_R_lsyF.js";
3
- import { r as createMachineClient } from "../client-OHAVqTBu.js";
4
- import { S as platformBrandUpsertInputSchema, U as platformPipelineUpsertInputSchema, W as platformResourceKeySchema, j as platformErrorSchema, n as PlatformApiError, p as PLATFORM_OAUTH_CLIENT_PURPOSES, s as resolvePlatformUrls, w as platformBrandappUpsertInputSchema, y as PLATFORM_WEBHOOK_TRIGGERS } from "../client-BLmIi1fg.js";
3
+ import { r as createMachineClient } from "../client-Ce3RqyOI.js";
4
+ import { S as platformBrandUpsertInputSchema, U as platformPipelineUpsertInputSchema, W as platformResourceKeySchema, j as platformErrorSchema, n as PlatformApiError, p as PLATFORM_OAUTH_CLIENT_PURPOSES, s as resolvePlatformUrls, w as platformBrandappUpsertInputSchema, y as PLATFORM_WEBHOOK_TRIGGERS } from "../client-5N6dGCPl.js";
5
5
  import * as jose from "jose";
6
6
  import { z } from "zod";
7
7
 
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "../config-BGT9h1OW.js";
1
+ import { n as ReoptSDKConfig } from "../config-CSUlKyTp.js";
2
2
  //#region src/logout/verify.d.ts
3
3
  type VerifyLogoutTokenOptions = {
4
4
  /** 자기 OAuth client_id — logout_token `aud` 검증. 미지정 시 config/env에서 유도. */
@@ -1,4 +1,4 @@
1
- import { S as ReoptSDKError, a as resolveIdBaseUrl } from "../config-DrtdQNzj.js";
1
+ import { S as ReoptSDKError, a as resolveIdBaseUrl } from "../config-ChctVyuz.js";
2
2
 
3
3
  //#region src/logout/verify.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
1
  import { a as parseClientPrivateJwk, i as generateClientKeyPair, n as DEFAULT_CLIENT_KEY_ALGORITHM, o as readClientKeyRing, r as buildClientJwks, s as toPublicJwk, t as CLIENT_JWKS_PATH } from "../keys-B_R_lsyF.js";
2
- import { n as createDpopProof, r as createMachineClient, t as MachineTokenError } from "../client-OHAVqTBu.js";
2
+ import { n as createDpopProof, r as createMachineClient, t as MachineTokenError } from "../client-Ce3RqyOI.js";
3
3
 
4
4
  export { CLIENT_JWKS_PATH, DEFAULT_CLIENT_KEY_ALGORITHM, MachineTokenError, buildClientJwks, createDpopProof, createMachineClient, generateClientKeyPair, parseClientPrivateJwk, readClientKeyRing, toPublicJwk };
@@ -1,2 +1,2 @@
1
- import { a as CheckoutStatus, c as MeterPricingMode, d as PlanInterval, f as PlanMeter, h as PlanRequiredTerms, i as CheckoutSession, l as Plan, m as PlanPaymentEnvironment, n as createReoptPlansClient, o as CreateCheckoutInput, p as PlanMeterTier, r as CancelSubscriptionResult, s as CurrentPlan, t as ReoptPlansClient, u as PlanBillingModel } from "../client-CD6uK0dA.js";
1
+ import { a as CheckoutStatus, c as MeterPricingMode, d as PlanInterval, f as PlanMeter, h as PlanRequiredTerms, i as CheckoutSession, l as Plan, m as PlanPaymentEnvironment, n as createReoptPlansClient, o as CreateCheckoutInput, p as PlanMeterTier, r as CancelSubscriptionResult, s as CurrentPlan, t as ReoptPlansClient, u as PlanBillingModel } from "../client-BrYt--zm.js";
2
2
  export { type CancelSubscriptionResult, type CheckoutSession, type CheckoutStatus, type CreateCheckoutInput, type CurrentPlan, type MeterPricingMode, type Plan, type PlanBillingModel, type PlanInterval, type PlanMeter, type PlanMeterTier, type PlanPaymentEnvironment, type PlanRequiredTerms, ReoptPlansClient, createReoptPlansClient };
@@ -1,3 +1,3 @@
1
- import { n as createReoptPlansClient, t as ReoptPlansClient } from "../client-BBx2uOT6.js";
1
+ import { n as createReoptPlansClient, t as ReoptPlansClient } from "../client-Dg-hO_LG.js";
2
2
 
3
3
  export { ReoptPlansClient, createReoptPlansClient };
@@ -1,2 +1,2 @@
1
- import { a as RegisterPushTokenInput, c as UnregisterPushTokenInput, i as PushProvider, l as UnregisterPushTokenResult, n as createReoptPushClient, o as RegisterPushTokenResult, r as PushPlatform, s as RegisteredPushDevice, t as ReoptPushClient } from "../client-BbmslwWV.js";
1
+ import { a as RegisterPushTokenInput, c as UnregisterPushTokenInput, i as PushProvider, l as UnregisterPushTokenResult, n as createReoptPushClient, o as RegisterPushTokenResult, r as PushPlatform, s as RegisteredPushDevice, t as ReoptPushClient } from "../client-33gSO7lm.js";
2
2
  export { type PushPlatform, type PushProvider, type RegisterPushTokenInput, type RegisterPushTokenResult, type RegisteredPushDevice, ReoptPushClient, type UnregisterPushTokenInput, type UnregisterPushTokenResult, createReoptPushClient };
@@ -1,3 +1,3 @@
1
- import { n as createReoptPushClient, t as ReoptPushClient } from "../client-Ce0z7WTl.js";
1
+ import { n as createReoptPushClient, t as ReoptPushClient } from "../client-BlHPiBEo.js";
2
2
 
3
3
  export { ReoptPushClient, createReoptPushClient };
@@ -1,4 +1,4 @@
1
- import { S as ReoptSDKError } from "./config-DrtdQNzj.js";
1
+ import { S as ReoptSDKError } from "./config-ChctVyuz.js";
2
2
 
3
3
  //#region src/core/query.ts
4
4
  /**
@@ -32,4 +32,4 @@ function buildQuery(params) {
32
32
 
33
33
  //#endregion
34
34
  export { buildQuery as t };
35
- //# sourceMappingURL=query-ktdIV5kz.js.map
35
+ //# sourceMappingURL=query-DFwpKnPG.js.map
@@ -1,9 +1,9 @@
1
- import { A as ListRecordsQuery, C as EavAttribute, D as EavRecord, E as EavEntity, F as UpdateRecordInput, I as UpsertRecordInput, L as UpsertRecordResult, S as DeleteWhereInput, _ as BulkUpdateItem, j as PaginatedResponse, x as CreateRecordInput } from "../config-BGT9h1OW.js";
2
- import { S as StreamDoneData, _ as ImageGenerateOptions, b as ModelInfo, o as CompletionOptions, r as AgentInfo, s as CompletionResult, u as CreditInfo, v as ImageGenerateResult } from "../client-CP1Jgq4R.js";
1
+ import { A as ListRecordsQuery, C as EavAttribute, D as EavRecord, E as EavEntity, F as UpdateRecordInput, I as UpsertRecordInput, L as UpsertRecordResult, S as DeleteWhereInput, _ as BulkUpdateItem, j as PaginatedResponse, x as CreateRecordInput } from "../config-CSUlKyTp.js";
2
+ import { S as StreamDoneData, _ as ImageGenerateOptions, b as ModelInfo, o as CompletionOptions, r as AgentInfo, s as CompletionResult, u as CreditInfo, v as ImageGenerateResult } from "../client-DD9y7Qew.js";
3
3
  import { v as ReoptSDKError } from "../errors-D-Va8oeC.js";
4
4
  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";
5
- import { a as FileListQuery, c as FolderInfo, d as UpdateFolderInput, f as UploadOptions, i as FileInfo, l as FolderListQuery, o as FileListResponse, r as CreateFolderInput, s as FileUsageInfo, u as UpdateFileInput } from "../client-wNzcgEJu.js";
6
- import { t as ReoptSDK } from "../index-BQaGBa_K.js";
5
+ import { a as FileListQuery, c as FolderInfo, d as UpdateFolderInput, f as UploadOptions, i as FileInfo, l as FolderListQuery, o as FileListResponse, r as CreateFolderInput, s as FileUsageInfo, u as UpdateFileInput } from "../client-CTNoB_vH.js";
6
+ import { t as ReoptSDK } from "../index-tEgiKb5o.js";
7
7
  import { UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from "@tanstack/react-query";
8
8
  //#region src/react/use-ai-stream.d.ts
9
9
  type UseAiStreamOptions = {
@@ -1,4 +1,4 @@
1
- import { i as REOPT_PLATFORM_URLS, n as PlatformApiError, o as createPlatformRequester, r as REOPT_PLATFORM_ID_URLS, s as resolvePlatformUrls } from "../client-BLmIi1fg.js";
1
+ import { i as REOPT_PLATFORM_URLS, n as PlatformApiError, o as createPlatformRequester, r as REOPT_PLATFORM_ID_URLS, s as resolvePlatformUrls } from "../client-5N6dGCPl.js";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/social/schemas.ts
@@ -1,3 +1,3 @@
1
1
  import { a as CreateConsentsResult, c as TermsJurisdiction, d as TermsVersion, f as WithdrawConsentResult, i as CreateConsentsRequest, l as TermsListResponse, n as ConsentRecord, o as ListTermsOptions, r as ConsentStatus, s as TermsItem, t as ConsentInput, u as TermsType } from "../types-C69OzBn6.js";
2
- import { n as createReoptTermsClient, t as ReoptTermsClient } from "../client-Dwf6UuGH.js";
2
+ import { n as createReoptTermsClient, t as ReoptTermsClient } from "../client-8phVQcw8.js";
3
3
  export { type ConsentInput, type ConsentRecord, type ConsentStatus, type CreateConsentsRequest, type CreateConsentsResult, type ListTermsOptions, ReoptTermsClient, type TermsItem, type TermsJurisdiction, type TermsListResponse, type TermsType, type TermsVersion, type WithdrawConsentResult, createReoptTermsClient };
@@ -1,3 +1,3 @@
1
- import { n as createReoptTermsClient, t as ReoptTermsClient } from "../client-CwfUFDWS.js";
1
+ import { n as createReoptTermsClient, t as ReoptTermsClient } from "../client-B9_zWxmn.js";
2
2
 
3
3
  export { ReoptTermsClient, createReoptTermsClient };
@@ -1,5 +1,5 @@
1
1
  import { a as SeedAllInput, c as SeedPostGroupInput, d as SeedTermsItem, l as SeedPostInput, n as DevServer, o as SeedData, t as DevSchema } from "../index-Dh8XMVFF.js";
2
- import { t as ReoptSDK } from "../index-BQaGBa_K.js";
2
+ import { t as ReoptSDK } from "../index-tEgiKb5o.js";
3
3
  //#region src/testing/index.d.ts
4
4
  type TestSDKOptions = {
5
5
  /** EAV schema to seed entities and attributes */
@@ -1,3 +1,3 @@
1
- import { $ as platformWebhookUpsertInputSchema, A as platformEavSchemaOperationSchema, B as platformPipelineResourceSchema, C as platformBrandappResourceSchema, D as platformEavEntityResourceSchema, E as platformEavBrandappResourcesSchema, F as platformMeSchema, G as platformResourcesSchema, H as platformPipelineStageInputSchema, I as platformOAuthClientImportInputSchema, J as platformTaskStageInputSchema, K as platformResourcesV2Schema, L as platformOAuthClientResourceSchema, M as platformExternalIdSchema, N as platformLockAcquiredSchema, O as platformEavSchemaApplyInputSchema, P as platformLockReleasedSchema, Q as platformWebhookSchema, R as platformOAuthClientUpsertInputSchema, S as platformBrandUpsertInputSchema, T as platformCustomerUpsertInputSchema, U as platformPipelineUpsertInputSchema, V as platformPipelineSchema, W as platformResourceKeySchema, X as platformTaskUpsertInputSchema, Y as platformTaskStageSchema, Z as platformWebhookResourceSchema, _ as PLATFORM_TASK_PRIORITIES, a as createPlatformClient, b as platformBrandImportInputSchema, c as PLATFORM_ADMIN_SCOPE, d as PLATFORM_MANAGED_BY_VALUES, et as platformWorkTaskStageChangedEventSchema, f as PLATFORM_OAUTH_APPLICATION_TYPES, g as PLATFORM_TASK_OUTCOMES, h as PLATFORM_STAGE_COLORS, i as REOPT_PLATFORM_URLS, j as platformErrorSchema, k as platformEavSchemaApplyResultSchema, l as PLATFORM_BRANDAPP_STATUSES, m as PLATFORM_OAUTH_GRANT_TYPES, n as PlatformApiError, p as PLATFORM_OAUTH_CLIENT_PURPOSES, q as platformTaskSchema, r as REOPT_PLATFORM_ID_URLS, s as resolvePlatformUrls, t as DEFAULT_PLATFORM_SCOPES, tt as platformWriteMetaSchema, u as PLATFORM_DOMAIN_STATUSES, v as PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS, w as platformBrandappUpsertInputSchema, x as platformBrandResourceSchema, y as PLATFORM_WEBHOOK_TRIGGERS, z as platformPipelineImportInputSchema } from "../client-BLmIi1fg.js";
1
+ import { $ as platformWebhookUpsertInputSchema, A as platformEavSchemaOperationSchema, B as platformPipelineResourceSchema, C as platformBrandappResourceSchema, D as platformEavEntityResourceSchema, E as platformEavBrandappResourcesSchema, F as platformMeSchema, G as platformResourcesSchema, H as platformPipelineStageInputSchema, I as platformOAuthClientImportInputSchema, J as platformTaskStageInputSchema, K as platformResourcesV2Schema, L as platformOAuthClientResourceSchema, M as platformExternalIdSchema, N as platformLockAcquiredSchema, O as platformEavSchemaApplyInputSchema, P as platformLockReleasedSchema, Q as platformWebhookSchema, R as platformOAuthClientUpsertInputSchema, S as platformBrandUpsertInputSchema, T as platformCustomerUpsertInputSchema, U as platformPipelineUpsertInputSchema, V as platformPipelineSchema, W as platformResourceKeySchema, X as platformTaskUpsertInputSchema, Y as platformTaskStageSchema, Z as platformWebhookResourceSchema, _ as PLATFORM_TASK_PRIORITIES, a as createPlatformClient, b as platformBrandImportInputSchema, c as PLATFORM_ADMIN_SCOPE, d as PLATFORM_MANAGED_BY_VALUES, et as platformWorkTaskStageChangedEventSchema, f as PLATFORM_OAUTH_APPLICATION_TYPES, g as PLATFORM_TASK_OUTCOMES, h as PLATFORM_STAGE_COLORS, i as REOPT_PLATFORM_URLS, j as platformErrorSchema, k as platformEavSchemaApplyResultSchema, l as PLATFORM_BRANDAPP_STATUSES, m as PLATFORM_OAUTH_GRANT_TYPES, n as PlatformApiError, p as PLATFORM_OAUTH_CLIENT_PURPOSES, q as platformTaskSchema, r as REOPT_PLATFORM_ID_URLS, s as resolvePlatformUrls, t as DEFAULT_PLATFORM_SCOPES, tt as platformWriteMetaSchema, u as PLATFORM_DOMAIN_STATUSES, v as PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS, w as platformBrandappUpsertInputSchema, x as platformBrandResourceSchema, y as PLATFORM_WEBHOOK_TRIGGERS, z as platformPipelineImportInputSchema } from "../client-5N6dGCPl.js";
2
2
 
3
3
  export { DEFAULT_PLATFORM_SCOPES, PLATFORM_ADMIN_SCOPE, PLATFORM_BRANDAPP_STATUSES, PLATFORM_DOMAIN_STATUSES, PLATFORM_MANAGED_BY_VALUES, PLATFORM_OAUTH_APPLICATION_TYPES, PLATFORM_OAUTH_CLIENT_PURPOSES, PLATFORM_OAUTH_GRANT_TYPES, PLATFORM_STAGE_COLORS, PLATFORM_TASK_OUTCOMES, PLATFORM_TASK_PRIORITIES, PLATFORM_TOKEN_ENDPOINT_AUTH_METHODS, PLATFORM_WEBHOOK_TRIGGERS, PlatformApiError, REOPT_PLATFORM_ID_URLS, REOPT_PLATFORM_URLS, createPlatformClient, platformBrandImportInputSchema, platformBrandResourceSchema, platformBrandUpsertInputSchema, platformBrandappResourceSchema, platformBrandappUpsertInputSchema, platformCustomerUpsertInputSchema, platformEavBrandappResourcesSchema, platformEavEntityResourceSchema, platformEavSchemaApplyInputSchema, platformEavSchemaApplyResultSchema, platformEavSchemaOperationSchema, platformErrorSchema, platformExternalIdSchema, platformLockAcquiredSchema, platformLockReleasedSchema, platformMeSchema, platformOAuthClientImportInputSchema, platformOAuthClientResourceSchema, platformOAuthClientUpsertInputSchema, platformPipelineImportInputSchema, platformPipelineResourceSchema, platformPipelineSchema, platformPipelineStageInputSchema, platformPipelineUpsertInputSchema, platformResourceKeySchema, platformResourcesSchema, platformResourcesV2Schema, platformTaskSchema, platformTaskStageInputSchema, platformTaskStageSchema, platformTaskUpsertInputSchema, platformWebhookResourceSchema, platformWebhookSchema, platformWebhookUpsertInputSchema, platformWorkTaskStageChangedEventSchema, platformWriteMetaSchema, resolvePlatformUrls };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reopt-ai/brandapp-sdk",
3
- "version": "4.7.0-rc.14",
3
+ "version": "4.7.0-rc.15",
4
4
  "description": "Reopt Brandapp SDK — Better Auth adapter, OAuth login, and EAV client",
5
5
  "author": "Reopt",
6
6
  "license": "MIT",
@@ -217,7 +217,7 @@
217
217
  "scripts": {
218
218
  "build": "tsdown",
219
219
  "dev": "tsdown --watch",
220
- "type-check": "tsc --noEmit",
220
+ "type-check": "tsc --noEmit && tsc --noEmit -p tsconfig.typetest.json",
221
221
  "test": "vitest run",
222
222
  "test:coverage": "vitest run --coverage",
223
223
  "test:critical": "vitest run __tests__/eav-client.test.ts __tests__/http-client.test.ts",