@reopt-ai/brandapp-sdk 4.0.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/ai/index.d.ts +1 -1
  3. package/dist/ai/index.js +1 -1
  4. package/dist/ai-provider/index.js +1 -1
  5. package/dist/analytics/index.d.ts +22 -0
  6. package/dist/analytics/index.js +44 -0
  7. package/dist/auth/index.d.ts +1 -1
  8. package/dist/auth/index.js +1 -1
  9. package/dist/better-auth/index.d.ts +12 -2
  10. package/dist/better-auth/index.js +8 -3
  11. package/dist/{client-DHZ484kb.d.ts → client-BBxhqs8l.d.ts} +2 -2
  12. package/dist/{client-A4YrHjDc.d.ts → client-BOEyVc8V.d.ts} +2 -2
  13. package/dist/{client-DUvf9x_b.js → client-B_7XihyW.js} +2 -2
  14. package/dist/{client-2qKKpHVy.js → client-C1zORyWz.js} +2 -2
  15. package/dist/client-C3hlUyaZ.js +20 -0
  16. package/dist/{client-B0uRUF3T.js → client-C5CsGtWK.js} +3 -3
  17. package/dist/{client-yBQen4Yi.d.ts → client-CNPfjmT0.d.ts} +2 -2
  18. package/dist/{client-BGLDrf3N.d.ts → client-CRim5LCH.d.ts} +2 -2
  19. package/dist/{client-Ckm-i_Du.d.ts → client-CeYaCY1n.d.ts} +2 -2
  20. package/dist/{client-CAjqKz8i.js → client-ClX0it9Z.js} +3 -3
  21. package/dist/client-D5F6-YYU.d.ts +24 -0
  22. package/dist/{client-DPbXH8tr.d.ts → client-DEY11EBB.d.ts} +2 -2
  23. package/dist/{client-D72MLGRY.js → client-DR5Eb36i.js} +4 -4
  24. package/dist/{client-DTWpLo8X.js → client-DY62Nb7m.js} +2 -2
  25. package/dist/{client-BTS6Ewv_.d.ts → client-DYammrtw.d.ts} +2 -2
  26. package/dist/{client-Djlg4STl.js → client-Dd1QpCUq.js} +2 -2
  27. package/dist/{client-D9MGqXbn.js → client-DfGEiRKb.js} +2 -2
  28. package/dist/{client-CAGo56KO.d.ts → client-DjgoTlfv.d.ts} +2 -2
  29. package/dist/{client-DfEeaOsQ.d.ts → client-bXAnGNzC.d.ts} +2 -2
  30. package/dist/{client-C6USfykM.js → client-oDJVL5JF.js} +3 -3
  31. package/dist/cms/index.d.ts +1 -1
  32. package/dist/cms/index.js +1 -1
  33. package/dist/{config-D31PK7eu.js → config-BrJAy95F.js} +17 -3
  34. package/dist/{config-C7WQtC3l.d.ts → config-D28P8iwm.d.ts} +42 -4
  35. package/dist/dev/index.d.ts +1 -1
  36. package/dist/dev/index.js +99 -16
  37. package/dist/eav/index.d.ts +13 -4
  38. package/dist/eav/index.js +46 -3
  39. package/dist/eav/migrate.d.ts +4 -4
  40. package/dist/eav/migrate.js +1 -1
  41. package/dist/eav/schema.d.ts +2 -2
  42. package/dist/{errors-CRCcErNC.d.ts → errors-BnIRV-Px.d.ts} +9 -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-D1vuc20o.js → http-client-Dw_U7Wgx.js} +2 -2
  48. package/dist/{index-DV_OWwx5.d.ts → index-C6fyJTud.d.ts} +7 -1
  49. package/dist/{index-CvNJ8zp1.d.ts → index-CBPdczmp.d.ts} +13 -11
  50. package/dist/index.d.ts +6 -6
  51. package/dist/index.js +14 -12
  52. package/dist/logout/index.d.ts +1 -1
  53. package/dist/logout/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-DyiwJX92.js → query-l08AoqXP.js} +2 -2
  59. package/dist/react/hooks.d.ts +5 -5
  60. package/dist/terms/index.d.ts +1 -1
  61. package/dist/terms/index.js +1 -1
  62. package/dist/testing/index.d.ts +2 -2
  63. package/docs/api-reference.md +34 -0
  64. package/docs/errors.md +2 -0
  65. package/package.json +11 -2
