@tinkerlandai/indiana-sdk 0.9.2 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +50 -5
  3. package/README.zh-CN.md +30 -5
  4. package/dist/{ai-usage-DMNKvCiq.d.ts → ai-usage-Cn7dhvFw.d.ts} +5 -5
  5. package/dist/{api--Zf0gxfj.d.ts → api-DC44FaTV.d.ts} +6346 -749
  6. package/dist/chunk-2Y4G5364.js +6 -0
  7. package/dist/chunk-6ZZUNGNE.js +1 -0
  8. package/dist/chunk-ABNSU3ZG.js +4 -0
  9. package/dist/chunk-ACF2FBUB.js +1 -0
  10. package/dist/{chunk-65TBYVCS.js → chunk-AHXYGGAA.js} +1 -1
  11. package/dist/chunk-BOCKPUCM.js +2 -0
  12. package/dist/chunk-CCPNMQHZ.js +1 -0
  13. package/dist/chunk-CLXORAOK.js +1 -0
  14. package/dist/chunk-EDQCH2QS.js +1 -0
  15. package/dist/chunk-IWWKVNEX.js +1 -0
  16. package/dist/chunk-QUWPPZHH.js +1 -0
  17. package/dist/chunk-SBPTOOYB.js +1 -0
  18. package/dist/chunk-WYZI3TNB.js +1 -0
  19. package/dist/chunk-X6BCUINI.js +173 -0
  20. package/dist/chunk-Y46ALAKP.js +1 -0
  21. package/dist/{configuration-sync-E98CqVwh.d.ts → configuration-sync-CXe9Zcng.d.ts} +74 -21
  22. package/dist/content-ZRWZ26PF.js +1 -0
  23. package/dist/coupon-fA1QujHt.d.ts +184 -0
  24. package/dist/{customer-page-9B97Qdt_.d.ts → customer-page-km5f1PJZ.d.ts} +86 -182
  25. package/dist/{funnel-local-client-BjPwXlQb.d.ts → funnel-local-client-BQsdOjQ7.d.ts} +19985 -2451
  26. package/dist/funnel-node-evaluation-P5B4fPfJ.d.ts +2054 -0
  27. package/dist/funnel-resource-client-Zof1WLgA.d.ts +14525 -0
  28. package/dist/funnel-runtime-host-N7TX3LWI.js +1 -0
  29. package/dist/index.d.ts +13905 -13996
  30. package/dist/index.js +1 -1
  31. package/dist/native-shell.js +1 -1
  32. package/dist/openrouter.d.ts +3 -3
  33. package/dist/openrouter.js +1 -1
  34. package/dist/page.d.ts +4 -4
  35. package/dist/page.js +1 -1
  36. package/dist/paywall-DR65VN2G.js +1 -0
  37. package/dist/popup.d.ts +7 -5
  38. package/dist/popup.js +1 -1
  39. package/dist/react-native.d.ts +36432 -174
  40. package/dist/react-native.js +1 -1
  41. package/dist/{screen-BITZ11jn.d.ts → screen-D81zCpfi.d.ts} +159 -6
  42. package/dist/{screen-renderer-A6VYE2QL.js → screen-renderer-ZSAR7LPS.js} +1 -1
  43. package/dist/server.d.ts +2924 -500
  44. package/dist/server.js +1 -1
  45. package/dist/visual-dom-OFB7BFFB.js +1 -0
  46. package/dist/visual.d.ts +2 -2
  47. package/dist/visual.js +1 -1
  48. package/package.json +1 -1
  49. package/dist/chunk-5O667MKA.js +0 -1
  50. package/dist/chunk-67A7I6MB.js +0 -1
  51. package/dist/chunk-CCQHYQ4P.js +0 -1
  52. package/dist/chunk-CPLLMISZ.js +0 -1
  53. package/dist/chunk-G23YNWWI.js +0 -1
  54. package/dist/chunk-L7LKE3MG.js +0 -173
  55. package/dist/chunk-NH2PTTNK.js +0 -2
  56. package/dist/chunk-PK5HYUHD.js +0 -1
  57. package/dist/chunk-SEW4YVR7.js +0 -1
  58. package/dist/chunk-UYSOTMY3.js +0 -1
  59. package/dist/chunk-WSVH6IQA.js +0 -1
  60. package/dist/chunk-YZSQDZXW.js +0 -4
  61. package/dist/content-3LOJVYQO.js +0 -1
  62. package/dist/errors-0TSUIbUi.d.ts +0 -115
  63. package/dist/funnel-runtime-host-NYHKQT6T.js +0 -1
  64. package/dist/paywall-ISCYOGPZ.js +0 -1
