autumn-js 1.2.38 → 1.2.39
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.js +319 -101
- package/dist/backend/adapters/express.mjs +8 -8
- package/dist/backend/adapters/fetch.js +319 -101
- package/dist/backend/adapters/fetch.mjs +8 -8
- package/dist/backend/adapters/hono.js +319 -101
- package/dist/backend/adapters/hono.mjs +8 -8
- package/dist/backend/adapters/index.js +319 -101
- package/dist/backend/adapters/index.mjs +11 -11
- package/dist/backend/adapters/next.js +319 -101
- package/dist/backend/adapters/next.mjs +8 -8
- package/dist/backend/{chunk-CEUAUTNB.mjs → chunk-5IUIFE55.mjs} +1 -1
- package/dist/backend/{chunk-ZR5K6VMA.mjs → chunk-GL2SBEQ5.mjs} +1 -1
- package/dist/backend/{chunk-Y3AJLHVL.mjs → chunk-KJP3DHPM.mjs} +1 -1
- package/dist/backend/{chunk-N52JKSJ7.mjs → chunk-KM5AXZWJ.mjs} +4 -4
- package/dist/backend/{chunk-5C7KP2BU.mjs → chunk-MSMJS42G.mjs} +319 -101
- package/dist/backend/{chunk-TIFFBW34.mjs → chunk-UMTASWZL.mjs} +1 -1
- package/dist/backend/{chunk-PKM7CEE3.mjs → chunk-V32P22RC.mjs} +6 -6
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +319 -101
- package/dist/backend/core/handlers/coreHandler.mjs +6 -6
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.js +319 -101
- package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +319 -101
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +319 -101
- package/dist/backend/core/index.mjs +9 -9
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +319 -101
- package/dist/backend/index.mjs +9 -9
- package/dist/backend/{routeTypes-gWhxv6xo.d.mts → routeTypes-CIqS7yVo.d.mts} +641 -97
- package/dist/backend/{routeTypes-C8YKwtFL.d.ts → routeTypes-uWaE8YYa.d.ts} +641 -97
- package/dist/better-auth/{chunk-A3ZOJU54.mjs → chunk-LLBM6UQN.mjs} +319 -101
- package/dist/better-auth/index.js +319 -101
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +319 -101
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +319 -101
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/react/AutumnContext.d.mts +2 -2
- package/dist/react/AutumnContext.d.ts +2 -2
- package/dist/react/client/AutumnClient.d.mts +2 -2
- package/dist/react/client/AutumnClient.d.ts +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/{customer-D811_jP2.d.ts → customer-CrxRrY4o.d.ts} +99 -24
- package/dist/react/{customer-CkuydPCd.d.mts → customer-DM044m1a.d.mts} +99 -24
- 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/{params-CaUBdt-x.d.ts → params-B-1vi9za.d.ts} +60 -0
- package/dist/react/{params-C0cH2cYK.d.mts → params-Bf18ATYi.d.mts} +60 -0
- package/dist/sdk/index.d.mts +723 -106
- package/dist/sdk/index.d.ts +723 -106
- package/dist/sdk/index.js +391 -101
- package/dist/sdk/index.mjs +320 -102
- package/package.json +1 -1
- package/dist/backend/{chunk-MOHYGUMA.mjs → chunk-IXUCY7AU.mjs} +3 -3
|
@@ -5391,18 +5391,34 @@ var CreateEntityLimitTypeResponse = {
|
|
|
5391
5391
|
Absolute: "absolute",
|
|
5392
5392
|
UsagePercentage: "usage_percentage"
|
|
5393
5393
|
};
|
|
5394
|
+
var CreateEntitySpendLimitSource = {
|
|
5395
|
+
Customer: "customer",
|
|
5396
|
+
Plan: "plan"
|
|
5397
|
+
};
|
|
5394
5398
|
var CreateEntityIntervalResponse = {
|
|
5395
5399
|
Day: "day",
|
|
5396
5400
|
Week: "week",
|
|
5397
5401
|
Month: "month",
|
|
5398
5402
|
Year: "year"
|
|
5399
5403
|
};
|
|
5404
|
+
var CreateEntityUsageLimitSource = {
|
|
5405
|
+
Customer: "customer",
|
|
5406
|
+
Plan: "plan"
|
|
5407
|
+
};
|
|
5400
5408
|
var CreateEntityThresholdTypeResponse = {
|
|
5401
5409
|
Usage: "usage",
|
|
5402
5410
|
UsagePercentage: "usage_percentage",
|
|
5403
5411
|
Remaining: "remaining",
|
|
5404
5412
|
RemainingPercentage: "remaining_percentage"
|
|
5405
5413
|
};
|
|
5414
|
+
var CreateEntityUsageAlertSource = {
|
|
5415
|
+
Customer: "customer",
|
|
5416
|
+
Plan: "plan"
|
|
5417
|
+
};
|
|
5418
|
+
var CreateEntityOverageAllowedSource = {
|
|
5419
|
+
Customer: "customer",
|
|
5420
|
+
Plan: "plan"
|
|
5421
|
+
};
|
|
5406
5422
|
var CreateEntityProcessorType = {
|
|
5407
5423
|
Stripe: "stripe",
|
|
5408
5424
|
Revenuecat: "revenuecat"
|
|
@@ -5657,13 +5673,15 @@ var CreateEntityFlags$inboundSchema = z18.pipe(
|
|
|
5657
5673
|
})
|
|
5658
5674
|
);
|
|
5659
5675
|
var CreateEntityLimitTypeResponse$inboundSchema = inboundSchema(CreateEntityLimitTypeResponse);
|
|
5676
|
+
var CreateEntitySpendLimitSource$inboundSchema = inboundSchema(CreateEntitySpendLimitSource);
|
|
5660
5677
|
var CreateEntitySpendLimitResponse$inboundSchema = z18.pipe(
|
|
5661
5678
|
z18.object({
|
|
5662
5679
|
feature_id: optional3(string4()),
|
|
5663
5680
|
enabled: z18._default(boolean2(), false),
|
|
5664
5681
|
limit_type: optional3(CreateEntityLimitTypeResponse$inboundSchema),
|
|
5665
5682
|
overage_limit: optional3(number2()),
|
|
5666
|
-
skip_overage_billing: optional3(boolean2())
|
|
5683
|
+
skip_overage_billing: optional3(boolean2()),
|
|
5684
|
+
source: optional3(CreateEntitySpendLimitSource$inboundSchema)
|
|
5667
5685
|
}),
|
|
5668
5686
|
z18.transform((v) => {
|
|
5669
5687
|
return remap(v, {
|
|
@@ -5678,6 +5696,7 @@ var CreateEntityIntervalResponse$inboundSchema = inboundSchema(CreateEntityInter
|
|
|
5678
5696
|
var CreateEntityFilterResponse$inboundSchema = z18.object({
|
|
5679
5697
|
properties: z18.record(z18.string(), z18.any())
|
|
5680
5698
|
});
|
|
5699
|
+
var CreateEntityUsageLimitSource$inboundSchema = inboundSchema(CreateEntityUsageLimitSource);
|
|
5681
5700
|
var CreateEntityUsageLimitResponse$inboundSchema = z18.pipe(
|
|
5682
5701
|
z18.object({
|
|
5683
5702
|
feature_id: string4(),
|
|
@@ -5687,7 +5706,8 @@ var CreateEntityUsageLimitResponse$inboundSchema = z18.pipe(
|
|
|
5687
5706
|
filter: optional3(
|
|
5688
5707
|
z18.lazy(() => CreateEntityFilterResponse$inboundSchema)
|
|
5689
5708
|
),
|
|
5690
|
-
usage: optional3(number2())
|
|
5709
|
+
usage: optional3(number2()),
|
|
5710
|
+
source: optional3(CreateEntityUsageLimitSource$inboundSchema)
|
|
5691
5711
|
}),
|
|
5692
5712
|
z18.transform((v) => {
|
|
5693
5713
|
return remap(v, {
|
|
@@ -5696,13 +5716,15 @@ var CreateEntityUsageLimitResponse$inboundSchema = z18.pipe(
|
|
|
5696
5716
|
})
|
|
5697
5717
|
);
|
|
5698
5718
|
var CreateEntityThresholdTypeResponse$inboundSchema = inboundSchema(CreateEntityThresholdTypeResponse);
|
|
5719
|
+
var CreateEntityUsageAlertSource$inboundSchema = inboundSchema(CreateEntityUsageAlertSource);
|
|
5699
5720
|
var CreateEntityUsageAlertResponse$inboundSchema = z18.pipe(
|
|
5700
5721
|
z18.object({
|
|
5701
5722
|
feature_id: optional3(string4()),
|
|
5702
5723
|
enabled: z18._default(boolean2(), true),
|
|
5703
5724
|
threshold: number2(),
|
|
5704
5725
|
threshold_type: CreateEntityThresholdTypeResponse$inboundSchema,
|
|
5705
|
-
name: optional3(string4())
|
|
5726
|
+
name: optional3(string4()),
|
|
5727
|
+
source: optional3(CreateEntityUsageAlertSource$inboundSchema)
|
|
5706
5728
|
}),
|
|
5707
5729
|
z18.transform((v) => {
|
|
5708
5730
|
return remap(v, {
|
|
@@ -5711,10 +5733,12 @@ var CreateEntityUsageAlertResponse$inboundSchema = z18.pipe(
|
|
|
5711
5733
|
});
|
|
5712
5734
|
})
|
|
5713
5735
|
);
|
|
5736
|
+
var CreateEntityOverageAllowedSource$inboundSchema = inboundSchema(CreateEntityOverageAllowedSource);
|
|
5714
5737
|
var CreateEntityOverageAllowedResponse$inboundSchema = z18.pipe(
|
|
5715
5738
|
z18.object({
|
|
5716
5739
|
feature_id: string4(),
|
|
5717
|
-
enabled: z18._default(boolean2(), false)
|
|
5740
|
+
enabled: z18._default(boolean2(), false),
|
|
5741
|
+
source: optional3(CreateEntityOverageAllowedSource$inboundSchema)
|
|
5718
5742
|
}),
|
|
5719
5743
|
z18.transform((v) => {
|
|
5720
5744
|
return remap(v, {
|
|
@@ -8086,22 +8110,42 @@ var CustomerPurchaseLimitInterval1 = {
|
|
|
8086
8110
|
Week: "week",
|
|
8087
8111
|
Month: "month"
|
|
8088
8112
|
};
|
|
8113
|
+
var AutoTopupSource = {
|
|
8114
|
+
Customer: "customer",
|
|
8115
|
+
Plan: "plan"
|
|
8116
|
+
};
|
|
8089
8117
|
var CustomerLimitType = {
|
|
8090
8118
|
Absolute: "absolute",
|
|
8091
8119
|
UsagePercentage: "usage_percentage"
|
|
8092
8120
|
};
|
|
8121
|
+
var SpendLimitSource = {
|
|
8122
|
+
Customer: "customer",
|
|
8123
|
+
Plan: "plan"
|
|
8124
|
+
};
|
|
8093
8125
|
var CustomerUsageLimitInterval = {
|
|
8094
8126
|
Day: "day",
|
|
8095
8127
|
Week: "week",
|
|
8096
8128
|
Month: "month",
|
|
8097
8129
|
Year: "year"
|
|
8098
8130
|
};
|
|
8131
|
+
var UsageLimitSource = {
|
|
8132
|
+
Customer: "customer",
|
|
8133
|
+
Plan: "plan"
|
|
8134
|
+
};
|
|
8099
8135
|
var CustomerThresholdType = {
|
|
8100
8136
|
Usage: "usage",
|
|
8101
8137
|
UsagePercentage: "usage_percentage",
|
|
8102
8138
|
Remaining: "remaining",
|
|
8103
8139
|
RemainingPercentage: "remaining_percentage"
|
|
8104
8140
|
};
|
|
8141
|
+
var UsageAlertSource = {
|
|
8142
|
+
Customer: "customer",
|
|
8143
|
+
Plan: "plan"
|
|
8144
|
+
};
|
|
8145
|
+
var OverageAllowedSource = {
|
|
8146
|
+
Customer: "customer",
|
|
8147
|
+
Plan: "plan"
|
|
8148
|
+
};
|
|
8105
8149
|
var CustomerStatus = {
|
|
8106
8150
|
Active: "active",
|
|
8107
8151
|
Scheduled: "scheduled"
|
|
@@ -8144,36 +8188,37 @@ var CustomerEnv$inboundSchema = inboundSchema(CustomerEnv);
|
|
|
8144
8188
|
var CustomerPurchaseLimitInterval2$inboundSchema = inboundSchema(CustomerPurchaseLimitInterval2);
|
|
8145
8189
|
var CustomerPurchaseLimit2$inboundSchema = z24.pipe(
|
|
8146
8190
|
z24.object({
|
|
8147
|
-
interval:
|
|
8148
|
-
interval_count:
|
|
8149
|
-
limit:
|
|
8150
|
-
count: number2(),
|
|
8151
|
-
next_reset_at: number2()
|
|
8191
|
+
interval: CustomerPurchaseLimitInterval2$inboundSchema,
|
|
8192
|
+
interval_count: z24._default(number2(), 1),
|
|
8193
|
+
limit: number2()
|
|
8152
8194
|
}),
|
|
8153
8195
|
z24.transform((v) => {
|
|
8154
8196
|
return remap(v, {
|
|
8155
|
-
"interval_count": "intervalCount"
|
|
8156
|
-
"next_reset_at": "nextResetAt"
|
|
8197
|
+
"interval_count": "intervalCount"
|
|
8157
8198
|
});
|
|
8158
8199
|
})
|
|
8159
8200
|
);
|
|
8160
8201
|
var CustomerPurchaseLimitInterval1$inboundSchema = inboundSchema(CustomerPurchaseLimitInterval1);
|
|
8161
8202
|
var CustomerPurchaseLimit1$inboundSchema = z24.pipe(
|
|
8162
8203
|
z24.object({
|
|
8163
|
-
interval: CustomerPurchaseLimitInterval1$inboundSchema,
|
|
8164
|
-
interval_count:
|
|
8165
|
-
limit: number2()
|
|
8204
|
+
interval: nullable(CustomerPurchaseLimitInterval1$inboundSchema),
|
|
8205
|
+
interval_count: nullable(number2()),
|
|
8206
|
+
limit: nullable(number2()),
|
|
8207
|
+
count: number2(),
|
|
8208
|
+
next_reset_at: number2()
|
|
8166
8209
|
}),
|
|
8167
8210
|
z24.transform((v) => {
|
|
8168
8211
|
return remap(v, {
|
|
8169
|
-
"interval_count": "intervalCount"
|
|
8212
|
+
"interval_count": "intervalCount",
|
|
8213
|
+
"next_reset_at": "nextResetAt"
|
|
8170
8214
|
});
|
|
8171
8215
|
})
|
|
8172
8216
|
);
|
|
8173
8217
|
var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
8174
|
-
z24.lazy(() =>
|
|
8175
|
-
z24.lazy(() =>
|
|
8218
|
+
z24.lazy(() => CustomerPurchaseLimit1$inboundSchema),
|
|
8219
|
+
z24.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
8176
8220
|
]);
|
|
8221
|
+
var AutoTopupSource$inboundSchema = inboundSchema(AutoTopupSource);
|
|
8177
8222
|
var CustomerAutoTopup$inboundSchema = z24.pipe(
|
|
8178
8223
|
z24.object({
|
|
8179
8224
|
feature_id: string4(),
|
|
@@ -8181,10 +8226,11 @@ var CustomerAutoTopup$inboundSchema = z24.pipe(
|
|
|
8181
8226
|
threshold: number2(),
|
|
8182
8227
|
quantity: number2(),
|
|
8183
8228
|
purchase_limit: optional3(smartUnion([
|
|
8184
|
-
z24.lazy(() =>
|
|
8185
|
-
z24.lazy(() =>
|
|
8229
|
+
z24.lazy(() => CustomerPurchaseLimit1$inboundSchema),
|
|
8230
|
+
z24.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
8186
8231
|
])),
|
|
8187
|
-
invoice_mode: optional3(boolean2())
|
|
8232
|
+
invoice_mode: optional3(boolean2()),
|
|
8233
|
+
source: optional3(AutoTopupSource$inboundSchema)
|
|
8188
8234
|
}),
|
|
8189
8235
|
z24.transform((v) => {
|
|
8190
8236
|
return remap(v, {
|
|
@@ -8195,13 +8241,15 @@ var CustomerAutoTopup$inboundSchema = z24.pipe(
|
|
|
8195
8241
|
})
|
|
8196
8242
|
);
|
|
8197
8243
|
var CustomerLimitType$inboundSchema = inboundSchema(CustomerLimitType);
|
|
8244
|
+
var SpendLimitSource$inboundSchema = inboundSchema(SpendLimitSource);
|
|
8198
8245
|
var CustomerSpendLimit$inboundSchema = z24.pipe(
|
|
8199
8246
|
z24.object({
|
|
8200
8247
|
feature_id: optional3(string4()),
|
|
8201
8248
|
enabled: z24._default(boolean2(), false),
|
|
8202
8249
|
limit_type: optional3(CustomerLimitType$inboundSchema),
|
|
8203
8250
|
overage_limit: optional3(number2()),
|
|
8204
|
-
skip_overage_billing: optional3(boolean2())
|
|
8251
|
+
skip_overage_billing: optional3(boolean2()),
|
|
8252
|
+
source: optional3(SpendLimitSource$inboundSchema)
|
|
8205
8253
|
}),
|
|
8206
8254
|
z24.transform((v) => {
|
|
8207
8255
|
return remap(v, {
|
|
@@ -8216,6 +8264,7 @@ var CustomerUsageLimitInterval$inboundSchema = inboundSchema(CustomerUsageLimitI
|
|
|
8216
8264
|
var CustomerFilter$inboundSchema = z24.object({
|
|
8217
8265
|
properties: z24.record(z24.string(), z24.any())
|
|
8218
8266
|
});
|
|
8267
|
+
var UsageLimitSource$inboundSchema = inboundSchema(UsageLimitSource);
|
|
8219
8268
|
var CustomerUsageLimit$inboundSchema = z24.pipe(
|
|
8220
8269
|
z24.object({
|
|
8221
8270
|
feature_id: string4(),
|
|
@@ -8223,7 +8272,8 @@ var CustomerUsageLimit$inboundSchema = z24.pipe(
|
|
|
8223
8272
|
limit: number2(),
|
|
8224
8273
|
interval: CustomerUsageLimitInterval$inboundSchema,
|
|
8225
8274
|
filter: optional3(z24.lazy(() => CustomerFilter$inboundSchema)),
|
|
8226
|
-
usage: optional3(number2())
|
|
8275
|
+
usage: optional3(number2()),
|
|
8276
|
+
source: optional3(UsageLimitSource$inboundSchema)
|
|
8227
8277
|
}),
|
|
8228
8278
|
z24.transform((v) => {
|
|
8229
8279
|
return remap(v, {
|
|
@@ -8232,13 +8282,15 @@ var CustomerUsageLimit$inboundSchema = z24.pipe(
|
|
|
8232
8282
|
})
|
|
8233
8283
|
);
|
|
8234
8284
|
var CustomerThresholdType$inboundSchema = inboundSchema(CustomerThresholdType);
|
|
8285
|
+
var UsageAlertSource$inboundSchema = inboundSchema(UsageAlertSource);
|
|
8235
8286
|
var CustomerUsageAlert$inboundSchema = z24.pipe(
|
|
8236
8287
|
z24.object({
|
|
8237
8288
|
feature_id: optional3(string4()),
|
|
8238
8289
|
enabled: z24._default(boolean2(), true),
|
|
8239
8290
|
threshold: number2(),
|
|
8240
8291
|
threshold_type: CustomerThresholdType$inboundSchema,
|
|
8241
|
-
name: optional3(string4())
|
|
8292
|
+
name: optional3(string4()),
|
|
8293
|
+
source: optional3(UsageAlertSource$inboundSchema)
|
|
8242
8294
|
}),
|
|
8243
8295
|
z24.transform((v) => {
|
|
8244
8296
|
return remap(v, {
|
|
@@ -8247,10 +8299,12 @@ var CustomerUsageAlert$inboundSchema = z24.pipe(
|
|
|
8247
8299
|
});
|
|
8248
8300
|
})
|
|
8249
8301
|
);
|
|
8302
|
+
var OverageAllowedSource$inboundSchema = inboundSchema(OverageAllowedSource);
|
|
8250
8303
|
var CustomerOverageAllowed$inboundSchema = z24.pipe(
|
|
8251
8304
|
z24.object({
|
|
8252
8305
|
feature_id: string4(),
|
|
8253
|
-
enabled: z24._default(boolean2(), false)
|
|
8306
|
+
enabled: z24._default(boolean2(), false),
|
|
8307
|
+
source: optional3(OverageAllowedSource$inboundSchema)
|
|
8254
8308
|
}),
|
|
8255
8309
|
z24.transform((v) => {
|
|
8256
8310
|
return remap(v, {
|
|
@@ -8755,22 +8809,42 @@ var GetCustomerPurchaseLimitInterval1 = {
|
|
|
8755
8809
|
Week: "week",
|
|
8756
8810
|
Month: "month"
|
|
8757
8811
|
};
|
|
8812
|
+
var GetCustomerAutoTopupSource = {
|
|
8813
|
+
Customer: "customer",
|
|
8814
|
+
Plan: "plan"
|
|
8815
|
+
};
|
|
8758
8816
|
var GetCustomerLimitType = {
|
|
8759
8817
|
Absolute: "absolute",
|
|
8760
8818
|
UsagePercentage: "usage_percentage"
|
|
8761
8819
|
};
|
|
8820
|
+
var GetCustomerSpendLimitSource = {
|
|
8821
|
+
Customer: "customer",
|
|
8822
|
+
Plan: "plan"
|
|
8823
|
+
};
|
|
8762
8824
|
var GetCustomerUsageLimitInterval = {
|
|
8763
8825
|
Day: "day",
|
|
8764
8826
|
Week: "week",
|
|
8765
8827
|
Month: "month",
|
|
8766
8828
|
Year: "year"
|
|
8767
8829
|
};
|
|
8830
|
+
var GetCustomerUsageLimitSource = {
|
|
8831
|
+
Customer: "customer",
|
|
8832
|
+
Plan: "plan"
|
|
8833
|
+
};
|
|
8768
8834
|
var GetCustomerThresholdType = {
|
|
8769
8835
|
Usage: "usage",
|
|
8770
8836
|
UsagePercentage: "usage_percentage",
|
|
8771
8837
|
Remaining: "remaining",
|
|
8772
8838
|
RemainingPercentage: "remaining_percentage"
|
|
8773
8839
|
};
|
|
8840
|
+
var GetCustomerUsageAlertSource = {
|
|
8841
|
+
Customer: "customer",
|
|
8842
|
+
Plan: "plan"
|
|
8843
|
+
};
|
|
8844
|
+
var GetCustomerOverageAllowedSource = {
|
|
8845
|
+
Customer: "customer",
|
|
8846
|
+
Plan: "plan"
|
|
8847
|
+
};
|
|
8774
8848
|
var GetCustomerStatus = {
|
|
8775
8849
|
Active: "active",
|
|
8776
8850
|
Scheduled: "scheduled"
|
|
@@ -8824,36 +8898,37 @@ var GetCustomerEnv$inboundSchema = inboundSchema(GetCustomerEnv);
|
|
|
8824
8898
|
var GetCustomerPurchaseLimitInterval2$inboundSchema = inboundSchema(GetCustomerPurchaseLimitInterval2);
|
|
8825
8899
|
var GetCustomerPurchaseLimit2$inboundSchema = z31.pipe(
|
|
8826
8900
|
z31.object({
|
|
8827
|
-
interval:
|
|
8828
|
-
interval_count:
|
|
8829
|
-
limit:
|
|
8830
|
-
count: number2(),
|
|
8831
|
-
next_reset_at: number2()
|
|
8901
|
+
interval: GetCustomerPurchaseLimitInterval2$inboundSchema,
|
|
8902
|
+
interval_count: z31._default(number2(), 1),
|
|
8903
|
+
limit: number2()
|
|
8832
8904
|
}),
|
|
8833
8905
|
z31.transform((v) => {
|
|
8834
8906
|
return remap(v, {
|
|
8835
|
-
"interval_count": "intervalCount"
|
|
8836
|
-
"next_reset_at": "nextResetAt"
|
|
8907
|
+
"interval_count": "intervalCount"
|
|
8837
8908
|
});
|
|
8838
8909
|
})
|
|
8839
8910
|
);
|
|
8840
8911
|
var GetCustomerPurchaseLimitInterval1$inboundSchema = inboundSchema(GetCustomerPurchaseLimitInterval1);
|
|
8841
8912
|
var GetCustomerPurchaseLimit1$inboundSchema = z31.pipe(
|
|
8842
8913
|
z31.object({
|
|
8843
|
-
interval: GetCustomerPurchaseLimitInterval1$inboundSchema,
|
|
8844
|
-
interval_count:
|
|
8845
|
-
limit: number2()
|
|
8914
|
+
interval: nullable(GetCustomerPurchaseLimitInterval1$inboundSchema),
|
|
8915
|
+
interval_count: nullable(number2()),
|
|
8916
|
+
limit: nullable(number2()),
|
|
8917
|
+
count: number2(),
|
|
8918
|
+
next_reset_at: number2()
|
|
8846
8919
|
}),
|
|
8847
8920
|
z31.transform((v) => {
|
|
8848
8921
|
return remap(v, {
|
|
8849
|
-
"interval_count": "intervalCount"
|
|
8922
|
+
"interval_count": "intervalCount",
|
|
8923
|
+
"next_reset_at": "nextResetAt"
|
|
8850
8924
|
});
|
|
8851
8925
|
})
|
|
8852
8926
|
);
|
|
8853
8927
|
var GetCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
8854
|
-
z31.lazy(() =>
|
|
8855
|
-
z31.lazy(() =>
|
|
8928
|
+
z31.lazy(() => GetCustomerPurchaseLimit1$inboundSchema),
|
|
8929
|
+
z31.lazy(() => GetCustomerPurchaseLimit2$inboundSchema)
|
|
8856
8930
|
]);
|
|
8931
|
+
var GetCustomerAutoTopupSource$inboundSchema = inboundSchema(GetCustomerAutoTopupSource);
|
|
8857
8932
|
var GetCustomerAutoTopup$inboundSchema = z31.pipe(
|
|
8858
8933
|
z31.object({
|
|
8859
8934
|
feature_id: string4(),
|
|
@@ -8861,10 +8936,11 @@ var GetCustomerAutoTopup$inboundSchema = z31.pipe(
|
|
|
8861
8936
|
threshold: number2(),
|
|
8862
8937
|
quantity: number2(),
|
|
8863
8938
|
purchase_limit: optional3(smartUnion([
|
|
8864
|
-
z31.lazy(() =>
|
|
8865
|
-
z31.lazy(() =>
|
|
8939
|
+
z31.lazy(() => GetCustomerPurchaseLimit1$inboundSchema),
|
|
8940
|
+
z31.lazy(() => GetCustomerPurchaseLimit2$inboundSchema)
|
|
8866
8941
|
])),
|
|
8867
|
-
invoice_mode: optional3(boolean2())
|
|
8942
|
+
invoice_mode: optional3(boolean2()),
|
|
8943
|
+
source: optional3(GetCustomerAutoTopupSource$inboundSchema)
|
|
8868
8944
|
}),
|
|
8869
8945
|
z31.transform((v) => {
|
|
8870
8946
|
return remap(v, {
|
|
@@ -8875,13 +8951,15 @@ var GetCustomerAutoTopup$inboundSchema = z31.pipe(
|
|
|
8875
8951
|
})
|
|
8876
8952
|
);
|
|
8877
8953
|
var GetCustomerLimitType$inboundSchema = inboundSchema(GetCustomerLimitType);
|
|
8954
|
+
var GetCustomerSpendLimitSource$inboundSchema = inboundSchema(GetCustomerSpendLimitSource);
|
|
8878
8955
|
var GetCustomerSpendLimit$inboundSchema = z31.pipe(
|
|
8879
8956
|
z31.object({
|
|
8880
8957
|
feature_id: optional3(string4()),
|
|
8881
8958
|
enabled: z31._default(boolean2(), false),
|
|
8882
8959
|
limit_type: optional3(GetCustomerLimitType$inboundSchema),
|
|
8883
8960
|
overage_limit: optional3(number2()),
|
|
8884
|
-
skip_overage_billing: optional3(boolean2())
|
|
8961
|
+
skip_overage_billing: optional3(boolean2()),
|
|
8962
|
+
source: optional3(GetCustomerSpendLimitSource$inboundSchema)
|
|
8885
8963
|
}),
|
|
8886
8964
|
z31.transform((v) => {
|
|
8887
8965
|
return remap(v, {
|
|
@@ -8896,6 +8974,7 @@ var GetCustomerUsageLimitInterval$inboundSchema = inboundSchema(GetCustomerUsage
|
|
|
8896
8974
|
var GetCustomerFilter$inboundSchema = z31.object({
|
|
8897
8975
|
properties: z31.record(z31.string(), z31.any())
|
|
8898
8976
|
});
|
|
8977
|
+
var GetCustomerUsageLimitSource$inboundSchema = inboundSchema(GetCustomerUsageLimitSource);
|
|
8899
8978
|
var GetCustomerUsageLimit$inboundSchema = z31.pipe(
|
|
8900
8979
|
z31.object({
|
|
8901
8980
|
feature_id: string4(),
|
|
@@ -8903,7 +8982,8 @@ var GetCustomerUsageLimit$inboundSchema = z31.pipe(
|
|
|
8903
8982
|
limit: number2(),
|
|
8904
8983
|
interval: GetCustomerUsageLimitInterval$inboundSchema,
|
|
8905
8984
|
filter: optional3(z31.lazy(() => GetCustomerFilter$inboundSchema)),
|
|
8906
|
-
usage: optional3(number2())
|
|
8985
|
+
usage: optional3(number2()),
|
|
8986
|
+
source: optional3(GetCustomerUsageLimitSource$inboundSchema)
|
|
8907
8987
|
}),
|
|
8908
8988
|
z31.transform((v) => {
|
|
8909
8989
|
return remap(v, {
|
|
@@ -8912,13 +8992,15 @@ var GetCustomerUsageLimit$inboundSchema = z31.pipe(
|
|
|
8912
8992
|
})
|
|
8913
8993
|
);
|
|
8914
8994
|
var GetCustomerThresholdType$inboundSchema = inboundSchema(GetCustomerThresholdType);
|
|
8995
|
+
var GetCustomerUsageAlertSource$inboundSchema = inboundSchema(GetCustomerUsageAlertSource);
|
|
8915
8996
|
var GetCustomerUsageAlert$inboundSchema = z31.pipe(
|
|
8916
8997
|
z31.object({
|
|
8917
8998
|
feature_id: optional3(string4()),
|
|
8918
8999
|
enabled: z31._default(boolean2(), true),
|
|
8919
9000
|
threshold: number2(),
|
|
8920
9001
|
threshold_type: GetCustomerThresholdType$inboundSchema,
|
|
8921
|
-
name: optional3(string4())
|
|
9002
|
+
name: optional3(string4()),
|
|
9003
|
+
source: optional3(GetCustomerUsageAlertSource$inboundSchema)
|
|
8922
9004
|
}),
|
|
8923
9005
|
z31.transform((v) => {
|
|
8924
9006
|
return remap(v, {
|
|
@@ -8927,10 +9009,12 @@ var GetCustomerUsageAlert$inboundSchema = z31.pipe(
|
|
|
8927
9009
|
});
|
|
8928
9010
|
})
|
|
8929
9011
|
);
|
|
9012
|
+
var GetCustomerOverageAllowedSource$inboundSchema = inboundSchema(GetCustomerOverageAllowedSource);
|
|
8930
9013
|
var GetCustomerOverageAllowed$inboundSchema = z31.pipe(
|
|
8931
9014
|
z31.object({
|
|
8932
9015
|
feature_id: string4(),
|
|
8933
|
-
enabled: z31._default(boolean2(), false)
|
|
9016
|
+
enabled: z31._default(boolean2(), false),
|
|
9017
|
+
source: optional3(GetCustomerOverageAllowedSource$inboundSchema)
|
|
8934
9018
|
}),
|
|
8935
9019
|
z31.transform((v) => {
|
|
8936
9020
|
return remap(v, {
|
|
@@ -9319,18 +9403,34 @@ var GetEntityLimitType = {
|
|
|
9319
9403
|
Absolute: "absolute",
|
|
9320
9404
|
UsagePercentage: "usage_percentage"
|
|
9321
9405
|
};
|
|
9406
|
+
var GetEntitySpendLimitSource = {
|
|
9407
|
+
Customer: "customer",
|
|
9408
|
+
Plan: "plan"
|
|
9409
|
+
};
|
|
9322
9410
|
var GetEntityInterval = {
|
|
9323
9411
|
Day: "day",
|
|
9324
9412
|
Week: "week",
|
|
9325
9413
|
Month: "month",
|
|
9326
9414
|
Year: "year"
|
|
9327
9415
|
};
|
|
9416
|
+
var GetEntityUsageLimitSource = {
|
|
9417
|
+
Customer: "customer",
|
|
9418
|
+
Plan: "plan"
|
|
9419
|
+
};
|
|
9328
9420
|
var GetEntityThresholdType = {
|
|
9329
9421
|
Usage: "usage",
|
|
9330
9422
|
UsagePercentage: "usage_percentage",
|
|
9331
9423
|
Remaining: "remaining",
|
|
9332
9424
|
RemainingPercentage: "remaining_percentage"
|
|
9333
9425
|
};
|
|
9426
|
+
var GetEntityUsageAlertSource = {
|
|
9427
|
+
Customer: "customer",
|
|
9428
|
+
Plan: "plan"
|
|
9429
|
+
};
|
|
9430
|
+
var GetEntityOverageAllowedSource = {
|
|
9431
|
+
Customer: "customer",
|
|
9432
|
+
Plan: "plan"
|
|
9433
|
+
};
|
|
9334
9434
|
var GetEntityProcessorType = {
|
|
9335
9435
|
Stripe: "stripe",
|
|
9336
9436
|
Revenuecat: "revenuecat"
|
|
@@ -9485,13 +9585,15 @@ var GetEntityFlags$inboundSchema = z32.pipe(
|
|
|
9485
9585
|
})
|
|
9486
9586
|
);
|
|
9487
9587
|
var GetEntityLimitType$inboundSchema = inboundSchema(GetEntityLimitType);
|
|
9588
|
+
var GetEntitySpendLimitSource$inboundSchema = inboundSchema(GetEntitySpendLimitSource);
|
|
9488
9589
|
var GetEntitySpendLimit$inboundSchema = z32.pipe(
|
|
9489
9590
|
z32.object({
|
|
9490
9591
|
feature_id: optional3(string4()),
|
|
9491
9592
|
enabled: z32._default(boolean2(), false),
|
|
9492
9593
|
limit_type: optional3(GetEntityLimitType$inboundSchema),
|
|
9493
9594
|
overage_limit: optional3(number2()),
|
|
9494
|
-
skip_overage_billing: optional3(boolean2())
|
|
9595
|
+
skip_overage_billing: optional3(boolean2()),
|
|
9596
|
+
source: optional3(GetEntitySpendLimitSource$inboundSchema)
|
|
9495
9597
|
}),
|
|
9496
9598
|
z32.transform((v) => {
|
|
9497
9599
|
return remap(v, {
|
|
@@ -9506,6 +9608,7 @@ var GetEntityInterval$inboundSchema = inboundSchema(GetEntityInterval);
|
|
|
9506
9608
|
var GetEntityFilter$inboundSchema = z32.object({
|
|
9507
9609
|
properties: z32.record(z32.string(), z32.any())
|
|
9508
9610
|
});
|
|
9611
|
+
var GetEntityUsageLimitSource$inboundSchema = inboundSchema(GetEntityUsageLimitSource);
|
|
9509
9612
|
var GetEntityUsageLimit$inboundSchema = z32.pipe(
|
|
9510
9613
|
z32.object({
|
|
9511
9614
|
feature_id: string4(),
|
|
@@ -9513,7 +9616,8 @@ var GetEntityUsageLimit$inboundSchema = z32.pipe(
|
|
|
9513
9616
|
limit: number2(),
|
|
9514
9617
|
interval: GetEntityInterval$inboundSchema,
|
|
9515
9618
|
filter: optional3(z32.lazy(() => GetEntityFilter$inboundSchema)),
|
|
9516
|
-
usage: optional3(number2())
|
|
9619
|
+
usage: optional3(number2()),
|
|
9620
|
+
source: optional3(GetEntityUsageLimitSource$inboundSchema)
|
|
9517
9621
|
}),
|
|
9518
9622
|
z32.transform((v) => {
|
|
9519
9623
|
return remap(v, {
|
|
@@ -9522,13 +9626,15 @@ var GetEntityUsageLimit$inboundSchema = z32.pipe(
|
|
|
9522
9626
|
})
|
|
9523
9627
|
);
|
|
9524
9628
|
var GetEntityThresholdType$inboundSchema = inboundSchema(GetEntityThresholdType);
|
|
9629
|
+
var GetEntityUsageAlertSource$inboundSchema = inboundSchema(GetEntityUsageAlertSource);
|
|
9525
9630
|
var GetEntityUsageAlert$inboundSchema = z32.pipe(
|
|
9526
9631
|
z32.object({
|
|
9527
9632
|
feature_id: optional3(string4()),
|
|
9528
9633
|
enabled: z32._default(boolean2(), true),
|
|
9529
9634
|
threshold: number2(),
|
|
9530
9635
|
threshold_type: GetEntityThresholdType$inboundSchema,
|
|
9531
|
-
name: optional3(string4())
|
|
9636
|
+
name: optional3(string4()),
|
|
9637
|
+
source: optional3(GetEntityUsageAlertSource$inboundSchema)
|
|
9532
9638
|
}),
|
|
9533
9639
|
z32.transform((v) => {
|
|
9534
9640
|
return remap(v, {
|
|
@@ -9537,10 +9643,12 @@ var GetEntityUsageAlert$inboundSchema = z32.pipe(
|
|
|
9537
9643
|
});
|
|
9538
9644
|
})
|
|
9539
9645
|
);
|
|
9646
|
+
var GetEntityOverageAllowedSource$inboundSchema = inboundSchema(GetEntityOverageAllowedSource);
|
|
9540
9647
|
var GetEntityOverageAllowed$inboundSchema = z32.pipe(
|
|
9541
9648
|
z32.object({
|
|
9542
9649
|
feature_id: string4(),
|
|
9543
|
-
enabled: z32._default(boolean2(), false)
|
|
9650
|
+
enabled: z32._default(boolean2(), false),
|
|
9651
|
+
source: optional3(GetEntityOverageAllowedSource$inboundSchema)
|
|
9544
9652
|
}),
|
|
9545
9653
|
z32.transform((v) => {
|
|
9546
9654
|
return remap(v, {
|
|
@@ -11147,22 +11255,42 @@ var ListCustomersPurchaseLimitInterval1 = {
|
|
|
11147
11255
|
Week: "week",
|
|
11148
11256
|
Month: "month"
|
|
11149
11257
|
};
|
|
11258
|
+
var ListCustomersAutoTopupSource = {
|
|
11259
|
+
Customer: "customer",
|
|
11260
|
+
Plan: "plan"
|
|
11261
|
+
};
|
|
11150
11262
|
var ListCustomersLimitType = {
|
|
11151
11263
|
Absolute: "absolute",
|
|
11152
11264
|
UsagePercentage: "usage_percentage"
|
|
11153
11265
|
};
|
|
11266
|
+
var ListCustomersSpendLimitSource = {
|
|
11267
|
+
Customer: "customer",
|
|
11268
|
+
Plan: "plan"
|
|
11269
|
+
};
|
|
11154
11270
|
var ListCustomersUsageLimitInterval = {
|
|
11155
11271
|
Day: "day",
|
|
11156
11272
|
Week: "week",
|
|
11157
11273
|
Month: "month",
|
|
11158
11274
|
Year: "year"
|
|
11159
11275
|
};
|
|
11276
|
+
var ListCustomersUsageLimitSource = {
|
|
11277
|
+
Customer: "customer",
|
|
11278
|
+
Plan: "plan"
|
|
11279
|
+
};
|
|
11160
11280
|
var ListCustomersThresholdType = {
|
|
11161
11281
|
Usage: "usage",
|
|
11162
11282
|
UsagePercentage: "usage_percentage",
|
|
11163
11283
|
Remaining: "remaining",
|
|
11164
11284
|
RemainingPercentage: "remaining_percentage"
|
|
11165
11285
|
};
|
|
11286
|
+
var ListCustomersUsageAlertSource = {
|
|
11287
|
+
Customer: "customer",
|
|
11288
|
+
Plan: "plan"
|
|
11289
|
+
};
|
|
11290
|
+
var ListCustomersOverageAllowedSource = {
|
|
11291
|
+
Customer: "customer",
|
|
11292
|
+
Plan: "plan"
|
|
11293
|
+
};
|
|
11166
11294
|
var ListCustomersStatus = {
|
|
11167
11295
|
Active: "active",
|
|
11168
11296
|
Scheduled: "scheduled"
|
|
@@ -11209,36 +11337,37 @@ var ListCustomersEnv$inboundSchema = inboundSchema(ListCustomersEnv);
|
|
|
11209
11337
|
var ListCustomersPurchaseLimitInterval2$inboundSchema = inboundSchema(ListCustomersPurchaseLimitInterval2);
|
|
11210
11338
|
var ListCustomersPurchaseLimit2$inboundSchema = z39.pipe(
|
|
11211
11339
|
z39.object({
|
|
11212
|
-
interval:
|
|
11213
|
-
interval_count:
|
|
11214
|
-
limit:
|
|
11215
|
-
count: number2(),
|
|
11216
|
-
next_reset_at: number2()
|
|
11340
|
+
interval: ListCustomersPurchaseLimitInterval2$inboundSchema,
|
|
11341
|
+
interval_count: z39._default(number2(), 1),
|
|
11342
|
+
limit: number2()
|
|
11217
11343
|
}),
|
|
11218
11344
|
z39.transform((v) => {
|
|
11219
11345
|
return remap(v, {
|
|
11220
|
-
"interval_count": "intervalCount"
|
|
11221
|
-
"next_reset_at": "nextResetAt"
|
|
11346
|
+
"interval_count": "intervalCount"
|
|
11222
11347
|
});
|
|
11223
11348
|
})
|
|
11224
11349
|
);
|
|
11225
11350
|
var ListCustomersPurchaseLimitInterval1$inboundSchema = inboundSchema(ListCustomersPurchaseLimitInterval1);
|
|
11226
11351
|
var ListCustomersPurchaseLimit1$inboundSchema = z39.pipe(
|
|
11227
11352
|
z39.object({
|
|
11228
|
-
interval: ListCustomersPurchaseLimitInterval1$inboundSchema,
|
|
11229
|
-
interval_count:
|
|
11230
|
-
limit: number2()
|
|
11353
|
+
interval: nullable(ListCustomersPurchaseLimitInterval1$inboundSchema),
|
|
11354
|
+
interval_count: nullable(number2()),
|
|
11355
|
+
limit: nullable(number2()),
|
|
11356
|
+
count: number2(),
|
|
11357
|
+
next_reset_at: number2()
|
|
11231
11358
|
}),
|
|
11232
11359
|
z39.transform((v) => {
|
|
11233
11360
|
return remap(v, {
|
|
11234
|
-
"interval_count": "intervalCount"
|
|
11361
|
+
"interval_count": "intervalCount",
|
|
11362
|
+
"next_reset_at": "nextResetAt"
|
|
11235
11363
|
});
|
|
11236
11364
|
})
|
|
11237
11365
|
);
|
|
11238
11366
|
var ListCustomersPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
11239
|
-
z39.lazy(() =>
|
|
11240
|
-
z39.lazy(() =>
|
|
11367
|
+
z39.lazy(() => ListCustomersPurchaseLimit1$inboundSchema),
|
|
11368
|
+
z39.lazy(() => ListCustomersPurchaseLimit2$inboundSchema)
|
|
11241
11369
|
]);
|
|
11370
|
+
var ListCustomersAutoTopupSource$inboundSchema = inboundSchema(ListCustomersAutoTopupSource);
|
|
11242
11371
|
var ListCustomersAutoTopup$inboundSchema = z39.pipe(
|
|
11243
11372
|
z39.object({
|
|
11244
11373
|
feature_id: string4(),
|
|
@@ -11246,10 +11375,11 @@ var ListCustomersAutoTopup$inboundSchema = z39.pipe(
|
|
|
11246
11375
|
threshold: number2(),
|
|
11247
11376
|
quantity: number2(),
|
|
11248
11377
|
purchase_limit: optional3(smartUnion([
|
|
11249
|
-
z39.lazy(() =>
|
|
11250
|
-
z39.lazy(() =>
|
|
11378
|
+
z39.lazy(() => ListCustomersPurchaseLimit1$inboundSchema),
|
|
11379
|
+
z39.lazy(() => ListCustomersPurchaseLimit2$inboundSchema)
|
|
11251
11380
|
])),
|
|
11252
|
-
invoice_mode: optional3(boolean2())
|
|
11381
|
+
invoice_mode: optional3(boolean2()),
|
|
11382
|
+
source: optional3(ListCustomersAutoTopupSource$inboundSchema)
|
|
11253
11383
|
}),
|
|
11254
11384
|
z39.transform((v) => {
|
|
11255
11385
|
return remap(v, {
|
|
@@ -11260,13 +11390,15 @@ var ListCustomersAutoTopup$inboundSchema = z39.pipe(
|
|
|
11260
11390
|
})
|
|
11261
11391
|
);
|
|
11262
11392
|
var ListCustomersLimitType$inboundSchema = inboundSchema(ListCustomersLimitType);
|
|
11393
|
+
var ListCustomersSpendLimitSource$inboundSchema = inboundSchema(ListCustomersSpendLimitSource);
|
|
11263
11394
|
var ListCustomersSpendLimit$inboundSchema = z39.pipe(
|
|
11264
11395
|
z39.object({
|
|
11265
11396
|
feature_id: optional3(string4()),
|
|
11266
11397
|
enabled: z39._default(boolean2(), false),
|
|
11267
11398
|
limit_type: optional3(ListCustomersLimitType$inboundSchema),
|
|
11268
11399
|
overage_limit: optional3(number2()),
|
|
11269
|
-
skip_overage_billing: optional3(boolean2())
|
|
11400
|
+
skip_overage_billing: optional3(boolean2()),
|
|
11401
|
+
source: optional3(ListCustomersSpendLimitSource$inboundSchema)
|
|
11270
11402
|
}),
|
|
11271
11403
|
z39.transform((v) => {
|
|
11272
11404
|
return remap(v, {
|
|
@@ -11281,6 +11413,7 @@ var ListCustomersUsageLimitInterval$inboundSchema = inboundSchema(ListCustomersU
|
|
|
11281
11413
|
var ListCustomersFilter$inboundSchema = z39.object({
|
|
11282
11414
|
properties: z39.record(z39.string(), z39.any())
|
|
11283
11415
|
});
|
|
11416
|
+
var ListCustomersUsageLimitSource$inboundSchema = inboundSchema(ListCustomersUsageLimitSource);
|
|
11284
11417
|
var ListCustomersUsageLimit$inboundSchema = z39.pipe(
|
|
11285
11418
|
z39.object({
|
|
11286
11419
|
feature_id: string4(),
|
|
@@ -11288,7 +11421,8 @@ var ListCustomersUsageLimit$inboundSchema = z39.pipe(
|
|
|
11288
11421
|
limit: number2(),
|
|
11289
11422
|
interval: ListCustomersUsageLimitInterval$inboundSchema,
|
|
11290
11423
|
filter: optional3(z39.lazy(() => ListCustomersFilter$inboundSchema)),
|
|
11291
|
-
usage: optional3(number2())
|
|
11424
|
+
usage: optional3(number2()),
|
|
11425
|
+
source: optional3(ListCustomersUsageLimitSource$inboundSchema)
|
|
11292
11426
|
}),
|
|
11293
11427
|
z39.transform((v) => {
|
|
11294
11428
|
return remap(v, {
|
|
@@ -11297,13 +11431,15 @@ var ListCustomersUsageLimit$inboundSchema = z39.pipe(
|
|
|
11297
11431
|
})
|
|
11298
11432
|
);
|
|
11299
11433
|
var ListCustomersThresholdType$inboundSchema = inboundSchema(ListCustomersThresholdType);
|
|
11434
|
+
var ListCustomersUsageAlertSource$inboundSchema = inboundSchema(ListCustomersUsageAlertSource);
|
|
11300
11435
|
var ListCustomersUsageAlert$inboundSchema = z39.pipe(
|
|
11301
11436
|
z39.object({
|
|
11302
11437
|
feature_id: optional3(string4()),
|
|
11303
11438
|
enabled: z39._default(boolean2(), true),
|
|
11304
11439
|
threshold: number2(),
|
|
11305
11440
|
threshold_type: ListCustomersThresholdType$inboundSchema,
|
|
11306
|
-
name: optional3(string4())
|
|
11441
|
+
name: optional3(string4()),
|
|
11442
|
+
source: optional3(ListCustomersUsageAlertSource$inboundSchema)
|
|
11307
11443
|
}),
|
|
11308
11444
|
z39.transform((v) => {
|
|
11309
11445
|
return remap(v, {
|
|
@@ -11312,10 +11448,12 @@ var ListCustomersUsageAlert$inboundSchema = z39.pipe(
|
|
|
11312
11448
|
});
|
|
11313
11449
|
})
|
|
11314
11450
|
);
|
|
11451
|
+
var ListCustomersOverageAllowedSource$inboundSchema = inboundSchema(ListCustomersOverageAllowedSource);
|
|
11315
11452
|
var ListCustomersOverageAllowed$inboundSchema = z39.pipe(
|
|
11316
11453
|
z39.object({
|
|
11317
11454
|
feature_id: string4(),
|
|
11318
|
-
enabled: z39._default(boolean2(), false)
|
|
11455
|
+
enabled: z39._default(boolean2(), false),
|
|
11456
|
+
source: optional3(ListCustomersOverageAllowedSource$inboundSchema)
|
|
11319
11457
|
}),
|
|
11320
11458
|
z39.transform((v) => {
|
|
11321
11459
|
return remap(v, {
|
|
@@ -11605,18 +11743,34 @@ var ListEntitiesLimitType = {
|
|
|
11605
11743
|
Absolute: "absolute",
|
|
11606
11744
|
UsagePercentage: "usage_percentage"
|
|
11607
11745
|
};
|
|
11746
|
+
var ListEntitiesSpendLimitSource = {
|
|
11747
|
+
Customer: "customer",
|
|
11748
|
+
Plan: "plan"
|
|
11749
|
+
};
|
|
11608
11750
|
var ListEntitiesInterval = {
|
|
11609
11751
|
Day: "day",
|
|
11610
11752
|
Week: "week",
|
|
11611
11753
|
Month: "month",
|
|
11612
11754
|
Year: "year"
|
|
11613
11755
|
};
|
|
11756
|
+
var ListEntitiesUsageLimitSource = {
|
|
11757
|
+
Customer: "customer",
|
|
11758
|
+
Plan: "plan"
|
|
11759
|
+
};
|
|
11614
11760
|
var ListEntitiesThresholdType = {
|
|
11615
11761
|
Usage: "usage",
|
|
11616
11762
|
UsagePercentage: "usage_percentage",
|
|
11617
11763
|
Remaining: "remaining",
|
|
11618
11764
|
RemainingPercentage: "remaining_percentage"
|
|
11619
11765
|
};
|
|
11766
|
+
var ListEntitiesUsageAlertSource = {
|
|
11767
|
+
Customer: "customer",
|
|
11768
|
+
Plan: "plan"
|
|
11769
|
+
};
|
|
11770
|
+
var ListEntitiesOverageAllowedSource = {
|
|
11771
|
+
Customer: "customer",
|
|
11772
|
+
Plan: "plan"
|
|
11773
|
+
};
|
|
11620
11774
|
var ListEntitiesProcessorType = {
|
|
11621
11775
|
Stripe: "stripe",
|
|
11622
11776
|
Revenuecat: "revenuecat"
|
|
@@ -11785,13 +11939,15 @@ var ListEntitiesFlags$inboundSchema = z40.pipe(
|
|
|
11785
11939
|
})
|
|
11786
11940
|
);
|
|
11787
11941
|
var ListEntitiesLimitType$inboundSchema = inboundSchema(ListEntitiesLimitType);
|
|
11942
|
+
var ListEntitiesSpendLimitSource$inboundSchema = inboundSchema(ListEntitiesSpendLimitSource);
|
|
11788
11943
|
var ListEntitiesSpendLimit$inboundSchema = z40.pipe(
|
|
11789
11944
|
z40.object({
|
|
11790
11945
|
feature_id: optional3(string4()),
|
|
11791
11946
|
enabled: z40._default(boolean2(), false),
|
|
11792
11947
|
limit_type: optional3(ListEntitiesLimitType$inboundSchema),
|
|
11793
11948
|
overage_limit: optional3(number2()),
|
|
11794
|
-
skip_overage_billing: optional3(boolean2())
|
|
11949
|
+
skip_overage_billing: optional3(boolean2()),
|
|
11950
|
+
source: optional3(ListEntitiesSpendLimitSource$inboundSchema)
|
|
11795
11951
|
}),
|
|
11796
11952
|
z40.transform((v) => {
|
|
11797
11953
|
return remap(v, {
|
|
@@ -11806,6 +11962,7 @@ var ListEntitiesInterval$inboundSchema = inboundSchema(ListEntitiesInterval);
|
|
|
11806
11962
|
var ListEntitiesFilter$inboundSchema = z40.object({
|
|
11807
11963
|
properties: z40.record(z40.string(), z40.any())
|
|
11808
11964
|
});
|
|
11965
|
+
var ListEntitiesUsageLimitSource$inboundSchema = inboundSchema(ListEntitiesUsageLimitSource);
|
|
11809
11966
|
var ListEntitiesUsageLimit$inboundSchema = z40.pipe(
|
|
11810
11967
|
z40.object({
|
|
11811
11968
|
feature_id: string4(),
|
|
@@ -11813,7 +11970,8 @@ var ListEntitiesUsageLimit$inboundSchema = z40.pipe(
|
|
|
11813
11970
|
limit: number2(),
|
|
11814
11971
|
interval: ListEntitiesInterval$inboundSchema,
|
|
11815
11972
|
filter: optional3(z40.lazy(() => ListEntitiesFilter$inboundSchema)),
|
|
11816
|
-
usage: optional3(number2())
|
|
11973
|
+
usage: optional3(number2()),
|
|
11974
|
+
source: optional3(ListEntitiesUsageLimitSource$inboundSchema)
|
|
11817
11975
|
}),
|
|
11818
11976
|
z40.transform((v) => {
|
|
11819
11977
|
return remap(v, {
|
|
@@ -11822,13 +11980,15 @@ var ListEntitiesUsageLimit$inboundSchema = z40.pipe(
|
|
|
11822
11980
|
})
|
|
11823
11981
|
);
|
|
11824
11982
|
var ListEntitiesThresholdType$inboundSchema = inboundSchema(ListEntitiesThresholdType);
|
|
11983
|
+
var ListEntitiesUsageAlertSource$inboundSchema = inboundSchema(ListEntitiesUsageAlertSource);
|
|
11825
11984
|
var ListEntitiesUsageAlert$inboundSchema = z40.pipe(
|
|
11826
11985
|
z40.object({
|
|
11827
11986
|
feature_id: optional3(string4()),
|
|
11828
11987
|
enabled: z40._default(boolean2(), true),
|
|
11829
11988
|
threshold: number2(),
|
|
11830
11989
|
threshold_type: ListEntitiesThresholdType$inboundSchema,
|
|
11831
|
-
name: optional3(string4())
|
|
11990
|
+
name: optional3(string4()),
|
|
11991
|
+
source: optional3(ListEntitiesUsageAlertSource$inboundSchema)
|
|
11832
11992
|
}),
|
|
11833
11993
|
z40.transform((v) => {
|
|
11834
11994
|
return remap(v, {
|
|
@@ -11837,10 +11997,12 @@ var ListEntitiesUsageAlert$inboundSchema = z40.pipe(
|
|
|
11837
11997
|
});
|
|
11838
11998
|
})
|
|
11839
11999
|
);
|
|
12000
|
+
var ListEntitiesOverageAllowedSource$inboundSchema = inboundSchema(ListEntitiesOverageAllowedSource);
|
|
11840
12001
|
var ListEntitiesOverageAllowed$inboundSchema = z40.pipe(
|
|
11841
12002
|
z40.object({
|
|
11842
12003
|
feature_id: string4(),
|
|
11843
|
-
enabled: z40._default(boolean2(), false)
|
|
12004
|
+
enabled: z40._default(boolean2(), false),
|
|
12005
|
+
source: optional3(ListEntitiesOverageAllowedSource$inboundSchema)
|
|
11844
12006
|
}),
|
|
11845
12007
|
z40.transform((v) => {
|
|
11846
12008
|
return remap(v, {
|
|
@@ -17935,7 +18097,8 @@ var UpdateBalanceParams$outboundSchema = z61.pipe(
|
|
|
17935
18097
|
interval: z61.optional(UpdateBalanceInterval$outboundSchema),
|
|
17936
18098
|
includedGrant: z61.optional(z61.number()),
|
|
17937
18099
|
balanceId: z61.optional(z61.string()),
|
|
17938
|
-
nextResetAt: z61.optional(z61.number())
|
|
18100
|
+
nextResetAt: z61.optional(z61.number()),
|
|
18101
|
+
expiresAt: z61.optional(z61.number())
|
|
17939
18102
|
}),
|
|
17940
18103
|
z61.transform((v) => {
|
|
17941
18104
|
return remap(v, {
|
|
@@ -17945,7 +18108,8 @@ var UpdateBalanceParams$outboundSchema = z61.pipe(
|
|
|
17945
18108
|
addToBalance: "add_to_balance",
|
|
17946
18109
|
includedGrant: "included_grant",
|
|
17947
18110
|
balanceId: "balance_id",
|
|
17948
|
-
nextResetAt: "next_reset_at"
|
|
18111
|
+
nextResetAt: "next_reset_at",
|
|
18112
|
+
expiresAt: "expires_at"
|
|
17949
18113
|
});
|
|
17950
18114
|
})
|
|
17951
18115
|
);
|
|
@@ -17993,22 +18157,42 @@ var UpdateCustomerPurchaseLimitIntervalResponse1 = {
|
|
|
17993
18157
|
Week: "week",
|
|
17994
18158
|
Month: "month"
|
|
17995
18159
|
};
|
|
18160
|
+
var UpdateCustomerAutoTopupSource = {
|
|
18161
|
+
Customer: "customer",
|
|
18162
|
+
Plan: "plan"
|
|
18163
|
+
};
|
|
17996
18164
|
var UpdateCustomerLimitTypeResponse = {
|
|
17997
18165
|
Absolute: "absolute",
|
|
17998
18166
|
UsagePercentage: "usage_percentage"
|
|
17999
18167
|
};
|
|
18168
|
+
var UpdateCustomerSpendLimitSource = {
|
|
18169
|
+
Customer: "customer",
|
|
18170
|
+
Plan: "plan"
|
|
18171
|
+
};
|
|
18000
18172
|
var UpdateCustomerUsageLimitIntervalResponse = {
|
|
18001
18173
|
Day: "day",
|
|
18002
18174
|
Week: "week",
|
|
18003
18175
|
Month: "month",
|
|
18004
18176
|
Year: "year"
|
|
18005
18177
|
};
|
|
18178
|
+
var UpdateCustomerUsageLimitSource = {
|
|
18179
|
+
Customer: "customer",
|
|
18180
|
+
Plan: "plan"
|
|
18181
|
+
};
|
|
18006
18182
|
var UpdateCustomerThresholdTypeResponse = {
|
|
18007
18183
|
Usage: "usage",
|
|
18008
18184
|
UsagePercentage: "usage_percentage",
|
|
18009
18185
|
Remaining: "remaining",
|
|
18010
18186
|
RemainingPercentage: "remaining_percentage"
|
|
18011
18187
|
};
|
|
18188
|
+
var UpdateCustomerUsageAlertSource = {
|
|
18189
|
+
Customer: "customer",
|
|
18190
|
+
Plan: "plan"
|
|
18191
|
+
};
|
|
18192
|
+
var UpdateCustomerOverageAllowedSource = {
|
|
18193
|
+
Customer: "customer",
|
|
18194
|
+
Plan: "plan"
|
|
18195
|
+
};
|
|
18012
18196
|
var UpdateCustomerStatus = {
|
|
18013
18197
|
Active: "active",
|
|
18014
18198
|
Scheduled: "scheduled"
|
|
@@ -18205,38 +18389,39 @@ var UpdateCustomerEnv$inboundSchema = inboundSchema(UpdateCustomerEnv);
|
|
|
18205
18389
|
var UpdateCustomerPurchaseLimitIntervalResponse2$inboundSchema = inboundSchema(UpdateCustomerPurchaseLimitIntervalResponse2);
|
|
18206
18390
|
var UpdateCustomerPurchaseLimitResponse2$inboundSchema = z62.pipe(
|
|
18207
18391
|
z62.object({
|
|
18208
|
-
interval:
|
|
18209
|
-
|
|
18210
|
-
)
|
|
18211
|
-
interval_count: nullable(number2()),
|
|
18212
|
-
limit: nullable(number2()),
|
|
18213
|
-
count: number2(),
|
|
18214
|
-
next_reset_at: number2()
|
|
18392
|
+
interval: UpdateCustomerPurchaseLimitIntervalResponse2$inboundSchema,
|
|
18393
|
+
interval_count: z62._default(number2(), 1),
|
|
18394
|
+
limit: number2()
|
|
18215
18395
|
}),
|
|
18216
18396
|
z62.transform((v) => {
|
|
18217
18397
|
return remap(v, {
|
|
18218
|
-
"interval_count": "intervalCount"
|
|
18219
|
-
"next_reset_at": "nextResetAt"
|
|
18398
|
+
"interval_count": "intervalCount"
|
|
18220
18399
|
});
|
|
18221
18400
|
})
|
|
18222
18401
|
);
|
|
18223
18402
|
var UpdateCustomerPurchaseLimitIntervalResponse1$inboundSchema = inboundSchema(UpdateCustomerPurchaseLimitIntervalResponse1);
|
|
18224
18403
|
var UpdateCustomerPurchaseLimitResponse1$inboundSchema = z62.pipe(
|
|
18225
18404
|
z62.object({
|
|
18226
|
-
interval:
|
|
18227
|
-
|
|
18228
|
-
|
|
18405
|
+
interval: nullable(
|
|
18406
|
+
UpdateCustomerPurchaseLimitIntervalResponse1$inboundSchema
|
|
18407
|
+
),
|
|
18408
|
+
interval_count: nullable(number2()),
|
|
18409
|
+
limit: nullable(number2()),
|
|
18410
|
+
count: number2(),
|
|
18411
|
+
next_reset_at: number2()
|
|
18229
18412
|
}),
|
|
18230
18413
|
z62.transform((v) => {
|
|
18231
18414
|
return remap(v, {
|
|
18232
|
-
"interval_count": "intervalCount"
|
|
18415
|
+
"interval_count": "intervalCount",
|
|
18416
|
+
"next_reset_at": "nextResetAt"
|
|
18233
18417
|
});
|
|
18234
18418
|
})
|
|
18235
18419
|
);
|
|
18236
18420
|
var UpdateCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
18237
|
-
z62.lazy(() =>
|
|
18238
|
-
z62.lazy(() =>
|
|
18421
|
+
z62.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema),
|
|
18422
|
+
z62.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema)
|
|
18239
18423
|
]);
|
|
18424
|
+
var UpdateCustomerAutoTopupSource$inboundSchema = inboundSchema(UpdateCustomerAutoTopupSource);
|
|
18240
18425
|
var UpdateCustomerAutoTopupResponse$inboundSchema = z62.pipe(
|
|
18241
18426
|
z62.object({
|
|
18242
18427
|
feature_id: string4(),
|
|
@@ -18244,10 +18429,11 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z62.pipe(
|
|
|
18244
18429
|
threshold: number2(),
|
|
18245
18430
|
quantity: number2(),
|
|
18246
18431
|
purchase_limit: optional3(smartUnion([
|
|
18247
|
-
z62.lazy(() =>
|
|
18248
|
-
z62.lazy(() =>
|
|
18432
|
+
z62.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema),
|
|
18433
|
+
z62.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema)
|
|
18249
18434
|
])),
|
|
18250
|
-
invoice_mode: optional3(boolean2())
|
|
18435
|
+
invoice_mode: optional3(boolean2()),
|
|
18436
|
+
source: optional3(UpdateCustomerAutoTopupSource$inboundSchema)
|
|
18251
18437
|
}),
|
|
18252
18438
|
z62.transform((v) => {
|
|
18253
18439
|
return remap(v, {
|
|
@@ -18258,13 +18444,15 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z62.pipe(
|
|
|
18258
18444
|
})
|
|
18259
18445
|
);
|
|
18260
18446
|
var UpdateCustomerLimitTypeResponse$inboundSchema = inboundSchema(UpdateCustomerLimitTypeResponse);
|
|
18447
|
+
var UpdateCustomerSpendLimitSource$inboundSchema = inboundSchema(UpdateCustomerSpendLimitSource);
|
|
18261
18448
|
var UpdateCustomerSpendLimitResponse$inboundSchema = z62.pipe(
|
|
18262
18449
|
z62.object({
|
|
18263
18450
|
feature_id: optional3(string4()),
|
|
18264
18451
|
enabled: z62._default(boolean2(), false),
|
|
18265
18452
|
limit_type: optional3(UpdateCustomerLimitTypeResponse$inboundSchema),
|
|
18266
18453
|
overage_limit: optional3(number2()),
|
|
18267
|
-
skip_overage_billing: optional3(boolean2())
|
|
18454
|
+
skip_overage_billing: optional3(boolean2()),
|
|
18455
|
+
source: optional3(UpdateCustomerSpendLimitSource$inboundSchema)
|
|
18268
18456
|
}),
|
|
18269
18457
|
z62.transform((v) => {
|
|
18270
18458
|
return remap(v, {
|
|
@@ -18279,6 +18467,7 @@ var UpdateCustomerUsageLimitIntervalResponse$inboundSchema = inboundSchema(Updat
|
|
|
18279
18467
|
var UpdateCustomerFilterResponse$inboundSchema = z62.object({
|
|
18280
18468
|
properties: z62.record(z62.string(), z62.any())
|
|
18281
18469
|
});
|
|
18470
|
+
var UpdateCustomerUsageLimitSource$inboundSchema = inboundSchema(UpdateCustomerUsageLimitSource);
|
|
18282
18471
|
var UpdateCustomerUsageLimitResponse$inboundSchema = z62.pipe(
|
|
18283
18472
|
z62.object({
|
|
18284
18473
|
feature_id: string4(),
|
|
@@ -18288,7 +18477,8 @@ var UpdateCustomerUsageLimitResponse$inboundSchema = z62.pipe(
|
|
|
18288
18477
|
filter: optional3(
|
|
18289
18478
|
z62.lazy(() => UpdateCustomerFilterResponse$inboundSchema)
|
|
18290
18479
|
),
|
|
18291
|
-
usage: optional3(number2())
|
|
18480
|
+
usage: optional3(number2()),
|
|
18481
|
+
source: optional3(UpdateCustomerUsageLimitSource$inboundSchema)
|
|
18292
18482
|
}),
|
|
18293
18483
|
z62.transform((v) => {
|
|
18294
18484
|
return remap(v, {
|
|
@@ -18297,13 +18487,15 @@ var UpdateCustomerUsageLimitResponse$inboundSchema = z62.pipe(
|
|
|
18297
18487
|
})
|
|
18298
18488
|
);
|
|
18299
18489
|
var UpdateCustomerThresholdTypeResponse$inboundSchema = inboundSchema(UpdateCustomerThresholdTypeResponse);
|
|
18490
|
+
var UpdateCustomerUsageAlertSource$inboundSchema = inboundSchema(UpdateCustomerUsageAlertSource);
|
|
18300
18491
|
var UpdateCustomerUsageAlertResponse$inboundSchema = z62.pipe(
|
|
18301
18492
|
z62.object({
|
|
18302
18493
|
feature_id: optional3(string4()),
|
|
18303
18494
|
enabled: z62._default(boolean2(), true),
|
|
18304
18495
|
threshold: number2(),
|
|
18305
18496
|
threshold_type: UpdateCustomerThresholdTypeResponse$inboundSchema,
|
|
18306
|
-
name: optional3(string4())
|
|
18497
|
+
name: optional3(string4()),
|
|
18498
|
+
source: optional3(UpdateCustomerUsageAlertSource$inboundSchema)
|
|
18307
18499
|
}),
|
|
18308
18500
|
z62.transform((v) => {
|
|
18309
18501
|
return remap(v, {
|
|
@@ -18312,10 +18504,12 @@ var UpdateCustomerUsageAlertResponse$inboundSchema = z62.pipe(
|
|
|
18312
18504
|
});
|
|
18313
18505
|
})
|
|
18314
18506
|
);
|
|
18507
|
+
var UpdateCustomerOverageAllowedSource$inboundSchema = inboundSchema(UpdateCustomerOverageAllowedSource);
|
|
18315
18508
|
var UpdateCustomerOverageAllowedResponse$inboundSchema = z62.pipe(
|
|
18316
18509
|
z62.object({
|
|
18317
18510
|
feature_id: string4(),
|
|
18318
|
-
enabled: z62._default(boolean2(), false)
|
|
18511
|
+
enabled: z62._default(boolean2(), false),
|
|
18512
|
+
source: optional3(UpdateCustomerOverageAllowedSource$inboundSchema)
|
|
18319
18513
|
}),
|
|
18320
18514
|
z62.transform((v) => {
|
|
18321
18515
|
return remap(v, {
|
|
@@ -18608,18 +18802,34 @@ var UpdateEntityLimitTypeResponse = {
|
|
|
18608
18802
|
Absolute: "absolute",
|
|
18609
18803
|
UsagePercentage: "usage_percentage"
|
|
18610
18804
|
};
|
|
18805
|
+
var UpdateEntitySpendLimitSource = {
|
|
18806
|
+
Customer: "customer",
|
|
18807
|
+
Plan: "plan"
|
|
18808
|
+
};
|
|
18611
18809
|
var UpdateEntityIntervalResponse = {
|
|
18612
18810
|
Day: "day",
|
|
18613
18811
|
Week: "week",
|
|
18614
18812
|
Month: "month",
|
|
18615
18813
|
Year: "year"
|
|
18616
18814
|
};
|
|
18815
|
+
var UpdateEntityUsageLimitSource = {
|
|
18816
|
+
Customer: "customer",
|
|
18817
|
+
Plan: "plan"
|
|
18818
|
+
};
|
|
18617
18819
|
var UpdateEntityThresholdTypeResponse = {
|
|
18618
18820
|
Usage: "usage",
|
|
18619
18821
|
UsagePercentage: "usage_percentage",
|
|
18620
18822
|
Remaining: "remaining",
|
|
18621
18823
|
RemainingPercentage: "remaining_percentage"
|
|
18622
18824
|
};
|
|
18825
|
+
var UpdateEntityUsageAlertSource = {
|
|
18826
|
+
Customer: "customer",
|
|
18827
|
+
Plan: "plan"
|
|
18828
|
+
};
|
|
18829
|
+
var UpdateEntityOverageAllowedSource = {
|
|
18830
|
+
Customer: "customer",
|
|
18831
|
+
Plan: "plan"
|
|
18832
|
+
};
|
|
18623
18833
|
var UpdateEntityProcessorType = {
|
|
18624
18834
|
Stripe: "stripe",
|
|
18625
18835
|
Revenuecat: "revenuecat"
|
|
@@ -18869,13 +19079,15 @@ var UpdateEntityFlags$inboundSchema = z63.pipe(
|
|
|
18869
19079
|
})
|
|
18870
19080
|
);
|
|
18871
19081
|
var UpdateEntityLimitTypeResponse$inboundSchema = inboundSchema(UpdateEntityLimitTypeResponse);
|
|
19082
|
+
var UpdateEntitySpendLimitSource$inboundSchema = inboundSchema(UpdateEntitySpendLimitSource);
|
|
18872
19083
|
var UpdateEntitySpendLimitResponse$inboundSchema = z63.pipe(
|
|
18873
19084
|
z63.object({
|
|
18874
19085
|
feature_id: optional3(string4()),
|
|
18875
19086
|
enabled: z63._default(boolean2(), false),
|
|
18876
19087
|
limit_type: optional3(UpdateEntityLimitTypeResponse$inboundSchema),
|
|
18877
19088
|
overage_limit: optional3(number2()),
|
|
18878
|
-
skip_overage_billing: optional3(boolean2())
|
|
19089
|
+
skip_overage_billing: optional3(boolean2()),
|
|
19090
|
+
source: optional3(UpdateEntitySpendLimitSource$inboundSchema)
|
|
18879
19091
|
}),
|
|
18880
19092
|
z63.transform((v) => {
|
|
18881
19093
|
return remap(v, {
|
|
@@ -18890,6 +19102,7 @@ var UpdateEntityIntervalResponse$inboundSchema = inboundSchema(UpdateEntityInter
|
|
|
18890
19102
|
var UpdateEntityFilterResponse$inboundSchema = z63.object({
|
|
18891
19103
|
properties: z63.record(z63.string(), z63.any())
|
|
18892
19104
|
});
|
|
19105
|
+
var UpdateEntityUsageLimitSource$inboundSchema = inboundSchema(UpdateEntityUsageLimitSource);
|
|
18893
19106
|
var UpdateEntityUsageLimitResponse$inboundSchema = z63.pipe(
|
|
18894
19107
|
z63.object({
|
|
18895
19108
|
feature_id: string4(),
|
|
@@ -18899,7 +19112,8 @@ var UpdateEntityUsageLimitResponse$inboundSchema = z63.pipe(
|
|
|
18899
19112
|
filter: optional3(
|
|
18900
19113
|
z63.lazy(() => UpdateEntityFilterResponse$inboundSchema)
|
|
18901
19114
|
),
|
|
18902
|
-
usage: optional3(number2())
|
|
19115
|
+
usage: optional3(number2()),
|
|
19116
|
+
source: optional3(UpdateEntityUsageLimitSource$inboundSchema)
|
|
18903
19117
|
}),
|
|
18904
19118
|
z63.transform((v) => {
|
|
18905
19119
|
return remap(v, {
|
|
@@ -18908,13 +19122,15 @@ var UpdateEntityUsageLimitResponse$inboundSchema = z63.pipe(
|
|
|
18908
19122
|
})
|
|
18909
19123
|
);
|
|
18910
19124
|
var UpdateEntityThresholdTypeResponse$inboundSchema = inboundSchema(UpdateEntityThresholdTypeResponse);
|
|
19125
|
+
var UpdateEntityUsageAlertSource$inboundSchema = inboundSchema(UpdateEntityUsageAlertSource);
|
|
18911
19126
|
var UpdateEntityUsageAlertResponse$inboundSchema = z63.pipe(
|
|
18912
19127
|
z63.object({
|
|
18913
19128
|
feature_id: optional3(string4()),
|
|
18914
19129
|
enabled: z63._default(boolean2(), true),
|
|
18915
19130
|
threshold: number2(),
|
|
18916
19131
|
threshold_type: UpdateEntityThresholdTypeResponse$inboundSchema,
|
|
18917
|
-
name: optional3(string4())
|
|
19132
|
+
name: optional3(string4()),
|
|
19133
|
+
source: optional3(UpdateEntityUsageAlertSource$inboundSchema)
|
|
18918
19134
|
}),
|
|
18919
19135
|
z63.transform((v) => {
|
|
18920
19136
|
return remap(v, {
|
|
@@ -18923,10 +19139,12 @@ var UpdateEntityUsageAlertResponse$inboundSchema = z63.pipe(
|
|
|
18923
19139
|
});
|
|
18924
19140
|
})
|
|
18925
19141
|
);
|
|
19142
|
+
var UpdateEntityOverageAllowedSource$inboundSchema = inboundSchema(UpdateEntityOverageAllowedSource);
|
|
18926
19143
|
var UpdateEntityOverageAllowedResponse$inboundSchema = z63.pipe(
|
|
18927
19144
|
z63.object({
|
|
18928
19145
|
feature_id: string4(),
|
|
18929
|
-
enabled: z63._default(boolean2(), false)
|
|
19146
|
+
enabled: z63._default(boolean2(), false),
|
|
19147
|
+
source: optional3(UpdateEntityOverageAllowedSource$inboundSchema)
|
|
18930
19148
|
}),
|
|
18931
19149
|
z63.transform((v) => {
|
|
18932
19150
|
return remap(v, {
|
|
@@ -23271,7 +23489,7 @@ var Billing = class extends ClientSDK {
|
|
|
23271
23489
|
* @example
|
|
23272
23490
|
* ```typescript
|
|
23273
23491
|
* // Schedule a transition from a trial plan to a paid plan
|
|
23274
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
23492
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783701939170,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784911539170,"plans":[{"planId":"pro_plan"}]}] });
|
|
23275
23493
|
* ```
|
|
23276
23494
|
*
|
|
23277
23495
|
* @param customerId - The ID of the customer to create the schedule for.
|