package/dist/index.js CHANGED
@@ -1,14 +1,15 @@
1
- import { A as mapHttpStatusToError, C as ServerError, D as isReoptSDKError, E as isModelAccessError, O as isRequiredTermsError, S as RequiredTermsError, T as isCreditLimitError, _ as ModelAccessError, b as RateLimitError, c as AuthUserNotFoundError, d as ConflictError, f as ContentFilterError, g as LimitExceededError, h as ForbiddenError, i as resolveBaseUrl, k as isValidationError, 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 ValidationError, x as ReoptSDKError, y as NotFoundError } from "./config-D31PK7eu.js";
2
- import { t as BaseHttpClient } from "./http-client-D1vuc20o.js";
3
- import { n as createReoptAiClient } from "./client-D72MLGRY.js";
4
- import { n as createReoptAuthClient } from "./client-D9MGqXbn.js";
5
- import { t as createReoptCmsClient } from "./client-B0uRUF3T.js";
6
- import { t as createReoptEavClient } from "./client-CAjqKz8i.js";
7
- import { n as createReoptFeedbackClient } from "./client-DTWpLo8X.js";
8
- import { n as createReoptFileClient } from "./client-C6USfykM.js";
9
- import { n as createReoptPlansClient } from "./client-Djlg4STl.js";
10
- import { n as createReoptPushClient } from "./client-2qKKpHVy.js";
11
- import { n as createReoptTermsClient } from "./client-DUvf9x_b.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-BrJAy95F.js";
2
+ import { t as BaseHttpClient } from "./http-client-Dw_U7Wgx.js";
3
+ import { n as createReoptAiClient } from "./client-DR5Eb36i.js";
4
+ import { n as createReoptAuthClient } from "./client-DfGEiRKb.js";
5
+ import { t as createReoptCmsClient } from "./client-C5CsGtWK.js";
6
+ import { t as createReoptEavClient } from "./client-ClX0it9Z.js";
7
+ import { n as createReoptFeedbackClient } from "./client-DY62Nb7m.js";
8
+ import { n as createReoptFileClient } from "./client-oDJVL5JF.js";
9
+ import { n as createReoptAnalyticsClient } from "./client-C3hlUyaZ.js";
10
+ import { n as createReoptPlansClient } from "./client-Dd1QpCUq.js";
11
+ import { n as createReoptPushClient } from "./client-C1zORyWz.js";
12
+ import { n as createReoptTermsClient } from "./client-B_7XihyW.js";
12
13
 
13
14
  //#region src/singleton.ts
14
15
  let _instance;
@@ -117,6 +118,7 @@ function createReoptSDK(config) {
117
118
  debug: config.debug ?? false
118
119
  },
119
120
  ai: createReoptAiClient(config),
121
+ analytics: createReoptAnalyticsClient(config),
120
122
  auth: createReoptAuthClient(config),
121
123
  cms: createReoptCmsClient(config),
122
124
  eav: createReoptEavClient(config),
@@ -129,5 +131,5 @@ function createReoptSDK(config) {
129
131
  }
130
132
 
131
133
  //#endregion