@@ -241,11 +241,96 @@ declare const surfaceDataSchema: z.ZodObject<{
241
241
  TRY: "TRY";
242
242
  RON: "RON";
243
243
  }>>;
244
+ amountMinor: z.ZodOptional<z.ZodNumber>;
245
+ interval: z.ZodOptional<z.ZodEnum<{
246
+ free: "free";
247
+ week: "week";
248
+ month: "month";
249
+ year: "year";
250
+ one_time: "one_time";
251
+ }>>;
252
+ intervalCount: z.ZodOptional<z.ZodNumber>;
253
+ prepaid: z.ZodOptional<z.ZodArray<z.ZodObject<{
254
+ internalFeatureId: z.ZodUUID;
255
+ name: z.ZodString;
256
+ includedAmount: z.ZodString;
257
+ reset: z.ZodEnum<{
258
+ week: "week";
259
+ month: "month";
260
+ year: "year";
261
+ hour: "hour";
262
+ day: "day";
263
+ lifetime: "lifetime";
264
+ }>;
265
+ resetCount: z.ZodNumber;
266
+ terms: z.ZodObject<{
267
+ units: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
268
+ prices: z.ZodArray<z.ZodObject<{
269
+ currency: z.ZodEnum<{
270
+ USD: "USD";
271
+ EUR: "EUR";
272
+ CNY: "CNY";
273
+ GBP: "GBP";
274
+ JPY: "JPY";
275
+ CAD: "CAD";
276
+ AUD: "AUD";
277
+ NZD: "NZD";
278
+ CHF: "CHF";
279
+ HKD: "HKD";
280
+ SGD: "SGD";
281
+ KRW: "KRW";
282
+ INR: "INR";
283
+ BRL: "BRL";
284
+ MXN: "MXN";
285
+ TWD: "TWD";
286
+ THB: "THB";
287
+ IDR: "IDR";
288
+ MYR: "MYR";
289
+ PHP: "PHP";
290
+ VND: "VND";
291
+ ZAR: "ZAR";
292
+ AED: "AED";
293
+ SAR: "SAR";
294
+ SEK: "SEK";
295
+ NOK: "NOK";
296
+ DKK: "DKK";
297
+ PLN: "PLN";
298
+ CZK: "CZK";
299
+ HUF: "HUF";
300
+ ILS: "ILS";
301
+ TRY: "TRY";
302
+ RON: "RON";
303
+ }>;
304
+ amountMinor: z.ZodNumber;
305
+ pricing: z.ZodOptional<z.ZodObject<{
306
+ kind: z.ZodEnum<{
307
+ graduated: "graduated";
308
+ volume: "volume";
309
+ }>;
310
+ tiers: z.ZodArray<z.ZodObject<{
311
+ upTo: z.ZodNullable<z.ZodNumber>;
312
+ unitAmountMinor: z.ZodNumber;
313
+ flatAmountMinor: z.ZodOptional<z.ZodNumber>;
314
+ }, z.core.$strict>>;
315
+ }, z.core.$strict>>;
316
+ }, z.core.$strict>>;
317
+ minimumQuantity: z.ZodNumber;
318
+ maximumQuantity: z.ZodNumber;
319
+ }, z.core.$strict>;
320
+ }, z.core.$strict>>>;
244
321
  }, z.core.$strict>>;
245
322
  pickers: z.ZodRecord<z.ZodString, z.ZodObject<{
246
323
  options: z.ZodArray<z.ZodString>;
247
324
  selected: z.ZodNullable<z.ZodString>;
248
325
  }, z.core.$strict>>;
