@tinkerlandai/longplay-react-native 0.10.16 → 0.10.17
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/dist/index.cjs +2 -2
- package/dist/index.d.cts +117 -102
- package/dist/index.d.ts +117 -102
- package/dist/index.js +2 -2
- package/native-sdk/android/assets/indiana/index.html +20 -20
- package/native-sdk/android/java/ai/tinkerland/indiana/SDKVersion.kt +1 -1
- package/native-sdk/ios/SDKVersion.swift +1 -1
- package/native-sdk/ios/WebView/index.html +20 -20
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -7529,48 +7529,12 @@ declare const apiOperations: {
|
|
|
7529
7529
|
}, z.core.$strict>;
|
|
7530
7530
|
}, z.core.$strict>;
|
|
7531
7531
|
};
|
|
7532
|
-
readonly
|
|
7532
|
+
readonly recordMerchantEvent: {
|
|
7533
7533
|
readonly method: "POST";
|
|
7534
|
-
readonly path: "
|
|
7534
|
+
readonly path: "merchant/events/record";
|
|
7535
7535
|
readonly permission: "billing:write";
|
|
7536
7536
|
readonly audience: "server";
|
|
7537
|
-
readonly request: z.ZodUnion<readonly [z.ZodObject<{
|
|
7538
|
-
provider: z.ZodLiteral<"stripe">;
|
|
7539
|
-
accountId: z.ZodString;
|
|
7540
|
-
eventId: z.ZodString;
|
|
7541
|
-
type: z.ZodEnum<{
|
|
7542
|
-
"invoice.paid": "invoice.paid";
|
|
7543
|
-
"refund.updated": "refund.updated";
|
|
7544
|
-
"checkout.session.completed": "checkout.session.completed";
|
|
7545
|
-
"checkout.session.expired": "checkout.session.expired";
|
|
7546
|
-
"checkout.session.async_payment_succeeded": "checkout.session.async_payment_succeeded";
|
|
7547
|
-
"checkout.session.async_payment_failed": "checkout.session.async_payment_failed";
|
|
7548
|
-
"customer.subscription.created": "customer.subscription.created";
|
|
7549
|
-
"customer.subscription.updated": "customer.subscription.updated";
|
|
7550
|
-
"customer.subscription.deleted": "customer.subscription.deleted";
|
|
7551
|
-
"customer.subscription.paused": "customer.subscription.paused";
|
|
7552
|
-
"customer.subscription.resumed": "customer.subscription.resumed";
|
|
7553
|
-
"invoice.created": "invoice.created";
|
|
7554
|
-
"customer.discount.created": "customer.discount.created";
|
|
7555
|
-
"customer.discount.updated": "customer.discount.updated";
|
|
7556
|
-
"refund.created": "refund.created";
|
|
7557
|
-
"refund.failed": "refund.failed";
|
|
7558
|
-
"charge.refunded": "charge.refunded";
|
|
7559
|
-
}>;
|
|
7560
|
-
occurredAt: z.ZodNumber;
|
|
7561
|
-
data: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
|
|
7562
|
-
id: z.ZodString;
|
|
7563
|
-
object: z.ZodEnum<{
|
|
7564
|
-
subscription: "subscription";
|
|
7565
|
-
discount: "discount";
|
|
7566
|
-
refund: "refund";
|
|
7567
|
-
invoice: "invoice";
|
|
7568
|
-
charge: "charge";
|
|
7569
|
-
"checkout.session": "checkout.session";
|
|
7570
|
-
}>;
|
|
7571
|
-
livemode: z.ZodBoolean;
|
|
7572
|
-
}, z.core.$strip>>;
|
|
7573
|
-
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7537
|
+
readonly request: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7574
7538
|
type: z.ZodLiteral<"purchase.completed">;
|
|
7575
7539
|
operationId: z.ZodUUID;
|
|
7576
7540
|
merchantOrderId: z.ZodString;
|
|
@@ -7624,7 +7588,6 @@ declare const apiOperations: {
|
|
|
7624
7588
|
quantity: z.ZodNumber;
|
|
7625
7589
|
}, z.core.$strict>>;
|
|
7626
7590
|
}, z.core.$strict>>;
|
|
7627
|
-
provider: z.ZodLiteral<"merchant">;
|
|
7628
7591
|
eventId: z.ZodString;
|
|
7629
7592
|
customerId: z.ZodUUID;
|
|
7630
7593
|
occurredAt: z.ZodISODateTime;
|
|
@@ -7636,7 +7599,6 @@ declare const apiOperations: {
|
|
|
7636
7599
|
expired: "expired";
|
|
7637
7600
|
canceled: "canceled";
|
|
7638
7601
|
}>;
|
|
7639
|
-
provider: z.ZodLiteral<"merchant">;
|
|
7640
7602
|
eventId: z.ZodString;
|
|
7641
7603
|
customerId: z.ZodUUID;
|
|
7642
7604
|
occurredAt: z.ZodISODateTime;
|
|
@@ -7666,7 +7628,6 @@ declare const apiOperations: {
|
|
|
7666
7628
|
quantity: z.ZodNumber;
|
|
7667
7629
|
}, z.core.$strict>>;
|
|
7668
7630
|
}, z.core.$strict>;
|
|
7669
|
-
provider: z.ZodLiteral<"merchant">;
|
|
7670
7631
|
eventId: z.ZodString;
|
|
7671
7632
|
customerId: z.ZodUUID;
|
|
7672
7633
|
occurredAt: z.ZodISODateTime;
|
|
@@ -7723,7 +7684,6 @@ declare const apiOperations: {
|
|
|
7723
7684
|
periodEndsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
7724
7685
|
}, z.core.$strict>>;
|
|
7725
7686
|
}, z.core.$strict>>;
|
|
7726
|
-
provider: z.ZodLiteral<"merchant">;
|
|
7727
7687
|
eventId: z.ZodString;
|
|
7728
7688
|
customerId: z.ZodUUID;
|
|
7729
7689
|
occurredAt: z.ZodISODateTime;
|
|
@@ -7752,7 +7712,6 @@ declare const apiOperations: {
|
|
|
7752
7712
|
periodEndsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
7753
7713
|
}, z.core.$strict>>;
|
|
7754
7714
|
}, z.core.$strict>;
|
|
7755
|
-
provider: z.ZodLiteral<"merchant">;
|
|
7756
7715
|
eventId: z.ZodString;
|
|
7757
7716
|
customerId: z.ZodUUID;
|
|
7758
7717
|
occurredAt: z.ZodISODateTime;
|
|
@@ -7768,11 +7727,122 @@ declare const apiOperations: {
|
|
|
7768
7727
|
}>;
|
|
7769
7728
|
amountMinor: z.ZodNumber;
|
|
7770
7729
|
currency: z.ZodString;
|
|
7771
|
-
provider: z.ZodLiteral<"merchant">;
|
|
7772
7730
|
eventId: z.ZodString;
|
|
7773
7731
|
customerId: z.ZodUUID;
|
|
7774
7732
|
occurredAt: z.ZodISODateTime;
|
|
7775
|
-
}, z.core.$strict
|
|
7733
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7734
|
+
type: z.ZodLiteral<"fulfillment.updated">;
|
|
7735
|
+
operationId: z.ZodUUID;
|
|
7736
|
+
merchantFulfillmentId: z.ZodString;
|
|
7737
|
+
status: z.ZodEnum<{
|
|
7738
|
+
pending: "pending";
|
|
7739
|
+
applied: "applied";
|
|
7740
|
+
failed: "failed";
|
|
7741
|
+
}>;
|
|
7742
|
+
eventId: z.ZodString;
|
|
7743
|
+
customerId: z.ZodUUID;
|
|
7744
|
+
occurredAt: z.ZodISODateTime;
|
|
7745
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7746
|
+
type: z.ZodLiteral<"benefit.claimed">;
|
|
7747
|
+
merchantBenefitId: z.ZodString;
|
|
7748
|
+
resource: z.ZodString;
|
|
7749
|
+
unit: z.ZodString;
|
|
7750
|
+
quantity: z.ZodNumber;
|
|
7751
|
+
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
7752
|
+
revision: z.ZodNumber;
|
|
7753
|
+
eventId: z.ZodString;
|
|
7754
|
+
customerId: z.ZodUUID;
|
|
7755
|
+
occurredAt: z.ZodISODateTime;
|
|
7756
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7757
|
+
type: z.ZodLiteral<"benefit.closed">;
|
|
7758
|
+
merchantBenefitId: z.ZodString;
|
|
7759
|
+
status: z.ZodEnum<{
|
|
7760
|
+
failed: "failed";
|
|
7761
|
+
expired: "expired";
|
|
7762
|
+
canceled: "canceled";
|
|
7763
|
+
}>;
|
|
7764
|
+
revision: z.ZodNumber;
|
|
7765
|
+
eventId: z.ZodString;
|
|
7766
|
+
customerId: z.ZodUUID;
|
|
7767
|
+
occurredAt: z.ZodISODateTime;
|
|
7768
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7769
|
+
type: z.ZodLiteral<"benefit.updated">;
|
|
7770
|
+
merchantBenefitId: z.ZodString;
|
|
7771
|
+
status: z.ZodEnum<{
|
|
7772
|
+
active: "active";
|
|
7773
|
+
expired: "expired";
|
|
7774
|
+
revoked: "revoked";
|
|
7775
|
+
}>;
|
|
7776
|
+
remainingQuantity: z.ZodNullable<z.ZodNumber>;
|
|
7777
|
+
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
7778
|
+
revision: z.ZodNumber;
|
|
7779
|
+
eventId: z.ZodString;
|
|
7780
|
+
customerId: z.ZodUUID;
|
|
7781
|
+
occurredAt: z.ZodISODateTime;
|
|
7782
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7783
|
+
type: z.ZodLiteral<"authorization.updated">;
|
|
7784
|
+
merchantAuthorizationId: z.ZodString;
|
|
7785
|
+
kind: z.ZodLiteral<"auto_topup">;
|
|
7786
|
+
status: z.ZodEnum<{
|
|
7787
|
+
pending: "pending";
|
|
7788
|
+
failed: "failed";
|
|
7789
|
+
revoked: "revoked";
|
|
7790
|
+
effective: "effective";
|
|
7791
|
+
}>;
|
|
7792
|
+
termsReference: z.ZodNullable<z.ZodString>;
|
|
7793
|
+
revision: z.ZodNumber;
|
|
7794
|
+
eventId: z.ZodString;
|
|
7795
|
+
customerId: z.ZodUUID;
|
|
7796
|
+
occurredAt: z.ZodISODateTime;
|
|
7797
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7798
|
+
type: z.ZodLiteral<"balance.observed">;
|
|
7799
|
+
resource: z.ZodString;
|
|
7800
|
+
unit: z.ZodString;
|
|
7801
|
+
availableQuantity: z.ZodNumber;
|
|
7802
|
+
reservedQuantity: z.ZodNumber;
|
|
7803
|
+
periodStartsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
7804
|
+
periodEndsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
7805
|
+
revision: z.ZodNumber;
|
|
7806
|
+
eventId: z.ZodString;
|
|
7807
|
+
customerId: z.ZodUUID;
|
|
7808
|
+
occurredAt: z.ZodISODateTime;
|
|
7809
|
+
}, z.core.$strict>], "type">, z.ZodObject<{
|
|
7810
|
+
productVersionId: z.ZodUUID;
|
|
7811
|
+
subscriptionId: z.ZodString;
|
|
7812
|
+
type: z.ZodLiteral<"coupon.redeemed">;
|
|
7813
|
+
grantId: z.ZodUUID;
|
|
7814
|
+
eventId: z.ZodString;
|
|
7815
|
+
customerId: z.ZodUUID;
|
|
7816
|
+
occurredAt: z.ZodISODateTime;
|
|
7817
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7818
|
+
merchandiseId: z.ZodUUID;
|
|
7819
|
+
type: z.ZodLiteral<"coupon.redeemed">;
|
|
7820
|
+
grantId: z.ZodUUID;
|
|
7821
|
+
eventId: z.ZodString;
|
|
7822
|
+
customerId: z.ZodUUID;
|
|
7823
|
+
occurredAt: z.ZodISODateTime;
|
|
7824
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7825
|
+
operation: z.ZodLiteral<"consume">;
|
|
7826
|
+
type: z.ZodLiteral<"usage.observed">;
|
|
7827
|
+
merchantTransactionId: z.ZodString;
|
|
7828
|
+
resource: z.ZodString;
|
|
7829
|
+
unit: z.ZodString;
|
|
7830
|
+
quantity: z.ZodNumber;
|
|
7831
|
+
eventId: z.ZodString;
|
|
7832
|
+
customerId: z.ZodUUID;
|
|
7833
|
+
occurredAt: z.ZodISODateTime;
|
|
7834
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7835
|
+
operation: z.ZodLiteral<"reverse">;
|
|
7836
|
+
reversalOf: z.ZodString;
|
|
7837
|
+
type: z.ZodLiteral<"usage.observed">;
|
|
7838
|
+
merchantTransactionId: z.ZodString;
|
|
7839
|
+
resource: z.ZodString;
|
|
7840
|
+
unit: z.ZodString;
|
|
7841
|
+
quantity: z.ZodNumber;
|
|
7842
|
+
eventId: z.ZodString;
|
|
7843
|
+
customerId: z.ZodUUID;
|
|
7844
|
+
occurredAt: z.ZodISODateTime;
|
|
7845
|
+
}, z.core.$strict>]>;
|
|
7776
7846
|
readonly response: z.ZodObject<{
|
|
7777
7847
|
requestId: z.ZodUUID;
|
|
7778
7848
|
scope: z.ZodObject<{
|
|
@@ -16073,8 +16143,8 @@ declare const apiOperations: {
|
|
|
16073
16143
|
entity: "entity";
|
|
16074
16144
|
source: "source";
|
|
16075
16145
|
dimension: "dimension";
|
|
16076
|
-
entitlement: "entitlement";
|
|
16077
16146
|
resource: "resource";
|
|
16147
|
+
entitlement: "entitlement";
|
|
16078
16148
|
}>, z.ZodString]>;
|
|
16079
16149
|
after: z.ZodNullable<z.ZodObject<{
|
|
16080
16150
|
bucket: z.ZodISODateTime;
|
|
@@ -19893,61 +19963,6 @@ declare const apiOperations: {
|
|
|
19893
19963
|
}>>;
|
|
19894
19964
|
}, z.core.$strict>;
|
|
19895
19965
|
};
|
|
19896
|
-
readonly recordCouponRedemption: {
|
|
19897
|
-
readonly method: "POST";
|
|
19898
|
-
readonly path: "offers/redemptions";
|
|
19899
|
-
readonly permission: "billing:write";
|
|
19900
|
-
readonly audience: "server";
|
|
19901
|
-
/** A stable merchant event records paid Coupon use; this does not verify a provider or grant subscription access. */
|
|
19902
|
-
readonly request: z.ZodUnion<readonly [z.ZodObject<{
|
|
19903
|
-
productVersionId: z.ZodUUID;
|
|
19904
|
-
subscriptionId: z.ZodString;
|
|
19905
|
-
customerId: z.ZodUUID;
|
|
19906
|
-
eventId: z.ZodString;
|
|
19907
|
-
grantId: z.ZodUUID;
|
|
19908
|
-
occurredAt: z.ZodISODateTime;
|
|
19909
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
19910
|
-
merchandiseId: z.ZodUUID;
|
|
19911
|
-
customerId: z.ZodUUID;
|
|
19912
|
-
eventId: z.ZodString;
|
|
19913
|
-
grantId: z.ZodUUID;
|
|
19914
|
-
occurredAt: z.ZodISODateTime;
|
|
19915
|
-
}, z.core.$strict>]>;
|
|
19916
|
-
readonly response: z.ZodObject<{
|
|
19917
|
-
requestId: z.ZodUUID;
|
|
19918
|
-
scope: z.ZodObject<{
|
|
19919
|
-
projectId: z.ZodString;
|
|
19920
|
-
environment: z.ZodEnum<{
|
|
19921
|
-
sandbox: "sandbox";
|
|
19922
|
-
live: "live";
|
|
19923
|
-
}>;
|
|
19924
|
-
}, z.core.$strict>;
|
|
19925
|
-
receipt: z.ZodUnion<readonly [z.ZodObject<{
|
|
19926
|
-
productVersionId: z.ZodUUID;
|
|
19927
|
-
subscriptionId: z.ZodString;
|
|
19928
|
-
customerId: z.ZodUUID;
|
|
19929
|
-
eventId: z.ZodString;
|
|
19930
|
-
grantId: z.ZodUUID;
|
|
19931
|
-
occurredAt: z.ZodISODateTime;
|
|
19932
|
-
id: z.ZodUUID;
|
|
19933
|
-
couponId: z.ZodUUID;
|
|
19934
|
-
status: z.ZodLiteral<"redeemed">;
|
|
19935
|
-
source: z.ZodLiteral<"merchant">;
|
|
19936
|
-
recordedAt: z.ZodISODateTime;
|
|
19937
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
19938
|
-
merchandiseId: z.ZodUUID;
|
|
19939
|
-
customerId: z.ZodUUID;
|
|
19940
|
-
eventId: z.ZodString;
|
|
19941
|
-
grantId: z.ZodUUID;
|
|
19942
|
-
occurredAt: z.ZodISODateTime;
|
|
19943
|
-
id: z.ZodUUID;
|
|
19944
|
-
couponId: z.ZodUUID;
|
|
19945
|
-
status: z.ZodLiteral<"redeemed">;
|
|
19946
|
-
source: z.ZodLiteral<"merchant">;
|
|
19947
|
-
recordedAt: z.ZodISODateTime;
|
|
19948
|
-
}, z.core.$strict>]>;
|
|
19949
|
-
}, z.core.$strict>;
|
|
19950
|
-
};
|
|
19951
19966
|
};
|
|
19952
19967
|
type ApiOperation = keyof typeof apiOperations;
|
|
19953
19968
|
type ApiInput<K extends ApiOperation> = z.input<(typeof apiOperations)[K]["request"]>;
|
package/dist/index.d.ts
CHANGED
|
@@ -7529,48 +7529,12 @@ declare const apiOperations: {
|
|
|
7529
7529
|
}, z.core.$strict>;
|
|
7530
7530
|
}, z.core.$strict>;
|
|
7531
7531
|
};
|
|
7532
|
-
readonly
|
|
7532
|
+
readonly recordMerchantEvent: {
|
|
7533
7533
|
readonly method: "POST";
|
|
7534
|
-
readonly path: "
|
|
7534
|
+
readonly path: "merchant/events/record";
|
|
7535
7535
|
readonly permission: "billing:write";
|
|
7536
7536
|
readonly audience: "server";
|
|
7537
|
-
readonly request: z.ZodUnion<readonly [z.ZodObject<{
|
|
7538
|
-
provider: z.ZodLiteral<"stripe">;
|
|
7539
|
-
accountId: z.ZodString;
|
|
7540
|
-
eventId: z.ZodString;
|
|
7541
|
-
type: z.ZodEnum<{
|
|
7542
|
-
"invoice.paid": "invoice.paid";
|
|
7543
|
-
"refund.updated": "refund.updated";
|
|
7544
|
-
"checkout.session.completed": "checkout.session.completed";
|
|
7545
|
-
"checkout.session.expired": "checkout.session.expired";
|
|
7546
|
-
"checkout.session.async_payment_succeeded": "checkout.session.async_payment_succeeded";
|
|
7547
|
-
"checkout.session.async_payment_failed": "checkout.session.async_payment_failed";
|
|
7548
|
-
"customer.subscription.created": "customer.subscription.created";
|
|
7549
|
-
"customer.subscription.updated": "customer.subscription.updated";
|
|
7550
|
-
"customer.subscription.deleted": "customer.subscription.deleted";
|
|
7551
|
-
"customer.subscription.paused": "customer.subscription.paused";
|
|
7552
|
-
"customer.subscription.resumed": "customer.subscription.resumed";
|
|
7553
|
-
"invoice.created": "invoice.created";
|
|
7554
|
-
"customer.discount.created": "customer.discount.created";
|
|
7555
|
-
"customer.discount.updated": "customer.discount.updated";
|
|
7556
|
-
"refund.created": "refund.created";
|
|
7557
|
-
"refund.failed": "refund.failed";
|
|
7558
|
-
"charge.refunded": "charge.refunded";
|
|
7559
|
-
}>;
|
|
7560
|
-
occurredAt: z.ZodNumber;
|
|
7561
|
-
data: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
|
|
7562
|
-
id: z.ZodString;
|
|
7563
|
-
object: z.ZodEnum<{
|
|
7564
|
-
subscription: "subscription";
|
|
7565
|
-
discount: "discount";
|
|
7566
|
-
refund: "refund";
|
|
7567
|
-
invoice: "invoice";
|
|
7568
|
-
charge: "charge";
|
|
7569
|
-
"checkout.session": "checkout.session";
|
|
7570
|
-
}>;
|
|
7571
|
-
livemode: z.ZodBoolean;
|
|
7572
|
-
}, z.core.$strip>>;
|
|
7573
|
-
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7537
|
+
readonly request: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7574
7538
|
type: z.ZodLiteral<"purchase.completed">;
|
|
7575
7539
|
operationId: z.ZodUUID;
|
|
7576
7540
|
merchantOrderId: z.ZodString;
|
|
@@ -7624,7 +7588,6 @@ declare const apiOperations: {
|
|
|
7624
7588
|
quantity: z.ZodNumber;
|
|
7625
7589
|
}, z.core.$strict>>;
|
|
7626
7590
|
}, z.core.$strict>>;
|
|
7627
|
-
provider: z.ZodLiteral<"merchant">;
|
|
7628
7591
|
eventId: z.ZodString;
|
|
7629
7592
|
customerId: z.ZodUUID;
|
|
7630
7593
|
occurredAt: z.ZodISODateTime;
|
|
@@ -7636,7 +7599,6 @@ declare const apiOperations: {
|
|
|
7636
7599
|
expired: "expired";
|
|
7637
7600
|
canceled: "canceled";
|
|
7638
7601
|
}>;
|
|
7639
|
-
provider: z.ZodLiteral<"merchant">;
|
|
7640
7602
|
eventId: z.ZodString;
|
|
7641
7603
|
customerId: z.ZodUUID;
|
|
7642
7604
|
occurredAt: z.ZodISODateTime;
|
|
@@ -7666,7 +7628,6 @@ declare const apiOperations: {
|
|
|
7666
7628
|
quantity: z.ZodNumber;
|
|
7667
7629
|
}, z.core.$strict>>;
|
|
7668
7630
|
}, z.core.$strict>;
|
|
7669
|
-
provider: z.ZodLiteral<"merchant">;
|
|
7670
7631
|
eventId: z.ZodString;
|
|
7671
7632
|
customerId: z.ZodUUID;
|
|
7672
7633
|
occurredAt: z.ZodISODateTime;
|
|
@@ -7723,7 +7684,6 @@ declare const apiOperations: {
|
|
|
7723
7684
|
periodEndsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
7724
7685
|
}, z.core.$strict>>;
|
|
7725
7686
|
}, z.core.$strict>>;
|
|
7726
|
-
provider: z.ZodLiteral<"merchant">;
|
|
7727
7687
|
eventId: z.ZodString;
|
|
7728
7688
|
customerId: z.ZodUUID;
|
|
7729
7689
|
occurredAt: z.ZodISODateTime;
|
|
@@ -7752,7 +7712,6 @@ declare const apiOperations: {
|
|
|
7752
7712
|
periodEndsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
7753
7713
|
}, z.core.$strict>>;
|
|
7754
7714
|
}, z.core.$strict>;
|
|
7755
|
-
provider: z.ZodLiteral<"merchant">;
|
|
7756
7715
|
eventId: z.ZodString;
|
|
7757
7716
|
customerId: z.ZodUUID;
|
|
7758
7717
|
occurredAt: z.ZodISODateTime;
|
|
@@ -7768,11 +7727,122 @@ declare const apiOperations: {
|
|
|
7768
7727
|
}>;
|
|
7769
7728
|
amountMinor: z.ZodNumber;
|
|
7770
7729
|
currency: z.ZodString;
|
|
7771
|
-
provider: z.ZodLiteral<"merchant">;
|
|
7772
7730
|
eventId: z.ZodString;
|
|
7773
7731
|
customerId: z.ZodUUID;
|
|
7774
7732
|
occurredAt: z.ZodISODateTime;
|
|
7775
|
-
}, z.core.$strict
|
|
7733
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7734
|
+
type: z.ZodLiteral<"fulfillment.updated">;
|
|
7735
|
+
operationId: z.ZodUUID;
|
|
7736
|
+
merchantFulfillmentId: z.ZodString;
|
|
7737
|
+
status: z.ZodEnum<{
|
|
7738
|
+
pending: "pending";
|
|
7739
|
+
applied: "applied";
|
|
7740
|
+
failed: "failed";
|
|
7741
|
+
}>;
|
|
7742
|
+
eventId: z.ZodString;
|
|
7743
|
+
customerId: z.ZodUUID;
|
|
7744
|
+
occurredAt: z.ZodISODateTime;
|
|
7745
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7746
|
+
type: z.ZodLiteral<"benefit.claimed">;
|
|
7747
|
+
merchantBenefitId: z.ZodString;
|
|
7748
|
+
resource: z.ZodString;
|
|
7749
|
+
unit: z.ZodString;
|
|
7750
|
+
quantity: z.ZodNumber;
|
|
7751
|
+
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
7752
|
+
revision: z.ZodNumber;
|
|
7753
|
+
eventId: z.ZodString;
|
|
7754
|
+
customerId: z.ZodUUID;
|
|
7755
|
+
occurredAt: z.ZodISODateTime;
|
|
7756
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7757
|
+
type: z.ZodLiteral<"benefit.closed">;
|
|
7758
|
+
merchantBenefitId: z.ZodString;
|
|
7759
|
+
status: z.ZodEnum<{
|
|
7760
|
+
failed: "failed";
|
|
7761
|
+
expired: "expired";
|
|
7762
|
+
canceled: "canceled";
|
|
7763
|
+
}>;
|
|
7764
|
+
revision: z.ZodNumber;
|
|
7765
|
+
eventId: z.ZodString;
|
|
7766
|
+
customerId: z.ZodUUID;
|
|
7767
|
+
occurredAt: z.ZodISODateTime;
|
|
7768
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7769
|
+
type: z.ZodLiteral<"benefit.updated">;
|
|
7770
|
+
merchantBenefitId: z.ZodString;
|
|
7771
|
+
status: z.ZodEnum<{
|
|
7772
|
+
active: "active";
|
|
7773
|
+
expired: "expired";
|
|
7774
|
+
revoked: "revoked";
|
|
7775
|
+
}>;
|
|
7776
|
+
remainingQuantity: z.ZodNullable<z.ZodNumber>;
|
|
7777
|
+
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
7778
|
+
revision: z.ZodNumber;
|
|
7779
|
+
eventId: z.ZodString;
|
|
7780
|
+
customerId: z.ZodUUID;
|
|
7781
|
+
occurredAt: z.ZodISODateTime;
|
|
7782
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7783
|
+
type: z.ZodLiteral<"authorization.updated">;
|
|
7784
|
+
merchantAuthorizationId: z.ZodString;
|
|
7785
|
+
kind: z.ZodLiteral<"auto_topup">;
|
|
7786
|
+
status: z.ZodEnum<{
|
|
7787
|
+
pending: "pending";
|
|
7788
|
+
failed: "failed";
|
|
7789
|
+
revoked: "revoked";
|
|
7790
|
+
effective: "effective";
|
|
7791
|
+
}>;
|
|
7792
|
+
termsReference: z.ZodNullable<z.ZodString>;
|
|
7793
|
+
revision: z.ZodNumber;
|
|
7794
|
+
eventId: z.ZodString;
|
|
7795
|
+
customerId: z.ZodUUID;
|
|
7796
|
+
occurredAt: z.ZodISODateTime;
|
|
7797
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7798
|
+
type: z.ZodLiteral<"balance.observed">;
|
|
7799
|
+
resource: z.ZodString;
|
|
7800
|
+
unit: z.ZodString;
|
|
7801
|
+
availableQuantity: z.ZodNumber;
|
|
7802
|
+
reservedQuantity: z.ZodNumber;
|
|
7803
|
+
periodStartsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
7804
|
+
periodEndsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
7805
|
+
revision: z.ZodNumber;
|
|
7806
|
+
eventId: z.ZodString;
|
|
7807
|
+
customerId: z.ZodUUID;
|
|
7808
|
+
occurredAt: z.ZodISODateTime;
|
|
7809
|
+
}, z.core.$strict>], "type">, z.ZodObject<{
|
|
7810
|
+
productVersionId: z.ZodUUID;
|
|
7811
|
+
subscriptionId: z.ZodString;
|
|
7812
|
+
type: z.ZodLiteral<"coupon.redeemed">;
|
|
7813
|
+
grantId: z.ZodUUID;
|
|
7814
|
+
eventId: z.ZodString;
|
|
7815
|
+
customerId: z.ZodUUID;
|
|
7816
|
+
occurredAt: z.ZodISODateTime;
|
|
7817
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7818
|
+
merchandiseId: z.ZodUUID;
|
|
7819
|
+
type: z.ZodLiteral<"coupon.redeemed">;
|
|
7820
|
+
grantId: z.ZodUUID;
|
|
7821
|
+
eventId: z.ZodString;
|
|
7822
|
+
customerId: z.ZodUUID;
|
|
7823
|
+
occurredAt: z.ZodISODateTime;
|
|
7824
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7825
|
+
operation: z.ZodLiteral<"consume">;
|
|
7826
|
+
type: z.ZodLiteral<"usage.observed">;
|
|
7827
|
+
merchantTransactionId: z.ZodString;
|
|
7828
|
+
resource: z.ZodString;
|
|
7829
|
+
unit: z.ZodString;
|
|
7830
|
+
quantity: z.ZodNumber;
|
|
7831
|
+
eventId: z.ZodString;
|
|
7832
|
+
customerId: z.ZodUUID;
|
|
7833
|
+
occurredAt: z.ZodISODateTime;
|
|
7834
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7835
|
+
operation: z.ZodLiteral<"reverse">;
|
|
7836
|
+
reversalOf: z.ZodString;
|
|
7837
|
+
type: z.ZodLiteral<"usage.observed">;
|
|
7838
|
+
merchantTransactionId: z.ZodString;
|
|
7839
|
+
resource: z.ZodString;
|
|
7840
|
+
unit: z.ZodString;
|
|
7841
|
+
quantity: z.ZodNumber;
|
|
7842
|
+
eventId: z.ZodString;
|
|
7843
|
+
customerId: z.ZodUUID;
|
|
7844
|
+
occurredAt: z.ZodISODateTime;
|
|
7845
|
+
}, z.core.$strict>]>;
|
|
7776
7846
|
readonly response: z.ZodObject<{
|
|
7777
7847
|
requestId: z.ZodUUID;
|
|
7778
7848
|
scope: z.ZodObject<{
|
|
@@ -16073,8 +16143,8 @@ declare const apiOperations: {
|
|
|
16073
16143
|
entity: "entity";
|
|
16074
16144
|
source: "source";
|
|
16075
16145
|
dimension: "dimension";
|
|
16076
|
-
entitlement: "entitlement";
|
|
16077
16146
|
resource: "resource";
|
|
16147
|
+
entitlement: "entitlement";
|
|
16078
16148
|
}>, z.ZodString]>;
|
|
16079
16149
|
after: z.ZodNullable<z.ZodObject<{
|
|
16080
16150
|
bucket: z.ZodISODateTime;
|
|
@@ -19893,61 +19963,6 @@ declare const apiOperations: {
|
|
|
19893
19963
|
}>>;
|
|
19894
19964
|
}, z.core.$strict>;
|
|
19895
19965
|
};
|
|
19896
|
-
readonly recordCouponRedemption: {
|
|
19897
|
-
readonly method: "POST";
|
|
19898
|
-
readonly path: "offers/redemptions";
|
|
19899
|
-
readonly permission: "billing:write";
|
|
19900
|
-
readonly audience: "server";
|
|
19901
|
-
/** A stable merchant event records paid Coupon use; this does not verify a provider or grant subscription access. */
|
|
19902
|
-
readonly request: z.ZodUnion<readonly [z.ZodObject<{
|
|
19903
|
-
productVersionId: z.ZodUUID;
|
|
19904
|
-
subscriptionId: z.ZodString;
|
|
19905
|
-
customerId: z.ZodUUID;
|
|
19906
|
-
eventId: z.ZodString;
|
|
19907
|
-
grantId: z.ZodUUID;
|
|
19908
|
-
occurredAt: z.ZodISODateTime;
|
|
19909
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
19910
|
-
merchandiseId: z.ZodUUID;
|
|
19911
|
-
customerId: z.ZodUUID;
|
|
19912
|
-
eventId: z.ZodString;
|
|
19913
|
-
grantId: z.ZodUUID;
|
|
19914
|
-
occurredAt: z.ZodISODateTime;
|
|
19915
|
-
}, z.core.$strict>]>;
|
|
19916
|
-
readonly response: z.ZodObject<{
|
|
19917
|
-
requestId: z.ZodUUID;
|
|
19918
|
-
scope: z.ZodObject<{
|
|
19919
|
-
projectId: z.ZodString;
|
|
19920
|
-
environment: z.ZodEnum<{
|
|
19921
|
-
sandbox: "sandbox";
|
|
19922
|
-
live: "live";
|
|
19923
|
-
}>;
|
|
19924
|
-
}, z.core.$strict>;
|
|
19925
|
-
receipt: z.ZodUnion<readonly [z.ZodObject<{
|
|
19926
|
-
productVersionId: z.ZodUUID;
|
|
19927
|
-
subscriptionId: z.ZodString;
|
|
19928
|
-
customerId: z.ZodUUID;
|
|
19929
|
-
eventId: z.ZodString;
|
|
19930
|
-
grantId: z.ZodUUID;
|
|
19931
|
-
occurredAt: z.ZodISODateTime;
|
|
19932
|
-
id: z.ZodUUID;
|
|
19933
|
-
couponId: z.ZodUUID;
|
|
19934
|
-
status: z.ZodLiteral<"redeemed">;
|
|
19935
|
-
source: z.ZodLiteral<"merchant">;
|
|
19936
|
-
recordedAt: z.ZodISODateTime;
|
|
19937
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
19938
|
-
merchandiseId: z.ZodUUID;
|
|
19939
|
-
customerId: z.ZodUUID;
|
|
19940
|
-
eventId: z.ZodString;
|
|
19941
|
-
grantId: z.ZodUUID;
|
|
19942
|
-
occurredAt: z.ZodISODateTime;
|
|
19943
|
-
id: z.ZodUUID;
|
|
19944
|
-
couponId: z.ZodUUID;
|
|
19945
|
-
status: z.ZodLiteral<"redeemed">;
|
|
19946
|
-
source: z.ZodLiteral<"merchant">;
|
|
19947
|
-
recordedAt: z.ZodISODateTime;
|
|
19948
|
-
}, z.core.$strict>]>;
|
|
19949
|
-
}, z.core.$strict>;
|
|
19950
|
-
};
|
|
19951
19966
|
};
|
|
19952
19967
|
type ApiOperation = keyof typeof apiOperations;
|
|
19953
19968
|
type ApiInput<K extends ApiOperation> = z.input<(typeof apiOperations)[K]["request"]>;
|