@reopt-ai/brandapp-sdk 4.3.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.
- package/CHANGELOG.md +20 -0
- package/README.md +1 -1
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/index.js +1 -1
- package/dist/ai-provider/index.js +76 -65
- package/dist/analytics/index.d.ts +1 -1
- package/dist/analytics/index.js +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/better-auth/index.d.ts +1 -1
- package/dist/better-auth/index.js +2 -2
- package/dist/{client-D5F6-YYU.d.ts → client-7I-mz3Dw.d.ts} +2 -2
- package/dist/{client-bXAnGNzC.d.ts → client-BSW0Ncjj.d.ts} +2 -2
- package/dist/{client-CNPfjmT0.d.ts → client-Bfutv3LK.d.ts} +2 -2
- package/dist/{client-CaWHvclV.js → client-C4sDbXto.js} +70 -6
- package/dist/{client-DjgoTlfv.d.ts → client-C6OXGMMV.d.ts} +2 -2
- package/dist/{client-B4CiEei5.d.ts → client-COKDtHO9.d.ts} +2 -2
- package/dist/{client-BOEyVc8V.d.ts → client-CniCGdmi.d.ts} +2 -2
- package/dist/{client-D4kUDFwW.js → client-CuM8MNS5.js} +2 -2
- package/dist/{client-DA9ibl3G.d.ts → client-D1AFtJRw.d.ts} +2 -2
- package/dist/{client-p4LmfF27.js → client-DYkDNPyN.js} +2 -2
- package/dist/{client-BD1-resY.js → client-D_6WdWsc.js} +3 -3
- package/dist/{client-DYammrtw.d.ts → client-Dmvtr1nS.d.ts} +2 -2
- package/dist/{client-vjIDamSf.js → client-DsM84EZZ.js} +3 -3
- package/dist/{client-CIUecAJE.js → client-DuATTvcr.js} +2 -2
- package/dist/{client-Hc7SfeIf.js → client-EG1p7FL0.js} +2 -2
- package/dist/{client-CRim5LCH.d.ts → client-IUSZDJio.d.ts} +2 -2
- package/dist/{client-BMgVQ4U-.js → client-afAv7Ebi.js} +12 -5
- package/dist/{client-BVvAfEXG.js → client-mD6o-qVl.js} +2 -2
- package/dist/{client-BpEWDfSl.js → client-s2uJ3OML.js} +2 -2
- package/dist/{client-BBxhqs8l.d.ts → client-yKeRJnIB.d.ts} +2 -2
- package/dist/cms/index.d.ts +1 -1
- package/dist/cms/index.js +1 -1
- package/dist/{config-D8dSL6OQ.js → config-C_OFYAgP.js} +2 -2
- package/dist/{config-D28P8iwm.d.ts → config-D3SblxWt.d.ts} +19 -2
- package/dist/eav/index.d.ts +3 -3
- package/dist/eav/index.js +3 -33
- package/dist/eav/migrate.d.ts +2 -2
- package/dist/eav/schema.d.ts +2 -2
- package/dist/feedback/index.d.ts +1 -1
- package/dist/feedback/index.js +1 -1
- package/dist/files/index.d.ts +1 -1
- package/dist/files/index.js +1 -1
- package/dist/{http-client-0Sp8wQGQ.js → http-client-BUbFBOvG.js} +2 -2
- package/dist/{index-DwIr8W3Y.d.ts → index-BnAYxnwq.d.ts} +12 -12
- package/dist/index.d.ts +4 -4
- package/dist/index.js +12 -12
- package/dist/logout/index.d.ts +1 -1
- package/dist/logout/index.js +1 -1
- package/dist/plans/index.d.ts +1 -1
- package/dist/plans/index.js +1 -1
- package/dist/push/index.d.ts +1 -1
- package/dist/push/index.js +1 -1
- package/dist/{query-C18XolkY.js → query-BkdTSuB5.js} +2 -2
- package/dist/react/hooks.d.ts +4 -4
- package/dist/terms/index.d.ts +1 -1
- package/dist/terms/index.js +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/docs/api-reference.md +16 -11
- package/docs/cms.md +3 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as ReoptSDKError, j as mapHttpStatusToError, n as SDK_VERSION, o as validateConfig } from "./config-
|
|
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-
|
|
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
|
|
@@ -118,7 +118,14 @@ var ReoptAiClient = class {
|
|
|
118
118
|
};
|
|
119
119
|
const self = this;
|
|
120
120
|
async function* gen() {
|
|
121
|
-
|
|
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);
|
|
@@ -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.
|
|
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-
|
|
312
|
+
//# sourceMappingURL=client-afAv7Ebi.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
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-
|
|
81
|
+
//# sourceMappingURL=client-mD6o-qVl.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
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-
|
|
83
|
+
//# sourceMappingURL=client-s2uJ3OML.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ReoptSDKConfig } from "./config-
|
|
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-
|
|
48
|
+
//# sourceMappingURL=client-yKeRJnIB.d.ts.map
|
package/dist/cms/index.d.ts
CHANGED
|
@@ -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-
|
|
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
|
@@ -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.
|
|
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-
|
|
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,
|
|
434
|
-
//# sourceMappingURL=config-
|
|
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/eav/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as ListRecordsQuery, C as EavAttribute, D as EavRecord, E as EavEntity, F as
|
|
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
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-
|
|
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-
|
|
2
|
-
import { t as createReoptEavClient } from "../client-
|
|
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
|
package/dist/eav/migrate.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as AttributeDef, s as EntityDef } from "../config-
|
|
2
|
-
import { t as ReoptEavClient } from "../client-
|
|
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`.
|
package/dist/eav/schema.d.ts
CHANGED
|
@@ -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-
|
|
2
|
-
import { t as ReoptEavClient } from "../client-
|
|
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>;
|
package/dist/feedback/index.d.ts
CHANGED
|
@@ -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-
|
|
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 };
|
package/dist/feedback/index.js
CHANGED
package/dist/files/index.d.ts
CHANGED
|
@@ -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-
|
|
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>`와 결합해 사용.
|
package/dist/files/index.js
CHANGED
|
@@ -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-
|
|
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-
|
|
386
|
+
//# sourceMappingURL=http-client-BUbFBOvG.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { l as SchemaDef, n as ReoptSDKConfig } from "./config-
|
|
2
|
-
import { t as ReoptAiClient } from "./client-
|
|
3
|
-
import { t as ReoptAnalyticsClient } from "./client-
|
|
4
|
-
import { t as ReoptAuthClient } from "./client-
|
|
5
|
-
import { t as ReoptCmsClient } from "./client-
|
|
6
|
-
import { t as ReoptEavClient } from "./client-
|
|
7
|
-
import { t as ReoptFeedbackClient } from "./client-
|
|
8
|
-
import { t as ReoptFileClient } from "./client-
|
|
9
|
-
import { t as ReoptPlansClient } from "./client-
|
|
10
|
-
import { t as ReoptPushClient } from "./client-
|
|
11
|
-
import { t as ReoptTermsClient } from "./client-
|
|
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-
|
|
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-
|
|
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-
|
|
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
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-
|
|
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-
|
|
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 };
|
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-
|
|
2
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
3
|
-
import { n as createReoptAiClient } from "./client-
|
|
4
|
-
import { n as createReoptAuthClient } from "./client-
|
|
5
|
-
import { t as createReoptCmsClient } from "./client-
|
|
6
|
-
import { t as createReoptEavClient } from "./client-
|
|
7
|
-
import { n as createReoptFeedbackClient } from "./client-
|
|
8
|
-
import { n as createReoptFileClient } from "./client-
|
|
9
|
-
import { n as createReoptAnalyticsClient } from "./client-
|
|
10
|
-
import { n as createReoptPlansClient } from "./client-
|
|
11
|
-
import { n as createReoptPushClient } from "./client-
|
|
12
|
-
import { n as createReoptTermsClient } from "./client-
|
|
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-C_OFYAgP.js";
|
|
2
|
+
import { t as BaseHttpClient } from "./http-client-BUbFBOvG.js";
|
|
3
|
+
import { n as createReoptAiClient } from "./client-afAv7Ebi.js";
|
|
4
|
+
import { n as createReoptAuthClient } from "./client-DuATTvcr.js";
|
|
5
|
+
import { t as createReoptCmsClient } from "./client-D_6WdWsc.js";
|
|
6
|
+
import { t as createReoptEavClient } from "./client-C4sDbXto.js";
|
|
7
|
+
import { n as createReoptFeedbackClient } from "./client-DYkDNPyN.js";
|
|
8
|
+
import { n as createReoptFileClient } from "./client-DsM84EZZ.js";
|
|
9
|
+
import { n as createReoptAnalyticsClient } from "./client-EG1p7FL0.js";
|
|
10
|
+
import { n as createReoptPlansClient } from "./client-mD6o-qVl.js";
|
|
11
|
+
import { n as createReoptPushClient } from "./client-CuM8MNS5.js";
|
|
12
|
+
import { n as createReoptTermsClient } from "./client-s2uJ3OML.js";
|
|
13
13
|
|
|
14
14
|
//#region src/singleton.ts
|
|
15
15
|
let _instance;
|
package/dist/logout/index.d.ts
CHANGED
package/dist/logout/index.js
CHANGED
package/dist/plans/index.d.ts
CHANGED
|
@@ -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-
|
|
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-IUSZDJio.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 };
|
package/dist/plans/index.js
CHANGED
package/dist/push/index.d.ts
CHANGED
|
@@ -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-
|
|
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-BSW0Ncjj.js";
|
|
2
2
|
export { type PushPlatform, type PushProvider, type RegisterPushTokenInput, type RegisterPushTokenResult, type RegisteredPushDevice, ReoptPushClient, type UnregisterPushTokenInput, type UnregisterPushTokenResult, createReoptPushClient };
|
package/dist/push/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as ReoptSDKError } from "./config-
|
|
1
|
+
import { S as ReoptSDKError } from "./config-C_OFYAgP.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-
|
|
35
|
+
//# sourceMappingURL=query-BkdTSuB5.js.map
|
package/dist/react/hooks.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as ListRecordsQuery, C as EavAttribute, D as EavRecord, E as EavEntity, F as
|
|
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-
|
|
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-D3SblxWt.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-D1AFtJRw.js";
|
|
3
3
|
import { v as ReoptSDKError } from "../errors-U3TsyWVq.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-
|
|
6
|
-
import { t as ReoptSDK } from "../index-
|
|
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-CniCGdmi.js";
|
|
6
|
+
import { t as ReoptSDK } from "../index-BnAYxnwq.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 = {
|
package/dist/terms/index.d.ts
CHANGED
|
@@ -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-
|
|
2
|
+
import { n as createReoptTermsClient, t as ReoptTermsClient } from "../client-yKeRJnIB.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 };
|
package/dist/terms/index.js
CHANGED
package/dist/testing/index.d.ts
CHANGED
|
@@ -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-C6fyJTud.js";
|
|
2
|
-
import { t as ReoptSDK } from "../index-
|
|
2
|
+
import { t as ReoptSDK } from "../index-BnAYxnwq.js";
|
|
3
3
|
//#region src/testing/index.d.ts
|
|
4
4
|
type TestSDKOptions = {
|
|
5
5
|
/** EAV schema to seed entities and attributes */
|
package/docs/api-reference.md
CHANGED
|
@@ -314,8 +314,8 @@ await generateText({
|
|
|
314
314
|
});
|
|
315
315
|
|
|
316
316
|
// Image generation via AI SDK
|
|
317
|
-
import {
|
|
318
|
-
const { image } = await
|
|
317
|
+
import { generateImage } from "ai";
|
|
318
|
+
const { image } = await generateImage({
|
|
319
319
|
model: brandapp.imageModel("google/gemini-2.5-flash-image"),
|
|
320
320
|
prompt: "A brand banner",
|
|
321
321
|
providerOptions: { brandapp: { style: "minimalist", aspectRatio: "16:9" } },
|
|
@@ -329,17 +329,18 @@ BrandApp AI API는 멀티테넌트 안전을 위해 **텍스트·이미지 표
|
|
|
329
329
|
**지원**
|
|
330
330
|
|
|
331
331
|
- `generateText()`, `streamText()` — 텍스트 생성
|
|
332
|
-
- `
|
|
332
|
+
- `generateImage()` — 이미지 생성 (`brandapp.imageModel(...)`)
|
|
333
333
|
- `providerMetadata.brandapp` — `creditCost` / `creditsRemaining` / `responseId`
|
|
334
334
|
- `providerOptions.brandapp` — `customerId` / `style` / `negativePrompt` / `aspectRatio`
|
|
335
335
|
- `finishReason` — 서버가 보고하면 정확히 매핑(미보고 시 `stop`)
|
|
336
336
|
|
|
337
|
-
**미지원**
|
|
337
|
+
**미지원**
|
|
338
338
|
|
|
339
|
-
- tool/function calling — `tools
|
|
340
|
-
- 구조화 출력 —
|
|
341
|
-
- 비전·파일 입력 —
|
|
342
|
-
-
|
|
339
|
+
- tool/function calling — `tools` 또는 필수 `toolChoice` 요청은 HTTP 호출 전에 `UnsupportedFunctionalityError`
|
|
340
|
+
- 구조화 출력 — JSON response format 요청은 HTTP 호출 전에 `UnsupportedFunctionalityError`
|
|
341
|
+
- 비전·파일 입력 — 사용자·assistant·도구 결과의 이미지/파일은 HTTP 호출 전에 `UnsupportedFunctionalityError`
|
|
342
|
+
- 이미지 편집·참조·마스크 — 이미지 모델의 `files` / `mask` 요청도 HTTP 호출 전에 `UnsupportedFunctionalityError`
|
|
343
|
+
- `topP` / `topK` / `frequencyPenalty` / `presencePenalty` / `stopSequences` / `seed` — warning 후 생략
|
|
343
344
|
- 임베딩·음성·전사 모델 — `brandapp.embeddingModel(...)` 등은 `NoSuchModelError`
|
|
344
345
|
|
|
345
346
|
**에러** — provider는 `APICallError`(AI SDK 표준)를 던진다. `error.isRetryable`로 재시도
|
|
@@ -404,7 +405,7 @@ await sdk.eav.records.update(entityId, recordId, { expiresAt: null }); // TTL
|
|
|
404
405
|
| 속성/엔티티 | 100 | `LIMIT_EXCEEDED_ATTRIBUTES` |
|
|
405
406
|
| 레코드/엔티티 | 10,000 기본 (운영자 `BRANDAPP_EAV_MAX_RECORDS_PER_ENTITY`로 인상) — 만료 행 제외 | `LIMIT_EXCEEDED_RECORDS` (422) |
|
|
406
407
|
| 인메모리 후보 상한 | 10,000행 — 필터가 SQL로 못 내려가는 요청(`neq`/`not_in`/`after`/`before`, 커스텀 속성 정렬)만 해당 | `QUERY_TOO_BROAD` (422) |
|
|
407
|
-
| `list` limit | 최대 100, 기본 50
|
|
408
|
+
| `list` limit | 최대 100, 기본 50 — SDK가 요청 전에 거절(`RECORDS_PAGE_LIMIT_MAX`), 여러 페이지는 `listAll()` | 400 |
|
|
408
409
|
| bulk create/update/delete | 호출당 100건 | 400 |
|
|
409
410
|
| 레코드 값 직렬화 | 128KB/레코드 | `VALIDATION_ERROR` (422) |
|
|
410
411
|
| 엔티티·속성 name/label | 100자, description 500자 | 400 |
|
|
@@ -414,7 +415,9 @@ await sdk.eav.records.update(entityId, recordId, { expiresAt: null }); // TTL
|
|
|
414
415
|
|
|
415
416
|
```typescript
|
|
416
417
|
|
|
417
|
-
// Pagination (async generator)
|
|
418
|
+
// Pagination (async generator) — limit은 페이지 크기이고 총량이 아니다.
|
|
419
|
+
// list()에 100을 넘기면 400이 아니라 요청 전에 BadRequestError로 거절된다.
|
|
420
|
+
import { RECORDS_PAGE_LIMIT_MAX } from "@reopt-ai/brandapp-sdk/eav"; // 100
|
|
418
421
|
for await (const record of sdk.eav.records.listAll(entityId)) { ... }
|
|
419
422
|
```
|
|
420
423
|
|
|
@@ -508,7 +511,9 @@ export async function generateMetadata({ params }): Promise<Metadata> {
|
|
|
508
511
|
|
|
509
512
|
// app/sitemap.ts — Next.js MetadataRoute.Sitemap
|
|
510
513
|
export default async function sitemap() {
|
|
511
|
-
|
|
514
|
+
// limit 상한은 100 — 그 이상은 더 큰 페이지가 아니라 400이다. 글이 더 많으면
|
|
515
|
+
// page를 돌려 모은다(EAV는 sdk.eav.records.listAll()이 대신 돌아 준다).
|
|
516
|
+
const { records } = await sdk.cms.posts.list({ status: "published", limit: 100 });
|
|
512
517
|
return toSitemapItems(records, {
|
|
513
518
|
siteUrl: "https://www.example.com",
|
|
514
519
|
basePath?: "/blog", // Default "/blog"
|
package/docs/cms.md
CHANGED
|
@@ -149,9 +149,11 @@ import type { MetadataRoute } from "next";
|
|
|
149
149
|
import { toSitemapItems } from "@reopt-ai/brandapp-sdk/cms";
|
|
150
150
|
|
|
151
151
|
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
|
152
|
+
// limit 상한은 100 — 그 이상은 더 큰 페이지가 아니라 400이다.
|
|
153
|
+
// 글이 100개를 넘으면 page를 올려 가며 모은다.
|
|
152
154
|
const { records } = await sdk.cms.posts.list({
|
|
153
155
|
status: "published",
|
|
154
|
-
limit:
|
|
156
|
+
limit: 100,
|
|
155
157
|
sortBy: "publishedAt",
|
|
156
158
|
sortOrder: "desc",
|
|
157
159
|
});
|