132
- export { AuthError, AuthUserNotFoundError, AuthUserRecordExistsError, BadRequestError, BaseHttpClient, ConflictError, ContentFilterError, CreditLimitError, DuplicateAuthUserError, ForbiddenError, LimitExceededError, ModelAccessError, ModelNotFoundError, NotFoundError, REOPT_BASE_URLS, RateLimitError, ReoptSDKError, RequiredTermsError, ServerError, ValidationError, createLazySDK, createReoptSDK, getReoptSDK, initReoptSDK, isCreditLimitError, isModelAccessError, isReoptSDKError, isRequiredTermsError, isValidationError, mapHttpStatusToError, resetSDK, resolveBaseUrl };
134
+ export { AuthError, AuthUserNotFoundError, AuthUserRecordExistsError, BadRequestError, BaseHttpClient, ConflictError, ContentFilterError, CreditLimitError, DuplicateAuthUserError, ForbiddenError, LimitExceededError, ModelAccessError, ModelNotFoundError, NotFoundError, PreconditionFailedError, REOPT_BASE_URLS, RateLimitError, ReoptSDKError, RequiredTermsError, ServerError, ValidationError, createLazySDK, createReoptSDK, getReoptSDK, initReoptSDK, isCreditLimitError, isModelAccessError, isReoptSDKError, isRequiredTermsError, isValidationError, mapHttpStatusToError, resetSDK, resolveBaseUrl };
133
135
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "../config-C7WQtC3l.js";
1
+ import { n as ReoptSDKConfig } from "../config-D28P8iwm.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 { a as resolveIdBaseUrl, x as ReoptSDKError } from "../config-D31PK7eu.js";
1
+ import { S as ReoptSDKError, a as resolveIdBaseUrl } from "../config-BrJAy95F.js";
2
2
 
3
3
  //#region src/logout/verify.ts
4
4
  /**
@@ -1,2 +1,2 @@
1
- import { a as CheckoutStatus, c as MeterPricingMode, d as PlanInterval, f as PlanMeter, i as CheckoutSession, l as Plan, m as PlanRequiredTerms, n as createReoptPlansClient, o as CreateCheckoutInput, p as PlanMeterTier, r as CancelSubscriptionResult, s as CurrentPlan, t as ReoptPlansClient, u as PlanBillingModel } from "../client-BGLDrf3N.js";
1
+ import { a as CheckoutStatus, c as MeterPricingMode, d as PlanInterval, f as PlanMeter, i as CheckoutSession, l as Plan, m as PlanRequiredTerms, n as createReoptPlansClient, o as CreateCheckoutInput, p as PlanMeterTier, r as CancelSubscriptionResult, s as CurrentPlan, t as ReoptPlansClient, u as PlanBillingModel } from "../client-CRim5LCH.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 PlanRequiredTerms, ReoptPlansClient, createReoptPlansClient };
@@ -1,3 +1,3 @@
1
- import { n as createReoptPlansClient, t as ReoptPlansClient } from "../client-Djlg4STl.js";
1
+ import { n as createReoptPlansClient, t as ReoptPlansClient } from "../client-Dd1QpCUq.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-DfEeaOsQ.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-bXAnGNzC.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-2qKKpHVy.js";
1
+ import { n as createReoptPushClient, t as ReoptPushClient } from "../client-C1zORyWz.js";
2
2
 
3
3
  export { ReoptPushClient, createReoptPushClient };
@@ -1,4 +1,4 @@
1
- import { x as ReoptSDKError } from "./config-D31PK7eu.js";
1
+ import { S as ReoptSDKError } from "./config-BrJAy95F.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-DyiwJX92.js.map
35
+ //# sourceMappingURL=query-l08AoqXP.js.map
@@ -1,9 +1,9 @@
1
- import { C as EavEntity, D as ListRecordsQuery, M as UpsertRecordInput, N as UpsertRecordResult, O as PaginatedResponse, b as EavAttribute, j as UpdateRecordInput, m as BulkUpdateItem, v as CreateRecordInput, w as EavRecord, y as DeleteWhereInput } from "../config-C7WQtC3l.js";
2
- import { a as CompletionOptions, f as ModelInfo, l as ImageGenerateOptions, o as CompletionResult, p as StreamDoneData, r as AgentInfo, s as CreditInfo, u as ImageGenerateResult } from "../client-DPbXH8tr.js";
3
- import { _ as ReoptSDKError } from "../errors-CRCcErNC.js";
1
+ import { A as ListRecordsQuery, C as EavAttribute, D as EavRecord, E as EavEntity, F as UpsertRecordInput, I as UpsertRecordResult, P as UpdateRecordInput, S as DeleteWhereInput, _ as BulkUpdateItem, j as PaginatedResponse, x as CreateRecordInput } from "../config-D28P8iwm.js";
2
+ import { a as CompletionOptions, f as ModelInfo, l as ImageGenerateOptions, o as CompletionResult, p as StreamDoneData, r as AgentInfo, s as CreditInfo, u as ImageGenerateResult } from "../client-DEY11EBB.js";
3
+ import { v as ReoptSDKError } from "../errors-BnIRV-Px.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-A4YrHjDc.js";
6
- import { t as ReoptSDK } from "../index-CvNJ8zp1.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-BOEyVc8V.js";
6
+ import { t as ReoptSDK } from "../index-CBPdczmp.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,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-DHZ484kb.js";
2
+ import { n as createReoptTermsClient, t as ReoptTermsClient } from "../client-BBxhqs8l.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-DUvf9x_b.js";
1
+ import { n as createReoptTermsClient, t as ReoptTermsClient } from "../client-B_7XihyW.js";
2
2
 
3
3
  export { ReoptTermsClient, createReoptTermsClient };
@@ -1,5 +1,5 @@
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-DV_OWwx5.js";
2
- import { t as ReoptSDK } from "../index-CvNJ8zp1.js";
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-C6fyJTud.js";
2
+ import { t as ReoptSDK } from "../index-CBPdczmp.js";
3
3
  //#region src/testing/index.d.ts
4
4
  type TestSDKOptions = {
5
5
  /** EAV schema to seed entities and attributes */
