@tinkerlandai/longplay-sdk 0.10.40 → 0.10.41
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 +11 -0
- package/README.md +56 -1
- package/README.zh-CN.md +5 -1
- package/dist/{ai-usage-DXwAGTxT.d.ts → ai-usage-B-qsCn-k.d.ts} +1 -1
- package/dist/{api-r6FfVQpg.d.ts → api-DpRb_Pd3.d.ts} +52 -0
- package/dist/check-response-SR3PDVGE.js +1 -0
- package/dist/chunk-24Z3THUR.js +1 -0
- package/dist/{chunk-FCDWCQYC.js → chunk-26UXCYBP.js} +1 -1
- package/dist/{chunk-7QDT6DO7.js → chunk-2LERKK7O.js} +1 -1
- package/dist/{chunk-RV6UAUK2.js → chunk-2LUVO7GM.js} +1 -1
- package/dist/{chunk-C2KT5ZFU.js → chunk-2P2YSNYU.js} +1 -1
- package/dist/{chunk-X6ONZGRY.js → chunk-2RUJXZCO.js} +1 -1
- package/dist/chunk-2XF34Q6D.js +1 -0
- package/dist/chunk-4B4RB36N.js +1 -0
- package/dist/chunk-5PNH2FPI.js +1 -0
- package/dist/{chunk-EREQZWGI.js → chunk-6EBS6MLW.js} +1 -1
- package/dist/chunk-6OVMC5BT.js +1 -0
- package/dist/{chunk-ASDJTOGM.js → chunk-6STWY5GX.js} +1 -1
- package/dist/chunk-756SIMZF.js +1 -0
- package/dist/chunk-7IVLNV5H.js +1 -0
- package/dist/chunk-ANXK3B5B.js +1 -0
- package/dist/{chunk-P6C3PNMQ.js → chunk-AQQJPP3P.js} +1 -1
- package/dist/chunk-BWRRZ2NW.js +1 -0
- package/dist/{chunk-O4KXODTJ.js → chunk-CQRSMCCG.js} +1 -1
- package/dist/{chunk-YLPQLD2A.js → chunk-DPEMW2FO.js} +1 -1
- package/dist/chunk-EECTJHI6.js +1 -0
- package/dist/{chunk-CZ4TQCUV.js → chunk-EJSDOSP5.js} +1 -1
- package/dist/{chunk-POCDWUD3.js → chunk-EON4IKWR.js} +1 -1
- package/dist/chunk-EOPKOAR5.js +1 -0
- package/dist/{chunk-QZTTKH2H.js → chunk-FTVNGN6Z.js} +1 -1
- package/dist/{chunk-WLGLQJ6M.js → chunk-G6CWZBT5.js} +1 -1
- package/dist/chunk-GXADA7OV.js +1 -0
- package/dist/{chunk-ORMQJAQE.js → chunk-H26F3IOI.js} +1 -1
- package/dist/{chunk-BYP4KVB3.js → chunk-H7AHDGVU.js} +2 -2
- package/dist/chunk-HGH2X6QM.js +1 -0
- package/dist/chunk-KINNES62.js +1 -0
- package/dist/{chunk-LSPHUA7V.js → chunk-MYDMOAKX.js} +1 -1
- package/dist/chunk-NFY7DKVJ.js +1 -0
- package/dist/{chunk-YY445FBU.js → chunk-O3HLNU6T.js} +1 -1
- package/dist/chunk-OAAS5LJY.js +1 -0
- package/dist/{chunk-2DPNSTCN.js → chunk-OEONV3JY.js} +1 -1
- package/dist/chunk-P6XQC7GG.js +1 -0
- package/dist/chunk-PYLX3WF6.js +1 -0
- package/dist/{chunk-5DZJCFNQ.js → chunk-QJMM37CB.js} +1 -1
- package/dist/{chunk-33ZVZOSC.js → chunk-RQTYIUWP.js} +1 -1
- package/dist/chunk-S4P4UUUF.js +1 -0
- package/dist/{chunk-57GPGWSK.js → chunk-SYHMHKFQ.js} +1 -1
- package/dist/{chunk-67AY54E2.js → chunk-TGPZJ5A7.js} +1 -1
- package/dist/chunk-VILB5M4X.js +1 -0
- package/dist/chunk-VJHURKRY.js +1 -0
- package/dist/{chunk-VC2HPREX.js → chunk-VWRQBQZD.js} +1 -1
- package/dist/chunk-W35FZWGG.js +1 -0
- package/dist/chunk-W3J2SIPY.js +1 -0
- package/dist/chunk-Y2HXKANG.js +1 -0
- package/dist/{configuration-sync-BHrAf-ql.d.ts → configuration-sync-7ruSsSrL.d.ts} +150 -1
- package/dist/content-XYUJFGY2.js +1 -0
- package/dist/funnel-host-purchase-BNS3242X.js +1 -0
- package/dist/{funnel-local-client-DR8OpKGU.d.ts → funnel-local-client-BMxDQWE6.d.ts} +51987 -22983
- package/dist/{funnel-node-evaluation-COxXtZEQ.d.ts → funnel-node-evaluation-COIh1hKs.d.ts} +3 -0
- package/dist/funnel-paywall-prerender-DDQI3GAZ.js +1 -0
- package/dist/{funnel-process-client-C87U4r_G.d.ts → funnel-process-client-DNR9nHs8.d.ts} +7338 -3163
- package/dist/funnel-route-prediction-BT5ZWU54.js +1 -0
- package/dist/funnel-route-source-7ZJMZRID.js +1 -0
- package/dist/funnel-runtime-host-3SSDNG24.js +1 -0
- package/dist/index.d.ts +273 -22
- package/dist/index.js +1 -1
- package/dist/merchant-bridge-contracts-YU53UKUN.js +1 -0
- package/dist/native-shell.js +1 -1
- package/dist/openrouter.d.ts +2 -2
- package/dist/openrouter.js +1 -1
- package/dist/operation-contracts-GEIGP23I.js +1 -0
- package/dist/page.d.ts +1 -1
- package/dist/page.js +1 -1
- package/dist/paywall-YZAEI7TF.js +1 -0
- package/dist/paywall-content-QBSB5NA7.js +1 -0
- package/dist/paywall-session-MHBAZLS7.js +1 -0
- package/dist/popup.d.ts +2 -2
- package/dist/popup.js +1 -1
- package/dist/{presentation-loading-B_v5XZtM.d.ts → presentation-loading-B2OeFzRN.d.ts} +1 -0
- package/dist/react-native.d.ts +6 -6
- package/dist/react-native.js +1 -1
- package/dist/screen-renderer-SEJG7A2C.js +1 -0
- package/dist/server.d.ts +34204 -17797
- package/dist/server.js +1 -1
- package/dist/{visual-dom-5LUN4AHO.js → visual-dom-7YYJQ2ZI.js} +1 -1
- package/dist/visual.js +1 -1
- package/package.json +1 -1
- package/dist/check-response-DRQCUWDW.js +0 -1
- package/dist/chunk-3NCMYTNG.js +0 -1
- package/dist/chunk-4TEZZZYK.js +0 -1
- package/dist/chunk-6PG3AS3G.js +0 -1
- package/dist/chunk-AZFWG352.js +0 -1
- package/dist/chunk-C3GYAKIU.js +0 -1
- package/dist/chunk-ESAHTG3Y.js +0 -1
- package/dist/chunk-GC6JBIRQ.js +0 -1
- package/dist/chunk-IJKAQNK6.js +0 -1
- package/dist/chunk-IOJVF52Q.js +0 -1
- package/dist/chunk-OOD2VDDP.js +0 -1
- package/dist/chunk-P23JOPR5.js +0 -1
- package/dist/chunk-PJS7M6X3.js +0 -1
- package/dist/chunk-PZOQV6MU.js +0 -1
- package/dist/chunk-RFNIGJOL.js +0 -1
- package/dist/chunk-RULQQ7WI.js +0 -1
- package/dist/chunk-U7GH4VME.js +0 -1
- package/dist/chunk-VOKEZHAH.js +0 -1
- package/dist/chunk-XDOKFAE6.js +0 -1
- package/dist/chunk-Y6HL2IY2.js +0 -1
- package/dist/content-QUEVNSXD.js +0 -1
- package/dist/funnel-host-purchase-LMVMJNUO.js +0 -1
- package/dist/funnel-paywall-prerender-LGUSHEP3.js +0 -1
- package/dist/funnel-runtime-host-H5FM67UC.js +0 -1
- package/dist/merchant-bridge-contracts-LZSQYE3O.js +0 -1
- package/dist/operation-contracts-O7TCDGV4.js +0 -1
- package/dist/paywall-UANWOKKC.js +0 -1
- package/dist/paywall-content-CHPX2P77.js +0 -1
- package/dist/paywall-session-3BNUC5ZE.js +0 -1
- package/dist/screen-renderer-FFVZ64MR.js +0 -1
- /package/dist/{chunk-RGEBK6UF.js → chunk-2ULWP26K.js} +0 -0
- /package/dist/{chunk-OJM6ORHE.js → chunk-4PGYQ2TI.js} +0 -0
- /package/dist/{chunk-CILM5XMH.js → chunk-PBBREFS5.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.10.41
|
|
4
|
+
|
|
5
|
+
- Funnel and standalone Paywalls support an explicitly selected subscription change, display the charge due today separately from credits, tax and renewal, and recover the original update after an interrupted confirmation. Native Paywalls refuse unsupported Web membership changes.
|
|
6
|
+
- Provisional pre-renders re-read eligibility when admission changes the commerce intent to a subscription change; prepaid Feature quantities remain bound to the selected plan.
|
|
7
|
+
|
|
8
|
+
- `predictFunnelStart(configuration, { funnelId, customerId, parameters })` says on the device, before the click, which first screen a Run of the Funnel would present for this Customer: a Paywall (with `paywallId`, `paywallVersionId` and `presentation`), a Funnel screen such as a popup, an external page, an end such as `ineligible`, `unknown` when a step needs the server, or `unavailable`. It records nothing: no Run, exposure, Sticky assignment or Coupon. Splits bucket by the session's Customer ID, as the server does.
|
|
9
|
+
- A Remote Funnel's route is read from `/api/v1/configuration/{environmentId}/funnels/{funnelId}/versions/{versionId}/route`, outside the manifest, and only while its author has turned on **Publish the first-screen route**; until the API serves it, the prediction is `unavailable` (`route_unavailable`). A Local Funnel's route is computed from its public graph.
|
|
10
|
+
- `prerenderFunnelPurchase` renders the predicted Paywall when the app passes `configuration` and names no Paywall, exposes it as `prepared.prediction`, and withdraws an unclaimed copy as `route_changed` when a refresh routes the Start elsewhere. `predictedPaywallLoadingDocument` returns that Paywall's published design for a loading state.
|
|
11
|
+
- `showFunnelPurchase({ start })` accepts a promise: the SDK shows its loading state at the click and starts the Run when the merchant's checks settle; `null`, `undefined` or a rejection ends without a Run (`skipped`).
|
|
12
|
+
- New local error code `ROUTE_UNAVAILABLE`. Existing calls behave as in 0.10.40. Wire protocol remains `0.10`.
|
|
13
|
+
|
|
3
14
|
## 0.10.40
|
|
4
15
|
|
|
5
16
|
- A purchase Funnel opens its first screen in one request. The purchase client asks Longplay to accept the Start and drive it to its first position in the same `recover_start` request (`intent: "start"`), instead of a recovery followed by a separate resume. A Run that ends in its first segment is reported as complete from that reply.
|
package/README.md
CHANGED
|
@@ -246,8 +246,56 @@ purchase.destroy();
|
|
|
246
246
|
`featureQuantities`, keyed by prepaid Feature ID. The quantities come from the
|
|
247
247
|
submitted Paywall selection. Products without prepaid Features send an empty object.
|
|
248
248
|
|
|
249
|
+
For an existing web subscription, supply `resolveSubscriptionChange` to `showPaywall`,
|
|
250
|
+
`showFunnelRun` or `showFunnelPurchase`. It receives the same action, Product Version and
|
|
251
|
+
`featureQuantities` and returns `{ membershipId, timing: "immediate" | "renewal" }`.
|
|
252
|
+
Resolve that membership from the authenticated Customer's current subscription. Return
|
|
253
|
+
`undefined` only when the intended action is a new subscription; reject an unavailable or
|
|
254
|
+
ambiguous membership instead of falling back to attachment. For example, after the merchant
|
|
255
|
+
has verified a single current membership:
|
|
256
|
+
|
|
257
|
+
```ts
|
|
258
|
+
import type { PaywallHostOptions } from "@tinkerlandai/longplay-sdk";
|
|
259
|
+
|
|
260
|
+
const resolveSubscriptionChange: PaywallHostOptions["resolveSubscriptionChange"] =
|
|
261
|
+
() => {
|
|
262
|
+
if (!existingMembershipId) return undefined; // A verified new-subscription account.
|
|
263
|
+
return { membershipId: existingMembershipId, timing: "immediate" as const };
|
|
264
|
+
};
|
|
265
|
+
await showFunnelPurchase(container, {
|
|
266
|
+
client: purchase,
|
|
267
|
+
start: { funnelId, locale, parameters },
|
|
268
|
+
resolveSubscriptionChange,
|
|
269
|
+
});
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
Set `parameters.commerce.intent: "subscription_change"` (or a standalone Paywall's
|
|
273
|
+
`commerce.intent`) to resolve Offering availability against the Customer's unique owned
|
|
274
|
+
membership. Without this optional intent, availability retains new-purchase semantics. An
|
|
275
|
+
explicit change intent without a selected membership is refused rather than attached.
|
|
276
|
+
|
|
277
|
+
The selected target remains pinned to the Paywall's allowed Products. Plan changes retain
|
|
278
|
+
prepaid `featureQuantities` in the command, quote, operation and recovery selection (at most
|
|
279
|
+
100 Feature UUIDs, integer quantities from 0 to 10000). Unsupported provider/timing combinations
|
|
280
|
+
remain server refusals; native store offers cannot be mixed into a web change. For upgrade
|
|
281
|
+
availability, the server supplies verified owned quantities through the existing quantity
|
|
282
|
+
capabilities. Untouched controls start at those values rather than an authored zero; user
|
|
283
|
+
changes and original quoted selections survive refreshes. Missing native source quantities
|
|
284
|
+
remain unavailable instead of being inferred from the displayed price. They retain the selected Coupon and use
|
|
285
|
+
`previewUpdate`, `update` and `readSubscriptionUpdate`, not `previewAttach`. The Paywall
|
|
286
|
+
shows the merchant's frozen credit, charge, amount due, renewal terms and required consents
|
|
287
|
+
before explicit confirmation; `confirmOnHostedCheckout` does not skip this confirmation.
|
|
288
|
+
The accepted change stays in the same Funnel Run, receipt and operation through cancellation,
|
|
289
|
+
lost responses and reopening. Public `PaywallQuote` and `PaywallOperation` are attach/update
|
|
290
|
+
unions; use `isPaywallUpdateQuote` / `isPaywallUpdateOperation` to distinguish them.
|
|
291
|
+
Updates retain their real `effective` or `scheduled` status. Completion also waits for the
|
|
292
|
+
merchant's fulfillment and accepted recording; an unfinished update redirect resumes only
|
|
293
|
+
its original verified payment URL.
|
|
294
|
+
|
|
249
295
|
A purchase button can be bound to the Coupon its Paywall displays. Pass `claimCoupon`, for example `longplay.forFunnel({ funnelId, versionId }).claimCoupon`, to use it: the SDK claims that Coupon at the click and quotes with its offer. Such a button does not call `resolveOfferId`, and a quote that did not apply the Coupon is refused.
|
|
250
296
|
|
|
297
|
+
`start` can also be a promise for the Start while the merchant's own checks run: call `showFunnelPurchase` in the click, and the SDK shows its loading state at once (sized from `loadingDocument`, such as `predictedPaywallLoadingDocument(configuration, prediction)` for the first Paywall `predictFunnelStart` predicts) and starts the Run when the promise settles. `null`, `undefined` or a rejection ends the presentation without a Run (`skipped`), so the merchant can take its own path; closing the loading state before then starts nothing. A pre-rendered copy waiting for the same checks is revealed once they settle on a matching Start, and released otherwise.
|
|
298
|
+
|
|
251
299
|
`preloadFunnelPurchase()` downloads the code a Funnel purchase presents with. It needs no Customer, sends no request and changes no DOM; call it when the page can spare the download.
|
|
252
300
|
|
|
253
301
|
`start()` persists the complete original request before dispatch. An unresolved attempt retains its request ID, locale, parameters and execution policy even if later calls supply different inputs; another Funnel is refused. `refresh()` allocates nothing. The Controller's existing command journal shares the purchase CAS row, so unknown confirmation/Close results retain their original identities. A new attempt is permitted only after the original Run is terminal, its commands are settled and all retained purchases have server-confirmed outcomes. An untouched quote can be cancelled through the existing Customer API after confirmed Run termination. Clearing browser storage cannot prove an unknown purchase absent and is not a fallback procedure.
|
|
@@ -299,7 +347,8 @@ button.onclick = () => {
|
|
|
299
347
|
```
|
|
300
348
|
|
|
301
349
|
- `paywallVersionId` (one exact Version) or `paywallId` (its current published Version) names the Paywall the Funnel presents first. The copy is read with `purchase.readPaywall()` as a standalone Paywall would be, for the Start's `parameters.commerce` and `locale`.
|
|
302
|
-
- `
|
|
350
|
+
- Or pass `configuration` (the page's `createConfigurationSync`) and name no Paywall: the SDK predicts this Customer's first screen from the Funnel's published route (see below) once the Start is final, and renders that Paywall. `prepared.prediction` holds the prediction. A first screen that is not a Paywall leaves the copy `unavailable` with reason `first_screen_popup`, `first_screen_page`, `first_screen_external_page`, `route_end_<outcome>` (for example `route_end_ineligible`) or `route_unknown_<reason>`; a route that is not published reads `route_unavailable`. Until a click takes it, a ready copy becomes `unavailable` (`route_changed`) when a configuration refresh routes the Start to another first screen.
|
|
351
|
+
- `start` can be a promise while the merchant's own checks run: rendering starts at once and the copy becomes ready only with the Start. Pass provisional `commerce` and `locale` then. If admission changes only `commerce.intent`, the SDK rereads the same Paywall's server availability for the final intent before revealing it; an unavailable provisional purchase screen cannot decide upgrade eligibility. A provider, currency or locale change, `null` or a rejection leaves it `unavailable`.
|
|
303
352
|
- `state` is `preparing`, `ready`, `unavailable` (see `reason`), `shown`, `adopted`, `released` or `closed`; `ready` resolves `true` once it can be revealed and `false` when it never will be; `onState` reports each change.
|
|
304
353
|
- Call `open()` synchronously from the opening click. It returns `"shown"` (revealed now), `"pending"` (still rendering: pass it anyway; it is revealed only if it is ready before the Run presents anything, so the click never waits for it) or `false` (show the purchase the normal way). Pass the same Start to `showFunnelPurchase`; `matches(start)` says whether a Start would present this copy (the request ID may differ).
|
|
305
354
|
- Passing `prepared` to `showFunnelPurchase` (or `showFunnelRun`) hands it to the SDK. When the SDK cannot use it (a presentation for the client is already open, another or no Start, no Run, operation-only or blocked recovery, a failure, an instruction or another presentation first), it releases it, so a revealed copy is never left on screen. A revealed presentation that ends without a Run reports `onDismiss(null)`, or `onError` for a failure; a Funnel paused before the takeover dismisses a revealed dialog for good, as it does one the Run presented. Do not reuse a copy you passed; pre-render a new one.
|
|
@@ -307,6 +356,12 @@ button.onclick = () => {
|
|
|
307
356
|
- A copy is revealed only within `maxAgeMs` (5 minutes by default) of its render. It is never prepared while `purchase.retained()` reports a pending purchase, and until a click takes it a ready copy becomes `unavailable` when this Customer's purchase is left pending, by the same purchase client or, through the default browser purchase store, by another tab; the Run's own recovery stays the final guard. A Customer change, `signal` or `destroy()` releases it; after the takeover the Run host owns it.
|
|
308
357
|
- Keep `container` attached and in place: moving it restarts the Paywall's frame.
|
|
309
358
|
|
|
359
|
+
#### Predict the first screen
|
|
360
|
+
|
|
361
|
+
`predictFunnelStart(configuration, { funnelId, customerId, parameters })` says which first screen a Run of the Funnel would present for this Customer and these Start parameters: `paywall` (with `paywallId`, `paywallVersionId` and `presentation`), `screen` (a Funnel-owned `page`, `popup` or `onboarding`), `external_page`, `end` (with its `outcome`, such as `ineligible`), `unknown` (a step only the server can decide) or `unavailable` (no published route, a paused Funnel, unreadable configuration). It is computed on the device from the Funnel Version's routing program and records nothing: no Run, exposure, Sticky assignment or Coupon. `customerId` is the session's Customer ID, which Splits bucket by. The Run started at the click still decides; a Customer with an earlier Sticky assignment, or a Funnel or Experiment changed since the last configuration refresh, can be routed differently, and the pre-rendered copy is then released as before. `predictedPaywallLoadingDocument(configuration, prediction)` returns the predicted Paywall's published design for a loading state.
|
|
362
|
+
|
|
363
|
+
A Remote Funnel's routing program is delivered only while the Funnel's **Publish the first-screen route** setting is on (Console, Funnel Settings, Organization Owner or Admin); otherwise `predictFunnelStart` reports `unavailable` (`route_unavailable`). The program holds the conditions over start parameters, inputs and the Customer ID before the first screen, each Split's bucketing (seed, weights, coverage, ranges, filters, forced or passthrough Variations, targeting over declared values), and each path's first screen; never screen content, Coupons, Bundles, Feature rules, Experiment keys or names, targeting over Customer facts, or anything after the first presentation. A step that reads other values, an action, a Feature, a Wait or a Split that buckets by another attribute is marked as server-only and stops the prediction. A Local Funnel's route is computed from its public graph. Remote routes are read from `/api/v1/configuration/{environmentId}/funnels/{funnelId}/versions/{versionId}/route`, outside the manifest, so SDKs that predate it keep reading the manifest.
|
|
364
|
+
|
|
310
365
|
`purchase.retained()` reads storage only and says whether a new Start would begin afresh (`"none"`, `"finished"`, `"replaceable"`) or recover a pending original purchase (`"pending"`). `purchase.readPaywall({ paywallVersionId | paywallId, commerce, locale })` reads one published Paywall with its content for the current Customer, starting nothing; it refuses another Version or Paywall than requested and a Customer change during the read.
|
|
311
366
|
|
|
312
367
|
### Guest entry and same-Run login
|
package/README.zh-CN.md
CHANGED
|
@@ -212,6 +212,10 @@ SDK 在首次派发前保存原 Start 请求 ID 和完整输入;同一未决
|
|
|
212
212
|
|
|
213
213
|
`resolveOfferId` 还会收到 `featureQuantities`,按预付 Feature ID 提供本次提交的数量。无预付 Feature 的商品会传入空对象。
|
|
214
214
|
|
|
215
|
+
已订阅用户的 Web 套餐变更通过 `showPaywall`、`showFunnelRun` 或 `showFunnelPurchase` 的 `resolveSubscriptionChange` 选择原 membership。回调收到同样的 action、Product Version 和 `featureQuantities`,返回 `{ membershipId, timing: "immediate" | "renewal" }`。membership 必须来自当前已认证 Customer 的真实订阅;只有明确新订阅的场景才返回 `undefined`,订阅缺失或有歧义时应拒绝。完整示例见[英文说明](README.md#managed-funnel-purchase-recovery)。
|
|
216
|
+
|
|
217
|
+
可在 parameters.commerce.intent(独立 Paywall 则为 commerce.intent)传入 subscription_change,使 Offering 按 Customer 唯一已持有 membership 判断升级可用性;省略时保留新购语义。显式变更意图缺少 membership 会被拒绝,不回退新购。该路径保留选中 Coupon,使用 `previewUpdate/update/readSubscriptionUpdate`,不创建新的 attachment;预付 featureQuantities 在命令、报价、operation 和恢复选项中保持不变(最多 100 个 Feature UUID,每项整数 0–10000);服务端仍拒绝不支持的执行方式/时机,Web 变更不能混用原生商店 offer。升级首屏数量使用服务端核实的原订阅档位初始化;之后保留用户调整和原报价,原订数量缺失则不可用,不根据显示价格猜测。确认页展示商户固定的抵扣、实付、续费和 consent,用户明确确认后才执行;`confirmOnHostedCheckout` 不跳过变更确认。取消、丢响应和重开保留同一 Run、receipt 和 operation。公开 `PaywallQuote/PaywallOperation` 为 attach/update 联合类型,可用 `isPaywallUpdateQuote/isPaywallUpdateOperation` 区分;update 保留真实 `effective/scheduled` 状态,并等待商户权益处理和交易记录确认。未完成的变更付款跳转只恢复原来经核对的 URL。
|
|
218
|
+
|
|
215
219
|
购买按钮可以绑定 Paywall 上展示的 Coupon。传入 `claimCoupon` 后,SDK 在点击时为 Customer 领取该 Coupon,并用领到的 offer 报价。这类按钮不再调用 `resolveOfferId`;报价没有应用该 Coupon 时不会进入确认。
|
|
216
220
|
|
|
217
221
|
`preloadFunnelPurchase()` 提前下载 Funnel 购买展示所需的代码。它不需要 Customer,不发请求,也不改动页面,可在页面空闲时调用。
|
|
@@ -231,7 +235,7 @@ SDK 在首次派发前保存原 Start 请求 ID 和完整输入;同一未决
|
|
|
231
235
|
`prerenderFunnelPurchase(container, { client: purchase, start, paywallVersionId 或 paywallId })` 在点击之前隐藏渲染购买 Start 首先展示的 Paywall,点击时只需显示它。预渲染不启动任何东西:没有 Run、回执、曝光或报价。点击时启动的 Run 若首个 Paywall 是同一发布版本且未被操作过,就接管这份已显示的 Paywall。完整示例见[英文说明](README.md#pre-render-the-first-paywall)。
|
|
232
236
|
|
|
233
237
|
- 公开入口的 `prerenderFunnelPurchase` 返回 Promise,需在点击前 await 得到 `PreparedFunnelPurchase`。`paywallVersionId` 指定一个确切版本,`paywallId` 指定其当前发布版本;内容通过 `purchase.readPaywall()` 按 Start 的 `parameters.commerce` 和 `locale` 读取。
|
|
234
|
-
- 商户自己的校验尚未完成时,`start` 可以传 Promise:渲染立即开始,拿到 Start 后才变为 ready
|
|
238
|
+
- 商户自己的校验尚未完成时,`start` 可以传 Promise:渲染立即开始,拿到 Start 后才变为 ready。此时传入初始 `commerce` 和 `locale`;若最终只改变 commerce.intent,SDK 会按最终意图正常重新读取同一 Paywall 可用性,读取完成前不展示,不能用新购灰态判定升级资格。provider、currency 或 locale 改变、Start 为 `null` 或被拒绝时,仍为 `unavailable`。
|
|
235
239
|
- `state` 依次为 `preparing`、`ready`、`unavailable`(原因见 `reason`)、`shown`、`adopted`、`released`、`closed`;`ready` 在可显示时解析为 `true`,永远不能显示时为 `false`;`onState` 报告每次变化。
|
|
236
240
|
- 必须在点击处理函数里同步调用 `open()`(任何 await 之前):`"shown"` 表示本帧已显示;`"pending"` 表示仍在渲染,照样传给 `showFunnelPurchase`,只有在 Run 展示任何内容之前准备好才会显示,点击不会等它;`false` 表示按普通方式打开。传给 `showFunnelPurchase` 的 Start 必须与预渲染时相同(请求 ID 可以不同),`matches(start)` 可用于判断。
|
|
237
241
|
- 把 `prepared` 传给 `showFunnelPurchase`(或 `showFunnelRun`)即交给 SDK 管理。SDK 用不上时(该 client 已有展示、Start 不同或缺失、没有 Run、仅恢复 Operation 或受阻、失败、Run 先展示指令或其他内容)会释放它,已显示的副本不会留在屏幕上。已显示的展示在没有 Run 的情况下结束时,商户收到 `onDismiss(null)`,失败时收到 `onError`;接管前 Funnel 被暂停时,已显示的对话框与 Run 自己展示的一样被永久关闭。传出后不要再复用,需要时重新预渲染。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LanguageModelV4Usage, LanguageModelV4Middleware } from '@ai-sdk/provider';
|
|
2
|
-
import { F as FoundationApi, A as ApiInput } from './api-
|
|
2
|
+
import { F as FoundationApi, A as ApiInput } from './api-DpRb_Pd3.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare const tokenCounts: z.ZodObject<{
|
|
@@ -2566,6 +2566,7 @@ declare const apiOperations: {
|
|
|
2566
2566
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
2567
2567
|
type: z$1.ZodLiteral<"plan">;
|
|
2568
2568
|
productVersionId: z$1.ZodUUID;
|
|
2569
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
2569
2570
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
2570
2571
|
type: z$1.ZodLiteral<"seats">;
|
|
2571
2572
|
licenseKey: z$1.ZodString;
|
|
@@ -2759,6 +2760,7 @@ declare const apiOperations: {
|
|
|
2759
2760
|
operationId: z$1.ZodUUID;
|
|
2760
2761
|
membershipId: z$1.ZodUUID;
|
|
2761
2762
|
productVersionId: z$1.ZodUUID;
|
|
2763
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
2762
2764
|
timing: z$1.ZodEnum<{
|
|
2763
2765
|
immediate: "immediate";
|
|
2764
2766
|
renewal: "renewal";
|
|
@@ -2897,6 +2899,7 @@ declare const apiOperations: {
|
|
|
2897
2899
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
2898
2900
|
type: z$1.ZodLiteral<"plan">;
|
|
2899
2901
|
productVersionId: z$1.ZodUUID;
|
|
2902
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
2900
2903
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
2901
2904
|
type: z$1.ZodLiteral<"seats">;
|
|
2902
2905
|
licenseKey: z$1.ZodString;
|
|
@@ -3133,6 +3136,7 @@ declare const apiOperations: {
|
|
|
3133
3136
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
3134
3137
|
type: z$1.ZodLiteral<"plan">;
|
|
3135
3138
|
productVersionId: z$1.ZodUUID;
|
|
3139
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
3136
3140
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
3137
3141
|
type: z$1.ZodLiteral<"seats">;
|
|
3138
3142
|
licenseKey: z$1.ZodString;
|
|
@@ -3326,6 +3330,7 @@ declare const apiOperations: {
|
|
|
3326
3330
|
operationId: z$1.ZodUUID;
|
|
3327
3331
|
membershipId: z$1.ZodUUID;
|
|
3328
3332
|
productVersionId: z$1.ZodUUID;
|
|
3333
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
3329
3334
|
timing: z$1.ZodEnum<{
|
|
3330
3335
|
immediate: "immediate";
|
|
3331
3336
|
renewal: "renewal";
|
|
@@ -3464,6 +3469,7 @@ declare const apiOperations: {
|
|
|
3464
3469
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
3465
3470
|
type: z$1.ZodLiteral<"plan">;
|
|
3466
3471
|
productVersionId: z$1.ZodUUID;
|
|
3472
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
3467
3473
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
3468
3474
|
type: z$1.ZodLiteral<"seats">;
|
|
3469
3475
|
licenseKey: z$1.ZodString;
|
|
@@ -3700,6 +3706,7 @@ declare const apiOperations: {
|
|
|
3700
3706
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
3701
3707
|
type: z$1.ZodLiteral<"plan">;
|
|
3702
3708
|
productVersionId: z$1.ZodUUID;
|
|
3709
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
3703
3710
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
3704
3711
|
type: z$1.ZodLiteral<"seats">;
|
|
3705
3712
|
licenseKey: z$1.ZodString;
|
|
@@ -3893,6 +3900,7 @@ declare const apiOperations: {
|
|
|
3893
3900
|
operationId: z$1.ZodUUID;
|
|
3894
3901
|
membershipId: z$1.ZodUUID;
|
|
3895
3902
|
productVersionId: z$1.ZodUUID;
|
|
3903
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
3896
3904
|
timing: z$1.ZodEnum<{
|
|
3897
3905
|
immediate: "immediate";
|
|
3898
3906
|
renewal: "renewal";
|
|
@@ -4031,6 +4039,7 @@ declare const apiOperations: {
|
|
|
4031
4039
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
4032
4040
|
type: z$1.ZodLiteral<"plan">;
|
|
4033
4041
|
productVersionId: z$1.ZodUUID;
|
|
4042
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
4034
4043
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
4035
4044
|
type: z$1.ZodLiteral<"seats">;
|
|
4036
4045
|
licenseKey: z$1.ZodString;
|
|
@@ -4267,6 +4276,7 @@ declare const apiOperations: {
|
|
|
4267
4276
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
4268
4277
|
type: z$1.ZodLiteral<"plan">;
|
|
4269
4278
|
productVersionId: z$1.ZodUUID;
|
|
4279
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
4270
4280
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
4271
4281
|
type: z$1.ZodLiteral<"seats">;
|
|
4272
4282
|
licenseKey: z$1.ZodString;
|
|
@@ -4460,6 +4470,7 @@ declare const apiOperations: {
|
|
|
4460
4470
|
operationId: z$1.ZodUUID;
|
|
4461
4471
|
membershipId: z$1.ZodUUID;
|
|
4462
4472
|
productVersionId: z$1.ZodUUID;
|
|
4473
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
4463
4474
|
timing: z$1.ZodEnum<{
|
|
4464
4475
|
immediate: "immediate";
|
|
4465
4476
|
renewal: "renewal";
|
|
@@ -4598,6 +4609,7 @@ declare const apiOperations: {
|
|
|
4598
4609
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
4599
4610
|
type: z$1.ZodLiteral<"plan">;
|
|
4600
4611
|
productVersionId: z$1.ZodUUID;
|
|
4612
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
4601
4613
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
4602
4614
|
type: z$1.ZodLiteral<"seats">;
|
|
4603
4615
|
licenseKey: z$1.ZodString;
|
|
@@ -5296,6 +5308,7 @@ declare const apiOperations: {
|
|
|
5296
5308
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5297
5309
|
type: z$1.ZodLiteral<"plan">;
|
|
5298
5310
|
productVersionId: z$1.ZodUUID;
|
|
5311
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
5299
5312
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5300
5313
|
type: z$1.ZodLiteral<"seats">;
|
|
5301
5314
|
licenseKey: z$1.ZodString;
|
|
@@ -6738,6 +6751,7 @@ declare const apiOperations: {
|
|
|
6738
6751
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6739
6752
|
type: z$1.ZodLiteral<"plan">;
|
|
6740
6753
|
productVersionId: z$1.ZodUUID;
|
|
6754
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
6741
6755
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6742
6756
|
type: z$1.ZodLiteral<"seats">;
|
|
6743
6757
|
licenseKey: z$1.ZodString;
|
|
@@ -7726,6 +7740,7 @@ declare const apiOperations: {
|
|
|
7726
7740
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7727
7741
|
type: z$1.ZodLiteral<"plan">;
|
|
7728
7742
|
productVersionId: z$1.ZodUUID;
|
|
7743
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
7729
7744
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7730
7745
|
type: z$1.ZodLiteral<"seats">;
|
|
7731
7746
|
licenseKey: z$1.ZodString;
|
|
@@ -7914,6 +7929,7 @@ declare const apiOperations: {
|
|
|
7914
7929
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7915
7930
|
type: z$1.ZodLiteral<"plan">;
|
|
7916
7931
|
productVersionId: z$1.ZodUUID;
|
|
7932
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
7917
7933
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7918
7934
|
type: z$1.ZodLiteral<"seats">;
|
|
7919
7935
|
licenseKey: z$1.ZodString;
|
|
@@ -8461,6 +8477,7 @@ declare const apiOperations: {
|
|
|
8461
8477
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
8462
8478
|
type: z$1.ZodLiteral<"plan">;
|
|
8463
8479
|
productVersionId: z$1.ZodUUID;
|
|
8480
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
8464
8481
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
8465
8482
|
type: z$1.ZodLiteral<"seats">;
|
|
8466
8483
|
licenseKey: z$1.ZodString;
|
|
@@ -9449,6 +9466,7 @@ declare const apiOperations: {
|
|
|
9449
9466
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9450
9467
|
type: z$1.ZodLiteral<"plan">;
|
|
9451
9468
|
productVersionId: z$1.ZodUUID;
|
|
9469
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
9452
9470
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9453
9471
|
type: z$1.ZodLiteral<"seats">;
|
|
9454
9472
|
licenseKey: z$1.ZodString;
|
|
@@ -9637,6 +9655,7 @@ declare const apiOperations: {
|
|
|
9637
9655
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9638
9656
|
type: z$1.ZodLiteral<"plan">;
|
|
9639
9657
|
productVersionId: z$1.ZodUUID;
|
|
9658
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
9640
9659
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9641
9660
|
type: z$1.ZodLiteral<"seats">;
|
|
9642
9661
|
licenseKey: z$1.ZodString;
|
|
@@ -9855,6 +9874,7 @@ declare const apiOperations: {
|
|
|
9855
9874
|
change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9856
9875
|
type: z$1.ZodLiteral<"plan">;
|
|
9857
9876
|
productVersionId: z$1.ZodUUID;
|
|
9877
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
9858
9878
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9859
9879
|
type: z$1.ZodLiteral<"seats">;
|
|
9860
9880
|
licenseKey: z$1.ZodString;
|
|
@@ -9924,6 +9944,7 @@ declare const apiOperations: {
|
|
|
9924
9944
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9925
9945
|
type: z$1.ZodLiteral<"plan">;
|
|
9926
9946
|
productVersionId: z$1.ZodUUID;
|
|
9947
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
9927
9948
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9928
9949
|
type: z$1.ZodLiteral<"seats">;
|
|
9929
9950
|
licenseKey: z$1.ZodString;
|
|
@@ -10117,6 +10138,7 @@ declare const apiOperations: {
|
|
|
10117
10138
|
operationId: z$1.ZodUUID;
|
|
10118
10139
|
membershipId: z$1.ZodUUID;
|
|
10119
10140
|
productVersionId: z$1.ZodUUID;
|
|
10141
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
10120
10142
|
timing: z$1.ZodEnum<{
|
|
10121
10143
|
immediate: "immediate";
|
|
10122
10144
|
renewal: "renewal";
|
|
@@ -10255,6 +10277,7 @@ declare const apiOperations: {
|
|
|
10255
10277
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10256
10278
|
type: z$1.ZodLiteral<"plan">;
|
|
10257
10279
|
productVersionId: z$1.ZodUUID;
|
|
10280
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
10258
10281
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10259
10282
|
type: z$1.ZodLiteral<"seats">;
|
|
10260
10283
|
licenseKey: z$1.ZodString;
|
|
@@ -10477,6 +10500,7 @@ declare const apiOperations: {
|
|
|
10477
10500
|
invoiceMode: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
10478
10501
|
membershipId: z$1.ZodUUID;
|
|
10479
10502
|
productVersionId: z$1.ZodUUID;
|
|
10503
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
10480
10504
|
status: z$1.ZodEnum<{
|
|
10481
10505
|
failed: "failed";
|
|
10482
10506
|
pending: "pending";
|
|
@@ -10588,6 +10612,7 @@ declare const apiOperations: {
|
|
|
10588
10612
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10589
10613
|
type: z$1.ZodLiteral<"plan">;
|
|
10590
10614
|
productVersionId: z$1.ZodUUID;
|
|
10615
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
10591
10616
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10592
10617
|
type: z$1.ZodLiteral<"seats">;
|
|
10593
10618
|
licenseKey: z$1.ZodString;
|
|
@@ -11070,6 +11095,7 @@ declare const apiOperations: {
|
|
|
11070
11095
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
11071
11096
|
type: z$1.ZodLiteral<"plan">;
|
|
11072
11097
|
productVersionId: z$1.ZodUUID;
|
|
11098
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
11073
11099
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
11074
11100
|
type: z$1.ZodLiteral<"seats">;
|
|
11075
11101
|
licenseKey: z$1.ZodString;
|
|
@@ -11263,6 +11289,7 @@ declare const apiOperations: {
|
|
|
11263
11289
|
operationId: z$1.ZodUUID;
|
|
11264
11290
|
membershipId: z$1.ZodUUID;
|
|
11265
11291
|
productVersionId: z$1.ZodUUID;
|
|
11292
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
11266
11293
|
timing: z$1.ZodEnum<{
|
|
11267
11294
|
immediate: "immediate";
|
|
11268
11295
|
renewal: "renewal";
|
|
@@ -11401,6 +11428,7 @@ declare const apiOperations: {
|
|
|
11401
11428
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
11402
11429
|
type: z$1.ZodLiteral<"plan">;
|
|
11403
11430
|
productVersionId: z$1.ZodUUID;
|
|
11431
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
11404
11432
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
11405
11433
|
type: z$1.ZodLiteral<"seats">;
|
|
11406
11434
|
licenseKey: z$1.ZodString;
|
|
@@ -11634,6 +11662,7 @@ declare const apiOperations: {
|
|
|
11634
11662
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
11635
11663
|
type: z$1.ZodLiteral<"plan">;
|
|
11636
11664
|
productVersionId: z$1.ZodUUID;
|
|
11665
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
11637
11666
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
11638
11667
|
type: z$1.ZodLiteral<"seats">;
|
|
11639
11668
|
licenseKey: z$1.ZodString;
|
|
@@ -11822,6 +11851,7 @@ declare const apiOperations: {
|
|
|
11822
11851
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
11823
11852
|
type: z$1.ZodLiteral<"plan">;
|
|
11824
11853
|
productVersionId: z$1.ZodUUID;
|
|
11854
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
11825
11855
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
11826
11856
|
type: z$1.ZodLiteral<"seats">;
|
|
11827
11857
|
licenseKey: z$1.ZodString;
|
|
@@ -12130,6 +12160,7 @@ declare const apiOperations: {
|
|
|
12130
12160
|
invoiceMode: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
12131
12161
|
membershipId: z$1.ZodUUID;
|
|
12132
12162
|
productVersionId: z$1.ZodUUID;
|
|
12163
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
12133
12164
|
status: z$1.ZodEnum<{
|
|
12134
12165
|
failed: "failed";
|
|
12135
12166
|
pending: "pending";
|
|
@@ -12241,6 +12272,7 @@ declare const apiOperations: {
|
|
|
12241
12272
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
12242
12273
|
type: z$1.ZodLiteral<"plan">;
|
|
12243
12274
|
productVersionId: z$1.ZodUUID;
|
|
12275
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
12244
12276
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
12245
12277
|
type: z$1.ZodLiteral<"seats">;
|
|
12246
12278
|
licenseKey: z$1.ZodString;
|
|
@@ -12723,6 +12755,7 @@ declare const apiOperations: {
|
|
|
12723
12755
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
12724
12756
|
type: z$1.ZodLiteral<"plan">;
|
|
12725
12757
|
productVersionId: z$1.ZodUUID;
|
|
12758
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
12726
12759
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
12727
12760
|
type: z$1.ZodLiteral<"seats">;
|
|
12728
12761
|
licenseKey: z$1.ZodString;
|
|
@@ -12916,6 +12949,7 @@ declare const apiOperations: {
|
|
|
12916
12949
|
operationId: z$1.ZodUUID;
|
|
12917
12950
|
membershipId: z$1.ZodUUID;
|
|
12918
12951
|
productVersionId: z$1.ZodUUID;
|
|
12952
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
12919
12953
|
timing: z$1.ZodEnum<{
|
|
12920
12954
|
immediate: "immediate";
|
|
12921
12955
|
renewal: "renewal";
|
|
@@ -13054,6 +13088,7 @@ declare const apiOperations: {
|
|
|
13054
13088
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
13055
13089
|
type: z$1.ZodLiteral<"plan">;
|
|
13056
13090
|
productVersionId: z$1.ZodUUID;
|
|
13091
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
13057
13092
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
13058
13093
|
type: z$1.ZodLiteral<"seats">;
|
|
13059
13094
|
licenseKey: z$1.ZodString;
|
|
@@ -13287,6 +13322,7 @@ declare const apiOperations: {
|
|
|
13287
13322
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
13288
13323
|
type: z$1.ZodLiteral<"plan">;
|
|
13289
13324
|
productVersionId: z$1.ZodUUID;
|
|
13325
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
13290
13326
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
13291
13327
|
type: z$1.ZodLiteral<"seats">;
|
|
13292
13328
|
licenseKey: z$1.ZodString;
|
|
@@ -13475,6 +13511,7 @@ declare const apiOperations: {
|
|
|
13475
13511
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
13476
13512
|
type: z$1.ZodLiteral<"plan">;
|
|
13477
13513
|
productVersionId: z$1.ZodUUID;
|
|
13514
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
13478
13515
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
13479
13516
|
type: z$1.ZodLiteral<"seats">;
|
|
13480
13517
|
licenseKey: z$1.ZodString;
|
|
@@ -13830,6 +13867,7 @@ declare const apiOperations: {
|
|
|
13830
13867
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
13831
13868
|
type: z$1.ZodLiteral<"plan">;
|
|
13832
13869
|
productVersionId: z$1.ZodUUID;
|
|
13870
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
13833
13871
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
13834
13872
|
type: z$1.ZodLiteral<"seats">;
|
|
13835
13873
|
licenseKey: z$1.ZodString;
|
|
@@ -14235,6 +14273,7 @@ declare const apiOperations: {
|
|
|
14235
14273
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
14236
14274
|
type: z$1.ZodLiteral<"plan">;
|
|
14237
14275
|
productVersionId: z$1.ZodUUID;
|
|
14276
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
14238
14277
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
14239
14278
|
type: z$1.ZodLiteral<"seats">;
|
|
14240
14279
|
licenseKey: z$1.ZodString;
|
|
@@ -14970,6 +15009,7 @@ declare const apiOperations: {
|
|
|
14970
15009
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
14971
15010
|
type: z$1.ZodLiteral<"plan">;
|
|
14972
15011
|
productVersionId: z$1.ZodUUID;
|
|
15012
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
14973
15013
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
14974
15014
|
type: z$1.ZodLiteral<"seats">;
|
|
14975
15015
|
licenseKey: z$1.ZodString;
|
|
@@ -15158,6 +15198,7 @@ declare const apiOperations: {
|
|
|
15158
15198
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
15159
15199
|
type: z$1.ZodLiteral<"plan">;
|
|
15160
15200
|
productVersionId: z$1.ZodUUID;
|
|
15201
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
15161
15202
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
15162
15203
|
type: z$1.ZodLiteral<"seats">;
|
|
15163
15204
|
licenseKey: z$1.ZodString;
|
|
@@ -15469,6 +15510,7 @@ declare const apiOperations: {
|
|
|
15469
15510
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
15470
15511
|
type: z$1.ZodLiteral<"plan">;
|
|
15471
15512
|
productVersionId: z$1.ZodUUID;
|
|
15513
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
15472
15514
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
15473
15515
|
type: z$1.ZodLiteral<"seats">;
|
|
15474
15516
|
licenseKey: z$1.ZodString;
|
|
@@ -16204,6 +16246,7 @@ declare const apiOperations: {
|
|
|
16204
16246
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
16205
16247
|
type: z$1.ZodLiteral<"plan">;
|
|
16206
16248
|
productVersionId: z$1.ZodUUID;
|
|
16249
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
16207
16250
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
16208
16251
|
type: z$1.ZodLiteral<"seats">;
|
|
16209
16252
|
licenseKey: z$1.ZodString;
|
|
@@ -16392,6 +16435,7 @@ declare const apiOperations: {
|
|
|
16392
16435
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
16393
16436
|
type: z$1.ZodLiteral<"plan">;
|
|
16394
16437
|
productVersionId: z$1.ZodUUID;
|
|
16438
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
16395
16439
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
16396
16440
|
type: z$1.ZodLiteral<"seats">;
|
|
16397
16441
|
licenseKey: z$1.ZodString;
|
|
@@ -18807,6 +18851,7 @@ declare const apiOperations: {
|
|
|
18807
18851
|
TRY: "TRY";
|
|
18808
18852
|
RON: "RON";
|
|
18809
18853
|
}>;
|
|
18854
|
+
intent: z$1.ZodOptional<z$1.ZodLiteral<"subscription_change">>;
|
|
18810
18855
|
}, z$1.core.$strict>>;
|
|
18811
18856
|
paywallId: z$1.ZodOptional<z$1.ZodUUID>;
|
|
18812
18857
|
customerId: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -18878,6 +18923,7 @@ declare const apiOperations: {
|
|
|
18878
18923
|
topup: "topup";
|
|
18879
18924
|
}>;
|
|
18880
18925
|
membershipId: z$1.ZodNullable<z$1.ZodString>;
|
|
18926
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
18881
18927
|
currency: z$1.ZodEnum<{
|
|
18882
18928
|
USD: "USD";
|
|
18883
18929
|
EUR: "EUR";
|
|
@@ -19228,6 +19274,7 @@ declare const apiOperations: {
|
|
|
19228
19274
|
TRY: "TRY";
|
|
19229
19275
|
RON: "RON";
|
|
19230
19276
|
}>;
|
|
19277
|
+
intent: z$1.ZodOptional<z$1.ZodLiteral<"subscription_change">>;
|
|
19231
19278
|
}, z$1.core.$strict>;
|
|
19232
19279
|
locale: z$1.ZodString;
|
|
19233
19280
|
requirement: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -19314,6 +19361,7 @@ declare const apiOperations: {
|
|
|
19314
19361
|
topup: "topup";
|
|
19315
19362
|
}>;
|
|
19316
19363
|
membershipId: z$1.ZodNullable<z$1.ZodString>;
|
|
19364
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
19317
19365
|
currency: z$1.ZodEnum<{
|
|
19318
19366
|
USD: "USD";
|
|
19319
19367
|
EUR: "EUR";
|
|
@@ -19423,6 +19471,7 @@ declare const apiOperations: {
|
|
|
19423
19471
|
topup: "topup";
|
|
19424
19472
|
}>;
|
|
19425
19473
|
membershipId: z$1.ZodNullable<z$1.ZodString>;
|
|
19474
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
19426
19475
|
currency: z$1.ZodEnum<{
|
|
19427
19476
|
USD: "USD";
|
|
19428
19477
|
EUR: "EUR";
|
|
@@ -19801,6 +19850,7 @@ declare const apiOperations: {
|
|
|
19801
19850
|
TRY: "TRY";
|
|
19802
19851
|
RON: "RON";
|
|
19803
19852
|
}>;
|
|
19853
|
+
intent: z$1.ZodOptional<z$1.ZodLiteral<"subscription_change">>;
|
|
19804
19854
|
}, z$1.core.$strict>;
|
|
19805
19855
|
requirement: z$1.ZodOptional<z$1.ZodObject<{
|
|
19806
19856
|
internal_feature_id: z$1.ZodUUID;
|
|
@@ -19849,6 +19899,7 @@ declare const apiOperations: {
|
|
|
19849
19899
|
topup: "topup";
|
|
19850
19900
|
}>;
|
|
19851
19901
|
membershipId: z$1.ZodNullable<z$1.ZodString>;
|
|
19902
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
19852
19903
|
currency: z$1.ZodEnum<{
|
|
19853
19904
|
USD: "USD";
|
|
19854
19905
|
EUR: "EUR";
|
|
@@ -19968,6 +20019,7 @@ declare const apiOperations: {
|
|
|
19968
20019
|
topup: "topup";
|
|
19969
20020
|
}>;
|
|
19970
20021
|
membershipId: z$1.ZodNullable<z$1.ZodString>;
|
|
20022
|
+
featureQuantities: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodUUID, z$1.ZodNumber>>;
|
|
19971
20023
|
currency: z$1.ZodEnum<{
|
|
19972
20024
|
USD: "USD";
|
|
19973
20025
|
EUR: "EUR";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-2LERKK7O.js";import"./chunk-HGH2X6QM.js";import"./chunk-MYDMOAKX.js";import"./chunk-G6CWZBT5.js";import"./chunk-S4P4UUUF.js";import"./chunk-2ULWP26K.js";import"./chunk-PBBREFS5.js";import"./chunk-WOT6VMZA.js";export{a as validateEntitlementCheck,b as validateResourceCheck};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as t}from"./chunk-GXADA7OV.js";async function u(e,n){try{let{route:r}=await e.funnelRoute(n.funnelId),a=t(r,{customerId:n.customerId,parameters:n.parameters??{}});return{funnelId:n.funnelId,...a}}catch(r){return{funnelId:n.funnelId,type:"unavailable",reason:r?.code?.toLowerCase()??"error",path:[]}}}function l(e){switch(e.type){case"paywall":return null;case"screen":return`first_screen_${e.surface}`;case"external_page":return"first_screen_external_page";case"end":return`route_end_${e.outcome}`;case"unknown":return`route_unknown_${e.reason}`;case"unavailable":return e.reason.startsWith("route_")?e.reason:`route_${e.reason}`}}async function s(e,n){if(n.type!=="paywall")return null;try{let{document:r}=await e.paywall(n.paywallId,n.paywallVersionId);return{presentation:r.presentation,screen:r.screen,buttons:r.buttons}}catch{return null}}export{u as a,l as b,s as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"./chunk-
|
|
1
|
+
import{b as e}from"./chunk-2ULWP26K.js";var s=/^gg_ct_[A-Za-z0-9_-]{32,128}$/,o=e.object({customerId:e.uuid(),sessionId:e.uuid(),accessToken:e.string().regex(/^gg_ct_[A-Za-z0-9_-]{43}$/),refreshToken:e.string().regex(/^gg_rt_[A-Za-z0-9_-]{43}$/),expiresAt:e.iso.datetime(),refreshExpiresAt:e.iso.datetime()});export{s as a,o as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as o}from"./chunk-
|
|
1
|
+
import{m as o}from"./chunk-HGH2X6QM.js";import{a as i}from"./chunk-G6CWZBT5.js";function m(t,e,n,r){if(!o(t,e)||n!==void 0&&e.observation&&e.observation.subject.customerId!==n||r!==void 0&&e.observation!==void 0&&(e.observation.subject.scope.projectId!==r.projectId||e.observation.subject.scope.environment!==r.environment))throw new i("INVALID_RESPONSE","The access requirement or Customer changed");return e}function d(t,e,n){if(t.requirement){if(!e)throw new i("INVALID_RESPONSE","The requested access check is missing");m(t.requirement,e,t.customerId,n)}}export{m as a,d as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t="https://api.longplayai.com";var p={name:"@tinkerlandai/longplay-sdk",version:"0.10.
|
|
1
|
+
var t="https://api.longplayai.com";var p={name:"@tinkerlandai/longplay-sdk",version:"0.10.41",description:"Framework-independent Longplay SDK for customer identity, entitlements, credits, offers and growth surfaces.",license:"UNLICENSED",repository:{type:"git",url:"git+https://github.com/tinkerlandai/Indiana.git",directory:"packages/sdk"},engines:{node:">=22"},publishConfig:{access:"public",tag:"beta"},type:"module",sideEffects:!1,files:["dist","README.md","README.zh-CN.md","CHANGELOG.md","THIRD_PARTY_NOTICES.md"],exports:{"./react-native":{types:"./dist/react-native.d.ts","react-native":"./dist/react-native.js",import:"./dist/react-native.js",default:"./dist/react-native.js"},".":{types:"./dist/index.d.ts",import:"./dist/index.js"},"./popup":{types:"./dist/popup.d.ts",import:"./dist/popup.js"},"./server":{types:"./dist/server.d.ts",import:"./dist/server.js"},"./openrouter":{types:"./dist/openrouter.d.ts",import:"./dist/openrouter.js"},"./native-shell":{types:"./dist/native-shell.d.ts",import:"./dist/native-shell.js"},"./page":{types:"./dist/page.d.ts",import:"./dist/page.js"},"./visual":{types:"./dist/visual.d.ts",import:"./dist/visual.js"}},scripts:{build:"tsup",prepack:"pnpm run build",typecheck:"tsc --noEmit && tsc --noEmit -p tsconfig.test.json",lint:"node ../../scripts/ci/lint.mjs --workspace packages/sdk"},dependencies:{"@ai-sdk/provider":"4.0.26","@types/json-schema":"7.0.15","css-tree":"^3.2.1","dom-mutator":"0.7.0",dompurify:"^3.4.15",zod:"4.6.6"},devDependencies:{"@indiana/contracts":"workspace:*","@openrouter/sdk":"^1.4.25","@types/css-tree":"^3.2.0",ai:"7.0.136",tsup:"^8.5.1",typescript:"^5.9.3","whatwg-url-minimum":"0.2.0"},peerDependencies:{"@openrouter/sdk":"^1.4.25"},peerDependenciesMeta:{"@openrouter/sdk":{optional:!0}}};export{p as a,t as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as d}from"./chunk-
|
|
1
|
+
import{b as d}from"./chunk-2LUVO7GM.js";import{a as u}from"./chunk-DSPLGTQI.js";function m(e){if(!/^[A-Za-z0-9_-]{1,64}$/.test(e))throw new Error("Invalid device cookie name");let t="";for(let i of document.cookie.split(";"))if(i.trim().startsWith(`${e}=`))try{t=decodeURIComponent(i.trim().slice(e.length+1))}catch{}return/^[A-Za-z0-9_-]{8,128}$/.test(t)||(t=crypto.randomUUID(),document.cookie=`${e}=${encodeURIComponent(t)}; path=/; max-age=${400*24*3600}; SameSite=Lax`),t}function y(){try{let e=sessionStorage.getItem("indiana_sid");return e||(e=crypto.randomUUID(),sessionStorage.setItem("indiana_sid",e)),e}catch{return}}function g(e=d){let t=new URL(e);if(t.protocol!=="https:"&&!(t.protocol==="http:"&&["localhost","127.0.0.1","[::1]"].includes(t.hostname))||t.username||t.password||t.search||t.hash)throw new Error("baseUrl must be an https origin without credentials");return t.origin}var o=new Set,s;function S(e){let t=()=>e();if(o.add(t),!s){let i=!0,a=history.pushState,p=history.replaceState,r=()=>{if(i)for(let n of[...o])o.has(n)&&u(n)},c=function(...n){a.apply(this,n),r()},h=function(...n){p.apply(this,n),r()};history.pushState=c,history.replaceState=h,addEventListener("popstate",r),addEventListener("hashchange",r),s=()=>{i=!1,history.pushState===c&&(history.pushState=a),history.replaceState===h&&(history.replaceState=p),removeEventListener("popstate",r),removeEventListener("hashchange",r)}}return()=>{o.delete(t)&&(o.size||(s?.(),s=void 0))}}export{m as a,y as b,g as c,S as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as w,f as b}from"./chunk-
|
|
1
|
+
import{e as w,f as b}from"./chunk-6EBS6MLW.js";import{n as h,s as u}from"./chunk-EOPKOAR5.js";import{a as y}from"./chunk-2XF34Q6D.js";import{a as n}from"./chunk-G6CWZBT5.js";import{a as g}from"./chunk-3VUPVXAV.js";import{b as f}from"./chunk-2LUVO7GM.js";function p(r,s){let a=typeof r=="string"?new TextEncoder().encode(r):r;return a.byteLength===s.byteLength&&u(a)===s.sha256}async function _(r,s){let a=w.parse(s),{artifact:i,environmentId:P}=a.content,m=new y(r.baseUrl??f).origin,e=new y(i.url,m);if(e.origin!==m||e.username||e.password||e.search||e.hash||e.pathname!==`/api/v1/configuration/${P}/artifacts/${i.sha256}`)throw new n("INVALID_RESPONSE","Public Paywall locator is not trusted");let o=new AbortController,d,I=new Promise((t,l)=>{d=setTimeout(()=>{let c=new n("TIMEOUT","Public Paywall read timed out");o.abort(c),l(c)},h.initializationMs)}),E=(async()=>{let t=await(r.fetch??globalThis.fetch)(e,{method:"GET",credentials:"omit",redirect:"error",cache:"default",signal:o.signal});if(o.signal.aborted&&(t.body?.cancel().catch(()=>{}),o.signal.throwIfAborted()),!t.ok||!t.headers.get("content-type")?.toLowerCase().startsWith("application/json")||Number(t.headers.get("content-length"))>i.byteLength)throw t.body?.cancel().catch(()=>{}),new n("INVALID_RESPONSE","Public Paywall is unavailable");let l=await g(t,i.byteLength,{signal:o.signal,error:c=>new n("INVALID_RESPONSE",c==="missing"?"Public Paywall body is missing":"Public Paywall exceeds its byte limit")});if(!p(l,i))throw new n("INVALID_RESPONSE","Public Paywall digest or size changed");return b(a,JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(l)))})();try{return await Promise.race([E,I])}finally{clearTimeout(d)}}export{p as a,_ as b};
|