autumn-js 0.0.102 → 0.0.104
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/libraries/backend/better-auth.d.mts +28 -4
- package/dist/libraries/backend/better-auth.d.ts +28 -4
- package/dist/libraries/backend/better-auth.js +76 -83
- package/dist/libraries/backend/better-auth.mjs +7 -7
- package/dist/libraries/backend/{chunk-NW6B7QXB.mjs → chunk-2RZ2FZX2.mjs} +6 -6
- package/dist/libraries/backend/{chunk-33NT3WE5.mjs → chunk-3OLXYDCU.mjs} +1 -1
- package/dist/libraries/backend/{chunk-AKV5N4WO.mjs → chunk-5EKNB4IJ.mjs} +1 -1
- package/dist/libraries/backend/{chunk-CEZHD5H6.mjs → chunk-5H6HVCOP.mjs} +1 -1
- package/dist/libraries/backend/{chunk-J3L3OBSS.mjs → chunk-HHMIVOXX.mjs} +18 -1
- package/dist/libraries/backend/{chunk-6VS7TU7O.mjs → chunk-IOSEAUDJ.mjs} +57 -81
- package/dist/libraries/backend/{chunk-RA4AC56B.mjs → chunk-K7JGEYUX.mjs} +1 -1
- package/dist/libraries/backend/convex.js +73 -80
- package/dist/libraries/backend/convex.mjs +7 -7
- package/dist/libraries/backend/elysia.js +73 -80
- package/dist/libraries/backend/elysia.mjs +7 -7
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/express.js +73 -80
- package/dist/libraries/backend/express.mjs +7 -7
- package/dist/libraries/backend/fastify.js +73 -80
- package/dist/libraries/backend/fastify.mjs +7 -7
- package/dist/libraries/backend/hono.js +73 -80
- package/dist/libraries/backend/hono.mjs +7 -7
- package/dist/libraries/backend/next.js +284 -268
- package/dist/libraries/backend/next.mjs +216 -193
- package/dist/libraries/backend/react-router.js +73 -80
- package/dist/libraries/backend/react-router.mjs +7 -7
- package/dist/libraries/backend/{referralTypes-D1Q2i3mG.d.ts → referralTypes-CnYanpMd.d.ts} +205 -104
- package/dist/libraries/backend/{referralTypes-Dfg6if8j.d.mts → referralTypes-jA7MQ1y5.d.mts} +205 -104
- package/dist/libraries/backend/remix_dep.js +73 -80
- package/dist/libraries/backend/remix_dep.mjs +7 -7
- package/dist/libraries/backend/routes/backendRouter.js +73 -80
- package/dist/libraries/backend/routes/backendRouter.mjs +7 -7
- package/dist/libraries/backend/routes/entityRoutes.js +56 -80
- package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/genRoutes.js +73 -80
- package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/productRoutes.js +56 -80
- package/dist/libraries/backend/routes/productRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/referralRoutes.js +56 -80
- package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
- package/dist/libraries/backend/supabase.js +73 -80
- package/dist/libraries/backend/supabase.mjs +7 -7
- package/dist/libraries/backend/tanstack.js +73 -80
- package/dist/libraries/backend/tanstack.mjs +7 -7
- package/dist/libraries/backend/utils/backendRes.js +56 -80
- package/dist/libraries/backend/utils/backendRes.mjs +1 -1
- package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
- package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
- package/dist/libraries/backend/utils/withAuth.js +56 -80
- package/dist/libraries/backend/utils/withAuth.mjs +2 -2
- package/dist/libraries/react/AutumnContext.d.mts +5 -4
- package/dist/libraries/react/AutumnContext.d.ts +5 -4
- package/dist/libraries/react/AutumnContext.js +63 -82
- package/dist/libraries/react/AutumnContext.mjs +5 -5
- package/dist/libraries/react/BaseAutumnProvider.d.mts +5 -4
- package/dist/libraries/react/BaseAutumnProvider.d.ts +5 -4
- package/dist/libraries/react/BaseAutumnProvider.js +96 -111
- package/dist/libraries/react/BaseAutumnProvider.mjs +9 -9
- package/dist/libraries/react/{ReactAutumnClient-YzfxjqPK.d.mts → ReactAutumnClient-BGI56QI_.d.mts} +21 -10
- package/dist/libraries/react/{ReactAutumnClient-DBbq29Nn.d.ts → ReactAutumnClient-CEv9YGLM.d.ts} +21 -10
- package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.js +96 -111
- package/dist/libraries/react/ReactAutumnProvider.mjs +10 -10
- package/dist/libraries/react/attachTypes-Cexub7bN.d.ts +58 -0
- package/dist/libraries/react/attachTypes-DqI7qtXD.d.mts +58 -0
- package/dist/libraries/react/{chunk-VUBJ6JM3.mjs → chunk-253MTZP3.mjs} +7 -2
- package/dist/libraries/react/{chunk-5NDO7C7R.mjs → chunk-3N6WLQH3.mjs} +1 -1
- package/dist/libraries/react/{chunk-H2NGSCWI.mjs → chunk-473LVTGN.mjs} +2 -2
- package/dist/libraries/react/{chunk-LXSKONN2.mjs → chunk-4A53GN44.mjs} +5 -5
- package/dist/libraries/react/{chunk-TPKQIL3N.mjs → chunk-4BQDSIWM.mjs} +5 -8
- package/dist/libraries/react/{chunk-X6RY6VG5.mjs → chunk-4VXBAIPC.mjs} +2 -2
- package/dist/libraries/react/{chunk-OAWFFAKA.mjs → chunk-6EZVNJHQ.mjs} +6 -6
- package/dist/libraries/react/{chunk-3VHO7VUQ.mjs → chunk-ASL5VH2W.mjs} +4 -3
- package/dist/libraries/react/{chunk-QBBE72EF.mjs → chunk-CBPZVSMZ.mjs} +12 -7
- package/dist/libraries/react/chunk-CUWUAQML.mjs +179 -0
- package/dist/libraries/react/chunk-DJIRJJNG.mjs +34 -0
- package/dist/libraries/react/{chunk-ALIGIMSK.mjs → chunk-E5EYSQYJ.mjs} +65 -87
- package/dist/libraries/react/{chunk-5URK7LI3.mjs → chunk-EBQBPZCM.mjs} +3 -3
- package/dist/libraries/react/{chunk-AL3VJLFU.mjs → chunk-EV5RNY5U.mjs} +1 -1
- package/dist/libraries/react/chunk-G6NOGGDA.mjs +695 -0
- package/dist/libraries/react/{chunk-OAPUYXBO.mjs → chunk-KWNH6C27.mjs} +6 -6
- package/dist/libraries/react/{chunk-JI7WQ6AC.mjs → chunk-MNOH7Q3B.mjs} +2 -2
- package/dist/libraries/react/{chunk-SY5GNYZ7.mjs → chunk-P5MIFIIO.mjs} +2 -2
- package/dist/libraries/react/{chunk-T73WQC2X.mjs → chunk-PIENO233.mjs} +1 -1
- package/dist/libraries/react/chunk-QUO2CYKM.mjs +30 -0
- package/dist/libraries/react/{chunk-BCMBFJ7E.mjs → chunk-RCTILKK3.mjs} +70 -37
- package/dist/libraries/react/{chunk-ZVQKDPUP.mjs → chunk-RPEGNKJH.mjs} +3 -3
- package/dist/libraries/react/{chunk-SDMBKRAI.mjs → chunk-WAFSQH6N.mjs} +37 -37
- package/dist/libraries/react/{chunk-GQ3TAHSV.mjs → chunk-ZFIJI37N.mjs} +1 -1
- package/dist/libraries/react/{chunk-CE33P32V.mjs → chunk-ZITEHPEQ.mjs} +30 -24
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +5 -5
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +5 -5
- package/dist/libraries/react/client/ReactAutumnClient.js +63 -82
- package/dist/libraries/react/client/ReactAutumnClient.mjs +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientCompMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientCusMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientCusMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientEntityMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientEntityMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientGenMethods.d.mts +9 -7
- package/dist/libraries/react/client/clientGenMethods.d.ts +9 -7
- package/dist/libraries/react/client/clientGenMethods.js +8 -2
- package/dist/libraries/react/client/clientGenMethods.mjs +3 -1
- package/dist/libraries/react/client/clientProdMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientProdMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientReferralMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientReferralMethods.d.ts +5 -5
- package/dist/libraries/react/client/types/clientAttachTypes.d.mts +115 -0
- package/dist/libraries/react/client/types/clientAttachTypes.d.ts +115 -0
- package/dist/libraries/react/client/types/clientAttachTypes.js +68 -0
- package/dist/libraries/react/client/types/clientAttachTypes.mjs +42 -0
- package/dist/libraries/react/client/types/clientGenTypes.d.mts +10 -81
- package/dist/libraries/react/client/types/clientGenTypes.d.ts +10 -81
- package/dist/libraries/react/client/types/clientGenTypes.js +1 -24
- package/dist/libraries/react/client/types/clientGenTypes.mjs +1 -22
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.css +213 -4
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +5 -32
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +5 -32
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +720 -371
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +28 -31
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +3 -2
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +3 -2
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.js +70 -37
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.mjs +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.js +43 -43
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.mjs +5 -5
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.mts +3 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +3 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.js +12 -7
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.mjs +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +213 -4
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +794 -456
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +27 -24
- package/dist/libraries/react/components/ui/accordion.d.mts +9 -0
- package/dist/libraries/react/components/ui/accordion.d.ts +9 -0
- package/dist/libraries/react/components/ui/accordion.js +2721 -0
- package/dist/libraries/react/components/ui/accordion.mjs +15 -0
- package/dist/libraries/react/components/ui/button.d.mts +1 -1
- package/dist/libraries/react/components/ui/button.d.ts +1 -1
- package/dist/libraries/react/components/ui/button.js +3 -3
- package/dist/libraries/react/components/ui/button.mjs +2 -2
- package/dist/libraries/react/components/ui/dialog.js +43 -43
- package/dist/libraries/react/components/ui/dialog.mjs +3 -3
- package/dist/libraries/react/components/ui/input.d.mts +5 -0
- package/dist/libraries/react/components/ui/input.d.ts +5 -0
- package/dist/libraries/react/components/ui/input.js +2587 -0
- package/dist/libraries/react/components/ui/input.mjs +9 -0
- package/dist/libraries/react/components/ui/popover.d.mts +9 -0
- package/dist/libraries/react/components/ui/popover.d.ts +9 -0
- package/dist/libraries/react/components/ui/popover.js +2594 -0
- package/dist/libraries/react/components/ui/popover.mjs +15 -0
- package/dist/libraries/react/components/ui/switch.js +12 -12
- package/dist/libraries/react/components/ui/switch.mjs +3 -3
- package/dist/libraries/react/{cusTypes-CFofdxsA.d.ts → cusTypes-DCeNEQLu.d.mts} +30 -12
- package/dist/libraries/react/{cusTypes-CFofdxsA.d.mts → cusTypes-DCeNEQLu.d.ts} +30 -12
- package/dist/libraries/react/{entTypes-BhUZh8uE.d.ts → entTypes-BJD_Hxbp.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-BeWtfIqo.d.mts → entTypes-CJhJFCKD.d.mts} +1 -1
- package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
- package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
- package/dist/libraries/react/hooks/useAutumn.d.mts +21 -6
- package/dist/libraries/react/hooks/useAutumn.d.ts +21 -6
- package/dist/libraries/react/hooks/useAutumn.js +94 -110
- package/dist/libraries/react/hooks/useAutumn.mjs +8 -8
- package/dist/libraries/react/hooks/useAutumnBase.d.mts +24 -9
- package/dist/libraries/react/hooks/useAutumnBase.d.ts +24 -9
- package/dist/libraries/react/hooks/useAutumnBase.js +94 -110
- package/dist/libraries/react/hooks/useAutumnBase.mjs +7 -7
- package/dist/libraries/react/hooks/useCustomer.d.mts +7 -5
- package/dist/libraries/react/hooks/useCustomer.d.ts +7 -5
- package/dist/libraries/react/hooks/useCustomer.js +96 -111
- package/dist/libraries/react/hooks/useCustomer.mjs +9 -9
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +8 -5
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +8 -5
- package/dist/libraries/react/hooks/useCustomerBase.js +96 -111
- package/dist/libraries/react/hooks/useCustomerBase.mjs +8 -8
- package/dist/libraries/react/hooks/useEntity.d.mts +14 -7
- package/dist/libraries/react/hooks/useEntity.d.ts +14 -7
- package/dist/libraries/react/hooks/useEntity.js +94 -110
- package/dist/libraries/react/hooks/useEntity.mjs +9 -9
- package/dist/libraries/react/hooks/useEntityBase.d.mts +16 -7
- package/dist/libraries/react/hooks/useEntityBase.d.ts +16 -7
- package/dist/libraries/react/hooks/useEntityBase.js +94 -110
- package/dist/libraries/react/hooks/useEntityBase.mjs +8 -8
- package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.js +66 -88
- package/dist/libraries/react/hooks/usePricingTable.mjs +7 -7
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +6 -6
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +6 -6
- package/dist/libraries/react/hooks/usePricingTableBase.js +66 -88
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +6 -6
- package/dist/libraries/react/hooks/useProductsBase.js +63 -82
- package/dist/libraries/react/hooks/useProductsBase.mjs +5 -5
- package/dist/libraries/react/index.d.mts +217 -106
- package/dist/libraries/react/index.d.ts +217 -106
- package/dist/libraries/react/index.js +801 -463
- package/dist/libraries/react/index.mjs +792 -454
- package/dist/libraries/react/{response-CxMWdpyl.d.ts → response-Dek2TEnE.d.ts} +2 -25
- package/dist/libraries/react/{response-AGK9KlYm.d.mts → response-HZAWTgGp.d.mts} +2 -25
- package/dist/next/{AutumnProvider-Xl1mqxls.d.mts → AutumnProvider-CHFySjFm.d.mts} +30 -12
- package/dist/next/{AutumnProvider-Xl1mqxls.d.ts → AutumnProvider-CHFySjFm.d.ts} +30 -12
- package/dist/next/AutumnProvider.d.mts +1 -1
- package/dist/next/AutumnProvider.d.ts +1 -1
- package/dist/next/client/NextAutumnClient.d.mts +25 -14
- package/dist/next/client/NextAutumnClient.d.ts +25 -14
- package/dist/next/client/NextAutumnClient.js +13 -2
- package/dist/next/client/NextAutumnClient.mjs +13 -2
- package/dist/next/client/NextAutumnProvider.d.mts +1 -1
- package/dist/next/client/NextAutumnProvider.d.ts +1 -1
- package/dist/next/client/attachTypes-BL6x9Zbx.d.ts +58 -0
- package/dist/next/client/attachTypes-BPYeJ6E4.d.mts +58 -0
- package/dist/next/client/{clientGenTypes-D8f8BwMo.d.ts → clientAttachTypes-Dj6U8D7o.d.ts} +114 -96
- package/dist/next/client/{clientGenTypes-BcRfHmUS.d.mts → clientAttachTypes-fN66J754.d.mts} +114 -96
- package/dist/next/client/clientUtils.d.mts +2 -2
- package/dist/next/client/clientUtils.d.ts +2 -2
- package/dist/next/client/{cusTypes-Gh2wfcmj.d.mts → cusTypes-BoVZ2omf.d.mts} +30 -12
- package/dist/next/client/{cusTypes-Gh2wfcmj.d.ts → cusTypes-BoVZ2omf.d.ts} +30 -12
- package/dist/next/client/{entTypes-B_w6I3y-.d.ts → entTypes-BrHkjvC9.d.ts} +1 -1
- package/dist/next/client/{entTypes-C_xS1VPE.d.mts → entTypes-Li6ZrG0C.d.mts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +19 -5
- package/dist/next/client/hooks/useAutumn.d.ts +19 -5
- package/dist/next/client/hooks/useCustomer.d.mts +5 -4
- package/dist/next/client/hooks/useCustomer.d.ts +5 -4
- package/dist/next/client/hooks/useEntity.d.mts +12 -6
- package/dist/next/client/hooks/useEntity.d.ts +12 -6
- package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
- package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
- package/dist/next/client/types.d.mts +2 -2
- package/dist/next/client/types.d.ts +2 -2
- package/dist/next/index.d.mts +213 -107
- package/dist/next/index.d.ts +213 -107
- package/dist/next/server/auth/withNextAuth.d.mts +1 -1
- package/dist/next/server/auth/withNextAuth.d.ts +1 -1
- package/dist/next/server/componentActions.d.mts +1 -1
- package/dist/next/server/componentActions.d.ts +1 -1
- package/dist/next/server/cusActions.d.mts +185 -106
- package/dist/next/server/cusActions.d.ts +185 -106
- package/dist/next/server/{cusTypes-DVA6iu7V.d.mts → cusTypes-Bh_pVAJp.d.mts} +34 -12
- package/dist/next/server/{cusTypes-DVA6iu7V.d.ts → cusTypes-Bh_pVAJp.d.ts} +34 -12
- package/dist/next/server/genActions.d.mts +3 -4
- package/dist/next/server/genActions.d.ts +3 -4
- package/dist/sdk/index.d.mts +223 -137
- package/dist/sdk/index.d.ts +223 -137
- package/dist/sdk/index.js +55 -80
- package/dist/sdk/index.mjs +54 -81
- package/dist/styles/global.css +213 -4
- package/dist/utils/encryptUtils.js +56 -80
- package/dist/utils/encryptUtils.mjs +56 -80
- package/package.json +10 -15
- package/dist/libraries/react/chunk-LKV32IPT.mjs +0 -548
package/dist/sdk/index.d.mts
CHANGED
|
@@ -108,10 +108,17 @@ interface PriceTier {
|
|
|
108
108
|
to: number;
|
|
109
109
|
amount: number | "inf";
|
|
110
110
|
}
|
|
111
|
+
interface Feature {
|
|
112
|
+
id: string;
|
|
113
|
+
name: string;
|
|
114
|
+
type: "boolean" | "continuous_use" | "single_use" | "credit_system";
|
|
115
|
+
}
|
|
111
116
|
interface ProductItem {
|
|
117
|
+
type?: "feature" | "priced_feature" | "price";
|
|
112
118
|
feature_id?: string;
|
|
113
119
|
included_usage?: number | typeof Infinite;
|
|
114
120
|
interval?: ProductItemIntervalType;
|
|
121
|
+
feature?: Feature;
|
|
115
122
|
usage_model?: UsageModel;
|
|
116
123
|
price?: number;
|
|
117
124
|
billing_units?: number;
|
|
@@ -143,10 +150,12 @@ interface Product {
|
|
|
143
150
|
free_trial: FreeTrial | null;
|
|
144
151
|
scenario?: ProductScenario;
|
|
145
152
|
base_variant_id: string | null;
|
|
146
|
-
properties
|
|
147
|
-
is_free
|
|
148
|
-
is_one_off
|
|
149
|
-
interval_group
|
|
153
|
+
properties: {
|
|
154
|
+
is_free: boolean;
|
|
155
|
+
is_one_off: boolean;
|
|
156
|
+
interval_group: string;
|
|
157
|
+
has_trial: boolean;
|
|
158
|
+
has_prepaid: boolean;
|
|
150
159
|
};
|
|
151
160
|
display?: {
|
|
152
161
|
name?: string;
|
|
@@ -235,11 +244,20 @@ interface Customer {
|
|
|
235
244
|
features: Record<string, CustomerFeature>;
|
|
236
245
|
invoices?: CustomerInvoice[];
|
|
237
246
|
}
|
|
238
|
-
|
|
239
|
-
name
|
|
240
|
-
email
|
|
241
|
-
fingerprint
|
|
242
|
-
}
|
|
247
|
+
declare const CustomerDataSchema: z.ZodObject<{
|
|
248
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
249
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
250
|
+
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
251
|
+
}, "strip", z.ZodTypeAny, {
|
|
252
|
+
name?: string | null | undefined;
|
|
253
|
+
email?: string | null | undefined;
|
|
254
|
+
fingerprint?: string | null | undefined;
|
|
255
|
+
}, {
|
|
256
|
+
name?: string | null | undefined;
|
|
257
|
+
email?: string | null | undefined;
|
|
258
|
+
fingerprint?: string | null | undefined;
|
|
259
|
+
}>;
|
|
260
|
+
type CustomerData = z.infer<typeof CustomerDataSchema>;
|
|
243
261
|
interface GetCustomerParams {
|
|
244
262
|
expand?: CustomerExpandOption[];
|
|
245
263
|
}
|
|
@@ -294,99 +312,6 @@ interface CustomerInvoice {
|
|
|
294
312
|
hosted_invoice_url: string;
|
|
295
313
|
}
|
|
296
314
|
|
|
297
|
-
declare const AttachFeatureOptionsSchema: z.ZodObject<{
|
|
298
|
-
feature_id: z.ZodString;
|
|
299
|
-
quantity: z.ZodNumber;
|
|
300
|
-
}, "strip", z.ZodTypeAny, {
|
|
301
|
-
feature_id: string;
|
|
302
|
-
quantity: number;
|
|
303
|
-
}, {
|
|
304
|
-
feature_id: string;
|
|
305
|
-
quantity: number;
|
|
306
|
-
}>;
|
|
307
|
-
type AttachFeatureOptions = z.infer<typeof AttachFeatureOptionsSchema>;
|
|
308
|
-
declare const AttachParamsSchema: z.ZodObject<{
|
|
309
|
-
customer_id: z.ZodString;
|
|
310
|
-
product_id: z.ZodOptional<z.ZodString>;
|
|
311
|
-
entity_id: z.ZodOptional<z.ZodString>;
|
|
312
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
313
|
-
feature_id: z.ZodString;
|
|
314
|
-
quantity: z.ZodNumber;
|
|
315
|
-
}, "strip", z.ZodTypeAny, {
|
|
316
|
-
feature_id: string;
|
|
317
|
-
quantity: number;
|
|
318
|
-
}, {
|
|
319
|
-
feature_id: string;
|
|
320
|
-
quantity: number;
|
|
321
|
-
}>, "many">>;
|
|
322
|
-
product_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
323
|
-
free_trial: z.ZodOptional<z.ZodBoolean>;
|
|
324
|
-
success_url: z.ZodOptional<z.ZodString>;
|
|
325
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
326
|
-
force_checkout: z.ZodOptional<z.ZodBoolean>;
|
|
327
|
-
customer_data: z.ZodOptional<z.ZodAny>;
|
|
328
|
-
entity_data: z.ZodOptional<z.ZodAny>;
|
|
329
|
-
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
330
|
-
reward: z.ZodOptional<z.ZodString>;
|
|
331
|
-
}, "strip", z.ZodTypeAny, {
|
|
332
|
-
customer_id: string;
|
|
333
|
-
entity_id?: string | undefined;
|
|
334
|
-
options?: {
|
|
335
|
-
feature_id: string;
|
|
336
|
-
quantity: number;
|
|
337
|
-
}[] | undefined;
|
|
338
|
-
metadata?: Record<string, string> | undefined;
|
|
339
|
-
product_id?: string | undefined;
|
|
340
|
-
product_ids?: string[] | undefined;
|
|
341
|
-
free_trial?: boolean | undefined;
|
|
342
|
-
success_url?: string | undefined;
|
|
343
|
-
force_checkout?: boolean | undefined;
|
|
344
|
-
customer_data?: any;
|
|
345
|
-
entity_data?: any;
|
|
346
|
-
checkout_session_params?: Record<string, any> | undefined;
|
|
347
|
-
reward?: string | undefined;
|
|
348
|
-
}, {
|
|
349
|
-
customer_id: string;
|
|
350
|
-
entity_id?: string | undefined;
|
|
351
|
-
options?: {
|
|
352
|
-
feature_id: string;
|
|
353
|
-
quantity: number;
|
|
354
|
-
}[] | undefined;
|
|
355
|
-
metadata?: Record<string, string> | undefined;
|
|
356
|
-
product_id?: string | undefined;
|
|
357
|
-
product_ids?: string[] | undefined;
|
|
358
|
-
free_trial?: boolean | undefined;
|
|
359
|
-
success_url?: string | undefined;
|
|
360
|
-
force_checkout?: boolean | undefined;
|
|
361
|
-
customer_data?: any;
|
|
362
|
-
entity_data?: any;
|
|
363
|
-
checkout_session_params?: Record<string, any> | undefined;
|
|
364
|
-
reward?: string | undefined;
|
|
365
|
-
}>;
|
|
366
|
-
type AttachParams = z.infer<typeof AttachParamsSchema>;
|
|
367
|
-
declare const AttachResultSchema: z.ZodObject<{
|
|
368
|
-
checkout_url: z.ZodOptional<z.ZodString>;
|
|
369
|
-
customer_id: z.ZodString;
|
|
370
|
-
product_ids: z.ZodArray<z.ZodString, "many">;
|
|
371
|
-
code: z.ZodString;
|
|
372
|
-
message: z.ZodString;
|
|
373
|
-
customer_data: z.ZodOptional<z.ZodAny>;
|
|
374
|
-
}, "strip", z.ZodTypeAny, {
|
|
375
|
-
customer_id: string;
|
|
376
|
-
code: string;
|
|
377
|
-
message: string;
|
|
378
|
-
product_ids: string[];
|
|
379
|
-
customer_data?: any;
|
|
380
|
-
checkout_url?: string | undefined;
|
|
381
|
-
}, {
|
|
382
|
-
customer_id: string;
|
|
383
|
-
code: string;
|
|
384
|
-
message: string;
|
|
385
|
-
product_ids: string[];
|
|
386
|
-
customer_data?: any;
|
|
387
|
-
checkout_url?: string | undefined;
|
|
388
|
-
}>;
|
|
389
|
-
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
390
315
|
declare const CancelParamsSchema: z.ZodObject<{
|
|
391
316
|
customer_id: z.ZodString;
|
|
392
317
|
product_id: z.ZodString;
|
|
@@ -536,6 +461,197 @@ interface SetupPaymentResult {
|
|
|
536
461
|
url: string;
|
|
537
462
|
}
|
|
538
463
|
|
|
464
|
+
declare const AttachFeatureOptionsSchema: z.ZodObject<{
|
|
465
|
+
feature_id: z.ZodString;
|
|
466
|
+
quantity: z.ZodNumber;
|
|
467
|
+
}, "strip", z.ZodTypeAny, {
|
|
468
|
+
feature_id: string;
|
|
469
|
+
quantity: number;
|
|
470
|
+
}, {
|
|
471
|
+
feature_id: string;
|
|
472
|
+
quantity: number;
|
|
473
|
+
}>;
|
|
474
|
+
type AttachFeatureOptions = z.infer<typeof AttachFeatureOptionsSchema>;
|
|
475
|
+
declare const AttachParamsSchema: z.ZodObject<{
|
|
476
|
+
customer_id: z.ZodString;
|
|
477
|
+
product_id: z.ZodOptional<z.ZodString>;
|
|
478
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
479
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
480
|
+
feature_id: z.ZodString;
|
|
481
|
+
quantity: z.ZodNumber;
|
|
482
|
+
}, "strip", z.ZodTypeAny, {
|
|
483
|
+
feature_id: string;
|
|
484
|
+
quantity: number;
|
|
485
|
+
}, {
|
|
486
|
+
feature_id: string;
|
|
487
|
+
quantity: number;
|
|
488
|
+
}>, "many">>;
|
|
489
|
+
product_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
490
|
+
free_trial: z.ZodOptional<z.ZodBoolean>;
|
|
491
|
+
success_url: z.ZodOptional<z.ZodString>;
|
|
492
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
493
|
+
force_checkout: z.ZodOptional<z.ZodBoolean>;
|
|
494
|
+
customer_data: z.ZodOptional<z.ZodObject<{
|
|
495
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
496
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
497
|
+
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
498
|
+
}, "strip", z.ZodTypeAny, {
|
|
499
|
+
name?: string | null | undefined;
|
|
500
|
+
email?: string | null | undefined;
|
|
501
|
+
fingerprint?: string | null | undefined;
|
|
502
|
+
}, {
|
|
503
|
+
name?: string | null | undefined;
|
|
504
|
+
email?: string | null | undefined;
|
|
505
|
+
fingerprint?: string | null | undefined;
|
|
506
|
+
}>>;
|
|
507
|
+
entity_data: z.ZodOptional<z.ZodAny>;
|
|
508
|
+
checkout_session_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
509
|
+
reward: z.ZodOptional<z.ZodString>;
|
|
510
|
+
}, "strip", z.ZodTypeAny, {
|
|
511
|
+
customer_id: string;
|
|
512
|
+
entity_id?: string | undefined;
|
|
513
|
+
options?: {
|
|
514
|
+
feature_id: string;
|
|
515
|
+
quantity: number;
|
|
516
|
+
}[] | undefined;
|
|
517
|
+
metadata?: Record<string, string> | undefined;
|
|
518
|
+
product_id?: string | undefined;
|
|
519
|
+
product_ids?: string[] | undefined;
|
|
520
|
+
free_trial?: boolean | undefined;
|
|
521
|
+
success_url?: string | undefined;
|
|
522
|
+
force_checkout?: boolean | undefined;
|
|
523
|
+
customer_data?: {
|
|
524
|
+
name?: string | null | undefined;
|
|
525
|
+
email?: string | null | undefined;
|
|
526
|
+
fingerprint?: string | null | undefined;
|
|
527
|
+
} | undefined;
|
|
528
|
+
entity_data?: any;
|
|
529
|
+
checkout_session_params?: Record<string, any> | undefined;
|
|
530
|
+
reward?: string | undefined;
|
|
531
|
+
}, {
|
|
532
|
+
customer_id: string;
|
|
533
|
+
entity_id?: string | undefined;
|
|
534
|
+
options?: {
|
|
535
|
+
feature_id: string;
|
|
536
|
+
quantity: number;
|
|
537
|
+
}[] | undefined;
|
|
538
|
+
metadata?: Record<string, string> | undefined;
|
|
539
|
+
product_id?: string | undefined;
|
|
540
|
+
product_ids?: string[] | undefined;
|
|
541
|
+
free_trial?: boolean | undefined;
|
|
542
|
+
success_url?: string | undefined;
|
|
543
|
+
force_checkout?: boolean | undefined;
|
|
544
|
+
customer_data?: {
|
|
545
|
+
name?: string | null | undefined;
|
|
546
|
+
email?: string | null | undefined;
|
|
547
|
+
fingerprint?: string | null | undefined;
|
|
548
|
+
} | undefined;
|
|
549
|
+
entity_data?: any;
|
|
550
|
+
checkout_session_params?: Record<string, any> | undefined;
|
|
551
|
+
reward?: string | undefined;
|
|
552
|
+
}>;
|
|
553
|
+
type AttachParams = z.infer<typeof AttachParamsSchema>;
|
|
554
|
+
declare const AttachResultSchema: z.ZodObject<{
|
|
555
|
+
checkout_url: z.ZodOptional<z.ZodString>;
|
|
556
|
+
customer_id: z.ZodString;
|
|
557
|
+
product_ids: z.ZodArray<z.ZodString, "many">;
|
|
558
|
+
code: z.ZodString;
|
|
559
|
+
message: z.ZodString;
|
|
560
|
+
customer_data: z.ZodOptional<z.ZodAny>;
|
|
561
|
+
}, "strip", z.ZodTypeAny, {
|
|
562
|
+
customer_id: string;
|
|
563
|
+
code: string;
|
|
564
|
+
message: string;
|
|
565
|
+
product_ids: string[];
|
|
566
|
+
customer_data?: any;
|
|
567
|
+
checkout_url?: string | undefined;
|
|
568
|
+
}, {
|
|
569
|
+
customer_id: string;
|
|
570
|
+
code: string;
|
|
571
|
+
message: string;
|
|
572
|
+
product_ids: string[];
|
|
573
|
+
customer_data?: any;
|
|
574
|
+
checkout_url?: string | undefined;
|
|
575
|
+
}>;
|
|
576
|
+
type AttachResult = z.infer<typeof AttachResultSchema>;
|
|
577
|
+
declare const CheckoutParamsSchema: z.ZodObject<{
|
|
578
|
+
customer_id: z.ZodString;
|
|
579
|
+
product_id: z.ZodString;
|
|
580
|
+
entity_id: z.ZodOptional<z.ZodString>;
|
|
581
|
+
success_url: z.ZodOptional<z.ZodString>;
|
|
582
|
+
customer_data: z.ZodOptional<z.ZodObject<{
|
|
583
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
584
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
585
|
+
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
586
|
+
}, "strip", z.ZodTypeAny, {
|
|
587
|
+
name?: string | null | undefined;
|
|
588
|
+
email?: string | null | undefined;
|
|
589
|
+
fingerprint?: string | null | undefined;
|
|
590
|
+
}, {
|
|
591
|
+
name?: string | null | undefined;
|
|
592
|
+
email?: string | null | undefined;
|
|
593
|
+
fingerprint?: string | null | undefined;
|
|
594
|
+
}>>;
|
|
595
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
596
|
+
feature_id: z.ZodString;
|
|
597
|
+
quantity: z.ZodNumber;
|
|
598
|
+
}, "strip", z.ZodTypeAny, {
|
|
599
|
+
feature_id: string;
|
|
600
|
+
quantity: number;
|
|
601
|
+
}, {
|
|
602
|
+
feature_id: string;
|
|
603
|
+
quantity: number;
|
|
604
|
+
}>, "many">>;
|
|
605
|
+
}, "strip", z.ZodTypeAny, {
|
|
606
|
+
customer_id: string;
|
|
607
|
+
product_id: string;
|
|
608
|
+
entity_id?: string | undefined;
|
|
609
|
+
options?: {
|
|
610
|
+
feature_id: string;
|
|
611
|
+
quantity: number;
|
|
612
|
+
}[] | undefined;
|
|
613
|
+
success_url?: string | undefined;
|
|
614
|
+
customer_data?: {
|
|
615
|
+
name?: string | null | undefined;
|
|
616
|
+
email?: string | null | undefined;
|
|
617
|
+
fingerprint?: string | null | undefined;
|
|
618
|
+
} | undefined;
|
|
619
|
+
}, {
|
|
620
|
+
customer_id: string;
|
|
621
|
+
product_id: string;
|
|
622
|
+
entity_id?: string | undefined;
|
|
623
|
+
options?: {
|
|
624
|
+
feature_id: string;
|
|
625
|
+
quantity: number;
|
|
626
|
+
}[] | undefined;
|
|
627
|
+
success_url?: string | undefined;
|
|
628
|
+
customer_data?: {
|
|
629
|
+
name?: string | null | undefined;
|
|
630
|
+
email?: string | null | undefined;
|
|
631
|
+
fingerprint?: string | null | undefined;
|
|
632
|
+
} | undefined;
|
|
633
|
+
}>;
|
|
634
|
+
type CheckoutParams = z.infer<typeof CheckoutParamsSchema>;
|
|
635
|
+
type CheckoutResult = {
|
|
636
|
+
url?: string;
|
|
637
|
+
customer_id: string;
|
|
638
|
+
has_prorations: boolean;
|
|
639
|
+
lines: {
|
|
640
|
+
description: string;
|
|
641
|
+
amount: number;
|
|
642
|
+
item: ProductItem;
|
|
643
|
+
}[];
|
|
644
|
+
total: number;
|
|
645
|
+
currency: string;
|
|
646
|
+
options: AttachFeatureOptions[];
|
|
647
|
+
product: Product;
|
|
648
|
+
current_product: Product;
|
|
649
|
+
next_cycle?: {
|
|
650
|
+
starts_at: number;
|
|
651
|
+
total: number;
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
|
|
539
655
|
type Success<T> = {
|
|
540
656
|
data: T;
|
|
541
657
|
error: null;
|
|
@@ -576,7 +692,7 @@ declare class Autumn {
|
|
|
576
692
|
create: (params?: CreateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
577
693
|
update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
578
694
|
delete: (id: string) => Promise<Result<Customer, AutumnError>>;
|
|
579
|
-
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<
|
|
695
|
+
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
|
|
580
696
|
};
|
|
581
697
|
static products: {
|
|
582
698
|
get: (id: string) => Promise<Result<Product, AutumnError>>;
|
|
@@ -599,7 +715,7 @@ declare class Autumn {
|
|
|
599
715
|
create: (params?: CreateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
600
716
|
update: (id: string, params: UpdateCustomerParams) => Promise<Result<Customer, AutumnError>>;
|
|
601
717
|
delete: (id: string) => Promise<Result<Customer, AutumnError>>;
|
|
602
|
-
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<
|
|
718
|
+
billingPortal: (id: string, params?: BillingPortalParams) => Promise<Result<BillingPortalResult, AutumnError>>;
|
|
603
719
|
};
|
|
604
720
|
products: {
|
|
605
721
|
get: (id: string) => Promise<Result<Product, AutumnError>>;
|
|
@@ -617,6 +733,8 @@ declare class Autumn {
|
|
|
617
733
|
createCode: (params: CreateReferralCodeParams) => Promise<Result<any, AutumnError>>;
|
|
618
734
|
redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<any, AutumnError>>;
|
|
619
735
|
};
|
|
736
|
+
static checkout: (params: CheckoutParams) => Promise<Result<CheckoutResult, AutumnError>>;
|
|
737
|
+
checkout(params: CheckoutParams): Promise<Result<CheckoutResult, AutumnError>>;
|
|
620
738
|
static attach: (params: AttachParams) => Promise<Result<{
|
|
621
739
|
customer_id: string;
|
|
622
740
|
code: string;
|
|
@@ -646,40 +764,8 @@ declare class Autumn {
|
|
|
646
764
|
product_id: string;
|
|
647
765
|
success: boolean;
|
|
648
766
|
}, AutumnError>>;
|
|
649
|
-
/**
|
|
650
|
-
* @deprecated This method is deprecated and will be removed in a future version.
|
|
651
|
-
* Please use the new check() method instead.
|
|
652
|
-
*/
|
|
653
|
-
static entitled: (params: CheckParams) => Promise<Result<CheckResult, AutumnError>>;
|
|
654
|
-
/**
|
|
655
|
-
* @deprecated This method is deprecated and will be removed in a future version.
|
|
656
|
-
* Please use the new check() method instead.
|
|
657
|
-
*/
|
|
658
|
-
entitled(params: CheckParams): Promise<Result<CheckResult, AutumnError>>;
|
|
659
767
|
static check: (params: CheckParams) => Promise<Result<CheckResult, AutumnError>>;
|
|
660
768
|
check(params: CheckParams): Promise<Result<CheckResult, AutumnError>>;
|
|
661
|
-
/**
|
|
662
|
-
* @deprecated This method is deprecated and will be removed in a future version.
|
|
663
|
-
* Please use the new track() method instead.
|
|
664
|
-
*/
|
|
665
|
-
static event: (params: TrackParams) => Promise<Result<{
|
|
666
|
-
customer_id: string;
|
|
667
|
-
code: string;
|
|
668
|
-
id: string;
|
|
669
|
-
feature_id?: string | undefined;
|
|
670
|
-
event_name?: string | undefined;
|
|
671
|
-
}, AutumnError>>;
|
|
672
|
-
/**
|
|
673
|
-
* @deprecated This method is deprecated and will be removed in a future version.
|
|
674
|
-
* Please use the new track() method instead.
|
|
675
|
-
*/
|
|
676
|
-
event(params: TrackParams): Promise<Result<{
|
|
677
|
-
customer_id: string;
|
|
678
|
-
code: string;
|
|
679
|
-
id: string;
|
|
680
|
-
feature_id?: string | undefined;
|
|
681
|
-
event_name?: string | undefined;
|
|
682
|
-
}, AutumnError>>;
|
|
683
769
|
static track: (params: TrackParams) => Promise<Result<{
|
|
684
770
|
customer_id: string;
|
|
685
771
|
code: string;
|
|
@@ -796,4 +882,4 @@ interface RedeemReferralCodeResult {
|
|
|
796
882
|
applied: boolean;
|
|
797
883
|
}
|
|
798
884
|
|
|
799
|
-
export { AppEnv, type AttachFeatureOptions, AttachFeatureOptionsSchema, type AttachParams, AttachParamsSchema, type AttachResult, AttachResultSchema, Autumn, AutumnError, type AutumnPromise, type BillingPortalParams, BillingPortalParamsSchema, type BillingPortalResult, type CancelParams, CancelParamsSchema, type CancelResult, CancelResultSchema, type CheckFeaturePreview, type CheckFeatureResult, type CheckFeatureScenario, type CheckParams, CheckParamsSchema, type CheckProductPreview, type CheckProductResult, type CheckResult, type CoreCustomerFeature, type CreateCustomerParams, CreateCustomerParamsSchema, type CreateEntityParams, type CreateEntityResult, type CreateProductParams, type CreateReferralCodeParams, CreateReferralCodeParamsSchema, type CreateReferralCodeResult, type Customer, type CustomerData, CustomerExpandEnum, type CustomerExpandOption, type CustomerFeature, type CustomerInvoice, type CustomerProduct, type DeleteEntityResult, type Entity, type EntityData, EntityDataSchema, type EntityExpandOption, type ErrorResponse, type FreeTrial, FreeTrialDuration, type GetCustomerParams, type GetEntityParams, type GetPricingTableParams, Infinite, type ListProductsParams, type PriceTier, type PricingTableProduct, type Product, type ProductItem, ProductItemInterval, type ProductItemIntervalType, type ProductScenario, ProductStatus, type RedeemReferralCodeParams, RedeemReferralCodeParamsSchema, type RedeemReferralCodeResult, type SetupPaymentParams, type SetupPaymentResult, type TrackParams, TrackParamsSchema, type TrackResult, TrackResultSchema, type UpdateCustomerParams, UsageModel, type UsageModelType, type UsageParams, type UsageResult, fetchPricingTable, toContainerResult };
|
|
885
|
+
export { AppEnv, type AttachFeatureOptions, AttachFeatureOptionsSchema, type AttachParams, AttachParamsSchema, type AttachResult, AttachResultSchema, Autumn, AutumnError, type AutumnPromise, type BillingPortalParams, BillingPortalParamsSchema, type BillingPortalResult, type CancelParams, CancelParamsSchema, type CancelResult, CancelResultSchema, type CheckFeaturePreview, type CheckFeatureResult, type CheckFeatureScenario, type CheckParams, CheckParamsSchema, type CheckProductPreview, type CheckProductResult, type CheckResult, type CheckoutParams, CheckoutParamsSchema, type CheckoutResult, type CoreCustomerFeature, type CreateCustomerParams, CreateCustomerParamsSchema, type CreateEntityParams, type CreateEntityResult, type CreateProductParams, type CreateReferralCodeParams, CreateReferralCodeParamsSchema, type CreateReferralCodeResult, type Customer, type CustomerData, CustomerDataSchema, CustomerExpandEnum, type CustomerExpandOption, type CustomerFeature, type CustomerInvoice, type CustomerProduct, type DeleteEntityResult, type Entity, type EntityData, EntityDataSchema, type EntityExpandOption, type ErrorResponse, type Feature, type FreeTrial, FreeTrialDuration, type GetCustomerParams, type GetEntityParams, type GetPricingTableParams, Infinite, type ListProductsParams, type PriceTier, type PricingTableProduct, type Product, type ProductItem, ProductItemInterval, type ProductItemIntervalType, type ProductScenario, ProductStatus, type RedeemReferralCodeParams, RedeemReferralCodeParamsSchema, type RedeemReferralCodeResult, type SetupPaymentParams, type SetupPaymentResult, type TrackParams, TrackParamsSchema, type TrackResult, TrackResultSchema, type UpdateCustomerParams, UsageModel, type UsageModelType, type UsageParams, type UsageResult, fetchPricingTable, toContainerResult };
|