@@ -378,6 +378,40 @@ await sdk.eav.records.bulkCreate(entityId, items);
378
378
  await sdk.eav.records.bulkUpdate(entityId, items);
379
379
  await sdk.eav.records.bulkDelete(entityId, ids);
380
380
 
381
+ // 동시성·TTL 원시연산 (brandapp 자유 테이블 전용)
382
+ const current = await sdk.eav.records.get(entityId, recordId); // current.version
383
+ await sdk.eav.records.update(entityId, recordId, {
384
+ values: { [statusAttr]: "done" },
385
+ ifVersion: current.version, // 그 사이 다른 쓰기가 있었으면 412 PreconditionFailedError
386
+ });
387
+ await sdk.eav.records.update(entityId, recordId, {
388
+ increments: { [balanceAttr]: -30 }, // number 속성 원자 가감 — values 없이도 된다
389
+ });
390
+ await sdk.eav.records.create(entityId, {
391
+ values: { [keyAttr]: "lease:job-42" }, // isUnique 속성 + TTL = claim/lease
392
+ expiresAt: new Date(Date.now() + 60_000).toISOString(),
393
+ });
394
+ await sdk.eav.records.update(entityId, recordId, { expiresAt: null }); // TTL 해제
395
+ ```
396
+
397
+ ### 한도 (production API 기준, 2026-08-30)
398
+
399
+ | 항목 | 값 | 초과 시 |
400
+ | ------------------------- | -------------------------------------------------------------------------------------------------- | ------------------------------ |
401
+ | 엔티티/브랜드앱 | 무제한 (운영자 opt-in `BRANDAPP_EAV_MAX_ENTITIES`) | `LIMIT_EXCEEDED_ENTITIES` |
402
+ | 속성/엔티티 | 100 | `LIMIT_EXCEEDED_ATTRIBUTES` |
403
+ | 레코드/엔티티 | 10,000 기본 (운영자 `BRANDAPP_EAV_MAX_RECORDS_PER_ENTITY`로 인상) — 만료 행 제외 | `LIMIT_EXCEEDED_RECORDS` (422) |
404
+ | 인메모리 후보 상한 | 10,000행 — 필터가 SQL로 못 내려가는 요청(`neq`/`not_in`/`after`/`before`, 커스텀 속성 정렬)만 해당 | `QUERY_TOO_BROAD` (422) |
405
+ | `list` limit | 최대 100, 기본 50 | 400 |
406
+ | bulk create/update/delete | 호출당 100건 | 400 |
407
+ | 레코드 값 직렬화 | 128KB/레코드 | `VALIDATION_ERROR` (422) |
408
+ | 엔티티·속성 name/label | 100자, description 500자 | 400 |
409
+
410
+ `eq`·`in`·`is_null`·`is_not_null`·`contains`·범위(`gt/lt/gte/lte`)는 GIN 인덱스로 후보를
411
+ 좁히므로 엔티티 크기와 무관하게 싸다. 부재 속성은 `is_null`에 매치된다(`null` 값과 동일).
412
+
413
+ ```typescript
414
+
381
415
  // Pagination (async generator)
