autumn-js 1.2.3 → 1.2.5
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/backend/adapters/express.d.mts +1 -1
- package/dist/backend/adapters/express.d.ts +1 -1
- package/dist/backend/adapters/express.js +31 -16
- package/dist/backend/adapters/express.mjs +6 -6
- package/dist/backend/adapters/fetch.d.mts +1 -1
- package/dist/backend/adapters/fetch.d.ts +1 -1
- package/dist/backend/adapters/fetch.js +31 -16
- package/dist/backend/adapters/fetch.mjs +6 -6
- package/dist/backend/adapters/hono.d.mts +1 -1
- package/dist/backend/adapters/hono.d.ts +1 -1
- package/dist/backend/adapters/hono.js +31 -16
- package/dist/backend/adapters/hono.mjs +6 -6
- package/dist/backend/adapters/index.d.mts +1 -1
- package/dist/backend/adapters/index.d.ts +1 -1
- package/dist/backend/adapters/index.js +31 -16
- package/dist/backend/adapters/index.mjs +9 -9
- package/dist/backend/adapters/next.d.mts +1 -1
- package/dist/backend/adapters/next.d.ts +1 -1
- package/dist/backend/adapters/next.js +31 -16
- package/dist/backend/adapters/next.mjs +6 -6
- package/dist/backend/{authTypes-B5VxPaMo.d.mts → authTypes-Bdpu8A6G.d.mts} +4 -0
- package/dist/backend/{authTypes-B5VxPaMo.d.ts → authTypes-Bdpu8A6G.d.ts} +4 -0
- package/dist/backend/{chunk-N62MDT7U.mjs → chunk-3RN6TO3T.mjs} +4 -2
- package/dist/backend/{chunk-IUFWKMTJ.mjs → chunk-4VEVV4YT.mjs} +1 -1
- package/dist/backend/{chunk-ETHQSA52.mjs → chunk-CZ3GSCGC.mjs} +2 -2
- package/dist/backend/{chunk-OLHAIHAX.mjs → chunk-DYVMFOAC.mjs} +2 -2
- package/dist/backend/{chunk-2YEMC57K.mjs → chunk-J2P4XIDE.mjs} +1 -1
- package/dist/backend/{chunk-CCEZMERA.mjs → chunk-LKQP4KZQ.mjs} +27 -14
- package/dist/backend/{chunk-IFFSWLXT.mjs → chunk-ROGSCIQY.mjs} +1 -1
- package/dist/backend/{chunk-FRKRWJ5S.mjs → chunk-VDUNE74N.mjs} +1 -1
- package/dist/backend/core/handlers/coreHandler.d.mts +2 -2
- package/dist/backend/core/handlers/coreHandler.d.ts +2 -2
- package/dist/backend/core/handlers/coreHandler.js +31 -16
- package/dist/backend/core/handlers/coreHandler.mjs +4 -4
- package/dist/backend/core/handlers/executeRoute.d.mts +2 -2
- package/dist/backend/core/handlers/executeRoute.d.ts +2 -2
- package/dist/backend/core/handlers/executeRoute.mjs +1 -1
- package/dist/backend/core/handlers/handleRouteByName.d.mts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +31 -16
- package/dist/backend/core/handlers/handleRouteByName.mjs +4 -4
- package/dist/backend/core/handlers/index.d.mts +2 -2
- package/dist/backend/core/handlers/index.d.ts +2 -2
- package/dist/backend/core/handlers/index.js +31 -16
- package/dist/backend/core/handlers/index.mjs +5 -5
- package/dist/backend/core/handlers/resolveIdentity.d.mts +1 -1
- package/dist/backend/core/handlers/resolveIdentity.d.ts +1 -1
- package/dist/backend/core/index.d.mts +2 -2
- package/dist/backend/core/index.d.ts +2 -2
- package/dist/backend/core/index.js +31 -16
- package/dist/backend/core/index.mjs +7 -7
- package/dist/backend/core/routes/index.d.mts +2 -2
- package/dist/backend/core/routes/index.d.ts +2 -2
- package/dist/backend/core/routes/index.js +4 -2
- package/dist/backend/core/routes/index.mjs +2 -2
- package/dist/backend/core/routes/routeBuilder.d.mts +2 -2
- package/dist/backend/core/routes/routeBuilder.d.ts +2 -2
- package/dist/backend/core/routes/routeConfigs.d.mts +2 -2
- package/dist/backend/core/routes/routeConfigs.d.ts +2 -2
- package/dist/backend/core/routes/routeConfigs.js +4 -2
- package/dist/backend/core/routes/routeConfigs.mjs +2 -2
- package/dist/backend/core/types/authTypes.d.mts +1 -1
- package/dist/backend/core/types/authTypes.d.ts +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +2 -2
- package/dist/backend/core/types/handlerTypes.d.ts +2 -2
- package/dist/backend/core/types/index.d.mts +2 -2
- package/dist/backend/core/types/index.d.ts +2 -2
- package/dist/backend/core/types/routeTypes.d.mts +2 -2
- package/dist/backend/core/types/routeTypes.d.ts +2 -2
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +4 -4
- package/dist/backend/index.d.ts +4 -4
- package/dist/backend/index.js +31 -16
- package/dist/backend/index.mjs +7 -7
- package/dist/backend/{routeTypes-BkSHRiCI.d.ts → routeTypes-CmW3_-dX.d.ts} +22 -1
- package/dist/backend/{routeTypes-C1hUtfD8.d.mts → routeTypes-ODZ6pr_U.d.mts} +22 -1
- package/dist/better-auth/{chunk-6J74ZVNY.mjs → chunk-3GJ25EX7.mjs} +28 -15
- package/dist/better-auth/{chunk-2PRVJULJ.mjs → chunk-CG3LL2TQ.mjs} +4 -2
- package/dist/better-auth/{chunk-IY7FPOWF.mjs → chunk-UCMJFTKD.mjs} +1 -1
- package/dist/better-auth/index.js +31 -16
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/types.d.mts +4 -0
- package/dist/better-auth/types.d.ts +4 -0
- package/dist/better-auth/utils/createAutumnEndpoint.js +4 -2
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +31 -16
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +31 -16
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +2 -2
- package/dist/react/AutumnContext.d.ts +2 -2
- package/dist/react/AutumnProvider.d.mts +2 -1
- package/dist/react/AutumnProvider.d.ts +2 -1
- package/dist/react/AutumnProvider.js +18 -8
- package/dist/react/AutumnProvider.mjs +3 -3
- package/dist/react/{chunk-R7I3UPL4.mjs → chunk-26CKSAPZ.mjs} +6 -4
- package/dist/react/{chunk-QEJLIFBC.mjs → chunk-QOFGTXEX.mjs} +3 -2
- package/dist/react/{chunk-M34U5F2H.mjs → chunk-SCDO26YC.mjs} +11 -4
- package/dist/react/client/AutumnClient.d.mts +3 -2
- package/dist/react/client/AutumnClient.d.ts +3 -2
- package/dist/react/client/AutumnClient.js +13 -5
- package/dist/react/client/AutumnClient.mjs +2 -2
- package/dist/react/client/IAutumnClient.d.mts +2 -2
- package/dist/react/client/IAutumnClient.d.ts +2 -2
- package/dist/react/client/index.d.mts +2 -2
- package/dist/react/client/index.d.ts +2 -2
- package/dist/react/client/index.js +13 -5
- package/dist/react/client/index.mjs +2 -2
- package/dist/react/client/internal/httpClient.d.mts +1 -0
- package/dist/react/client/internal/httpClient.d.ts +1 -0
- package/dist/react/client/internal/httpClient.js +11 -4
- package/dist/react/client/internal/httpClient.mjs +1 -1
- package/dist/react/{customer-CJSDgQMF.d.ts → customer-BPHnUS4N.d.ts} +4 -0
- package/dist/react/{customer-Bb7J-_p_.d.mts → customer-DDRi84Zq.d.mts} +4 -0
- package/dist/react/hooks/index.d.mts +2 -2
- package/dist/react/hooks/index.d.ts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +1 -1
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.mts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.ts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
- package/dist/react/hooks/useCustomer.d.mts +2 -2
- package/dist/react/hooks/useCustomer.d.ts +2 -2
- package/dist/react/hooks/useEntity.d.mts +1 -1
- package/dist/react/hooks/useEntity.d.ts +1 -1
- package/dist/react/hooks/useListEvents.d.mts +1 -1
- package/dist/react/hooks/useListEvents.d.ts +1 -1
- package/dist/react/hooks/useListPlans.d.mts +1 -1
- package/dist/react/hooks/useListPlans.d.ts +1 -1
- package/dist/react/hooks/useReferrals.d.mts +1 -1
- package/dist/react/hooks/useReferrals.d.ts +1 -1
- package/dist/react/index.d.mts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +18 -8
- package/dist/react/index.mjs +3 -3
- package/dist/react/{params-CheyAQ0-.d.mts → params-BUYYymIy.d.mts} +5 -0
- package/dist/react/{params-yCtJ7lOA.d.ts → params-Dpki_MJA.d.ts} +5 -0
- package/dist/sdk/index.d.mts +30 -2
- package/dist/sdk/index.d.ts +30 -2
- package/dist/sdk/index.js +27 -14
- package/dist/sdk/index.mjs +27 -14
- package/package.json +1 -1
|
@@ -81,8 +81,8 @@ var SDK_METADATA = {
|
|
|
81
81
|
language: "typescript",
|
|
82
82
|
openapiDocVersion: "2.2.0",
|
|
83
83
|
sdkVersion: "0.10.17",
|
|
84
|
-
genVersion: "2.879.
|
|
85
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.
|
|
84
|
+
genVersion: "2.879.6",
|
|
85
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.6 2.2.0 @useautumn/sdk"
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
// ../sdk/src/lib/http.ts
|
|
@@ -2334,6 +2334,7 @@ var ProductScenario = {
|
|
|
2334
2334
|
New: "new",
|
|
2335
2335
|
Renew: "renew",
|
|
2336
2336
|
Upgrade: "upgrade",
|
|
2337
|
+
UpdatePrepaidQuantity: "update_prepaid_quantity",
|
|
2337
2338
|
Downgrade: "downgrade",
|
|
2338
2339
|
Cancel: "cancel",
|
|
2339
2340
|
Expired: "expired",
|
|
@@ -2699,12 +2700,14 @@ var CustomerDataAutoTopup$outboundSchema = z15.pipe(
|
|
|
2699
2700
|
quantity: z15.number(),
|
|
2700
2701
|
purchaseLimit: z15.optional(
|
|
2701
2702
|
z15.lazy(() => CustomerDataPurchaseLimit$outboundSchema)
|
|
2702
|
-
)
|
|
2703
|
+
),
|
|
2704
|
+
invoiceMode: z15.optional(z15.boolean())
|
|
2703
2705
|
}),
|
|
2704
2706
|
z15.transform((v) => {
|
|
2705
2707
|
return remap(v, {
|
|
2706
2708
|
featureId: "feature_id",
|
|
2707
|
-
purchaseLimit: "purchase_limit"
|
|
2709
|
+
purchaseLimit: "purchase_limit",
|
|
2710
|
+
invoiceMode: "invoice_mode"
|
|
2708
2711
|
});
|
|
2709
2712
|
})
|
|
2710
2713
|
);
|
|
@@ -4058,12 +4061,14 @@ var CustomerAutoTopup$inboundSchema = z21.pipe(
|
|
|
4058
4061
|
quantity: number2(),
|
|
4059
4062
|
purchase_limit: optional2(
|
|
4060
4063
|
z21.lazy(() => CustomerPurchaseLimit$inboundSchema)
|
|
4061
|
-
)
|
|
4064
|
+
),
|
|
4065
|
+
invoice_mode: optional2(boolean2())
|
|
4062
4066
|
}),
|
|
4063
4067
|
z21.transform((v) => {
|
|
4064
4068
|
return remap(v, {
|
|
4065
4069
|
"feature_id": "featureId",
|
|
4066
|
-
"purchase_limit": "purchaseLimit"
|
|
4070
|
+
"purchase_limit": "purchaseLimit",
|
|
4071
|
+
"invoice_mode": "invoiceMode"
|
|
4067
4072
|
});
|
|
4068
4073
|
})
|
|
4069
4074
|
);
|
|
@@ -4833,12 +4838,14 @@ var GetOrCreateCustomerAutoTopup$outboundSchema = z30.pipe(
|
|
|
4833
4838
|
quantity: z30.number(),
|
|
4834
4839
|
purchaseLimit: z30.optional(
|
|
4835
4840
|
z30.lazy(() => GetOrCreateCustomerPurchaseLimit$outboundSchema)
|
|
4836
|
-
)
|
|
4841
|
+
),
|
|
4842
|
+
invoiceMode: z30.optional(z30.boolean())
|
|
4837
4843
|
}),
|
|
4838
4844
|
z30.transform((v) => {
|
|
4839
4845
|
return remap(v, {
|
|
4840
4846
|
featureId: "feature_id",
|
|
4841
|
-
purchaseLimit: "purchase_limit"
|
|
4847
|
+
purchaseLimit: "purchase_limit",
|
|
4848
|
+
invoiceMode: "invoice_mode"
|
|
4842
4849
|
});
|
|
4843
4850
|
})
|
|
4844
4851
|
);
|
|
@@ -5323,12 +5330,14 @@ var ListCustomersAutoTopup$inboundSchema = z32.pipe(
|
|
|
5323
5330
|
quantity: number2(),
|
|
5324
5331
|
purchase_limit: optional2(
|
|
5325
5332
|
z32.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
|
|
5326
|
-
)
|
|
5333
|
+
),
|
|
5334
|
+
invoice_mode: optional2(boolean2())
|
|
5327
5335
|
}),
|
|
5328
5336
|
z32.transform((v) => {
|
|
5329
5337
|
return remap(v, {
|
|
5330
5338
|
"feature_id": "featureId",
|
|
5331
|
-
"purchase_limit": "purchaseLimit"
|
|
5339
|
+
"purchase_limit": "purchaseLimit",
|
|
5340
|
+
"invoice_mode": "invoiceMode"
|
|
5332
5341
|
});
|
|
5333
5342
|
})
|
|
5334
5343
|
);
|
|
@@ -8563,12 +8572,14 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z45.pipe(
|
|
|
8563
8572
|
quantity: z45.number(),
|
|
8564
8573
|
purchaseLimit: z45.optional(
|
|
8565
8574
|
z45.lazy(() => UpdateCustomerPurchaseLimitRequest$outboundSchema)
|
|
8566
|
-
)
|
|
8575
|
+
),
|
|
8576
|
+
invoiceMode: z45.optional(z45.boolean())
|
|
8567
8577
|
}),
|
|
8568
8578
|
z45.transform((v) => {
|
|
8569
8579
|
return remap(v, {
|
|
8570
8580
|
featureId: "feature_id",
|
|
8571
|
-
purchaseLimit: "purchase_limit"
|
|
8581
|
+
purchaseLimit: "purchase_limit",
|
|
8582
|
+
invoiceMode: "invoice_mode"
|
|
8572
8583
|
});
|
|
8573
8584
|
})
|
|
8574
8585
|
);
|
|
@@ -8684,12 +8695,14 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z45.pipe(
|
|
|
8684
8695
|
quantity: number2(),
|
|
8685
8696
|
purchase_limit: optional2(
|
|
8686
8697
|
z45.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
|
|
8687
|
-
)
|
|
8698
|
+
),
|
|
8699
|
+
invoice_mode: optional2(boolean2())
|
|
8688
8700
|
}),
|
|
8689
8701
|
z45.transform((v) => {
|
|
8690
8702
|
return remap(v, {
|
|
8691
8703
|
"feature_id": "featureId",
|
|
8692
|
-
"purchase_limit": "purchaseLimit"
|
|
8704
|
+
"purchase_limit": "purchaseLimit",
|
|
8705
|
+
"invoice_mode": "invoiceMode"
|
|
8693
8706
|
});
|
|
8694
8707
|
})
|
|
8695
8708
|
);
|
|
@@ -14602,7 +14615,8 @@ var getOrCreateCustomerAutoTopupOutboundSchema = import_v44.z.object({
|
|
|
14602
14615
|
enabled: import_v44.z.boolean(),
|
|
14603
14616
|
threshold: import_v44.z.number(),
|
|
14604
14617
|
quantity: import_v44.z.number(),
|
|
14605
|
-
purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional()
|
|
14618
|
+
purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional(),
|
|
14619
|
+
invoice_mode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
14606
14620
|
});
|
|
14607
14621
|
var getOrCreateCustomerSpendLimitOutboundSchema = import_v44.z.object({
|
|
14608
14622
|
feature_id: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
|
|
@@ -14660,7 +14674,8 @@ var getOrCreateCustomerAutoTopupSchema = import_v44.z.object({
|
|
|
14660
14674
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
14661
14675
|
threshold: import_v44.z.number(),
|
|
14662
14676
|
quantity: import_v44.z.number(),
|
|
14663
|
-
purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional()
|
|
14677
|
+
purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional(),
|
|
14678
|
+
invoiceMode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
14664
14679
|
});
|
|
14665
14680
|
var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema3;
|
|
14666
14681
|
var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-4VEVV4YT.mjs";
|
|
4
4
|
import {
|
|
5
5
|
autumnHandler as autumnHandler2
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-ROGSCIQY.mjs";
|
|
7
7
|
import {
|
|
8
8
|
autumnHandler as autumnHandler3
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-J2P4XIDE.mjs";
|
|
10
10
|
import {
|
|
11
11
|
autumnHandler as autumnHandler4
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-VDUNE74N.mjs";
|
|
13
13
|
import "../chunk-WYDGEDEU.mjs";
|
|
14
14
|
import "../chunk-VXND2UDT.mjs";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-DYVMFOAC.mjs";
|
|
16
|
+
import "../chunk-CZ3GSCGC.mjs";
|
|
17
17
|
import "../chunk-TSF4YCUO.mjs";
|
|
18
18
|
import "../chunk-UAR3TMWI.mjs";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-LKQP4KZQ.mjs";
|
|
20
|
+
import "../chunk-3RN6TO3T.mjs";
|
|
21
21
|
import "../chunk-S5HPMJ4U.mjs";
|
|
22
22
|
import "../chunk-OTXV5FY7.mjs";
|
|
23
|
-
import "../chunk-Z6QP3YEA.mjs";
|
|
24
23
|
import "../chunk-VZIMT7AO.mjs";
|
|
24
|
+
import "../chunk-Z6QP3YEA.mjs";
|
|
25
25
|
import "../chunk-TBQ27LIK.mjs";
|
|
26
26
|
import "../chunk-J44WR3QZ.mjs";
|
|
27
27
|
import "../chunk-N7NFYY54.mjs";
|
|
@@ -79,8 +79,8 @@ var SDK_METADATA = {
|
|
|
79
79
|
language: "typescript",
|
|
80
80
|
openapiDocVersion: "2.2.0",
|
|
81
81
|
sdkVersion: "0.10.17",
|
|
82
|
-
genVersion: "2.879.
|
|
83
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.
|
|
82
|
+
genVersion: "2.879.6",
|
|
83
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.6 2.2.0 @useautumn/sdk"
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
// ../sdk/src/lib/http.ts
|
|
@@ -2332,6 +2332,7 @@ var ProductScenario = {
|
|
|
2332
2332
|
New: "new",
|
|
2333
2333
|
Renew: "renew",
|
|
2334
2334
|
Upgrade: "upgrade",
|
|
2335
|
+
UpdatePrepaidQuantity: "update_prepaid_quantity",
|
|
2335
2336
|
Downgrade: "downgrade",
|
|
2336
2337
|
Cancel: "cancel",
|
|
2337
2338
|
Expired: "expired",
|
|
@@ -2697,12 +2698,14 @@ var CustomerDataAutoTopup$outboundSchema = z15.pipe(
|
|
|
2697
2698
|
quantity: z15.number(),
|
|
2698
2699
|
purchaseLimit: z15.optional(
|
|
2699
2700
|
z15.lazy(() => CustomerDataPurchaseLimit$outboundSchema)
|
|
2700
|
-
)
|
|
2701
|
+
),
|
|
2702
|
+
invoiceMode: z15.optional(z15.boolean())
|
|
2701
2703
|
}),
|
|
2702
2704
|
z15.transform((v) => {
|
|
2703
2705
|
return remap(v, {
|
|
2704
2706
|
featureId: "feature_id",
|
|
2705
|
-
purchaseLimit: "purchase_limit"
|
|
2707
|
+
purchaseLimit: "purchase_limit",
|
|
2708
|
+
invoiceMode: "invoice_mode"
|
|
2706
2709
|
});
|
|
2707
2710
|
})
|
|
2708
2711
|
);
|
|
@@ -4056,12 +4059,14 @@ var CustomerAutoTopup$inboundSchema = z21.pipe(
|
|
|
4056
4059
|
quantity: number2(),
|
|
4057
4060
|
purchase_limit: optional2(
|
|
4058
4061
|
z21.lazy(() => CustomerPurchaseLimit$inboundSchema)
|
|
4059
|
-
)
|
|
4062
|
+
),
|
|
4063
|
+
invoice_mode: optional2(boolean2())
|
|
4060
4064
|
}),
|
|
4061
4065
|
z21.transform((v) => {
|
|
4062
4066
|
return remap(v, {
|
|
4063
4067
|
"feature_id": "featureId",
|
|
4064
|
-
"purchase_limit": "purchaseLimit"
|
|
4068
|
+
"purchase_limit": "purchaseLimit",
|
|
4069
|
+
"invoice_mode": "invoiceMode"
|
|
4065
4070
|
});
|
|
4066
4071
|
})
|
|
4067
4072
|
);
|
|
@@ -4831,12 +4836,14 @@ var GetOrCreateCustomerAutoTopup$outboundSchema = z30.pipe(
|
|
|
4831
4836
|
quantity: z30.number(),
|
|
4832
4837
|
purchaseLimit: z30.optional(
|
|
4833
4838
|
z30.lazy(() => GetOrCreateCustomerPurchaseLimit$outboundSchema)
|
|
4834
|
-
)
|
|
4839
|
+
),
|
|
4840
|
+
invoiceMode: z30.optional(z30.boolean())
|
|
4835
4841
|
}),
|
|
4836
4842
|
z30.transform((v) => {
|
|
4837
4843
|
return remap(v, {
|
|
4838
4844
|
featureId: "feature_id",
|
|
4839
|
-
purchaseLimit: "purchase_limit"
|
|
4845
|
+
purchaseLimit: "purchase_limit",
|
|
4846
|
+
invoiceMode: "invoice_mode"
|
|
4840
4847
|
});
|
|
4841
4848
|
})
|
|
4842
4849
|
);
|
|
@@ -5321,12 +5328,14 @@ var ListCustomersAutoTopup$inboundSchema = z32.pipe(
|
|
|
5321
5328
|
quantity: number2(),
|
|
5322
5329
|
purchase_limit: optional2(
|
|
5323
5330
|
z32.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
|
|
5324
|
-
)
|
|
5331
|
+
),
|
|
5332
|
+
invoice_mode: optional2(boolean2())
|
|
5325
5333
|
}),
|
|
5326
5334
|
z32.transform((v) => {
|
|
5327
5335
|
return remap(v, {
|
|
5328
5336
|
"feature_id": "featureId",
|
|
5329
|
-
"purchase_limit": "purchaseLimit"
|
|
5337
|
+
"purchase_limit": "purchaseLimit",
|
|
5338
|
+
"invoice_mode": "invoiceMode"
|
|
5330
5339
|
});
|
|
5331
5340
|
})
|
|
5332
5341
|
);
|
|
@@ -8561,12 +8570,14 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z45.pipe(
|
|
|
8561
8570
|
quantity: z45.number(),
|
|
8562
8571
|
purchaseLimit: z45.optional(
|
|
8563
8572
|
z45.lazy(() => UpdateCustomerPurchaseLimitRequest$outboundSchema)
|
|
8564
|
-
)
|
|
8573
|
+
),
|
|
8574
|
+
invoiceMode: z45.optional(z45.boolean())
|
|
8565
8575
|
}),
|
|
8566
8576
|
z45.transform((v) => {
|
|
8567
8577
|
return remap(v, {
|
|
8568
8578
|
featureId: "feature_id",
|
|
8569
|
-
purchaseLimit: "purchase_limit"
|
|
8579
|
+
purchaseLimit: "purchase_limit",
|
|
8580
|
+
invoiceMode: "invoice_mode"
|
|
8570
8581
|
});
|
|
8571
8582
|
})
|
|
8572
8583
|
);
|
|
@@ -8682,12 +8693,14 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z45.pipe(
|
|
|
8682
8693
|
quantity: number2(),
|
|
8683
8694
|
purchase_limit: optional2(
|
|
8684
8695
|
z45.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
|
|
8685
|
-
)
|
|
8696
|
+
),
|
|
8697
|
+
invoice_mode: optional2(boolean2())
|
|
8686
8698
|
}),
|
|
8687
8699
|
z45.transform((v) => {
|
|
8688
8700
|
return remap(v, {
|
|
8689
8701
|
"feature_id": "featureId",
|
|
8690
|
-
"purchase_limit": "purchaseLimit"
|
|
8702
|
+
"purchase_limit": "purchaseLimit",
|
|
8703
|
+
"invoice_mode": "invoiceMode"
|
|
8691
8704
|
});
|
|
8692
8705
|
})
|
|
8693
8706
|
);
|
|
@@ -14600,7 +14613,8 @@ var getOrCreateCustomerAutoTopupOutboundSchema = import_v44.z.object({
|
|
|
14600
14613
|
enabled: import_v44.z.boolean(),
|
|
14601
14614
|
threshold: import_v44.z.number(),
|
|
14602
14615
|
quantity: import_v44.z.number(),
|
|
14603
|
-
purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional()
|
|
14616
|
+
purchase_limit: import_v44.z.union([getOrCreateCustomerPurchaseLimitOutboundSchema, import_v44.z.undefined()]).optional(),
|
|
14617
|
+
invoice_mode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
14604
14618
|
});
|
|
14605
14619
|
var getOrCreateCustomerSpendLimitOutboundSchema = import_v44.z.object({
|
|
14606
14620
|
feature_id: import_v44.z.union([import_v44.z.string(), import_v44.z.undefined()]).optional(),
|
|
@@ -14658,7 +14672,8 @@ var getOrCreateCustomerAutoTopupSchema = import_v44.z.object({
|
|
|
14658
14672
|
enabled: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional(),
|
|
14659
14673
|
threshold: import_v44.z.number(),
|
|
14660
14674
|
quantity: import_v44.z.number(),
|
|
14661
|
-
purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional()
|
|
14675
|
+
purchaseLimit: import_v44.z.union([getOrCreateCustomerPurchaseLimitSchema, import_v44.z.undefined()]).optional(),
|
|
14676
|
+
invoiceMode: import_v44.z.union([import_v44.z.boolean(), import_v44.z.undefined()]).optional()
|
|
14662
14677
|
});
|
|
14663
14678
|
var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema3;
|
|
14664
14679
|
var getOrCreateCustomerUsageAlertSchema = import_v44.z.object({
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-VDUNE74N.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-DYVMFOAC.mjs";
|
|
7
|
+
import "../chunk-CZ3GSCGC.mjs";
|
|
8
8
|
import "../chunk-TSF4YCUO.mjs";
|
|
9
9
|
import "../chunk-UAR3TMWI.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-LKQP4KZQ.mjs";
|
|
11
|
+
import "../chunk-3RN6TO3T.mjs";
|
|
12
12
|
import "../chunk-S5HPMJ4U.mjs";
|
|
13
13
|
import "../chunk-OTXV5FY7.mjs";
|
|
14
|
-
import "../chunk-Z6QP3YEA.mjs";
|
|
15
14
|
import "../chunk-VZIMT7AO.mjs";
|
|
15
|
+
import "../chunk-Z6QP3YEA.mjs";
|
|
16
16
|
import "../chunk-TBQ27LIK.mjs";
|
|
17
17
|
import "../chunk-J44WR3QZ.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
@@ -57,6 +57,10 @@ type GetOrCreateCustomerAutoTopup = {
|
|
|
57
57
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
58
58
|
*/
|
|
59
59
|
purchaseLimit?: GetOrCreateCustomerPurchaseLimit | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
62
|
+
*/
|
|
63
|
+
invoiceMode?: boolean | undefined;
|
|
60
64
|
};
|
|
61
65
|
type GetOrCreateCustomerSpendLimit = {
|
|
62
66
|
/**
|
|
@@ -57,6 +57,10 @@ type GetOrCreateCustomerAutoTopup = {
|
|
|
57
57
|
* Optional rate limit to cap how often auto top-ups occur.
|
|
58
58
|
*/
|
|
59
59
|
purchaseLimit?: GetOrCreateCustomerPurchaseLimit | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* When true, auto top-up creates a send_invoice invoice instead of auto-charging.
|
|
62
|
+
*/
|
|
63
|
+
invoiceMode?: boolean | undefined;
|
|
60
64
|
};
|
|
61
65
|
type GetOrCreateCustomerSpendLimit = {
|
|
62
66
|
/**
|
|
@@ -358,7 +358,8 @@ var getOrCreateCustomerAutoTopupOutboundSchema = z4.object({
|
|
|
358
358
|
enabled: z4.boolean(),
|
|
359
359
|
threshold: z4.number(),
|
|
360
360
|
quantity: z4.number(),
|
|
361
|
-
purchase_limit: z4.union([getOrCreateCustomerPurchaseLimitOutboundSchema, z4.undefined()]).optional()
|
|
361
|
+
purchase_limit: z4.union([getOrCreateCustomerPurchaseLimitOutboundSchema, z4.undefined()]).optional(),
|
|
362
|
+
invoice_mode: z4.union([z4.boolean(), z4.undefined()]).optional()
|
|
362
363
|
});
|
|
363
364
|
var getOrCreateCustomerSpendLimitOutboundSchema = z4.object({
|
|
364
365
|
feature_id: z4.union([z4.string(), z4.undefined()]).optional(),
|
|
@@ -416,7 +417,8 @@ var getOrCreateCustomerAutoTopupSchema = z4.object({
|
|
|
416
417
|
enabled: z4.union([z4.boolean(), z4.undefined()]).optional(),
|
|
417
418
|
threshold: z4.number(),
|
|
418
419
|
quantity: z4.number(),
|
|
419
|
-
purchaseLimit: z4.union([getOrCreateCustomerPurchaseLimitSchema, z4.undefined()]).optional()
|
|
420
|
+
purchaseLimit: z4.union([getOrCreateCustomerPurchaseLimitSchema, z4.undefined()]).optional(),
|
|
421
|
+
invoiceMode: z4.union([z4.boolean(), z4.undefined()]).optional()
|
|
420
422
|
});
|
|
421
423
|
var getOrCreateCustomerThresholdTypeSchema = closedEnumSchema3;
|
|
422
424
|
var getOrCreateCustomerUsageAlertSchema = z4.object({
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-UAR3TMWI.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Autumn
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LKQP4KZQ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
routeConfigs
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3RN6TO3T.mjs";
|
|
10
10
|
import {
|
|
11
11
|
executeRoute
|
|
12
12
|
} from "./chunk-S5HPMJ4U.mjs";
|
|
@@ -2248,6 +2248,7 @@ var ProductScenario = {
|
|
|
2248
2248
|
New: "new",
|
|
2249
2249
|
Renew: "renew",
|
|
2250
2250
|
Upgrade: "upgrade",
|
|
2251
|
+
UpdatePrepaidQuantity: "update_prepaid_quantity",
|
|
2251
2252
|
Downgrade: "downgrade",
|
|
2252
2253
|
Cancel: "cancel",
|
|
2253
2254
|
Expired: "expired",
|
|
@@ -2613,12 +2614,14 @@ var CustomerDataAutoTopup$outboundSchema = z15.pipe(
|
|
|
2613
2614
|
quantity: z15.number(),
|
|
2614
2615
|
purchaseLimit: z15.optional(
|
|
2615
2616
|
z15.lazy(() => CustomerDataPurchaseLimit$outboundSchema)
|
|
2616
|
-
)
|
|
2617
|
+
),
|
|
2618
|
+
invoiceMode: z15.optional(z15.boolean())
|
|
2617
2619
|
}),
|
|
2618
2620
|
z15.transform((v) => {
|
|
2619
2621
|
return remap(v, {
|
|
2620
2622
|
featureId: "feature_id",
|
|
2621
|
-
purchaseLimit: "purchase_limit"
|
|
2623
|
+
purchaseLimit: "purchase_limit",
|
|
2624
|
+
invoiceMode: "invoice_mode"
|
|
2622
2625
|
});
|
|
2623
2626
|
})
|
|
2624
2627
|
);
|
|
@@ -3972,12 +3975,14 @@ var CustomerAutoTopup$inboundSchema = z21.pipe(
|
|
|
3972
3975
|
quantity: number2(),
|
|
3973
3976
|
purchase_limit: optional2(
|
|
3974
3977
|
z21.lazy(() => CustomerPurchaseLimit$inboundSchema)
|
|
3975
|
-
)
|
|
3978
|
+
),
|
|
3979
|
+
invoice_mode: optional2(boolean2())
|
|
3976
3980
|
}),
|
|
3977
3981
|
z21.transform((v) => {
|
|
3978
3982
|
return remap(v, {
|
|
3979
3983
|
"feature_id": "featureId",
|
|
3980
|
-
"purchase_limit": "purchaseLimit"
|
|
3984
|
+
"purchase_limit": "purchaseLimit",
|
|
3985
|
+
"invoice_mode": "invoiceMode"
|
|
3981
3986
|
});
|
|
3982
3987
|
})
|
|
3983
3988
|
);
|
|
@@ -4747,12 +4752,14 @@ var GetOrCreateCustomerAutoTopup$outboundSchema = z30.pipe(
|
|
|
4747
4752
|
quantity: z30.number(),
|
|
4748
4753
|
purchaseLimit: z30.optional(
|
|
4749
4754
|
z30.lazy(() => GetOrCreateCustomerPurchaseLimit$outboundSchema)
|
|
4750
|
-
)
|
|
4755
|
+
),
|
|
4756
|
+
invoiceMode: z30.optional(z30.boolean())
|
|
4751
4757
|
}),
|
|
4752
4758
|
z30.transform((v) => {
|
|
4753
4759
|
return remap(v, {
|
|
4754
4760
|
featureId: "feature_id",
|
|
4755
|
-
purchaseLimit: "purchase_limit"
|
|
4761
|
+
purchaseLimit: "purchase_limit",
|
|
4762
|
+
invoiceMode: "invoice_mode"
|
|
4756
4763
|
});
|
|
4757
4764
|
})
|
|
4758
4765
|
);
|
|
@@ -5237,12 +5244,14 @@ var ListCustomersAutoTopup$inboundSchema = z32.pipe(
|
|
|
5237
5244
|
quantity: number2(),
|
|
5238
5245
|
purchase_limit: optional2(
|
|
5239
5246
|
z32.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
|
|
5240
|
-
)
|
|
5247
|
+
),
|
|
5248
|
+
invoice_mode: optional2(boolean2())
|
|
5241
5249
|
}),
|
|
5242
5250
|
z32.transform((v) => {
|
|
5243
5251
|
return remap(v, {
|
|
5244
5252
|
"feature_id": "featureId",
|
|
5245
|
-
"purchase_limit": "purchaseLimit"
|
|
5253
|
+
"purchase_limit": "purchaseLimit",
|
|
5254
|
+
"invoice_mode": "invoiceMode"
|
|
5246
5255
|
});
|
|
5247
5256
|
})
|
|
5248
5257
|
);
|
|
@@ -8477,12 +8486,14 @@ var UpdateCustomerAutoTopupRequest$outboundSchema = z45.pipe(
|
|
|
8477
8486
|
quantity: z45.number(),
|
|
8478
8487
|
purchaseLimit: z45.optional(
|
|
8479
8488
|
z45.lazy(() => UpdateCustomerPurchaseLimitRequest$outboundSchema)
|
|
8480
|
-
)
|
|
8489
|
+
),
|
|
8490
|
+
invoiceMode: z45.optional(z45.boolean())
|
|
8481
8491
|
}),
|
|
8482
8492
|
z45.transform((v) => {
|
|
8483
8493
|
return remap(v, {
|
|
8484
8494
|
featureId: "feature_id",
|
|
8485
|
-
purchaseLimit: "purchase_limit"
|
|
8495
|
+
purchaseLimit: "purchase_limit",
|
|
8496
|
+
invoiceMode: "invoice_mode"
|
|
8486
8497
|
});
|
|
8487
8498
|
})
|
|
8488
8499
|
);
|
|
@@ -8598,12 +8609,14 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z45.pipe(
|
|
|
8598
8609
|
quantity: number2(),
|
|
8599
8610
|
purchase_limit: optional2(
|
|
8600
8611
|
z45.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
|
|
8601
|
-
)
|
|
8612
|
+
),
|
|
8613
|
+
invoice_mode: optional2(boolean2())
|
|
8602
8614
|
}),
|
|
8603
8615
|
z45.transform((v) => {
|
|
8604
8616
|
return remap(v, {
|
|
8605
8617
|
"feature_id": "featureId",
|
|
8606
|
-
"purchase_limit": "purchaseLimit"
|
|
8618
|
+
"purchase_limit": "purchaseLimit",
|
|
8619
|
+
"invoice_mode": "invoiceMode"
|
|
8607
8620
|
});
|
|
8608
8621
|
})
|
|
8609
8622
|
);
|
|
@@ -10115,8 +10128,8 @@ var SDK_METADATA = {
|
|
|
10115
10128
|
language: "typescript",
|
|
10116
10129
|
openapiDocVersion: "2.2.0",
|
|
10117
10130
|
sdkVersion: "0.10.17",
|
|
10118
|
-
genVersion: "2.879.
|
|
10119
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.
|
|
10131
|
+
genVersion: "2.879.6",
|
|
10132
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.6 2.2.0 @useautumn/sdk"
|
|
10120
10133
|
};
|
|
10121
10134
|
|
|
10122
10135
|
// ../sdk/src/lib/retries.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.mjs';
|
|
2
|
-
import '../../authTypes-
|
|
3
|
-
import '../../routeTypes-
|
|
2
|
+
import '../../authTypes-Bdpu8A6G.mjs';
|
|
3
|
+
import '../../routeTypes-ODZ6pr_U.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../types/responseTypes.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.js';
|
|
2
|
-
import '../../authTypes-
|
|
3
|
-
import '../../routeTypes-
|
|
2
|
+
import '../../authTypes-Bdpu8A6G.js';
|
|
3
|
+
import '../../routeTypes-CmW3_-dX.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../types/responseTypes.js';
|
|
6
6
|
|