@reopt-ai/brandapp-sdk 4.2.0 → 4.4.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 (66) hide show
  1. package/CHANGELOG.md +31 -2
  2. package/README.md +1 -1
  3. package/dist/ai/index.d.ts +1 -1
  4. package/dist/ai/index.js +1 -1
  5. package/dist/ai-provider/index.js +77 -66
  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 +2 -2
  11. package/dist/better-auth/index.js +2 -2
  12. package/dist/{client-D5F6-YYU.d.ts → client-7I-mz3Dw.d.ts} +2 -2
  13. package/dist/{client-bXAnGNzC.d.ts → client-BSW0Ncjj.d.ts} +2 -2
  14. package/dist/{client-CNPfjmT0.d.ts → client-Bfutv3LK.d.ts} +2 -2
  15. package/dist/{client-ClX0it9Z.js → client-C4sDbXto.js} +70 -6
  16. package/dist/{client-DjgoTlfv.d.ts → client-C6OXGMMV.d.ts} +2 -2
  17. package/dist/{client-CeYaCY1n.d.ts → client-COKDtHO9.d.ts} +7 -5
  18. package/dist/{client-BOEyVc8V.d.ts → client-CniCGdmi.d.ts} +2 -2
  19. package/dist/{client-C1zORyWz.js → client-CuM8MNS5.js} +2 -2
  20. package/dist/{client-DEY11EBB.d.ts → client-D1AFtJRw.d.ts} +10 -10
  21. package/dist/{client-DY62Nb7m.js → client-DYkDNPyN.js} +2 -2
  22. package/dist/{client-C5CsGtWK.js → client-D_6WdWsc.js} +3 -3
  23. package/dist/{client-DYammrtw.d.ts → client-Dmvtr1nS.d.ts} +2 -2
  24. package/dist/{client-oDJVL5JF.js → client-DsM84EZZ.js} +3 -3
  25. package/dist/{client-DfGEiRKb.js → client-DuATTvcr.js} +2 -2
  26. package/dist/{client-C3hlUyaZ.js → client-EG1p7FL0.js} +2 -2
  27. package/dist/{client-CRim5LCH.d.ts → client-IUSZDJio.d.ts} +2 -2
  28. package/dist/{client-DR5Eb36i.js → client-afAv7Ebi.js} +16 -9
  29. package/dist/{client-Dd1QpCUq.js → client-mD6o-qVl.js} +2 -2
  30. package/dist/{client-B_7XihyW.js → client-s2uJ3OML.js} +2 -2
  31. package/dist/{client-BBxhqs8l.d.ts → client-yKeRJnIB.d.ts} +2 -2
  32. package/dist/cms/index.d.ts +1 -1
  33. package/dist/cms/index.js +1 -1
  34. package/dist/{config-BrJAy95F.js → config-C_OFYAgP.js} +5 -5
  35. package/dist/{config-D28P8iwm.d.ts → config-D3SblxWt.d.ts} +19 -2
  36. package/dist/dev/index.js +15 -5
  37. package/dist/eav/index.d.ts +4 -4
  38. package/dist/eav/index.js +3 -33
  39. package/dist/eav/migrate.d.ts +2 -2
  40. package/dist/eav/schema.d.ts +2 -2
  41. package/dist/{errors-BnIRV-Px.d.ts → errors-U3TsyWVq.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-Dw_U7Wgx.js → http-client-BUbFBOvG.js} +2 -2
  47. package/dist/{index-CBPdczmp.d.ts → index-BnAYxnwq.d.ts} +12 -12
  48. package/dist/index.d.ts +5 -5
  49. package/dist/index.js +12 -12
  50. package/dist/logout/index.d.ts +1 -1
  51. package/dist/logout/index.js +1 -1
  52. package/dist/plans/index.d.ts +1 -1
  53. package/dist/plans/index.js +1 -1
  54. package/dist/push/index.d.ts +1 -1
  55. package/dist/push/index.js +1 -1
  56. package/dist/{query-l08AoqXP.js → query-BkdTSuB5.js} +2 -2
  57. package/dist/react/hooks.d.ts +6 -6
  58. package/dist/react/hooks.js +1 -1
  59. package/dist/terms/index.d.ts +1 -1
  60. package/dist/terms/index.js +1 -1
  61. package/dist/testing/index.d.ts +1 -1
  62. package/docs/api-reference.md +20 -12
  63. package/docs/cms.md +3 -1
  64. package/docs/dev-server.md +1 -1
  65. package/docs/errors.md +16 -16
  66. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-D28P8iwm.js";
1
+ import { n as ReoptSDKConfig } from "./config-D3SblxWt.js";
2
2
  //#region src/ai/types.d.ts