382
416
  for await (const record of sdk.eav.records.listAll(entityId)) { ... }
383
417
  ```
package/docs/errors.md CHANGED
@@ -76,6 +76,7 @@ you a more direct branch when you care about the specific case.
76
76
  | `DuplicateAuthUserError` | `ConflictError` | 409 | `DUPLICATE_AUTH_USER` | bulk create 입력에 같은 authUserId가 중복 |
77
77
  | `AuthUserNotFoundError` | `ReoptSDKError` | 400/422 | `AUTH_USER_NOT_FOUND` | 참조한 authUserId가 이 brandapp에 없음 |
78
78
  | `LimitExceededError` | `ReoptSDKError` | 422 | `LIMIT_EXCEEDED_*` | EAV 자원 한도 초과 (entity/attribute/record) |
79
+ | `PreconditionFailedError` | `ReoptSDKError` | 412 | `PRECONDITION_FAILED` | `records.update(..., { ifVersion })`의 version이 현재와 다름 — 다시 읽고 재시도 |
79
80
 
80
81
  추가 EAV 코드 (전용 클래스 없이 일반 클래스 + `.code`로 분기):
81
82
 
@@ -87,6 +88,7 @@ you a more direct branch when you care about the specific case.
87
88
  | `USER_NOT_FOUND` | 404 | `NotFoundError` | `/users/:authUserId/records` 경로의 user가 brandapp에 없음 |
88
89
  | `RECORDS_NOT_FOUND` | 400 | `BadRequestError` | bulkUpdate에서 일부 record id가 entity에 없음 |
89
90
  | `DUPLICATE_RECORD_ID` | 409 | `ConflictError` | bulkUpdate(brandappAuthUser) 입력에 같은 record id가 중복 |
91
+ | `QUERY_TOO_BROAD` | 422 | `ReoptSDKError` | 필터 후보가 인메모리 상한(10k행)을 넘음 — `eq`/`in`/`authUserId`로 좁힐 것 |
90
92
  | `AUTH_USER_ID_REQUIRED` | 400 | `BadRequestError` | `linkedTo='brandappAuthUser'` entity인데 authUserId 누락 |
91
93
 
92
94
  All classes extend `ReoptSDKError`, so `instanceof ReoptSDKError` and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reopt-ai/brandapp-sdk",
3
- "version": "4.0.0",
3
+ "version": "4.2.0",
4
4
  "description": "Reopt Brandapp SDK — Better Auth adapter, OAuth login, and EAV client",
5
5
  "author": "Reopt",
6
6
  "license": "MIT",
@@ -21,6 +21,10 @@
21
21
  "types": "./dist/ai-provider/index.d.ts",
22
22
  "import": "./dist/ai-provider/index.js"
23
23
  },
24
+ "./analytics": {
25
+ "types": "./dist/analytics/index.d.ts",
26
+ "import": "./dist/analytics/index.js"
27
+ },
24
28
  "./auth": {
25
29
  "types": "./dist/auth/index.d.ts",
26
30
  "import": "./dist/auth/index.js"
@@ -113,7 +117,8 @@
113
117
  "@tanstack/react-query": ">=5.0.0",
114
118
  "better-auth": "^1.7.1",
115
119
  "hono": ">=4.0.0",
116
- "react": ">=18.0.0"
120
+ "react": ">=18.0.0",
121
+ "@reopt-ai/data-sdk": ">=0.1.1"
117
122
  },
118
123
  "peerDependenciesMeta": {
119
124
  "@ai-sdk/provider": {
@@ -133,6 +138,9 @@
133
138
  },
134
139
  "react": {
135
140
  "optional": true
141
+ },
142
+ "@reopt-ai/data-sdk": {
143
+ "optional": true
136
144
  }
137
145
  },
138
146
  "devDependencies": {
@@ -146,6 +154,7 @@
146
154
  "tsdown": "^0.22.14",
147
155
  "typescript": "^7",
148
156
  "vitest": "^4.1.2",
157
+ "@reopt-ai/data-sdk": "^0.1.1",
149
158
  "@reopt/typescript-config": "0.0.0"
150
159
  },
151
160
  "keywords": [