@tinkerlandai/longplay-sdk 0.10.18 → 0.10.19
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 +8 -0
- package/README.md +9 -3
- package/README.zh-CN.md +1 -1
- package/dist/{ai-usage-D7BUuP1H.d.ts → ai-usage-DPGx5otD.d.ts} +3 -3
- package/dist/{api-CIbhe8RY.d.ts → api-G8EA_ueL.d.ts} +3596 -200
- package/dist/chunk-2JBNOE2D.js +1 -0
- package/dist/chunk-4SWGHICJ.js +17 -0
- package/dist/chunk-5OD42XQS.js +1 -0
- package/dist/{chunk-OMHZBCS3.js → chunk-A7U4Z6EH.js} +1 -1
- package/dist/{chunk-LHBBSD77.js → chunk-CCRBXW4M.js} +1 -1
- package/dist/chunk-DVKZLOS7.js +1 -0
- package/dist/{chunk-ML6EHT43.js → chunk-EDVR7FPD.js} +1 -1
- package/dist/chunk-FISFN5IY.js +1 -0
- package/dist/chunk-GSFNAB3W.js +6 -0
- package/dist/{chunk-26HU2HXU.js → chunk-KHIQQNTR.js} +1 -1
- package/dist/{chunk-6HWNW6FJ.js → chunk-LNSFRQ6G.js} +1 -1
- package/dist/chunk-W2Z3UVW3.js +1 -0
- package/dist/{chunk-T5COWMDA.js → chunk-XIYNQHN7.js} +1 -1
- package/dist/{chunk-P6HCD5OQ.js → chunk-XXBN76NP.js} +1 -1
- package/dist/{chunk-E4LUW6KP.js → chunk-YNMSSQQY.js} +1 -1
- package/dist/{content-DLYNJIEB.js → content-E2OWWKDG.js} +1 -1
- package/dist/{customer-page-km5f1PJZ.d.ts → customer-page-BV5EvCUY.d.ts} +20 -0
- package/dist/{funnel-local-client-CAuNpJ-e.d.ts → funnel-local-client-DjvVzCfH.d.ts} +14039 -312
- package/dist/{funnel-node-evaluation-BLnJp8vj.d.ts → funnel-node-evaluation-D9FwkMa3.d.ts} +425 -1
- package/dist/funnel-process-client-bO9Wfumi.d.ts +62372 -0
- package/dist/funnel-runtime-host-FOM4Z7ZK.js +1 -0
- package/dist/index.d.ts +322 -23334
- package/dist/index.js +1 -1
- package/dist/native-shell.js +1 -1
- package/dist/openrouter.d.ts +2 -2
- package/dist/openrouter.js +1 -1
- package/dist/page.js +1 -1
- package/dist/paywall-OUIB7SVI.js +1 -0
- package/dist/popup.d.ts +2 -2
- package/dist/popup.js +1 -1
- package/dist/react-native.d.ts +41 -38098
- package/dist/react-native.js +1 -1
- package/dist/screen-renderer-ZNELQB64.js +1 -0
- package/dist/server.d.ts +6860 -298
- package/dist/server.js +1 -1
- package/dist/visual.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-4ZUMMPHV.js +0 -1
- package/dist/chunk-EEZLS2YP.js +0 -1
- package/dist/chunk-JVQVQHV2.js +0 -6
- package/dist/chunk-KYXX676W.js +0 -1
- package/dist/chunk-LC2VUKYM.js +0 -1
- package/dist/chunk-N4HZ55YU.js +0 -1
- package/dist/chunk-PFHS7HK3.js +0 -17
- package/dist/chunk-VVW2J2GL.js +0 -1
- package/dist/funnel-process-client-C9EIwNTr.d.ts +0 -20575
- package/dist/funnel-runtime-host-FVOUCR35.js +0 -1
- package/dist/paywall-6Q3VLXXL.js +0 -1
- package/dist/screen-renderer-IZ3VJGU6.js +0 -1
- package/dist/{coupon-fA1QujHt.d.ts → coupon-Btz_KFKp.d.ts} +1 -1
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { E as EvaluationContext, J as JsonValue } from './growth-rules-B4YYy64R.js';
|
|
3
3
|
|
|
4
|
+
declare const commerceSubjectSchema: z.ZodObject<{
|
|
5
|
+
scope: z.ZodObject<{
|
|
6
|
+
projectId: z.ZodUUID;
|
|
7
|
+
environmentId: z.ZodUUID;
|
|
8
|
+
environment: z.ZodEnum<{
|
|
9
|
+
sandbox: "sandbox";
|
|
10
|
+
live: "live";
|
|
11
|
+
}>;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
customerId: z.ZodUUID;
|
|
14
|
+
}, z.core.$strict>;
|
|
15
|
+
|
|
4
16
|
declare const merchantBridgeCommandSchema: z.ZodEnum<{
|
|
5
17
|
"session.create": "session.create";
|
|
6
18
|
"catalog.read": "catalog.read";
|
|
@@ -46,6 +58,7 @@ declare const merchantBridgeManifestSchema: z.ZodObject<{
|
|
|
46
58
|
"subscription.observed": "subscription.observed";
|
|
47
59
|
"invoice.paid": "invoice.paid";
|
|
48
60
|
"subscription.change.completed": "subscription.change.completed";
|
|
61
|
+
"subscription.change.closed": "subscription.change.closed";
|
|
49
62
|
"refund.updated": "refund.updated";
|
|
50
63
|
}>>;
|
|
51
64
|
profiles: z.ZodArray<z.ZodEnum<{
|
|
@@ -272,6 +285,173 @@ declare const merchantBridgeOperationAuthoritySchema: z.ZodObject<{
|
|
|
272
285
|
currency: z.ZodString;
|
|
273
286
|
expiresAt: z.ZodISODateTime;
|
|
274
287
|
}, z.core.$strict>], "type">;
|
|
288
|
+
merchantTerms: z.ZodOptional<z.ZodObject<{
|
|
289
|
+
request: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
290
|
+
action: z.ZodLiteral<"purchase">;
|
|
291
|
+
mode: z.ZodEnum<{
|
|
292
|
+
payment: "payment";
|
|
293
|
+
subscription: "subscription";
|
|
294
|
+
}>;
|
|
295
|
+
currency: z.ZodString;
|
|
296
|
+
items: z.ZodArray<z.ZodObject<{
|
|
297
|
+
merchantProductId: z.ZodString;
|
|
298
|
+
merchantPriceId: z.ZodString;
|
|
299
|
+
productVersionId: z.ZodOptional<z.ZodUUID>;
|
|
300
|
+
quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
301
|
+
}, z.core.$strict>>;
|
|
302
|
+
offerRefs: z.ZodArray<z.ZodString>;
|
|
303
|
+
subject: z.ZodObject<{
|
|
304
|
+
scope: z.ZodObject<{
|
|
305
|
+
projectId: z.ZodUUID;
|
|
306
|
+
environmentId: z.ZodUUID;
|
|
307
|
+
environment: z.ZodEnum<{
|
|
308
|
+
sandbox: "sandbox";
|
|
309
|
+
live: "live";
|
|
310
|
+
}>;
|
|
311
|
+
}, z.core.$strict>;
|
|
312
|
+
customerId: z.ZodUUID;
|
|
313
|
+
}, z.core.$strict>;
|
|
314
|
+
operationId: z.ZodUUID;
|
|
315
|
+
configurationRevision: z.ZodNumber;
|
|
316
|
+
connectionRevision: z.ZodNumber;
|
|
317
|
+
expiresAt: z.ZodISODateTime;
|
|
318
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
319
|
+
action: z.ZodLiteral<"subscription_change">;
|
|
320
|
+
currency: z.ZodString;
|
|
321
|
+
merchantSubscriptionId: z.ZodString;
|
|
322
|
+
change: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
323
|
+
type: z.ZodLiteral<"cancel">;
|
|
324
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
325
|
+
type: z.ZodLiteral<"uncancel">;
|
|
326
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
327
|
+
type: z.ZodLiteral<"plan">;
|
|
328
|
+
productVersionId: z.ZodUUID;
|
|
329
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
330
|
+
type: z.ZodLiteral<"seats">;
|
|
331
|
+
licenseKey: z.ZodString;
|
|
332
|
+
quantity: z.ZodNumber;
|
|
333
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
334
|
+
type: z.ZodLiteral<"quantity">;
|
|
335
|
+
internal_feature_id: z.ZodUUID;
|
|
336
|
+
quantity: z.ZodNumber;
|
|
337
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
338
|
+
type: z.ZodLiteral<"billing_cycle">;
|
|
339
|
+
billingCycleAnchor: z.ZodUnion<readonly [z.ZodLiteral<"now">, z.ZodNumber]>;
|
|
340
|
+
}, z.core.$strict>], "type">;
|
|
341
|
+
timing: z.ZodEnum<{
|
|
342
|
+
immediate: "immediate";
|
|
343
|
+
renewal: "renewal";
|
|
344
|
+
}>;
|
|
345
|
+
proration: z.ZodEnum<{
|
|
346
|
+
none: "none";
|
|
347
|
+
create_prorations: "create_prorations";
|
|
348
|
+
always_invoice: "always_invoice";
|
|
349
|
+
}>;
|
|
350
|
+
offerRefs: z.ZodArray<z.ZodString>;
|
|
351
|
+
subject: z.ZodObject<{
|
|
352
|
+
scope: z.ZodObject<{
|
|
353
|
+
projectId: z.ZodUUID;
|
|
354
|
+
environmentId: z.ZodUUID;
|
|
355
|
+
environment: z.ZodEnum<{
|
|
356
|
+
sandbox: "sandbox";
|
|
357
|
+
live: "live";
|
|
358
|
+
}>;
|
|
359
|
+
}, z.core.$strict>;
|
|
360
|
+
customerId: z.ZodUUID;
|
|
361
|
+
}, z.core.$strict>;
|
|
362
|
+
operationId: z.ZodUUID;
|
|
363
|
+
configurationRevision: z.ZodNumber;
|
|
364
|
+
connectionRevision: z.ZodNumber;
|
|
365
|
+
expiresAt: z.ZodISODateTime;
|
|
366
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
367
|
+
action: z.ZodLiteral<"refund">;
|
|
368
|
+
currency: z.ZodString;
|
|
369
|
+
merchantInvoiceId: z.ZodString;
|
|
370
|
+
mode: z.ZodEnum<{
|
|
371
|
+
full: "full";
|
|
372
|
+
partial: "partial";
|
|
373
|
+
}>;
|
|
374
|
+
amountMinor: z.ZodOptional<z.ZodNumber>;
|
|
375
|
+
entitlementAction: z.ZodEnum<{
|
|
376
|
+
retain: "retain";
|
|
377
|
+
revoke: "revoke";
|
|
378
|
+
}>;
|
|
379
|
+
subject: z.ZodObject<{
|
|
380
|
+
scope: z.ZodObject<{
|
|
381
|
+
projectId: z.ZodUUID;
|
|
382
|
+
environmentId: z.ZodUUID;
|
|
383
|
+
environment: z.ZodEnum<{
|
|
384
|
+
sandbox: "sandbox";
|
|
385
|
+
live: "live";
|
|
386
|
+
}>;
|
|
387
|
+
}, z.core.$strict>;
|
|
388
|
+
customerId: z.ZodUUID;
|
|
389
|
+
}, z.core.$strict>;
|
|
390
|
+
operationId: z.ZodUUID;
|
|
391
|
+
configurationRevision: z.ZodNumber;
|
|
392
|
+
connectionRevision: z.ZodNumber;
|
|
393
|
+
expiresAt: z.ZodISODateTime;
|
|
394
|
+
}, z.core.$strict>], "action">;
|
|
395
|
+
requestDigest: z.ZodString;
|
|
396
|
+
merchantQuoteId: z.ZodString;
|
|
397
|
+
quoteTermsDigest: z.ZodString;
|
|
398
|
+
termsVersion: z.ZodString;
|
|
399
|
+
sourceRevisions: z.ZodArray<z.ZodObject<{
|
|
400
|
+
reference: z.ZodString;
|
|
401
|
+
revision: z.ZodString;
|
|
402
|
+
}, z.core.$strict>>;
|
|
403
|
+
observedAt: z.ZodISODateTime;
|
|
404
|
+
expiresAt: z.ZodISODateTime;
|
|
405
|
+
currency: z.ZodString;
|
|
406
|
+
automaticTax: z.ZodBoolean;
|
|
407
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
408
|
+
merchantLineId: z.ZodString;
|
|
409
|
+
merchantPriceId: z.ZodNullable<z.ZodString>;
|
|
410
|
+
quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
411
|
+
subtotalMinor: z.ZodNumber;
|
|
412
|
+
discountMinor: z.ZodNumber;
|
|
413
|
+
taxMinor: z.ZodNullable<z.ZodNumber>;
|
|
414
|
+
totalMinor: z.ZodNullable<z.ZodNumber>;
|
|
415
|
+
}, z.core.$strict>>;
|
|
416
|
+
subscriptionTerms: z.ZodNullable<z.ZodObject<{
|
|
417
|
+
items: z.ZodArray<z.ZodObject<{
|
|
418
|
+
merchantPriceId: z.ZodString;
|
|
419
|
+
quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
420
|
+
interval: z.ZodEnum<{
|
|
421
|
+
week: "week";
|
|
422
|
+
month: "month";
|
|
423
|
+
year: "year";
|
|
424
|
+
}>;
|
|
425
|
+
intervalCount: z.ZodNumber;
|
|
426
|
+
amountMinor: z.ZodNumber;
|
|
427
|
+
}, z.core.$strict>>;
|
|
428
|
+
trial: z.ZodNullable<z.ZodObject<{
|
|
429
|
+
days: z.ZodNumber;
|
|
430
|
+
cardRequired: z.ZodBoolean;
|
|
431
|
+
}, z.core.$strict>>;
|
|
432
|
+
}, z.core.$strict>>;
|
|
433
|
+
subtotalMinor: z.ZodNumber;
|
|
434
|
+
discountMinor: z.ZodNumber;
|
|
435
|
+
taxMinor: z.ZodNullable<z.ZodNumber>;
|
|
436
|
+
totalMinor: z.ZodNullable<z.ZodNumber>;
|
|
437
|
+
effectiveAt: z.ZodNullable<z.ZodISODateTime>;
|
|
438
|
+
expectedEffects: z.ZodArray<z.ZodObject<{
|
|
439
|
+
reference: z.ZodString;
|
|
440
|
+
kind: z.ZodEnum<{
|
|
441
|
+
change: "change";
|
|
442
|
+
revoke: "revoke";
|
|
443
|
+
grant: "grant";
|
|
444
|
+
}>;
|
|
445
|
+
description: z.ZodString;
|
|
446
|
+
quantity: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
447
|
+
unit: z.ZodNullable<z.ZodString>;
|
|
448
|
+
}, z.core.$strict>>;
|
|
449
|
+
requiredConsents: z.ZodArray<z.ZodObject<{
|
|
450
|
+
reference: z.ZodString;
|
|
451
|
+
version: z.ZodString;
|
|
452
|
+
summary: z.ZodString;
|
|
453
|
+
}, z.core.$strict>>;
|
|
454
|
+
}, z.core.$strict>>;
|
|
275
455
|
}, z.core.$strict>;
|
|
276
456
|
declare const merchantBridgeCommandInputs: {
|
|
277
457
|
readonly "bridge.ping": z.ZodObject<{
|
|
@@ -338,6 +518,7 @@ declare const merchantBridgeCommandOutputs: {
|
|
|
338
518
|
"subscription.observed": "subscription.observed";
|
|
339
519
|
"invoice.paid": "invoice.paid";
|
|
340
520
|
"subscription.change.completed": "subscription.change.completed";
|
|
521
|
+
"subscription.change.closed": "subscription.change.closed";
|
|
341
522
|
"refund.updated": "refund.updated";
|
|
342
523
|
}>>;
|
|
343
524
|
profiles: z.ZodArray<z.ZodEnum<{
|
|
@@ -2077,6 +2258,249 @@ declare const funnelLocalConfigurationSchema: z.ZodObject<{
|
|
|
2077
2258
|
}, z.core.$strict>;
|
|
2078
2259
|
type FunnelLocalConfiguration = z.infer<typeof funnelLocalConfigurationSchema>;
|
|
2079
2260
|
|
|
2261
|
+
/** A check observes access. Consumption and reservations remain explicit server operations. */
|
|
2262
|
+
declare const entitlementRequirementSchema: z.ZodObject<{
|
|
2263
|
+
internal_feature_id: z.ZodUUID;
|
|
2264
|
+
quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
2265
|
+
properties: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodTransform<{
|
|
2266
|
+
[k: string]: string;
|
|
2267
|
+
}, Record<string, string | number | boolean>>>;
|
|
2268
|
+
entityId: z.ZodOptional<z.ZodUUID>;
|
|
2269
|
+
}, z.core.$strict>;
|
|
2270
|
+
declare function entitlementRequirementDigest(subject: z.input<typeof commerceSubjectSchema>, requirement: z.input<typeof entitlementRequirementSchema>): string;
|
|
2271
|
+
declare const entitlementCheckResultSchema: z.ZodObject<{
|
|
2272
|
+
internal_feature_id: z.ZodString;
|
|
2273
|
+
name: z.ZodString;
|
|
2274
|
+
kind: z.ZodEnum<{
|
|
2275
|
+
access: "access";
|
|
2276
|
+
metered: "metered";
|
|
2277
|
+
credit: "credit";
|
|
2278
|
+
}>;
|
|
2279
|
+
quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
2280
|
+
allowed: z.ZodBoolean;
|
|
2281
|
+
observation: z.ZodOptional<z.ZodObject<{
|
|
2282
|
+
subject: z.ZodObject<{
|
|
2283
|
+
scope: z.ZodObject<{
|
|
2284
|
+
projectId: z.ZodUUID;
|
|
2285
|
+
environmentId: z.ZodUUID;
|
|
2286
|
+
environment: z.ZodEnum<{
|
|
2287
|
+
sandbox: "sandbox";
|
|
2288
|
+
live: "live";
|
|
2289
|
+
}>;
|
|
2290
|
+
}, z.core.$strict>;
|
|
2291
|
+
customerId: z.ZodUUID;
|
|
2292
|
+
}, z.core.$strict>;
|
|
2293
|
+
authority: z.ZodEnum<{
|
|
2294
|
+
longplay: "longplay";
|
|
2295
|
+
merchant: "merchant";
|
|
2296
|
+
}>;
|
|
2297
|
+
observedAt: z.ZodISODateTime;
|
|
2298
|
+
sourceRevision: z.ZodString;
|
|
2299
|
+
requirementDigest: z.ZodString;
|
|
2300
|
+
}, z.core.$strict>>;
|
|
2301
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
2302
|
+
not_entitled: "not_entitled";
|
|
2303
|
+
insufficient_balance: "insufficient_balance";
|
|
2304
|
+
capacity_exceeded: "capacity_exceeded";
|
|
2305
|
+
limit_exceeded: "limit_exceeded";
|
|
2306
|
+
awaiting_topup: "awaiting_topup";
|
|
2307
|
+
authorization_required: "authorization_required";
|
|
2308
|
+
payment_blocked: "payment_blocked";
|
|
2309
|
+
cash_budget_exceeded: "cash_budget_exceeded";
|
|
2310
|
+
unavailable: "unavailable";
|
|
2311
|
+
authentication_required: "authentication_required";
|
|
2312
|
+
}>>;
|
|
2313
|
+
preview: z.ZodNullable<z.ZodObject<{
|
|
2314
|
+
scenario: z.ZodEnum<{
|
|
2315
|
+
feature_flag: "feature_flag";
|
|
2316
|
+
usage_limit: "usage_limit";
|
|
2317
|
+
}>;
|
|
2318
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
2319
|
+
productId: z.ZodString;
|
|
2320
|
+
productVersionId: z.ZodString;
|
|
2321
|
+
name: z.ZodString;
|
|
2322
|
+
action: z.ZodEnum<{
|
|
2323
|
+
purchase: "purchase";
|
|
2324
|
+
upgrade: "upgrade";
|
|
2325
|
+
addon: "addon";
|
|
2326
|
+
topup: "topup";
|
|
2327
|
+
}>;
|
|
2328
|
+
membershipId: z.ZodNullable<z.ZodString>;
|
|
2329
|
+
currency: z.ZodEnum<{
|
|
2330
|
+
USD: "USD";
|
|
2331
|
+
EUR: "EUR";
|
|
2332
|
+
CNY: "CNY";
|
|
2333
|
+
GBP: "GBP";
|
|
2334
|
+
JPY: "JPY";
|
|
2335
|
+
CAD: "CAD";
|
|
2336
|
+
AUD: "AUD";
|
|
2337
|
+
NZD: "NZD";
|
|
2338
|
+
CHF: "CHF";
|
|
2339
|
+
HKD: "HKD";
|
|
2340
|
+
SGD: "SGD";
|
|
2341
|
+
KRW: "KRW";
|
|
2342
|
+
INR: "INR";
|
|
2343
|
+
BRL: "BRL";
|
|
2344
|
+
MXN: "MXN";
|
|
2345
|
+
TWD: "TWD";
|
|
2346
|
+
THB: "THB";
|
|
2347
|
+
IDR: "IDR";
|
|
2348
|
+
MYR: "MYR";
|
|
2349
|
+
PHP: "PHP";
|
|
2350
|
+
VND: "VND";
|
|
2351
|
+
ZAR: "ZAR";
|
|
2352
|
+
AED: "AED";
|
|
2353
|
+
SAR: "SAR";
|
|
2354
|
+
SEK: "SEK";
|
|
2355
|
+
NOK: "NOK";
|
|
2356
|
+
DKK: "DKK";
|
|
2357
|
+
PLN: "PLN";
|
|
2358
|
+
CZK: "CZK";
|
|
2359
|
+
HUF: "HUF";
|
|
2360
|
+
ILS: "ILS";
|
|
2361
|
+
TRY: "TRY";
|
|
2362
|
+
RON: "RON";
|
|
2363
|
+
}>;
|
|
2364
|
+
amountMinor: z.ZodString;
|
|
2365
|
+
interval: z.ZodEnum<{
|
|
2366
|
+
free: "free";
|
|
2367
|
+
week: "week";
|
|
2368
|
+
month: "month";
|
|
2369
|
+
year: "year";
|
|
2370
|
+
one_time: "one_time";
|
|
2371
|
+
}>;
|
|
2372
|
+
intervalCount: z.ZodNumber;
|
|
2373
|
+
}, z.core.$strict>>;
|
|
2374
|
+
}, z.core.$strict>>;
|
|
2375
|
+
}, z.core.$strict>;
|
|
2376
|
+
type EntitlementCheckResult = z.infer<typeof entitlementCheckResultSchema>;
|
|
2377
|
+
/** Admission for a merchant observation reuses the common Check result. */
|
|
2378
|
+
declare const merchantRequirementCheckInputSchema: z.ZodObject<{
|
|
2379
|
+
subject: z.ZodObject<{
|
|
2380
|
+
scope: z.ZodObject<{
|
|
2381
|
+
projectId: z.ZodUUID;
|
|
2382
|
+
environmentId: z.ZodUUID;
|
|
2383
|
+
environment: z.ZodEnum<{
|
|
2384
|
+
sandbox: "sandbox";
|
|
2385
|
+
live: "live";
|
|
2386
|
+
}>;
|
|
2387
|
+
}, z.core.$strict>;
|
|
2388
|
+
customerId: z.ZodUUID;
|
|
2389
|
+
}, z.core.$strict>;
|
|
2390
|
+
requirement: z.ZodObject<{
|
|
2391
|
+
internal_feature_id: z.ZodUUID;
|
|
2392
|
+
quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
2393
|
+
properties: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodTransform<{
|
|
2394
|
+
[k: string]: string;
|
|
2395
|
+
}, Record<string, string | number | boolean>>>;
|
|
2396
|
+
entityId: z.ZodOptional<z.ZodUUID>;
|
|
2397
|
+
}, z.core.$strict>;
|
|
2398
|
+
}, z.core.$strict>;
|
|
2399
|
+
declare const merchantRequirementCheckResultSchema: z.ZodObject<{
|
|
2400
|
+
internal_feature_id: z.ZodString;
|
|
2401
|
+
name: z.ZodString;
|
|
2402
|
+
kind: z.ZodEnum<{
|
|
2403
|
+
access: "access";
|
|
2404
|
+
metered: "metered";
|
|
2405
|
+
credit: "credit";
|
|
2406
|
+
}>;
|
|
2407
|
+
quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
2408
|
+
allowed: z.ZodBoolean;
|
|
2409
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
2410
|
+
not_entitled: "not_entitled";
|
|
2411
|
+
insufficient_balance: "insufficient_balance";
|
|
2412
|
+
capacity_exceeded: "capacity_exceeded";
|
|
2413
|
+
limit_exceeded: "limit_exceeded";
|
|
2414
|
+
awaiting_topup: "awaiting_topup";
|
|
2415
|
+
authorization_required: "authorization_required";
|
|
2416
|
+
payment_blocked: "payment_blocked";
|
|
2417
|
+
cash_budget_exceeded: "cash_budget_exceeded";
|
|
2418
|
+
unavailable: "unavailable";
|
|
2419
|
+
authentication_required: "authentication_required";
|
|
2420
|
+
}>>;
|
|
2421
|
+
preview: z.ZodNullable<z.ZodObject<{
|
|
2422
|
+
scenario: z.ZodEnum<{
|
|
2423
|
+
feature_flag: "feature_flag";
|
|
2424
|
+
usage_limit: "usage_limit";
|
|
2425
|
+
}>;
|
|
2426
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
2427
|
+
productId: z.ZodString;
|
|
2428
|
+
productVersionId: z.ZodString;
|
|
2429
|
+
name: z.ZodString;
|
|
2430
|
+
action: z.ZodEnum<{
|
|
2431
|
+
purchase: "purchase";
|
|
2432
|
+
upgrade: "upgrade";
|
|
2433
|
+
addon: "addon";
|
|
2434
|
+
topup: "topup";
|
|
2435
|
+
}>;
|
|
2436
|
+
membershipId: z.ZodNullable<z.ZodString>;
|
|
2437
|
+
currency: z.ZodEnum<{
|
|
2438
|
+
USD: "USD";
|
|
2439
|
+
EUR: "EUR";
|
|
2440
|
+
CNY: "CNY";
|
|
2441
|
+
GBP: "GBP";
|
|
2442
|
+
JPY: "JPY";
|
|
2443
|
+
CAD: "CAD";
|
|
2444
|
+
AUD: "AUD";
|
|
2445
|
+
NZD: "NZD";
|
|
2446
|
+
CHF: "CHF";
|
|
2447
|
+
HKD: "HKD";
|
|
2448
|
+
SGD: "SGD";
|
|
2449
|
+
KRW: "KRW";
|
|
2450
|
+
INR: "INR";
|
|
2451
|
+
BRL: "BRL";
|
|
2452
|
+
MXN: "MXN";
|
|
2453
|
+
TWD: "TWD";
|
|
2454
|
+
THB: "THB";
|
|
2455
|
+
IDR: "IDR";
|
|
2456
|
+
MYR: "MYR";
|
|
2457
|
+
PHP: "PHP";
|
|
2458
|
+
VND: "VND";
|
|
2459
|
+
ZAR: "ZAR";
|
|
2460
|
+
AED: "AED";
|
|
2461
|
+
SAR: "SAR";
|
|
2462
|
+
SEK: "SEK";
|
|
2463
|
+
NOK: "NOK";
|
|
2464
|
+
DKK: "DKK";
|
|
2465
|
+
PLN: "PLN";
|
|
2466
|
+
CZK: "CZK";
|
|
2467
|
+
HUF: "HUF";
|
|
2468
|
+
ILS: "ILS";
|
|
2469
|
+
TRY: "TRY";
|
|
2470
|
+
RON: "RON";
|
|
2471
|
+
}>;
|
|
2472
|
+
amountMinor: z.ZodString;
|
|
2473
|
+
interval: z.ZodEnum<{
|
|
2474
|
+
free: "free";
|
|
2475
|
+
week: "week";
|
|
2476
|
+
month: "month";
|
|
2477
|
+
year: "year";
|
|
2478
|
+
one_time: "one_time";
|
|
2479
|
+
}>;
|
|
2480
|
+
intervalCount: z.ZodNumber;
|
|
2481
|
+
}, z.core.$strict>>;
|
|
2482
|
+
}, z.core.$strict>>;
|
|
2483
|
+
observation: z.ZodObject<{
|
|
2484
|
+
subject: z.ZodObject<{
|
|
2485
|
+
scope: z.ZodObject<{
|
|
2486
|
+
projectId: z.ZodUUID;
|
|
2487
|
+
environmentId: z.ZodUUID;
|
|
2488
|
+
environment: z.ZodEnum<{
|
|
2489
|
+
sandbox: "sandbox";
|
|
2490
|
+
live: "live";
|
|
2491
|
+
}>;
|
|
2492
|
+
}, z.core.$strict>;
|
|
2493
|
+
customerId: z.ZodUUID;
|
|
2494
|
+
}, z.core.$strict>;
|
|
2495
|
+
observedAt: z.ZodISODateTime;
|
|
2496
|
+
sourceRevision: z.ZodString;
|
|
2497
|
+
requirementDigest: z.ZodString;
|
|
2498
|
+
authority: z.ZodLiteral<"merchant">;
|
|
2499
|
+
}, z.core.$strict>;
|
|
2500
|
+
}, z.core.$strict>;
|
|
2501
|
+
type MerchantRequirementCheckInput = z.input<typeof merchantRequirementCheckInputSchema>;
|
|
2502
|
+
type MerchantRequirementCheckResult = z.infer<typeof merchantRequirementCheckResultSchema>;
|
|
2503
|
+
|
|
2080
2504
|
type FunnelNodeEvaluationContext = Pick<EvaluationContext, "attributes" | "stickyBucketAssignmentDocs" | "saveStickyBucketAssignmentDoc" | "onFeatureUsage" | "onExperimentViewed">;
|
|
2081
2505
|
|
|
2082
2506
|
/** Pure rule evaluation, never a command or permission to perform a commercial action. No network I/O. */
|
|
@@ -2087,4 +2511,4 @@ declare function evaluateFunnelNode(configuration: FunnelConfiguration, nodeId:
|
|
|
2087
2511
|
value?: JsonValue;
|
|
2088
2512
|
};
|
|
2089
2513
|
|
|
2090
|
-
export { type FunnelNodeEvaluationContext as F, type MerchantBridgeManifest as M, type FunnelLocalConfiguration as a, type MerchantBridgeCommand as b, type MerchantBridgeRequest as c, merchantBridgeCommandInputs as d, evaluateFunnelNode as e, merchantBridgeCommandOutputs as f, merchantBridgeOperationInputSchema as g, merchantBridgeOperationAuthoritySchema as m };
|
|
2514
|
+
export { type EntitlementCheckResult as E, type FunnelNodeEvaluationContext as F, type MerchantBridgeManifest as M, type FunnelLocalConfiguration as a, type MerchantBridgeCommand as b, type MerchantBridgeRequest as c, merchantBridgeCommandInputs as d, evaluateFunnelNode as e, merchantBridgeCommandOutputs as f, merchantBridgeOperationInputSchema as g, type MerchantRequirementCheckInput as h, type MerchantRequirementCheckResult as i, entitlementRequirementDigest as j, merchantBridgeOperationAuthoritySchema as m };
|