3
3
  /** 메시지 역할 */
4
4
  type MessageRole = "system" | "user" | "assistant";
@@ -50,11 +50,11 @@ type CompletionResult = {
50
50
  finishReason?: FinishReason;
51
51
  /**
52
52
  * true면 이 호출은 잔액을 초과해 차감됐다(출력은 이미 생성되어 반환되지만 잔액은
53
- * 0으로 소진). 다음 호출은 사전 크레딧 체크에서 차단된다 — "1회 후 차단" 의도.
53
+ * 0으로 소진). 다음 호출은 사전 사용량 체크에서 차단된다 — "1회 후 차단" 의도.
54
54
  */
55
55
  creditLimited?: boolean;
56
56
  };
57
- /** 크레딧 잔액 정보 */
57
+ /** 사용량 잔액 정보 */
58
58
  type CreditInfo = {
59
59
  balance: number;
60
60
  limit: number;
@@ -82,7 +82,7 @@ type ModelInfo = {
82
82
  inputRate: number;
83
83
  /** credits per 1K output tokens (image-only 모델은 0) */
84
84
  outputRate: number;
85
- /** 이미지 생성당 고정 크레딧 (image 모델 전용) */
85
+ /** 이미지 생성당 고정 사용량 (image 모델 전용) */
86
86
  creditsPerImage?: number;
87
87
  /** 최대 입력 컨텍스트 토큰 */
88
88
  contextWindow?: number;
@@ -124,7 +124,7 @@ type ImageGenerateResult = {
124
124
  usage: {
125
125
  creditCost: number;
126
126
  };
127
- /** 남은 크레딧 */
127
+ /** 남은 사용량 */
128
128
  creditsRemaining: number;
129
129
  /** true면 잔액 초과 차감(이미지는 반환되나 잔액 소진, 다음 호출 차단) */
130
130
  creditLimited?: boolean;
@@ -205,7 +205,7 @@ declare class ReoptAiClient {
205
205
  /**
206
206
  * AI 텍스트 생성 (SSE 스트리밍 + 메타데이터)
207
207
  *
208
- * 텍스트 청크와 함께 최종 사용량/크레딧 메타데이터를 반환합니다.
208
+ * 텍스트 청크와 함께 최종 사용량/사용량 메타데이터를 반환합니다.
209
209
  *
210
210
  * @example
211
211
  * ```ts
@@ -219,7 +219,7 @@ declare class ReoptAiClient {
219
219
  * }
220
220
  *
221
221
  * const meta = await metadata;
222
- * console.log(`사용 크레딧: ${meta?.usage.creditCost}`);
222
+ * console.log(`사용 사용량: ${meta?.usage.creditCost}`);
223
223
  * ```
224
224
  */
225
225
  streamWithMetadata(options: CompletionOptions): {
@@ -229,7 +229,7 @@ declare class ReoptAiClient {
229
229
  /**
230
230
  * 이미지 생성
231
231
  *
232
- * BrandApp의 AI 크레딧으로 이미지를 생성합니다.
232
+ * BrandApp의 AI 사용량으로 이미지를 생성합니다.
233
233
  * 생성된 이미지는 자동으로 Vercel Blob에 저장되고 URL이 반환됩니다.
234
234
  *
235
235
  * @example
@@ -245,7 +245,7 @@ declare class ReoptAiClient {
245
245
  */
246
246
  generateImage(options: ImageGenerateOptions): Promise<ImageGenerateResult>;
247
247
  /**
248
- * 크레딧 잔액 조회
248
+ * 사용량 잔액 조회
249
249
  *
250
250
  * @example
251
251
  * ```ts
@@ -281,4 +281,4 @@ declare class ReoptAiClient {
281
281
  declare function createReoptAiClient(config: ReoptSDKConfig): ReoptAiClient;
282
282
  //#endregion
283
283
  export { CompletionOptions as a, FinishReason as c, MessageRole as d, ModelInfo as f, ChatMessage as i, ImageGenerateOptions as l, StreamEvent as m, createReoptAiClient as n, CompletionResult as o, StreamDoneData as p, AgentInfo as r, CreditInfo as s, ReoptAiClient as t, ImageGenerateResult as u };
284
- //# sourceMappingURL=client-DEY11EBB.d.ts.map
284
+ //# sourceMappingURL=client-D1AFtJRw.d.ts.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-Dw_U7Wgx.js";
1
+ import { t as BaseHttpClient } from "./http-client-BUbFBOvG.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-DY62Nb7m.js.map
86
+ //# sourceMappingURL=client-DYkDNPyN.js.map
@@ -1,5 +1,5 @@
1
- import { t as BaseHttpClient } from "./http-client-Dw_U7Wgx.js";
2
- import { t as buildQuery } from "./query-l08AoqXP.js";
1
+ import { t as BaseHttpClient } from "./http-client-BUbFBOvG.js";
2
+ import { t as buildQuery } from "./query-BkdTSuB5.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-C5CsGtWK.js.map
55
+ //# sourceMappingURL=client-D_6WdWsc.js.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-D28P8iwm.js";
1
+ import { n as ReoptSDKConfig } from "./config-D3SblxWt.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-DYammrtw.d.ts.map
53
+ //# sourceMappingURL=client-Dmvtr1nS.d.ts.map
@@ -1,6 +1,6 @@
1
- import { S as ReoptSDKError, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig } from "./config-BrJAy95F.js";
1
+ import { S as ReoptSDKError, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig } from "./config-C_OFYAgP.js";
2
2
  import { t as createManagedAbort } from "./abort--nOBFN4M.js";
3
- import { n as parseFieldErrors, t as BaseHttpClient } from "./http-client-Dw_U7Wgx.js";
3
+ import { n as parseFieldErrors, t as BaseHttpClient } from "./http-client-BUbFBOvG.js";
4
4
 
5
5
  //#region src/files/client.ts
6
6
  var ReoptFileClient = class {
@@ -270,4 +270,4 @@ function createReoptFileClient(config) {
270
270
 
271
271
  //#endregion
272
272
  export { createReoptFileClient as n, ReoptFileClient as t };
273
- //# sourceMappingURL=client-oDJVL5JF.js.map
273
+ //# sourceMappingURL=client-DsM84EZZ.js.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-Dw_U7Wgx.js";
1
+ import { t as BaseHttpClient } from "./http-client-BUbFBOvG.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-DfGEiRKb.js.map
53
+ //# sourceMappingURL=client-DuATTvcr.js.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-Dw_U7Wgx.js";
1
+ import { t as BaseHttpClient } from "./http-client-BUbFBOvG.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-C3hlUyaZ.js.map
20
+ //# sourceMappingURL=client-EG1p7FL0.js.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-D28P8iwm.js";
1
+ import { n as ReoptSDKConfig } from "./config-D3SblxWt.js";
2
2
  //#region src/plans/types.d.ts
3
3
  /**
4
4
  * Brandapp Plans types.
@@ -208,4 +208,4 @@ declare class ReoptPlansClient {
208
208
  declare function createReoptPlansClient(config: ReoptSDKConfig): ReoptPlansClient;
209
209
  //#endregion
210
210
  export { CheckoutStatus as a, MeterPricingMode as c, PlanInterval as d, PlanMeter as f, CheckoutSession as i, Plan as l, PlanRequiredTerms as m, createReoptPlansClient as n, CreateCheckoutInput as o, PlanMeterTier as p, CancelSubscriptionResult as r, CurrentPlan as s, ReoptPlansClient as t, PlanBillingModel as u };
211
- //# sourceMappingURL=client-CRim5LCH.d.ts.map
211
+ //# sourceMappingURL=client-IUSZDJio.d.ts.map
@@ -1,6 +1,6 @@
1
- import { S as ReoptSDKError, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig } from "./config-BrJAy95F.js";
1
+ import { S as ReoptSDKError, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig } from "./config-C_OFYAgP.js";
2
2
  import { t as createManagedAbort } from "./abort--nOBFN4M.js";
3
- import { t as BaseHttpClient } from "./http-client-Dw_U7Wgx.js";
3
+ import { t as BaseHttpClient } from "./http-client-BUbFBOvG.js";
4
4
  import { n as parseSSEStream } from "./sse-parser-FMjxM7sY.js";
5
5
 
6
6
  //#region src/ai/client.ts
@@ -88,7 +88,7 @@ var ReoptAiClient = class {
88
88
  /**
89
89
  * AI 텍스트 생성 (SSE 스트리밍 + 메타데이터)
90
90
  *
91
- * 텍스트 청크와 함께 최종 사용량/크레딧 메타데이터를 반환합니다.
91
+ * 텍스트 청크와 함께 최종 사용량/사용량 메타데이터를 반환합니다.
92
92
  *
93
93
  * @example
94
94
  * ```ts
@@ -102,7 +102,7 @@ var ReoptAiClient = class {
102
102
  * }
103
103
  *
104
104
  * const meta = await metadata;
105
- * console.log(`사용 크레딧: ${meta?.usage.creditCost}`);
105
+ * console.log(`사용 사용량: ${meta?.usage.creditCost}`);
106
106
  * ```
107
107
  */
108
108
  streamWithMetadata(options) {
@@ -118,7 +118,14 @@ var ReoptAiClient = class {
118
118
  };
119
119
  const self = this;
120
120
  async function* gen() {
121
- const { response, managed, requestId } = await self.fetchSSE(options);
121
+ let connection;
122
+ try {
123
+ connection = await self.fetchSSE(options);
124
+ } catch (error) {
125
+ settle(null);
126
+ throw error;
127
+ }
128
+ const { response, managed, requestId } = connection;
122
129
  if (!response.body) {
123
130
  managed.cleanup();
124
131
  settle(null);
@@ -160,7 +167,7 @@ var ReoptAiClient = class {
160
167
  /**
161
168
  * 이미지 생성
162
169
  *
163
- * BrandApp의 AI 크레딧으로 이미지를 생성합니다.
170
+ * BrandApp의 AI 사용량으로 이미지를 생성합니다.
164
171
  * 생성된 이미지는 자동으로 Vercel Blob에 저장되고 URL이 반환됩니다.
165
172
  *
166
173
  * @example
@@ -185,7 +192,7 @@ var ReoptAiClient = class {
185
192
  })).data;
186
193
  }
187
194
  /**
188
- * 크레딧 잔액 조회
195
+ * 사용량 잔액 조회
189
196
  *
190
197
  * @example
191
198
  * ```ts
@@ -224,7 +231,7 @@ var ReoptAiClient = class {
224
231
  }
225
232
  async fetchSSE(options) {
226
233
  const url = `${this.http.requestBaseUrl}/chat/completions`;
227
- const requestId = globalThis.crypto?.randomUUID?.() ?? `sdk-${"4.2.0"}-${url.length}`;
234
+ const requestId = globalThis.crypto?.randomUUID?.() ?? `sdk-${"4.4.0"}-${url.length}`;
228
235
  const ctx = {
229
236
  method: "POST",
230
237
  url,
@@ -302,4 +309,4 @@ function createReoptAiClient(config) {
302
309
 
303
310
  //#endregion
304
311
  export { createReoptAiClient as n, ReoptAiClient as t };
305
- //# sourceMappingURL=client-DR5Eb36i.js.map
312
+ //# sourceMappingURL=client-afAv7Ebi.js.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-Dw_U7Wgx.js";
1
+ import { t as BaseHttpClient } from "./http-client-BUbFBOvG.js";
2
2
 
3
3
  //#region src/plans/client.ts
4
4
  function unwrap(body) {
@@ -78,4 +78,4 @@ function createReoptPlansClient(config) {
78
78
 
79
79
  //#endregion
80
80
  export { createReoptPlansClient as n, ReoptPlansClient as t };
81
- //# sourceMappingURL=client-Dd1QpCUq.js.map
81
+ //# sourceMappingURL=client-mD6o-qVl.js.map
@@ -1,4 +1,4 @@
1
- import { t as BaseHttpClient } from "./http-client-Dw_U7Wgx.js";
1
+ import { t as BaseHttpClient } from "./http-client-BUbFBOvG.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-B_7XihyW.js.map
83
+ //# sourceMappingURL=client-s2uJ3OML.js.map
@@ -1,4 +1,4 @@
1
- import { n as ReoptSDKConfig } from "./config-D28P8iwm.js";
1
+ import { n as ReoptSDKConfig } from "./config-D3SblxWt.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-BBxhqs8l.d.ts.map
48
+ //# sourceMappingURL=client-yKeRJnIB.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { a as ListTagsQuery, c as PostGroup, d as Tag, i as ListPostsQuery, l as PostSeo, n as EditorSpec, o as Post, r as ListPostGroupsQuery, s as PostDetail, t as CmsPaginatedResponse, u as PostStatus } from "../types-BXDcoJHG.js";
2
- import { n as createReoptCmsClient, t as ReoptCmsClient } from "../client-DYammrtw.js";
2
+ import { n as createReoptCmsClient, t as ReoptCmsClient } from "../client-Dmvtr1nS.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-C5CsGtWK.js";
1
+ import { t as createReoptCmsClient } from "../client-D_6WdWsc.js";
2
2
 
3
3
  //#region src/cms/helpers.ts
4
4
  function joinUrl(siteUrl, path) {
@@ -44,12 +44,12 @@ var ServerError = class extends ReoptSDKError {
44
44
  this.name = "ServerError";
45
45
  }
46
46
  };
47
- /** AI 크레딧 잔액 부족 (HTTP 402). */
47
+ /** AI 사용량 잔액 부족 (HTTP 402). */
48
48
  var CreditLimitError = class extends ReoptSDKError {
49
49
  constructor(message = "Insufficient AI credits", context, code = "CREDIT_LIMIT") {
50
50
  super(message, 402, code, context, {
51
- cause: "BrandApp AI 크레딧 잔액 부족",
52
- fix: "Studio → BrandApp → AI 크레딧 페이지에서 충전",
51
+ cause: "BrandApp AI 사용량 잔액 부족",
52
+ fix: "Studio → BrandApp → AI 사용량 페이지에서 충전",
53
53
  doc: "docs/errors.md#credit_limit"
54
54
  });
55
55
  this.name = "CreditLimitError";
@@ -319,7 +319,7 @@ function mapHttpStatusToError(status, code, message, ctx, fieldErrors) {
319
319
 
320
320
  //#endregion
321
321
  //#region src/core/config.ts
322
- const SDK_VERSION = "4.2.0";
322
+ const SDK_VERSION = "4.4.0";
323
323
  /**
324
324
  * Default API host for EAV / AI / Files / CMS / Terms. Consumers can override
325
325
  * via `config.baseUrl` or the `REOPT_BASE_URL` env var.
@@ -498,4 +498,4 @@ function deriveIdFromBaseUrl(baseUrl) {
498
498
 
499
499
  //#endregion
500
500
  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 };
501
- //# sourceMappingURL=config-BrJAy95F.js.map
501
+ //# sourceMappingURL=config-C_OFYAgP.js.map
@@ -153,8 +153,25 @@ type PaginatedResponse<T> = {
153
153
  limit: number;
154
154
  totalPages: number;
155
155
  };
156
+ /**
157
+ * Maximum page size accepted by `GET /entities/:id/records` (server-enforced).
158
+ *
159
+ * 🔑 The server is the source of truth — `listRecordsQuerySchema.limit` in
160
+ * `apps/web/server/hono/routes/brandapp-eav-schemas.ts` is `.max(100)`, and
161
+ * `__tests__/eav-records-page-limit.test.ts` fails if the two drift apart.
162
+ * Asking for more is a 400, never a larger page: production 2026-08-30~09-05
163
+ * (Sentry ANGSKI-WEB-18) sent `limit=200` for five days and the credit
164
+ * dead-letter sweep died on every run. Use `records.listAll()` to read past
165
+ * one page.
166
+ */
167
+ declare const RECORDS_PAGE_LIMIT_MAX = 100;
156
168
  type ListRecordsQuery = {
157
169
  page?: number;
170
+ /**
171
+ * Records per page — a positive integer up to
172
+ * {@link RECORDS_PAGE_LIMIT_MAX}. `records.list()` rejects anything else
173
+ * before the request leaves the process; `records.listAll()` pages for you.
174
+ */
158
175
  limit?: number;
159
176
  authUserId?: string;
160
177
  sortBy?: "createdAt" | "updatedAt" | (string & {});
@@ -430,5 +447,5 @@ type ReoptSDKConfig<S extends SchemaDef = SchemaDef> = {
430
447
  */
431
448
  declare function resolveBaseUrl(config: ReoptSDKConfig): string;
432
449
  //#endregion
433
- export { ListRecordsQuery as A, EavAttribute as C, EavRecord as D, EavEntity as E, UpsertRecordInput as F, UpsertRecordResult as I, UpdateAttributeInput as M, UpdateEntityInput as N, EavSchemaLinkedTo as O, UpdateRecordInput 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 };
434
- //# sourceMappingURL=config-D28P8iwm.d.ts.map
450
+ 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 };
451
+ //# sourceMappingURL=config-D3SblxWt.d.ts.map
package/dist/dev/index.js CHANGED
@@ -243,10 +243,20 @@ var InMemoryStore = class {
243
243
  */
244
244
  const LIMITS = {
245
245
  ATTRIBUTES_PER_ENTITY: 100,
246
- RECORDS_PER_ENTITY: 1e4,
247
246
  /** Max records per bulk operation (matches production API). */
248
247
  BULK_BATCH_SIZE: 100
249
248
  };
249
+ /**
250
+ * Records per entity — mirrors production, where the default of 10,000 can be raised
251
+ * with `BRANDAPP_EAV_MAX_RECORDS_PER_ENTITY` (the in-memory fallback path is bounded
252
+ * separately there, so raising it is safe). Read lazily so tests can stub the env.
253
+ */
254
+ function resolveRecordLimit() {
255
+ const raw = process.env.BRANDAPP_EAV_MAX_RECORDS_PER_ENTITY?.trim();
256
+ if (!raw) return 1e4;
257
+ const parsed = Number(raw);
258
+ return Number.isSafeInteger(parsed) && parsed > 0 ? parsed : 1e4;
259
+ }
250
260
  function bulkSizeError(op, got) {
251
261
  return {
252
262
  ok: false,
@@ -494,7 +504,7 @@ function createEavRoutes(store, brandappId) {
494
504
  description: body.description ?? null,
495
505
  icon: body.icon ?? "📊",
496
506
  linkedTo: body.linkedTo ?? "brandapp",
497
- maxRecords: LIMITS.RECORDS_PER_ENTITY,
507
+ maxRecords: resolveRecordLimit(),
498
508
  createdAt: now,
499
509
  updatedAt: now
500
510
  };
@@ -748,7 +758,7 @@ function createEavRoutes(store, brandappId) {
748
758
  }
749
759
  }, check.status);
750
760
  } else {
751
- const maxRecords = entity.maxRecords ?? LIMITS.RECORDS_PER_ENTITY;
761
+ const maxRecords = entity.maxRecords ?? resolveRecordLimit();
752
762
  if (store.count(store.records, (r) => r.entityId === entityId) >= maxRecords) return c.json({
753
763
  ok: false,
754
764
  error: {
@@ -956,7 +966,7 @@ function createEavRoutes(store, brandappId) {
956
966
  }, check.status);
957
967
  }
958
968
  } else {
959
- const maxRecords = entity.maxRecords ?? LIMITS.RECORDS_PER_ENTITY;
969
+ const maxRecords = entity.maxRecords ?? resolveRecordLimit();
960
970
  if (store.count(store.records, (r) => r.entityId === entityId) + body.records.length > maxRecords) return c.json({
961
971
  ok: false,
962
972
  error: {
@@ -1110,7 +1120,7 @@ function createEavRoutes(store, brandappId) {
1110
1120
  });
1111
1121
  }
1112
1122
  if (!isAuthUserLinked) {
1113
- const maxRecords = entity.maxRecords ?? LIMITS.RECORDS_PER_ENTITY;
1123
+ const maxRecords = entity.maxRecords ?? resolveRecordLimit();
1114
1124
  if (store.count(store.records, (r) => r.entityId === entityId) >= maxRecords) return c.json({
1115
1125
  ok: false,
1116
1126
  error: {
@@ -1,6 +1,6 @@
1
- import { A as ListRecordsQuery, C as EavAttribute, D as EavRecord, E as EavEntity, F as UpsertRecordInput, I as UpsertRecordResult, M as UpdateAttributeInput, N as UpdateEntityInput, O as EavSchemaLinkedTo, P as UpdateRecordInput, 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-D28P8iwm.js";
2
- import { c as DuplicateAuthUserError, f as LimitExceededError, n as AuthUserNotFoundError, r as AuthUserRecordExistsError } from "../errors-BnIRV-Px.js";
3
- import { i as TypedEavRecord, n as createReoptEavClient, r as EntityClient, t as ReoptEavClient } from "../client-DjgoTlfv.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-D3SblxWt.js";
2
+ import { c as DuplicateAuthUserError, f as LimitExceededError, n as AuthUserNotFoundError, r as AuthUserRecordExistsError } from "../errors-U3TsyWVq.js";
3
+ import { i as TypedEavRecord, n as createReoptEavClient, r as EntityClient, t as ReoptEavClient } from "../client-C6OXGMMV.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
@@ -191,5 +191,5 @@ declare function where(attributeNameOrId: string): FilterExpression;
191
191
  */
192
192
  declare function createFilterBuilder<T extends Record<string, string>>(attributeIdMap: T): (name: keyof T & string) => FilterExpression;
193
193
  //#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, 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 };
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 };
195
195
  //# 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-BrJAy95F.js";
2
- import { t as createReoptEavClient } from "../client-ClX0it9Z.js";
1
+ import { c as AuthUserNotFoundError, g as LimitExceededError, l as AuthUserRecordExistsError, m as DuplicateAuthUserError } from "../config-C_OFYAgP.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-C4sDbXto.js";
3
3
 
4
4
  //#region src/eav/verify.ts
5
5
  async function verifyEavSchema(input) {
@@ -63,36 +63,6 @@ async function computeEavSchemaHash(schemas) {
63
63
  return hashCanonicalString(canonicalizeEavSchemas(schemas));
64
64
  }
65
65
 
66
- //#endregion
67
- //#region src/eav/types.ts
68
- /**
69
- * Every filter operator the EAV record endpoints accept.
70
- *
71
- * Exported as a runtime value on purpose: the type alone cannot be compared
72
- * against anything at test time, and this vocabulary is a copy — the server
73
- * owns it in `apps/web/server/hono/routes/brandapp-eav-schemas.ts` and this
74
- * package cannot import across the deployment boundary. The copy is held to
75
- * the original by `apps/web/server/mcp/__tests__/eav-filter-operator-parity.test.ts`,
76
- * which reads *this* array rather than a hand-written list.
77
- */
78
- const ATTRIBUTE_FILTER_OPERATORS = [
79
- "eq",
80
- "neq",
81
- "contains",
82
- "gt",
83
- "lt",
84
- "gte",
85
- "lte",
86
- "is_null",
87
- "is_not_null",
88
- "after",
89
- "before",
90
- "in",
91
- "not_in"
92
- ];
93
- /** Maximum number of entries in one `in` / `not_in` list (server-enforced). */
94
- const ATTRIBUTE_FILTER_LIST_MAX = 100;
95
-
96
66
  //#endregion
97
67
  //#region src/eav/helpers.ts
98
68
  /**
@@ -219,5 +189,5 @@ function createFilterBuilder(attributeIdMap) {
219
189
  }
220
190
 
221
191
  //#endregion
222
- export { ATTRIBUTE_FILTER_LIST_MAX, ATTRIBUTE_FILTER_OPERATORS, AuthUserNotFoundError, AuthUserRecordExistsError, DuplicateAuthUserError, FilterExpression, LimitExceededError, canonicalizeEavSchemas, collectAll, computeEavSchemaHash, createFilterBuilder, createReoptEavClient, hashCanonicalString, verifyEavSchema, where };
192
+ export { ATTRIBUTE_FILTER_LIST_MAX, ATTRIBUTE_FILTER_OPERATORS, AuthUserNotFoundError, AuthUserRecordExistsError, DuplicateAuthUserError, FilterExpression, LimitExceededError, RECORDS_PAGE_LIMIT_MAX, canonicalizeEavSchemas, collectAll, computeEavSchemaHash, createFilterBuilder, createReoptEavClient, hashCanonicalString, verifyEavSchema, where };
223
193
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import { o as AttributeDef, s as EntityDef } from "../config-D28P8iwm.js";
2
- import { t as ReoptEavClient } from "../client-DjgoTlfv.js";
1
+ import { o as AttributeDef, s as EntityDef } from "../config-D3SblxWt.js";
2
+ import { t as ReoptEavClient } from "../client-C6OXGMMV.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-D28P8iwm.js";
2
- import { t as ReoptEavClient } from "../client-DjgoTlfv.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-D3SblxWt.js";
2
+ import { t as ReoptEavClient } from "../client-C6OXGMMV.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>;
@@ -37,7 +37,7 @@ declare class RateLimitError extends ReoptSDKError {
37
37
  declare class ServerError extends ReoptSDKError {
38
38
  constructor(message?: string, context?: ReoptSDKErrorContext);
39
39
  }
40
- /** AI 크레딧 잔액 부족 (HTTP 402). */
40
+ /** AI 사용량 잔액 부족 (HTTP 402). */
41
41
  declare class CreditLimitError extends ReoptSDKError {
42
42
  constructor(message?: string, context?: ReoptSDKErrorContext, code?: string);
43
43
  }
@@ -186,4 +186,4 @@ declare function isModelAccessError(error: unknown): error is ModelAccessError;
186
186
  declare function mapHttpStatusToError(status: number, code: string | undefined, message: string | undefined, ctx?: ReoptSDKErrorContext, fieldErrors?: FieldError[]): ReoptSDKError;
187
187
  //#endregion
188
188
  export { isCreditLimitError as C, isValidationError as D, isRequiredTermsError as E, mapHttpStatusToError as O, ValidationError as S, isReoptSDKError as T, RateLimitError as _, ConflictError as a, RequiredTermsError as b, DuplicateAuthUserError as c, ForbiddenError as d, LimitExceededError as f, PreconditionFailedError as g, NotFoundError as h, BadRequestError as i, ErrorDiagnostic as l, ModelNotFoundError as m, AuthUserNotFoundError as n, ContentFilterError as o, ModelAccessError as p, AuthUserRecordExistsError as r, CreditLimitError as s, AuthError as t, FieldError as u, ReoptSDKError as v, isModelAccessError as w, ServerError as x, ReoptSDKErrorContext as y };
189
- //# sourceMappingURL=errors-BnIRV-Px.d.ts.map
189
+ //# sourceMappingURL=errors-U3TsyWVq.d.ts.map
@@ -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-CeYaCY1n.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-COKDtHO9.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-DY62Nb7m.js";
1
+ import { n as createReoptFeedbackClient, t as ReoptFeedbackClient } from "../client-DYkDNPyN.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-BOEyVc8V.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-CniCGdmi.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-oDJVL5JF.js";
1
+ import { n as createReoptFileClient, t as ReoptFileClient } from "../client-DsM84EZZ.js";
2
2
 
3
3
  //#region src/files/helpers.ts
4
4
  const REOPT_IMAGE_REMOTE_PATTERNS = [{
@@ -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-BrJAy95F.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-C_OFYAgP.js";
2
2
  import { t as createAuthHeader } from "./encoding-Bwfm3iaE.js";
3
3
 
4
4
  //#region src/core/debug.ts
@@ -383,4 +383,4 @@ function parseFieldErrors(body) {
383
383
 
384
384
  //#endregion
385
385
  export { parseFieldErrors as n, BaseHttpClient as t };
386
- //# sourceMappingURL=http-client-Dw_U7Wgx.js.map
386
+ //# sourceMappingURL=http-client-BUbFBOvG.js.map
@@ -1,14 +1,14 @@
1
- import { l as SchemaDef, n as ReoptSDKConfig } from "./config-D28P8iwm.js";
2
- import { t as ReoptAiClient } from "./client-DEY11EBB.js";
3
- import { t as ReoptAnalyticsClient } from "./client-D5F6-YYU.js";
4
- import { t as ReoptAuthClient } from "./client-CNPfjmT0.js";
5
- import { t as ReoptCmsClient } from "./client-DYammrtw.js";
6
- import { t as ReoptEavClient } from "./client-DjgoTlfv.js";
7
- import { t as ReoptFeedbackClient } from "./client-CeYaCY1n.js";
8
- import { t as ReoptFileClient } from "./client-BOEyVc8V.js";
9
- import { t as ReoptPlansClient } from "./client-CRim5LCH.js";
10
- import { t as ReoptPushClient } from "./client-bXAnGNzC.js";
11
- import { t as ReoptTermsClient } from "./client-BBxhqs8l.js";
1
+ import { l as SchemaDef, n as ReoptSDKConfig } from "./config-D3SblxWt.js";
2
+ import { t as ReoptAiClient } from "./client-D1AFtJRw.js";
3
+ import { t as ReoptAnalyticsClient } from "./client-7I-mz3Dw.js";
4
+ import { t as ReoptAuthClient } from "./client-Bfutv3LK.js";
5
+ import { t as ReoptCmsClient } from "./client-Dmvtr1nS.js";
6
+ import { t as ReoptEavClient } from "./client-C6OXGMMV.js";
7
+ import { t as ReoptFeedbackClient } from "./client-COKDtHO9.js";
8
+ import { t as ReoptFileClient } from "./client-CniCGdmi.js";
9
+ import { t as ReoptPlansClient } from "./client-IUSZDJio.js";
10
+ import { t as ReoptPushClient } from "./client-BSW0Ncjj.js";
11
+ import { t as ReoptTermsClient } from "./client-yKeRJnIB.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). */
@@ -168,4 +168,4 @@ type ReoptSDK<S extends SchemaDef = SchemaDef> = {
168
168
  declare function createReoptSDK<S extends SchemaDef = SchemaDef>(config: ReoptSDKConfig<S>): ReoptSDK<S>;
169
169
  //#endregion
170
170
  export { initReoptSDK as a, getReoptSDK as i, createReoptSDK as n, resetSDK as o, createLazySDK as r, BaseHttpClient as s, ReoptSDK as t };
171
- //# sourceMappingURL=index-CBPdczmp.d.ts.map
171
+ //# sourceMappingURL=index-BnAYxnwq.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-D28P8iwm.js";
2
- import { a as CompletionOptions, c as FinishReason, d as MessageRole, f as ModelInfo, i as ChatMessage, l as ImageGenerateOptions, m as StreamEvent, o as CompletionResult, p as StreamDoneData, r as AgentInfo, s as CreditInfo, u as ImageGenerateResult } from "./client-DEY11EBB.js";
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-BnIRV-Px.js";
4
- import { i as TypedEavRecord, r as EntityClient } from "./client-DjgoTlfv.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-CBPdczmp.js";
1
+ import { a as DebugLogger, i as DebugLevel, n as ReoptSDKConfig, r as resolveBaseUrl, t as REOPT_BASE_URLS } from "./config-D3SblxWt.js";
2
+ import { a as CompletionOptions, c as FinishReason, d as MessageRole, f as ModelInfo, i as ChatMessage, l as ImageGenerateOptions, m as StreamEvent, o as CompletionResult, p as StreamDoneData, r as AgentInfo, s as CreditInfo, u as ImageGenerateResult } from "./client-D1AFtJRw.js";
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-U3TsyWVq.js";
4
+ import { i as TypedEavRecord, r as EntityClient } from "./client-C6OXGMMV.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-BnAYxnwq.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 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 };