@reopt-ai/brandapp-sdk 4.3.0 → 4.5.0-platform.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 +31 -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-BMgVQ4U-.js → client-B0XUjOuP.js} +12 -5
- package/dist/{client-D4kUDFwW.js → client-B270eCrs.js} +2 -2
- package/dist/{client-BD1-resY.js → client-BIMl52kc.js} +3 -3
- package/dist/{client-p4LmfF27.js → client-BNht520A.js} +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-Hc7SfeIf.js → client-BwgCbfXv.js} +2 -2
- package/dist/{client-vjIDamSf.js → client-C2ALt685.js} +3 -3
- package/dist/{client-DjgoTlfv.d.ts → client-C6OXGMMV.d.ts} +2 -2
- package/dist/{client-BpEWDfSl.js → client-CKi1NpMR.js} +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-BVvAfEXG.js → client-Cv1bdMBf.js} +2 -2
- package/dist/{client-DA9ibl3G.d.ts → client-D1AFtJRw.d.ts} +2 -2
- package/dist/{client-CaWHvclV.js → client-DNzgX_md.js} +70 -6
- package/dist/{client-DYammrtw.d.ts → client-Dmvtr1nS.d.ts} +2 -2
- package/dist/{client-CRim5LCH.d.ts → client-IUSZDJio.d.ts} +2 -2
- package/dist/{client-CIUecAJE.js → client-WxPjMNy_.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-D28P8iwm.d.ts → config-D3SblxWt.d.ts} +19 -2
- package/dist/{config-D8dSL6OQ.js → config-DkT0F-GG.js} +2 -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-BO5A5n4I.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-D08B_HFt.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/dist/webhooks/index.d.ts +25 -2
- package/dist/workspace/index.d.ts +253 -0
- package/dist/workspace/index.js +335 -0
- package/docs/api-reference.md +16 -11
- package/docs/cms.md +3 -1
- package/package.json +10 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
1
|
+
import { u as BadRequestError } from "./config-DkT0F-GG.js";
|
|
2
|
+
import { t as BaseHttpClient } from "./http-client-BO5A5n4I.js";
|
|
3
|
+
import { t as buildQuery } from "./query-D08B_HFt.js";
|
|
3
4
|
|
|
4
5
|
//#region src/eav/cache.ts
|
|
5
6
|
var SchemaCache = class {
|
|
@@ -39,8 +40,70 @@ var SchemaCache = class {
|
|
|
39
40
|
}
|
|
40
41
|
};
|
|
41
42
|
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/eav/types.ts
|
|
45
|
+
/**
|
|
46
|
+
* Every filter operator the EAV record endpoints accept.
|
|
47
|
+
*
|
|
48
|
+
* Exported as a runtime value on purpose: the type alone cannot be compared
|
|
49
|
+
* against anything at test time, and this vocabulary is a copy — the server
|
|
50
|
+
* owns it in `apps/web/server/hono/routes/brandapp-eav-schemas.ts` and this
|
|
51
|
+
* package cannot import across the deployment boundary. The copy is held to
|
|
52
|
+
* the original by `apps/web/server/mcp/__tests__/eav-filter-operator-parity.test.ts`,
|
|
53
|
+
* which reads *this* array rather than a hand-written list.
|
|
54
|
+
*/
|
|
55
|
+
const ATTRIBUTE_FILTER_OPERATORS = [
|
|
56
|
+
"eq",
|
|
57
|
+
"neq",
|
|
58
|
+
"contains",
|
|
59
|
+
"gt",
|
|
60
|
+
"lt",
|
|
61
|
+
"gte",
|
|
62
|
+
"lte",
|
|
63
|
+
"is_null",
|
|
64
|
+
"is_not_null",
|
|
65
|
+
"after",
|
|
66
|
+
"before",
|
|
67
|
+
"in",
|
|
68
|
+
"not_in"
|
|
69
|
+
];
|
|
70
|
+
/** Maximum number of entries in one `in` / `not_in` list (server-enforced). */
|
|
71
|
+
const ATTRIBUTE_FILTER_LIST_MAX = 100;
|
|
72
|
+
/**
|
|
73
|
+
* Maximum page size accepted by `GET /entities/:id/records` (server-enforced).
|
|
74
|
+
*
|
|
75
|
+
* 🔑 The server is the source of truth — `listRecordsQuerySchema.limit` in
|
|
76
|
+
* `apps/web/server/hono/routes/brandapp-eav-schemas.ts` is `.max(100)`, and
|
|
77
|
+
* `__tests__/eav-records-page-limit.test.ts` fails if the two drift apart.
|
|
78
|
+
* Asking for more is a 400, never a larger page: production 2026-08-30~09-05
|
|
79
|
+
* (Sentry ANGSKI-WEB-18) sent `limit=200` for five days and the credit
|
|
80
|
+
* dead-letter sweep died on every run. Use `records.listAll()` to read past
|
|
81
|
+
* one page.
|
|
82
|
+
*/
|
|
83
|
+
const RECORDS_PAGE_LIMIT_MAX = 100;
|
|
84
|
+
|
|
42
85
|
//#endregion
|
|
43
86
|
//#region src/eav/client.ts
|
|
87
|
+
/**
|
|
88
|
+
* Reject a page size the server will reject anyway — before the request leaves
|
|
89
|
+
* the process, naming the ceiling and the way past it.
|
|
90
|
+
*
|
|
91
|
+
* 🔑 Refusing beats silently clamping here: a caller that asked for 200 and
|
|
92
|
+
* quietly got 100 would read a truncated page as "everything". That is exactly
|
|
93
|
+
* how production 2026-08-30~09-05 (Sentry ANGSKI-WEB-18) burned five days —
|
|
94
|
+
* `limit: maxRecords` was 200, every request 400'd, and the credit dead-letter
|
|
95
|
+
* sweep never settled a single owner.
|
|
96
|
+
*/
|
|
97
|
+
function assertPageLimit(limit) {
|
|
98
|
+
if (limit === void 0) return;
|
|
99
|
+
if (Number.isInteger(limit) && limit >= 1 && limit <= 100) return;
|
|
100
|
+
throw new BadRequestError(`limit must be an integer between 1 and ${100} (got ${limit}). Use records.listAll() to read every record across pages.`);
|
|
101
|
+
}
|
|
102
|
+
/** Page size for the paging helpers, held inside the server's accepted range. */
|
|
103
|
+
function clampPageLimit(limit) {
|
|
104
|
+
if (!Number.isFinite(limit)) return 100;
|
|
105
|
+
return Math.min(Math.max(1, Math.floor(limit)), 100);
|
|
106
|
+
}
|
|
44
107
|
function createReoptEavClient(config) {
|
|
45
108
|
const http = new BaseHttpClient(config, `/api/v1/brandapp/${config.brandappId}/eav`);
|
|
46
109
|
let entityNameMap = null;
|
|
@@ -132,6 +195,7 @@ function createReoptEavClient(config) {
|
|
|
132
195
|
* ```
|
|
133
196
|
*/
|
|
134
197
|
async list(entityId, query) {
|
|
198
|
+
assertPageLimit(query?.limit);
|
|
135
199
|
const qs = buildQuery(query ?? {});
|
|
136
200
|
return (await http.fetch("GET", `/entities/${entityId}/records${qs}`)).data;
|
|
137
201
|
},
|
|
@@ -281,7 +345,7 @@ function createReoptEavClient(config) {
|
|
|
281
345
|
*/
|
|
282
346
|
async *listAll(entityId, query) {
|
|
283
347
|
let page = 1;
|
|
284
|
-
const limit = query?.limit ?? 100;
|
|
348
|
+
const limit = clampPageLimit(query?.limit ?? 100);
|
|
285
349
|
while (true) {
|
|
286
350
|
const res = await client.records.list(entityId, {
|
|
287
351
|
...query,
|
|
@@ -316,7 +380,7 @@ function createReoptEavClient(config) {
|
|
|
316
380
|
*/
|
|
317
381
|
async backfill(entityId, opts) {
|
|
318
382
|
const concurrency = Math.max(1, opts.concurrency ?? 5);
|
|
319
|
-
const pageSize =
|
|
383
|
+
const pageSize = clampPageLimit(opts.pageSize ?? 100);
|
|
320
384
|
const batchSize = Math.min(Math.max(1, opts.batchSize ?? MAX_BULK), MAX_BULK);
|
|
321
385
|
const total = await client.records.count(entityId, {
|
|
322
386
|
authUserId: opts.authUserId,
|
|
@@ -499,5 +563,5 @@ function createReoptEavClient(config) {
|
|
|
499
563
|
}
|
|
500
564
|
|
|
501
565
|
//#endregion
|
|
502
|
-
export { createReoptEavClient as t };
|
|
503
|
-
//# sourceMappingURL=client-
|
|
566
|
+
export { RECORDS_PAGE_LIMIT_MAX as i, ATTRIBUTE_FILTER_LIST_MAX as n, ATTRIBUTE_FILTER_OPERATORS as r, createReoptEavClient as t };
|
|
567
|
+
//# sourceMappingURL=client-DNzgX_md.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 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-
|
|
53
|
+
//# sourceMappingURL=client-Dmvtr1nS.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ReoptSDKConfig } from "./config-
|
|
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-
|
|
211
|
+
//# sourceMappingURL=client-IUSZDJio.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseHttpClient } from "./http-client-
|
|
1
|
+
import { t as BaseHttpClient } from "./http-client-BO5A5n4I.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-
|
|
53
|
+
//# sourceMappingURL=client-WxPjMNy_.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
|
@@ -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
|
|
@@ -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.5.0-platform.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-DkT0F-GG.js.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-DkT0F-GG.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-DNzgX_md.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-DkT0F-GG.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-BO5A5n4I.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-DkT0F-GG.js";
|
|
2
|
+
import { t as BaseHttpClient } from "./http-client-BO5A5n4I.js";
|
|
3
|
+
import { n as createReoptAiClient } from "./client-B0XUjOuP.js";
|
|
4
|
+
import { n as createReoptAuthClient } from "./client-WxPjMNy_.js";
|
|
5
|
+
import { t as createReoptCmsClient } from "./client-BIMl52kc.js";
|
|
6
|
+
import { t as createReoptEavClient } from "./client-DNzgX_md.js";
|
|
7
|
+
import { n as createReoptFeedbackClient } from "./client-BNht520A.js";
|
|
8
|
+
import { n as createReoptFileClient } from "./client-C2ALt685.js";
|
|
9
|
+
import { n as createReoptAnalyticsClient } from "./client-BwgCbfXv.js";
|
|
10
|
+
import { n as createReoptPlansClient } from "./client-Cv1bdMBf.js";
|
|
11
|
+
import { n as createReoptPushClient } from "./client-B270eCrs.js";
|
|
12
|
+
import { n as createReoptTermsClient } from "./client-CKi1NpMR.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-DkT0F-GG.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-D08B_HFt.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/dist/webhooks/index.d.ts
CHANGED
|
@@ -15,7 +15,30 @@
|
|
|
15
15
|
* 실제 플랫폼 송신부와 불일치해 모든 프로덕션 웹훅을 401 거부했다. 이 모듈은 송신부에
|
|
16
16
|
* 정렬되어 있다.)
|
|
17
17
|
*/
|
|
18
|
-
type WebhookEventType = "contactCreated" | "contactUpdated" | "contactDeleted" | "workflowRunCompleted" | "workflowRunFailed" | "subscriptionActivated" | "subscriptionRenewed" | "subscriptionCanceled" | "subscriptionPaymentFailed";
|
|
18
|
+
type WebhookEventType = "contactCreated" | "contactUpdated" | "contactDeleted" | "workflowRunCompleted" | "workflowRunFailed" | "subscriptionActivated" | "subscriptionRenewed" | "subscriptionCanceled" | "subscriptionPaymentFailed" | "workTaskStageChanged";
|
|
19
|
+
/**
|
|
20
|
+
* `workTaskStageChanged` 페이로드 — 플랫폼 API(`@reopt-ai/brandapp-sdk/workspace`) 소비자의
|
|
21
|
+
* 역방향 동기화용. 수신 측 규칙: `origin`이 자기 source면 무시, `version`이 마지막 처리값 이하면
|
|
22
|
+
* 무시, `externalRefs`에서 자기 source의 `externalId`를 찾아 상태를 갱신한다.
|
|
23
|
+
*/
|
|
24
|
+
type WorkTaskStageChangedWebhookData = {
|
|
25
|
+
id: string;
|
|
26
|
+
title: string;
|
|
27
|
+
pipelineId: string | null;
|
|
28
|
+
fromStageLabel: string | null;
|
|
29
|
+
toStageId: string;
|
|
30
|
+
toStageLabel: string;
|
|
31
|
+
toStageOutcome: "completed" | "canceled" | null;
|
|
32
|
+
/** "studio"(사람·AI·자동화) 또는 플랫폼 API 클라이언트의 source slug */
|
|
33
|
+
origin: string;
|
|
34
|
+
/** outbox 행 생성 시각(ms epoch) — 단조 비교용 */
|
|
35
|
+
version: number;
|
|
36
|
+
externalRefs: Array<{
|
|
37
|
+
source: string;
|
|
38
|
+
externalId: string;
|
|
39
|
+
label: string | null;
|
|
40
|
+
}>;
|
|
41
|
+
};
|
|
19
42
|
/**
|
|
20
43
|
* 구독 이벤트 4종의 공통 페이로드(`WebhookPayload<SubscriptionWebhookData>`).
|
|
21
44
|
*
|
|
@@ -166,5 +189,5 @@ declare function createWebhookHandler(config: {
|
|
|
166
189
|
*/
|
|
167
190
|
declare function verifySignature(timestamp: string, body: string, signature: string, secret: string): Promise<boolean>;
|
|
168
191
|
//#endregion
|
|
169
|
-
export { DEFAULT_IDEMPOTENCY_TTL_MS, DEFAULT_WEBHOOK_TOLERANCE_MS, IdempotencyStore, SubscriptionWebhookData, WebhookEventType, WebhookHandlers, WebhookPayload, createMemoryIdempotencyStore, createWebhookHandler, verifySignature };
|
|
192
|
+
export { DEFAULT_IDEMPOTENCY_TTL_MS, DEFAULT_WEBHOOK_TOLERANCE_MS, IdempotencyStore, SubscriptionWebhookData, WebhookEventType, WebhookHandlers, WebhookPayload, WorkTaskStageChangedWebhookData, createMemoryIdempotencyStore, createWebhookHandler, verifySignature };
|
|
170
193
|
//# sourceMappingURL=index.d.ts.map
|