326
+ quantities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
327
+ minimum: z.ZodNumber;
328
+ maximum: z.ZodNumber;
329
+ step: z.ZodNumber;
330
+ value: z.ZodNumber;
331
+ label: z.ZodString;
332
+ available: z.ZodBoolean;
333
+ }, z.core.$strict>>>;
249
334
  diagnostics: z.ZodArray<z.ZodObject<{
250
335
  nodeId: z.ZodString;
251
336
  message: z.ZodString;
@@ -253,187 +338,6 @@ declare const surfaceDataSchema: z.ZodObject<{
253
338
  }, z.core.$strict>;
254
339
  type SurfaceData = z.infer<typeof surfaceDataSchema>;
255
340
 
256
- declare const couponInputSchema: z.ZodObject<{
257
- name: z.ZodString;
258
- description: z.ZodString;
259
- discount: z.ZodDiscriminatedUnion<[z.ZodObject<{
260
- type: z.ZodLiteral<"percent">;
261
- percentOff: z.ZodNumber;
262
- }, z.core.$strict>, z.ZodObject<{
263
- type: z.ZodLiteral<"amount">;
264
- amountOffCents: z.ZodNumber;
265
- currency: z.ZodEnum<{
266
- USD: "USD";
267
- EUR: "EUR";
268
- CNY: "CNY";
269
- GBP: "GBP";
270
- JPY: "JPY";
271
- CAD: "CAD";
272
- AUD: "AUD";
273
- NZD: "NZD";
274
- CHF: "CHF";
275
- HKD: "HKD";
276
- SGD: "SGD";
277
- KRW: "KRW";
278
- INR: "INR";
279
- BRL: "BRL";
280
- MXN: "MXN";
281
- TWD: "TWD";
282
- THB: "THB";
283
- IDR: "IDR";
284
- MYR: "MYR";
285
- PHP: "PHP";
286
- VND: "VND";
287
- ZAR: "ZAR";
288
- AED: "AED";
289
- SAR: "SAR";
290
- SEK: "SEK";
291
- NOK: "NOK";
292
- DKK: "DKK";
293
- PLN: "PLN";
294
- CZK: "CZK";
295
- HUF: "HUF";
296
- ILS: "ILS";
297
- TRY: "TRY";
298
- RON: "RON";
299
- }>;
300
- }, z.core.$strict>], "type">;
301
- duration: z.ZodDiscriminatedUnion<[z.ZodObject<{
302
- type: z.ZodLiteral<"once">;
303
- }, z.core.$strict>, z.ZodObject<{
304
- type: z.ZodLiteral<"repeating">;
305
- months: z.ZodNumber;
306
- }, z.core.$strict>, z.ZodObject<{
307
- type: z.ZodLiteral<"forever">;
308
- }, z.core.$strict>], "type">;
309
- appliesTo: z.ZodDiscriminatedUnion<[z.ZodObject<{
310
- type: z.ZodLiteral<"all">;
311
- }, z.core.$strict>, z.ZodObject<{
312
- type: z.ZodLiteral<"plans">;
313
- planIds: z.ZodArray<z.ZodUUID>;
314
- }, z.core.$strict>, z.ZodObject<{
315
- type: z.ZodLiteral<"merchandise">;
316
- scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
317
- type: z.ZodLiteral<"all">;
318
- }, z.core.$strict>, z.ZodObject<{
319
- type: z.ZodLiteral<"selected">;
320
- merchandiseIds: z.ZodArray<z.ZodUUID>;
321
- }, z.core.$strict>, z.ZodObject<{
322
- type: z.ZodLiteral<"condition">;
323
- condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
324
- }, z.core.$strict>], "type">;
325
- }, z.core.$strict>], "type">;
326
- eligibility: z.ZodObject<{
327
- firstPurchaseOnly: z.ZodBoolean;
328
- condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
329
- }, z.core.$strict>;
330
- selfClaimEnabled: z.ZodDefault<z.ZodBoolean>;
331
- startsAt: z.ZodNullable<z.ZodISODateTime>;
332
- endsAt: z.ZodNullable<z.ZodISODateTime>;
333
- totalLimit: z.ZodNullable<z.ZodNumber>;
334
- perCustomerLimit: z.ZodNumber;
335
- grantWindowHours: z.ZodNumber;
336
- }, z.core.$strict>;
337
- type CouponInput = z.infer<typeof couponInputSchema>;
338
- /**
339
- * 客户领到的优惠(SDK 返回)。id 用作 previewAttach 的 offerId;报价冻结优惠与逐套餐分配,attach 仅接受 operationId。
340
- * 支付金额由原生渠道验证后入账。appliesTo.planIds 对应商品根 ID。
341
- */
342
- declare const offerSchema: z.ZodObject<{
343
- id: z.ZodUUID;
344
- couponId: z.ZodUUID;
345
- status: z.ZodEnum<{
346
- expired: "expired";
347
- issued: "issued";
348
- reserved: "reserved";
349
- redeemed: "redeemed";
350
- revoked: "revoked";
351
- }>;
352
- issuedAt: z.ZodISODateTime;
353
- expiresAt: z.ZodISODateTime;
354
- coupon: z.ZodObject<{
355
- name: z.ZodString;
356
- discount: z.ZodDiscriminatedUnion<[z.ZodObject<{
357
- type: z.ZodLiteral<"percent">;
358
- percentOff: z.ZodNumber;
359
- }, z.core.$strict>, z.ZodObject<{
360
- type: z.ZodLiteral<"amount">;
361
- amountOffCents: z.ZodNumber;
362
- currency: z.ZodEnum<{
363
- USD: "USD";
364
- EUR: "EUR";
365
- CNY: "CNY";
366
- GBP: "GBP";
367
- JPY: "JPY";
368
- CAD: "CAD";
369
- AUD: "AUD";
370
- NZD: "NZD";
371
- CHF: "CHF";
372
- HKD: "HKD";
373
- SGD: "SGD";
374
- KRW: "KRW";
375
- INR: "INR";
376
- BRL: "BRL";
377
- MXN: "MXN";
378
- TWD: "TWD";
379
- THB: "THB";
380
- IDR: "IDR";
381
- MYR: "MYR";
382
- PHP: "PHP";
383
- VND: "VND";
384
- ZAR: "ZAR";
385
- AED: "AED";
386
- SAR: "SAR";
387
- SEK: "SEK";
388
- NOK: "NOK";
389
- DKK: "DKK";
390
- PLN: "PLN";
391
- CZK: "CZK";
392
- HUF: "HUF";
393
- ILS: "ILS";
394
- TRY: "TRY";
395
- RON: "RON";
396
- }>;
397
- }, z.core.$strict>], "type">;
398
- duration: z.ZodDiscriminatedUnion<[z.ZodObject<{
399
- type: z.ZodLiteral<"once">;
400
- }, z.core.$strict>, z.ZodObject<{
401
- type: z.ZodLiteral<"repeating">;
402
- months: z.ZodNumber;
403
- }, z.core.$strict>, z.ZodObject<{
404
- type: z.ZodLiteral<"forever">;
405
- }, z.core.$strict>], "type">;
406
- appliesTo: z.ZodDiscriminatedUnion<[z.ZodObject<{
407
- type: z.ZodLiteral<"all">;
408
- }, z.core.$strict>, z.ZodObject<{
409
- type: z.ZodLiteral<"plans">;
410
- planIds: z.ZodArray<z.ZodUUID>;
411
- }, z.core.$strict>, z.ZodObject<{
412
- type: z.ZodLiteral<"merchandise">;
413
- scope: z.ZodObject<{
414
- type: z.ZodEnum<{
415
- selected: "selected";
416
- all: "all";
417
- condition: "condition";
418
- }>;
419
- }, z.core.$strict>;
420
- }, z.core.$strict>], "type">;
421
- }, z.core.$strict>;
422
- }, z.core.$strict>;
423
- type Offer = z.infer<typeof offerSchema>;
424
- /** 领取失败的原因:未生效 / 不在有效期 / 不符合标签 / 不是首购 / 已达每人上限 / 已领完。 */
425
- declare const offerUnavailableReasonSchema: z.ZodEnum<{
426
- unavailable: "unavailable";
427
- inactive: "inactive";
428
- claim_disabled: "claim_disabled";
429
- outside_window: "outside_window";
430
- not_targeted: "not_targeted";
431
- not_first_purchase: "not_first_purchase";
432
- limit_reached: "limit_reached";
433
- sold_out: "sold_out";
434
- }>;
435
- type OfferUnavailableReason = z.infer<typeof offerUnavailableReasonSchema>;
436
-
437
341
  declare const screenAnswersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
438
342
  declare const screenParametersSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
439
343
  type ScreenParameters = z.infer<typeof screenParametersSchema>;
@@ -573,4 +477,4 @@ declare const customerDataIntentSchema: z.ZodObject<{
573
477
  }, z.core.$strict>;
574
478
  type CustomerDataIntent = z.infer<typeof customerDataIntentSchema>;
575
479
 
576
- export { type CouponInput as C, type Offer as O, type ScreenAnswers as S, type SurfaceData as a, type CustomerDataIntent as b, type OfferUnavailableReason as c, type CustomerPageData as d, type ScreenParameters as e, type ScreenRendererInput as f, screenInputBindingsSchema as s };
480
+ export { type CustomerDataIntent as C, type ScreenAnswers as S, type SurfaceData as a, type CustomerPageData as b, type ScreenParameters as c, type ScreenRendererInput as d, screenInputBindingsSchema as s };