@aippy/runtime 0.4.2-dev.4 → 0.4.2-dev.7

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.
@@ -1,5 +1,5 @@
1
1
  import { MinistorePurchaseInput, MinistoreRequestOptions, MinistoreResult, MinistoreSettlement } from './types';
2
- /** Native bridge and shared auth version floor; not wallet capability or API readiness. */
2
+ /** Native bridge and ministore app version floor; not backend readiness. */
3
3
  export declare function isPurchaseSupported(): boolean;
4
4
  /** Settle an explicit purchase; mall enforces its server-recorded authorization. */
5
5
  export declare function purchase(input: MinistorePurchaseInput, options?: MinistoreRequestOptions): Promise<MinistoreResult<MinistoreSettlement>>;
@@ -114,6 +114,8 @@ export interface MinistoreRecordsPage {
114
114
  export interface MinistoreRecordsQuery {
115
115
  cursor?: string;
116
116
  limit?: number;
117
+ /** Exact product key; omit to read all current-project records. */
118
+ benefitKey?: string;
117
119
  }
118
120
  export interface MinistoreConsumeInput {
119
121
  benefitKey: string;
@@ -125,6 +127,9 @@ export interface MinistoreConsumeInput {
125
127
  quantity?: number;
126
128
  /** For item benefits, consume these exact item IDs instead of FIFO selection. */
127
129
  itemIds?: string[];
130
+ /** For item benefits: replace each consumed item's value, or initialize
131
+ * automatically purchased deficit items. Mall validates the exact deficit. */
132
+ itemValues?: unknown[];
128
133
  }
129
134
  export interface MinistoreSettlement {
130
135
  benefit: BenefitState;