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
|
@@ -5386,18 +5386,34 @@ var CreateEntityLimitTypeResponse = {
|
|
|
5386
5386
|
Absolute: "absolute",
|
|
5387
5387
|
UsagePercentage: "usage_percentage"
|
|
5388
5388
|
};
|
|
5389
|
+
var CreateEntitySpendLimitSource = {
|
|
5390
|
+
Customer: "customer",
|
|
5391
|
+
Plan: "plan"
|
|
5392
|
+
};
|
|
5389
5393
|
var CreateEntityIntervalResponse = {
|
|
5390
5394
|
Day: "day",
|
|
5391
5395
|
Week: "week",
|
|
5392
5396
|
Month: "month",
|
|
5393
5397
|
Year: "year"
|
|
5394
5398
|
};
|
|
5399
|
+
var CreateEntityUsageLimitSource = {
|
|
5400
|
+
Customer: "customer",
|
|
5401
|
+
Plan: "plan"
|
|
5402
|
+
};
|
|
5395
5403
|
var CreateEntityThresholdTypeResponse = {
|
|
5396
5404
|
Usage: "usage",
|
|
5397
5405
|
UsagePercentage: "usage_percentage",
|
|
5398
5406
|
Remaining: "remaining",
|
|
5399
5407
|
RemainingPercentage: "remaining_percentage"
|
|
5400
5408
|
};
|
|
5409
|
+
var CreateEntityUsageAlertSource = {
|
|
5410
|
+
Customer: "customer",
|
|
5411
|
+
Plan: "plan"
|
|
5412
|
+
};
|
|
5413
|
+
var CreateEntityOverageAllowedSource = {
|
|
5414
|
+
Customer: "customer",
|
|
5415
|
+
Plan: "plan"
|
|
5416
|
+
};
|
|
5401
5417
|
var CreateEntityProcessorType = {
|
|
5402
5418
|
Stripe: "stripe",
|
|
5403
5419
|
Revenuecat: "revenuecat"
|
|
@@ -5652,13 +5668,15 @@ var CreateEntityFlags$inboundSchema = z18.pipe(
|
|
|
5652
5668
|
})
|
|
5653
5669
|
);
|
|
5654
5670
|
var CreateEntityLimitTypeResponse$inboundSchema = inboundSchema(CreateEntityLimitTypeResponse);
|
|
5671
|
+
var CreateEntitySpendLimitSource$inboundSchema = inboundSchema(CreateEntitySpendLimitSource);
|
|
5655
5672
|
var CreateEntitySpendLimitResponse$inboundSchema = z18.pipe(
|
|
5656
5673
|
z18.object({
|
|
5657
5674
|
feature_id: optional3(string4()),
|
|
5658
5675
|
enabled: z18._default(boolean2(), false),
|
|
5659
5676
|
limit_type: optional3(CreateEntityLimitTypeResponse$inboundSchema),
|
|
5660
5677
|
overage_limit: optional3(number2()),
|
|
5661
|
-
skip_overage_billing: optional3(boolean2())
|
|
5678
|
+
skip_overage_billing: optional3(boolean2()),
|
|
5679
|
+
source: optional3(CreateEntitySpendLimitSource$inboundSchema)
|
|
5662
5680
|
}),
|
|
5663
5681
|
z18.transform((v) => {
|
|
5664
5682
|
return remap(v, {
|
|
@@ -5673,6 +5691,7 @@ var CreateEntityIntervalResponse$inboundSchema = inboundSchema(CreateEntityInter
|
|
|
5673
5691
|
var CreateEntityFilterResponse$inboundSchema = z18.object({
|
|
5674
5692
|
properties: z18.record(z18.string(), z18.any())
|
|
5675
5693
|
});
|
|
5694
|
+
var CreateEntityUsageLimitSource$inboundSchema = inboundSchema(CreateEntityUsageLimitSource);
|
|
5676
5695
|
var CreateEntityUsageLimitResponse$inboundSchema = z18.pipe(
|
|
5677
5696
|
z18.object({
|
|
5678
5697
|
feature_id: string4(),
|
|
@@ -5682,7 +5701,8 @@ var CreateEntityUsageLimitResponse$inboundSchema = z18.pipe(
|
|
|
5682
5701
|
filter: optional3(
|
|
5683
5702
|
z18.lazy(() => CreateEntityFilterResponse$inboundSchema)
|
|
5684
5703
|
),
|
|
5685
|
-
usage: optional3(number2())
|
|
5704
|
+
usage: optional3(number2()),
|
|
5705
|
+
source: optional3(CreateEntityUsageLimitSource$inboundSchema)
|
|
5686
5706
|
}),
|
|
5687
5707
|
z18.transform((v) => {
|
|
5688
5708
|
return remap(v, {
|
|
@@ -5691,13 +5711,15 @@ var CreateEntityUsageLimitResponse$inboundSchema = z18.pipe(
|
|
|
5691
5711
|
})
|
|
5692
5712
|
);
|
|
5693
5713
|
var CreateEntityThresholdTypeResponse$inboundSchema = inboundSchema(CreateEntityThresholdTypeResponse);
|
|
5714
|
+
var CreateEntityUsageAlertSource$inboundSchema = inboundSchema(CreateEntityUsageAlertSource);
|
|
5694
5715
|
var CreateEntityUsageAlertResponse$inboundSchema = z18.pipe(
|
|
5695
5716
|
z18.object({
|
|
5696
5717
|
feature_id: optional3(string4()),
|
|
5697
5718
|
enabled: z18._default(boolean2(), true),
|
|
5698
5719
|
threshold: number2(),
|
|
5699
5720
|
threshold_type: CreateEntityThresholdTypeResponse$inboundSchema,
|
|
5700
|
-
name: optional3(string4())
|
|
5721
|
+
name: optional3(string4()),
|
|
5722
|
+
source: optional3(CreateEntityUsageAlertSource$inboundSchema)
|
|
5701
5723
|
}),
|
|
5702
5724
|
z18.transform((v) => {
|
|
5703
5725
|
return remap(v, {
|
|
@@ -5706,10 +5728,12 @@ var CreateEntityUsageAlertResponse$inboundSchema = z18.pipe(
|
|
|
5706
5728
|
});
|
|
5707
5729
|
})
|
|
5708
5730
|
);
|
|
5731
|
+
var CreateEntityOverageAllowedSource$inboundSchema = inboundSchema(CreateEntityOverageAllowedSource);
|
|
5709
5732
|
var CreateEntityOverageAllowedResponse$inboundSchema = z18.pipe(
|
|
5710
5733
|
z18.object({
|
|
5711
5734
|
feature_id: string4(),
|
|
5712
|
-
enabled: z18._default(boolean2(), false)
|
|
5735
|
+
enabled: z18._default(boolean2(), false),
|
|
5736
|
+
source: optional3(CreateEntityOverageAllowedSource$inboundSchema)
|
|
5713
5737
|
}),
|
|
5714
5738
|
z18.transform((v) => {
|
|
5715
5739
|
return remap(v, {
|
|
@@ -8081,22 +8105,42 @@ var CustomerPurchaseLimitInterval1 = {
|
|
|
8081
8105
|
Week: "week",
|
|
8082
8106
|
Month: "month"
|
|
8083
8107
|
};
|
|
8108
|
+
var AutoTopupSource = {
|
|
8109
|
+
Customer: "customer",
|
|
8110
|
+
Plan: "plan"
|
|
8111
|
+
};
|
|
8084
8112
|
var CustomerLimitType = {
|
|
8085
8113
|
Absolute: "absolute",
|
|
8086
8114
|
UsagePercentage: "usage_percentage"
|
|
8087
8115
|
};
|
|
8116
|
+
var SpendLimitSource = {
|
|
8117
|
+
Customer: "customer",
|
|
8118
|
+
Plan: "plan"
|
|
8119
|
+
};
|
|
8088
8120
|
var CustomerUsageLimitInterval = {
|
|
8089
8121
|
Day: "day",
|
|
8090
8122
|
Week: "week",
|
|
8091
8123
|
Month: "month",
|
|
8092
8124
|
Year: "year"
|
|
8093
8125
|
};
|
|
8126
|
+
var UsageLimitSource = {
|
|
8127
|
+
Customer: "customer",
|
|
8128
|
+
Plan: "plan"
|
|
8129
|
+
};
|
|
8094
8130
|
var CustomerThresholdType = {
|
|
8095
8131
|
Usage: "usage",
|
|
8096
8132
|
UsagePercentage: "usage_percentage",
|
|
8097
8133
|
Remaining: "remaining",
|
|
8098
8134
|
RemainingPercentage: "remaining_percentage"
|
|
8099
8135
|
};
|
|
8136
|
+
var UsageAlertSource = {
|
|
8137
|
+
Customer: "customer",
|
|
8138
|
+
Plan: "plan"
|
|
8139
|
+
};
|
|
8140
|
+
var OverageAllowedSource = {
|
|
8141
|
+
Customer: "customer",
|
|
8142
|
+
Plan: "plan"
|
|
8143
|
+
};
|
|
8100
8144
|
var CustomerStatus = {
|
|
8101
8145
|
Active: "active",
|
|
8102
8146
|
Scheduled: "scheduled"
|
|
@@ -8139,36 +8183,37 @@ var CustomerEnv$inboundSchema = inboundSchema(CustomerEnv);
|
|
|
8139
8183
|
var CustomerPurchaseLimitInterval2$inboundSchema = inboundSchema(CustomerPurchaseLimitInterval2);
|
|
8140
8184
|
var CustomerPurchaseLimit2$inboundSchema = z24.pipe(
|
|
8141
8185
|
z24.object({
|
|
8142
|
-
interval:
|
|
8143
|
-
interval_count:
|
|
8144
|
-
limit:
|
|
8145
|
-
count: number2(),
|
|
8146
|
-
next_reset_at: number2()
|
|
8186
|
+
interval: CustomerPurchaseLimitInterval2$inboundSchema,
|
|
8187
|
+
interval_count: z24._default(number2(), 1),
|
|
8188
|
+
limit: number2()
|
|
8147
8189
|
}),
|
|
8148
8190
|
z24.transform((v) => {
|
|
8149
8191
|
return remap(v, {
|
|
8150
|
-
"interval_count": "intervalCount"
|
|
8151
|
-
"next_reset_at": "nextResetAt"
|
|
8192
|
+
"interval_count": "intervalCount"
|
|
8152
8193
|
});
|
|
8153
8194
|
})
|
|
8154
8195
|
);
|
|
8155
8196
|
var CustomerPurchaseLimitInterval1$inboundSchema = inboundSchema(CustomerPurchaseLimitInterval1);
|
|
8156
8197
|
var CustomerPurchaseLimit1$inboundSchema = z24.pipe(
|
|
8157
8198
|
z24.object({
|
|
8158
|
-
interval: CustomerPurchaseLimitInterval1$inboundSchema,
|
|
8159
|
-
interval_count:
|
|
8160
|
-
limit: number2()
|
|
8199
|
+
interval: nullable(CustomerPurchaseLimitInterval1$inboundSchema),
|
|
8200
|
+
interval_count: nullable(number2()),
|
|
8201
|
+
limit: nullable(number2()),
|
|
8202
|
+
count: number2(),
|
|
8203
|
+
next_reset_at: number2()
|
|
8161
8204
|
}),
|
|
8162
8205
|
z24.transform((v) => {
|
|
8163
8206
|
return remap(v, {
|
|
8164
|
-
"interval_count": "intervalCount"
|
|
8207
|
+
"interval_count": "intervalCount",
|
|
8208
|
+
"next_reset_at": "nextResetAt"
|
|
8165
8209
|
});
|
|
8166
8210
|
})
|
|
8167
8211
|
);
|
|
8168
8212
|
var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
8169
|
-
z24.lazy(() =>
|
|
8170
|
-
z24.lazy(() =>
|
|
8213
|
+
z24.lazy(() => CustomerPurchaseLimit1$inboundSchema),
|
|
8214
|
+
z24.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
8171
8215
|
]);
|
|
8216
|
+
var AutoTopupSource$inboundSchema = inboundSchema(AutoTopupSource);
|
|
8172
8217
|
var CustomerAutoTopup$inboundSchema = z24.pipe(
|
|
8173
8218
|
z24.object({
|
|
8174
8219
|
feature_id: string4(),
|
|
@@ -8176,10 +8221,11 @@ var CustomerAutoTopup$inboundSchema = z24.pipe(
|
|
|
8176
8221
|
threshold: number2(),
|
|
8177
8222
|
quantity: number2(),
|
|
8178
8223
|
purchase_limit: optional3(smartUnion([
|
|
8179
|
-
z24.lazy(() =>
|
|
8180
|
-
z24.lazy(() =>
|
|
8224
|
+
z24.lazy(() => CustomerPurchaseLimit1$inboundSchema),
|
|
8225
|
+
z24.lazy(() => CustomerPurchaseLimit2$inboundSchema)
|
|
8181
8226
|
])),
|
|
8182
|
-
invoice_mode: optional3(boolean2())
|
|
8227
|
+
invoice_mode: optional3(boolean2()),
|
|
8228
|
+
source: optional3(AutoTopupSource$inboundSchema)
|
|
8183
8229
|
}),
|
|
8184
8230
|
z24.transform((v) => {
|
|
8185
8231
|
return remap(v, {
|
|
@@ -8190,13 +8236,15 @@ var CustomerAutoTopup$inboundSchema = z24.pipe(
|
|
|
8190
8236
|
})
|
|
8191
8237
|
);
|
|
8192
8238
|
var CustomerLimitType$inboundSchema = inboundSchema(CustomerLimitType);
|
|
8239
|
+
var SpendLimitSource$inboundSchema = inboundSchema(SpendLimitSource);
|
|
8193
8240
|
var CustomerSpendLimit$inboundSchema = z24.pipe(
|
|
8194
8241
|
z24.object({
|
|
8195
8242
|
feature_id: optional3(string4()),
|
|
8196
8243
|
enabled: z24._default(boolean2(), false),
|
|
8197
8244
|
limit_type: optional3(CustomerLimitType$inboundSchema),
|
|
8198
8245
|
overage_limit: optional3(number2()),
|
|
8199
|
-
skip_overage_billing: optional3(boolean2())
|
|
8246
|
+
skip_overage_billing: optional3(boolean2()),
|
|
8247
|
+
source: optional3(SpendLimitSource$inboundSchema)
|
|
8200
8248
|
}),
|
|
8201
8249
|
z24.transform((v) => {
|
|
8202
8250
|
return remap(v, {
|
|
@@ -8211,6 +8259,7 @@ var CustomerUsageLimitInterval$inboundSchema = inboundSchema(CustomerUsageLimitI
|
|
|
8211
8259
|
var CustomerFilter$inboundSchema = z24.object({
|
|
8212
8260
|
properties: z24.record(z24.string(), z24.any())
|
|
8213
8261
|
});
|
|
8262
|
+
var UsageLimitSource$inboundSchema = inboundSchema(UsageLimitSource);
|
|
8214
8263
|
var CustomerUsageLimit$inboundSchema = z24.pipe(
|
|
8215
8264
|
z24.object({
|
|
8216
8265
|
feature_id: string4(),
|
|
@@ -8218,7 +8267,8 @@ var CustomerUsageLimit$inboundSchema = z24.pipe(
|
|
|
8218
8267
|
limit: number2(),
|
|
8219
8268
|
interval: CustomerUsageLimitInterval$inboundSchema,
|
|
8220
8269
|
filter: optional3(z24.lazy(() => CustomerFilter$inboundSchema)),
|
|
8221
|
-
usage: optional3(number2())
|
|
8270
|
+
usage: optional3(number2()),
|
|
8271
|
+
source: optional3(UsageLimitSource$inboundSchema)
|
|
8222
8272
|
}),
|
|
8223
8273
|
z24.transform((v) => {
|
|
8224
8274
|
return remap(v, {
|
|
@@ -8227,13 +8277,15 @@ var CustomerUsageLimit$inboundSchema = z24.pipe(
|
|
|
8227
8277
|
})
|
|
8228
8278
|
);
|
|
8229
8279
|
var CustomerThresholdType$inboundSchema = inboundSchema(CustomerThresholdType);
|
|
8280
|
+
var UsageAlertSource$inboundSchema = inboundSchema(UsageAlertSource);
|
|
8230
8281
|
var CustomerUsageAlert$inboundSchema = z24.pipe(
|
|
8231
8282
|
z24.object({
|
|
8232
8283
|
feature_id: optional3(string4()),
|
|
8233
8284
|
enabled: z24._default(boolean2(), true),
|
|
8234
8285
|
threshold: number2(),
|
|
8235
8286
|
threshold_type: CustomerThresholdType$inboundSchema,
|
|
8236
|
-
name: optional3(string4())
|
|
8287
|
+
name: optional3(string4()),
|
|
8288
|
+
source: optional3(UsageAlertSource$inboundSchema)
|
|
8237
8289
|
}),
|
|
8238
8290
|
z24.transform((v) => {
|
|
8239
8291
|
return remap(v, {
|
|
@@ -8242,10 +8294,12 @@ var CustomerUsageAlert$inboundSchema = z24.pipe(
|
|
|
8242
8294
|
});
|
|
8243
8295
|
})
|
|
8244
8296
|
);
|
|
8297
|
+
var OverageAllowedSource$inboundSchema = inboundSchema(OverageAllowedSource);
|
|
8245
8298
|
var CustomerOverageAllowed$inboundSchema = z24.pipe(
|
|
8246
8299
|
z24.object({
|
|
8247
8300
|
feature_id: string4(),
|
|
8248
|
-
enabled: z24._default(boolean2(), false)
|
|
8301
|
+
enabled: z24._default(boolean2(), false),
|
|
8302
|
+
source: optional3(OverageAllowedSource$inboundSchema)
|
|
8249
8303
|
}),
|
|
8250
8304
|
z24.transform((v) => {
|
|
8251
8305
|
return remap(v, {
|
|
@@ -8750,22 +8804,42 @@ var GetCustomerPurchaseLimitInterval1 = {
|
|
|
8750
8804
|
Week: "week",
|
|
8751
8805
|
Month: "month"
|
|
8752
8806
|
};
|
|
8807
|
+
var GetCustomerAutoTopupSource = {
|
|
8808
|
+
Customer: "customer",
|
|
8809
|
+
Plan: "plan"
|
|
8810
|
+
};
|
|
8753
8811
|
var GetCustomerLimitType = {
|
|
8754
8812
|
Absolute: "absolute",
|
|
8755
8813
|
UsagePercentage: "usage_percentage"
|
|
8756
8814
|
};
|
|
8815
|
+
var GetCustomerSpendLimitSource = {
|
|
8816
|
+
Customer: "customer",
|
|
8817
|
+
Plan: "plan"
|
|
8818
|
+
};
|
|
8757
8819
|
var GetCustomerUsageLimitInterval = {
|
|
8758
8820
|
Day: "day",
|
|
8759
8821
|
Week: "week",
|
|
8760
8822
|
Month: "month",
|
|
8761
8823
|
Year: "year"
|
|
8762
8824
|
};
|
|
8825
|
+
var GetCustomerUsageLimitSource = {
|
|
8826
|
+
Customer: "customer",
|
|
8827
|
+
Plan: "plan"
|
|
8828
|
+
};
|
|
8763
8829
|
var GetCustomerThresholdType = {
|
|
8764
8830
|
Usage: "usage",
|
|
8765
8831
|
UsagePercentage: "usage_percentage",
|
|
8766
8832
|
Remaining: "remaining",
|
|
8767
8833
|
RemainingPercentage: "remaining_percentage"
|
|
8768
8834
|
};
|
|
8835
|
+
var GetCustomerUsageAlertSource = {
|
|
8836
|
+
Customer: "customer",
|
|
8837
|
+
Plan: "plan"
|
|
8838
|
+
};
|
|
8839
|
+
var GetCustomerOverageAllowedSource = {
|
|
8840
|
+
Customer: "customer",
|
|
8841
|
+
Plan: "plan"
|
|
8842
|
+
};
|
|
8769
8843
|
var GetCustomerStatus = {
|
|
8770
8844
|
Active: "active",
|
|
8771
8845
|
Scheduled: "scheduled"
|
|
@@ -8819,36 +8893,37 @@ var GetCustomerEnv$inboundSchema = inboundSchema(GetCustomerEnv);
|
|
|
8819
8893
|
var GetCustomerPurchaseLimitInterval2$inboundSchema = inboundSchema(GetCustomerPurchaseLimitInterval2);
|
|
8820
8894
|
var GetCustomerPurchaseLimit2$inboundSchema = z31.pipe(
|
|
8821
8895
|
z31.object({
|
|
8822
|
-
interval:
|
|
8823
|
-
interval_count:
|
|
8824
|
-
limit:
|
|
8825
|
-
count: number2(),
|
|
8826
|
-
next_reset_at: number2()
|
|
8896
|
+
interval: GetCustomerPurchaseLimitInterval2$inboundSchema,
|
|
8897
|
+
interval_count: z31._default(number2(), 1),
|
|
8898
|
+
limit: number2()
|
|
8827
8899
|
}),
|
|
8828
8900
|
z31.transform((v) => {
|
|
8829
8901
|
return remap(v, {
|
|
8830
|
-
"interval_count": "intervalCount"
|
|
8831
|
-
"next_reset_at": "nextResetAt"
|
|
8902
|
+
"interval_count": "intervalCount"
|
|
8832
8903
|
});
|
|
8833
8904
|
})
|
|
8834
8905
|
);
|
|
8835
8906
|
var GetCustomerPurchaseLimitInterval1$inboundSchema = inboundSchema(GetCustomerPurchaseLimitInterval1);
|
|
8836
8907
|
var GetCustomerPurchaseLimit1$inboundSchema = z31.pipe(
|
|
8837
8908
|
z31.object({
|
|
8838
|
-
interval: GetCustomerPurchaseLimitInterval1$inboundSchema,
|
|
8839
|
-
interval_count:
|
|
8840
|
-
limit: number2()
|
|
8909
|
+
interval: nullable(GetCustomerPurchaseLimitInterval1$inboundSchema),
|
|
8910
|
+
interval_count: nullable(number2()),
|
|
8911
|
+
limit: nullable(number2()),
|
|
8912
|
+
count: number2(),
|
|
8913
|
+
next_reset_at: number2()
|
|
8841
8914
|
}),
|
|
8842
8915
|
z31.transform((v) => {
|
|
8843
8916
|
return remap(v, {
|
|
8844
|
-
"interval_count": "intervalCount"
|
|
8917
|
+
"interval_count": "intervalCount",
|
|
8918
|
+
"next_reset_at": "nextResetAt"
|
|
8845
8919
|
});
|
|
8846
8920
|
})
|
|
8847
8921
|
);
|
|
8848
8922
|
var GetCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
8849
|
-
z31.lazy(() =>
|
|
8850
|
-
z31.lazy(() =>
|
|
8923
|
+
z31.lazy(() => GetCustomerPurchaseLimit1$inboundSchema),
|
|
8924
|
+
z31.lazy(() => GetCustomerPurchaseLimit2$inboundSchema)
|
|
8851
8925
|
]);
|
|
8926
|
+
var GetCustomerAutoTopupSource$inboundSchema = inboundSchema(GetCustomerAutoTopupSource);
|
|
8852
8927
|
var GetCustomerAutoTopup$inboundSchema = z31.pipe(
|
|
8853
8928
|
z31.object({
|
|
8854
8929
|
feature_id: string4(),
|
|
@@ -8856,10 +8931,11 @@ var GetCustomerAutoTopup$inboundSchema = z31.pipe(
|
|
|
8856
8931
|
threshold: number2(),
|
|
8857
8932
|
quantity: number2(),
|
|
8858
8933
|
purchase_limit: optional3(smartUnion([
|
|
8859
|
-
z31.lazy(() =>
|
|
8860
|
-
z31.lazy(() =>
|
|
8934
|
+
z31.lazy(() => GetCustomerPurchaseLimit1$inboundSchema),
|
|
8935
|
+
z31.lazy(() => GetCustomerPurchaseLimit2$inboundSchema)
|
|
8861
8936
|
])),
|
|
8862
|
-
invoice_mode: optional3(boolean2())
|
|
8937
|
+
invoice_mode: optional3(boolean2()),
|
|
8938
|
+
source: optional3(GetCustomerAutoTopupSource$inboundSchema)
|
|
8863
8939
|
}),
|
|
8864
8940
|
z31.transform((v) => {
|
|
8865
8941
|
return remap(v, {
|
|
@@ -8870,13 +8946,15 @@ var GetCustomerAutoTopup$inboundSchema = z31.pipe(
|
|
|
8870
8946
|
})
|
|
8871
8947
|
);
|
|
8872
8948
|
var GetCustomerLimitType$inboundSchema = inboundSchema(GetCustomerLimitType);
|
|
8949
|
+
var GetCustomerSpendLimitSource$inboundSchema = inboundSchema(GetCustomerSpendLimitSource);
|
|
8873
8950
|
var GetCustomerSpendLimit$inboundSchema = z31.pipe(
|
|
8874
8951
|
z31.object({
|
|
8875
8952
|
feature_id: optional3(string4()),
|
|
8876
8953
|
enabled: z31._default(boolean2(), false),
|
|
8877
8954
|
limit_type: optional3(GetCustomerLimitType$inboundSchema),
|
|
8878
8955
|
overage_limit: optional3(number2()),
|
|
8879
|
-
skip_overage_billing: optional3(boolean2())
|
|
8956
|
+
skip_overage_billing: optional3(boolean2()),
|
|
8957
|
+
source: optional3(GetCustomerSpendLimitSource$inboundSchema)
|
|
8880
8958
|
}),
|
|
8881
8959
|
z31.transform((v) => {
|
|
8882
8960
|
return remap(v, {
|
|
@@ -8891,6 +8969,7 @@ var GetCustomerUsageLimitInterval$inboundSchema = inboundSchema(GetCustomerUsage
|
|
|
8891
8969
|
var GetCustomerFilter$inboundSchema = z31.object({
|
|
8892
8970
|
properties: z31.record(z31.string(), z31.any())
|
|
8893
8971
|
});
|
|
8972
|
+
var GetCustomerUsageLimitSource$inboundSchema = inboundSchema(GetCustomerUsageLimitSource);
|
|
8894
8973
|
var GetCustomerUsageLimit$inboundSchema = z31.pipe(
|
|
8895
8974
|
z31.object({
|
|
8896
8975
|
feature_id: string4(),
|
|
@@ -8898,7 +8977,8 @@ var GetCustomerUsageLimit$inboundSchema = z31.pipe(
|
|
|
8898
8977
|
limit: number2(),
|
|
8899
8978
|
interval: GetCustomerUsageLimitInterval$inboundSchema,
|
|
8900
8979
|
filter: optional3(z31.lazy(() => GetCustomerFilter$inboundSchema)),
|
|
8901
|
-
usage: optional3(number2())
|
|
8980
|
+
usage: optional3(number2()),
|
|
8981
|
+
source: optional3(GetCustomerUsageLimitSource$inboundSchema)
|
|
8902
8982
|
}),
|
|
8903
8983
|
z31.transform((v) => {
|
|
8904
8984
|
return remap(v, {
|
|
@@ -8907,13 +8987,15 @@ var GetCustomerUsageLimit$inboundSchema = z31.pipe(
|
|
|
8907
8987
|
})
|
|
8908
8988
|
);
|
|
8909
8989
|
var GetCustomerThresholdType$inboundSchema = inboundSchema(GetCustomerThresholdType);
|
|
8990
|
+
var GetCustomerUsageAlertSource$inboundSchema = inboundSchema(GetCustomerUsageAlertSource);
|
|
8910
8991
|
var GetCustomerUsageAlert$inboundSchema = z31.pipe(
|
|
8911
8992
|
z31.object({
|
|
8912
8993
|
feature_id: optional3(string4()),
|
|
8913
8994
|
enabled: z31._default(boolean2(), true),
|
|
8914
8995
|
threshold: number2(),
|
|
8915
8996
|
threshold_type: GetCustomerThresholdType$inboundSchema,
|
|
8916
|
-
name: optional3(string4())
|
|
8997
|
+
name: optional3(string4()),
|
|
8998
|
+
source: optional3(GetCustomerUsageAlertSource$inboundSchema)
|
|
8917
8999
|
}),
|
|
8918
9000
|
z31.transform((v) => {
|
|
8919
9001
|
return remap(v, {
|
|
@@ -8922,10 +9004,12 @@ var GetCustomerUsageAlert$inboundSchema = z31.pipe(
|
|
|
8922
9004
|
});
|
|
8923
9005
|
})
|
|
8924
9006
|
);
|
|
9007
|
+
var GetCustomerOverageAllowedSource$inboundSchema = inboundSchema(GetCustomerOverageAllowedSource);
|
|
8925
9008
|
var GetCustomerOverageAllowed$inboundSchema = z31.pipe(
|
|
8926
9009
|
z31.object({
|
|
8927
9010
|
feature_id: string4(),
|
|
8928
|
-
enabled: z31._default(boolean2(), false)
|
|
9011
|
+
enabled: z31._default(boolean2(), false),
|
|
9012
|
+
source: optional3(GetCustomerOverageAllowedSource$inboundSchema)
|
|
8929
9013
|
}),
|
|
8930
9014
|
z31.transform((v) => {
|
|
8931
9015
|
return remap(v, {
|
|
@@ -9314,18 +9398,34 @@ var GetEntityLimitType = {
|
|
|
9314
9398
|
Absolute: "absolute",
|
|
9315
9399
|
UsagePercentage: "usage_percentage"
|
|
9316
9400
|
};
|
|
9401
|
+
var GetEntitySpendLimitSource = {
|
|
9402
|
+
Customer: "customer",
|
|
9403
|
+
Plan: "plan"
|
|
9404
|
+
};
|
|
9317
9405
|
var GetEntityInterval = {
|
|
9318
9406
|
Day: "day",
|
|
9319
9407
|
Week: "week",
|
|
9320
9408
|
Month: "month",
|
|
9321
9409
|
Year: "year"
|
|
9322
9410
|
};
|
|
9411
|
+
var GetEntityUsageLimitSource = {
|
|
9412
|
+
Customer: "customer",
|
|
9413
|
+
Plan: "plan"
|
|
9414
|
+
};
|
|
9323
9415
|
var GetEntityThresholdType = {
|
|
9324
9416
|
Usage: "usage",
|
|
9325
9417
|
UsagePercentage: "usage_percentage",
|
|
9326
9418
|
Remaining: "remaining",
|
|
9327
9419
|
RemainingPercentage: "remaining_percentage"
|
|
9328
9420
|
};
|
|
9421
|
+
var GetEntityUsageAlertSource = {
|
|
9422
|
+
Customer: "customer",
|
|
9423
|
+
Plan: "plan"
|
|
9424
|
+
};
|
|
9425
|
+
var GetEntityOverageAllowedSource = {
|
|
9426
|
+
Customer: "customer",
|
|
9427
|
+
Plan: "plan"
|
|
9428
|
+
};
|
|
9329
9429
|
var GetEntityProcessorType = {
|
|
9330
9430
|
Stripe: "stripe",
|
|
9331
9431
|
Revenuecat: "revenuecat"
|
|
@@ -9480,13 +9580,15 @@ var GetEntityFlags$inboundSchema = z32.pipe(
|
|
|
9480
9580
|
})
|
|
9481
9581
|
);
|
|
9482
9582
|
var GetEntityLimitType$inboundSchema = inboundSchema(GetEntityLimitType);
|
|
9583
|
+
var GetEntitySpendLimitSource$inboundSchema = inboundSchema(GetEntitySpendLimitSource);
|
|
9483
9584
|
var GetEntitySpendLimit$inboundSchema = z32.pipe(
|
|
9484
9585
|
z32.object({
|
|
9485
9586
|
feature_id: optional3(string4()),
|
|
9486
9587
|
enabled: z32._default(boolean2(), false),
|
|
9487
9588
|
limit_type: optional3(GetEntityLimitType$inboundSchema),
|
|
9488
9589
|
overage_limit: optional3(number2()),
|
|
9489
|
-
skip_overage_billing: optional3(boolean2())
|
|
9590
|
+
skip_overage_billing: optional3(boolean2()),
|
|
9591
|
+
source: optional3(GetEntitySpendLimitSource$inboundSchema)
|
|
9490
9592
|
}),
|
|
9491
9593
|
z32.transform((v) => {
|
|
9492
9594
|
return remap(v, {
|
|
@@ -9501,6 +9603,7 @@ var GetEntityInterval$inboundSchema = inboundSchema(GetEntityInterval);
|
|
|
9501
9603
|
var GetEntityFilter$inboundSchema = z32.object({
|
|
9502
9604
|
properties: z32.record(z32.string(), z32.any())
|
|
9503
9605
|
});
|
|
9606
|
+
var GetEntityUsageLimitSource$inboundSchema = inboundSchema(GetEntityUsageLimitSource);
|
|
9504
9607
|
var GetEntityUsageLimit$inboundSchema = z32.pipe(
|
|
9505
9608
|
z32.object({
|
|
9506
9609
|
feature_id: string4(),
|
|
@@ -9508,7 +9611,8 @@ var GetEntityUsageLimit$inboundSchema = z32.pipe(
|
|
|
9508
9611
|
limit: number2(),
|
|
9509
9612
|
interval: GetEntityInterval$inboundSchema,
|
|
9510
9613
|
filter: optional3(z32.lazy(() => GetEntityFilter$inboundSchema)),
|
|
9511
|
-
usage: optional3(number2())
|
|
9614
|
+
usage: optional3(number2()),
|
|
9615
|
+
source: optional3(GetEntityUsageLimitSource$inboundSchema)
|
|
9512
9616
|
}),
|
|
9513
9617
|
z32.transform((v) => {
|
|
9514
9618
|
return remap(v, {
|
|
@@ -9517,13 +9621,15 @@ var GetEntityUsageLimit$inboundSchema = z32.pipe(
|
|
|
9517
9621
|
})
|
|
9518
9622
|
);
|
|
9519
9623
|
var GetEntityThresholdType$inboundSchema = inboundSchema(GetEntityThresholdType);
|
|
9624
|
+
var GetEntityUsageAlertSource$inboundSchema = inboundSchema(GetEntityUsageAlertSource);
|
|
9520
9625
|
var GetEntityUsageAlert$inboundSchema = z32.pipe(
|
|
9521
9626
|
z32.object({
|
|
9522
9627
|
feature_id: optional3(string4()),
|
|
9523
9628
|
enabled: z32._default(boolean2(), true),
|
|
9524
9629
|
threshold: number2(),
|
|
9525
9630
|
threshold_type: GetEntityThresholdType$inboundSchema,
|
|
9526
|
-
name: optional3(string4())
|
|
9631
|
+
name: optional3(string4()),
|
|
9632
|
+
source: optional3(GetEntityUsageAlertSource$inboundSchema)
|
|
9527
9633
|
}),
|
|
9528
9634
|
z32.transform((v) => {
|
|
9529
9635
|
return remap(v, {
|
|
@@ -9532,10 +9638,12 @@ var GetEntityUsageAlert$inboundSchema = z32.pipe(
|
|
|
9532
9638
|
});
|
|
9533
9639
|
})
|
|
9534
9640
|
);
|
|
9641
|
+
var GetEntityOverageAllowedSource$inboundSchema = inboundSchema(GetEntityOverageAllowedSource);
|
|
9535
9642
|
var GetEntityOverageAllowed$inboundSchema = z32.pipe(
|
|
9536
9643
|
z32.object({
|
|
9537
9644
|
feature_id: string4(),
|
|
9538
|
-
enabled: z32._default(boolean2(), false)
|
|
9645
|
+
enabled: z32._default(boolean2(), false),
|
|
9646
|
+
source: optional3(GetEntityOverageAllowedSource$inboundSchema)
|
|
9539
9647
|
}),
|
|
9540
9648
|
z32.transform((v) => {
|
|
9541
9649
|
return remap(v, {
|
|
@@ -11142,22 +11250,42 @@ var ListCustomersPurchaseLimitInterval1 = {
|
|
|
11142
11250
|
Week: "week",
|
|
11143
11251
|
Month: "month"
|
|
11144
11252
|
};
|
|
11253
|
+
var ListCustomersAutoTopupSource = {
|
|
11254
|
+
Customer: "customer",
|
|
11255
|
+
Plan: "plan"
|
|
11256
|
+
};
|
|
11145
11257
|
var ListCustomersLimitType = {
|
|
11146
11258
|
Absolute: "absolute",
|
|
11147
11259
|
UsagePercentage: "usage_percentage"
|
|
11148
11260
|
};
|
|
11261
|
+
var ListCustomersSpendLimitSource = {
|
|
11262
|
+
Customer: "customer",
|
|
11263
|
+
Plan: "plan"
|
|
11264
|
+
};
|
|
11149
11265
|
var ListCustomersUsageLimitInterval = {
|
|
11150
11266
|
Day: "day",
|
|
11151
11267
|
Week: "week",
|
|
11152
11268
|
Month: "month",
|
|
11153
11269
|
Year: "year"
|
|
11154
11270
|
};
|
|
11271
|
+
var ListCustomersUsageLimitSource = {
|
|
11272
|
+
Customer: "customer",
|
|
11273
|
+
Plan: "plan"
|
|
11274
|
+
};
|
|
11155
11275
|
var ListCustomersThresholdType = {
|
|
11156
11276
|
Usage: "usage",
|
|
11157
11277
|
UsagePercentage: "usage_percentage",
|
|
11158
11278
|
Remaining: "remaining",
|
|
11159
11279
|
RemainingPercentage: "remaining_percentage"
|
|
11160
11280
|
};
|
|
11281
|
+
var ListCustomersUsageAlertSource = {
|
|
11282
|
+
Customer: "customer",
|
|
11283
|
+
Plan: "plan"
|
|
11284
|
+
};
|
|
11285
|
+
var ListCustomersOverageAllowedSource = {
|
|
11286
|
+
Customer: "customer",
|
|
11287
|
+
Plan: "plan"
|
|
11288
|
+
};
|
|
11161
11289
|
var ListCustomersStatus = {
|
|
11162
11290
|
Active: "active",
|
|
11163
11291
|
Scheduled: "scheduled"
|
|
@@ -11204,36 +11332,37 @@ var ListCustomersEnv$inboundSchema = inboundSchema(ListCustomersEnv);
|
|
|
11204
11332
|
var ListCustomersPurchaseLimitInterval2$inboundSchema = inboundSchema(ListCustomersPurchaseLimitInterval2);
|
|
11205
11333
|
var ListCustomersPurchaseLimit2$inboundSchema = z39.pipe(
|
|
11206
11334
|
z39.object({
|
|
11207
|
-
interval:
|
|
11208
|
-
interval_count:
|
|
11209
|
-
limit:
|
|
11210
|
-
count: number2(),
|
|
11211
|
-
next_reset_at: number2()
|
|
11335
|
+
interval: ListCustomersPurchaseLimitInterval2$inboundSchema,
|
|
11336
|
+
interval_count: z39._default(number2(), 1),
|
|
11337
|
+
limit: number2()
|
|
11212
11338
|
}),
|
|
11213
11339
|
z39.transform((v) => {
|
|
11214
11340
|
return remap(v, {
|
|
11215
|
-
"interval_count": "intervalCount"
|
|
11216
|
-
"next_reset_at": "nextResetAt"
|
|
11341
|
+
"interval_count": "intervalCount"
|
|
11217
11342
|
});
|
|
11218
11343
|
})
|
|
11219
11344
|
);
|
|
11220
11345
|
var ListCustomersPurchaseLimitInterval1$inboundSchema = inboundSchema(ListCustomersPurchaseLimitInterval1);
|
|
11221
11346
|
var ListCustomersPurchaseLimit1$inboundSchema = z39.pipe(
|
|
11222
11347
|
z39.object({
|
|
11223
|
-
interval: ListCustomersPurchaseLimitInterval1$inboundSchema,
|
|
11224
|
-
interval_count:
|
|
11225
|
-
limit: number2()
|
|
11348
|
+
interval: nullable(ListCustomersPurchaseLimitInterval1$inboundSchema),
|
|
11349
|
+
interval_count: nullable(number2()),
|
|
11350
|
+
limit: nullable(number2()),
|
|
11351
|
+
count: number2(),
|
|
11352
|
+
next_reset_at: number2()
|
|
11226
11353
|
}),
|
|
11227
11354
|
z39.transform((v) => {
|
|
11228
11355
|
return remap(v, {
|
|
11229
|
-
"interval_count": "intervalCount"
|
|
11356
|
+
"interval_count": "intervalCount",
|
|
11357
|
+
"next_reset_at": "nextResetAt"
|
|
11230
11358
|
});
|
|
11231
11359
|
})
|
|
11232
11360
|
);
|
|
11233
11361
|
var ListCustomersPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
11234
|
-
z39.lazy(() =>
|
|
11235
|
-
z39.lazy(() =>
|
|
11362
|
+
z39.lazy(() => ListCustomersPurchaseLimit1$inboundSchema),
|
|
11363
|
+
z39.lazy(() => ListCustomersPurchaseLimit2$inboundSchema)
|
|
11236
11364
|
]);
|
|
11365
|
+
var ListCustomersAutoTopupSource$inboundSchema = inboundSchema(ListCustomersAutoTopupSource);
|
|
11237
11366
|
var ListCustomersAutoTopup$inboundSchema = z39.pipe(
|
|
11238
11367
|
z39.object({
|
|
11239
11368
|
feature_id: string4(),
|
|
@@ -11241,10 +11370,11 @@ var ListCustomersAutoTopup$inboundSchema = z39.pipe(
|
|
|
11241
11370
|
threshold: number2(),
|
|
11242
11371
|
quantity: number2(),
|
|
11243
11372
|
purchase_limit: optional3(smartUnion([
|
|
11244
|
-
z39.lazy(() =>
|
|
11245
|
-
z39.lazy(() =>
|
|
11373
|
+
z39.lazy(() => ListCustomersPurchaseLimit1$inboundSchema),
|
|
11374
|
+
z39.lazy(() => ListCustomersPurchaseLimit2$inboundSchema)
|
|
11246
11375
|
])),
|
|
11247
|
-
invoice_mode: optional3(boolean2())
|
|
11376
|
+
invoice_mode: optional3(boolean2()),
|
|
11377
|
+
source: optional3(ListCustomersAutoTopupSource$inboundSchema)
|
|
11248
11378
|
}),
|
|
11249
11379
|
z39.transform((v) => {
|
|
11250
11380
|
return remap(v, {
|
|
@@ -11255,13 +11385,15 @@ var ListCustomersAutoTopup$inboundSchema = z39.pipe(
|
|
|
11255
11385
|
})
|
|
11256
11386
|
);
|
|
11257
11387
|
var ListCustomersLimitType$inboundSchema = inboundSchema(ListCustomersLimitType);
|
|
11388
|
+
var ListCustomersSpendLimitSource$inboundSchema = inboundSchema(ListCustomersSpendLimitSource);
|
|
11258
11389
|
var ListCustomersSpendLimit$inboundSchema = z39.pipe(
|
|
11259
11390
|
z39.object({
|
|
11260
11391
|
feature_id: optional3(string4()),
|
|
11261
11392
|
enabled: z39._default(boolean2(), false),
|
|
11262
11393
|
limit_type: optional3(ListCustomersLimitType$inboundSchema),
|
|
11263
11394
|
overage_limit: optional3(number2()),
|
|
11264
|
-
skip_overage_billing: optional3(boolean2())
|
|
11395
|
+
skip_overage_billing: optional3(boolean2()),
|
|
11396
|
+
source: optional3(ListCustomersSpendLimitSource$inboundSchema)
|
|
11265
11397
|
}),
|
|
11266
11398
|
z39.transform((v) => {
|
|
11267
11399
|
return remap(v, {
|
|
@@ -11276,6 +11408,7 @@ var ListCustomersUsageLimitInterval$inboundSchema = inboundSchema(ListCustomersU
|
|
|
11276
11408
|
var ListCustomersFilter$inboundSchema = z39.object({
|
|
11277
11409
|
properties: z39.record(z39.string(), z39.any())
|
|
11278
11410
|
});
|
|
11411
|
+
var ListCustomersUsageLimitSource$inboundSchema = inboundSchema(ListCustomersUsageLimitSource);
|
|
11279
11412
|
var ListCustomersUsageLimit$inboundSchema = z39.pipe(
|
|
11280
11413
|
z39.object({
|
|
11281
11414
|
feature_id: string4(),
|
|
@@ -11283,7 +11416,8 @@ var ListCustomersUsageLimit$inboundSchema = z39.pipe(
|
|
|
11283
11416
|
limit: number2(),
|
|
11284
11417
|
interval: ListCustomersUsageLimitInterval$inboundSchema,
|
|
11285
11418
|
filter: optional3(z39.lazy(() => ListCustomersFilter$inboundSchema)),
|
|
11286
|
-
usage: optional3(number2())
|
|
11419
|
+
usage: optional3(number2()),
|
|
11420
|
+
source: optional3(ListCustomersUsageLimitSource$inboundSchema)
|
|
11287
11421
|
}),
|
|
11288
11422
|
z39.transform((v) => {
|
|
11289
11423
|
return remap(v, {
|
|
@@ -11292,13 +11426,15 @@ var ListCustomersUsageLimit$inboundSchema = z39.pipe(
|
|
|
11292
11426
|
})
|
|
11293
11427
|
);
|
|
11294
11428
|
var ListCustomersThresholdType$inboundSchema = inboundSchema(ListCustomersThresholdType);
|
|
11429
|
+
var ListCustomersUsageAlertSource$inboundSchema = inboundSchema(ListCustomersUsageAlertSource);
|
|
11295
11430
|
var ListCustomersUsageAlert$inboundSchema = z39.pipe(
|
|
11296
11431
|
z39.object({
|
|
11297
11432
|
feature_id: optional3(string4()),
|
|
11298
11433
|
enabled: z39._default(boolean2(), true),
|
|
11299
11434
|
threshold: number2(),
|
|
11300
11435
|
threshold_type: ListCustomersThresholdType$inboundSchema,
|
|
11301
|
-
name: optional3(string4())
|
|
11436
|
+
name: optional3(string4()),
|
|
11437
|
+
source: optional3(ListCustomersUsageAlertSource$inboundSchema)
|
|
11302
11438
|
}),
|
|
11303
11439
|
z39.transform((v) => {
|
|
11304
11440
|
return remap(v, {
|
|
@@ -11307,10 +11443,12 @@ var ListCustomersUsageAlert$inboundSchema = z39.pipe(
|
|
|
11307
11443
|
});
|
|
11308
11444
|
})
|
|
11309
11445
|
);
|
|
11446
|
+
var ListCustomersOverageAllowedSource$inboundSchema = inboundSchema(ListCustomersOverageAllowedSource);
|
|
11310
11447
|
var ListCustomersOverageAllowed$inboundSchema = z39.pipe(
|
|
11311
11448
|
z39.object({
|
|
11312
11449
|
feature_id: string4(),
|
|
11313
|
-
enabled: z39._default(boolean2(), false)
|
|
11450
|
+
enabled: z39._default(boolean2(), false),
|
|
11451
|
+
source: optional3(ListCustomersOverageAllowedSource$inboundSchema)
|
|
11314
11452
|
}),
|
|
11315
11453
|
z39.transform((v) => {
|
|
11316
11454
|
return remap(v, {
|
|
@@ -11600,18 +11738,34 @@ var ListEntitiesLimitType = {
|
|
|
11600
11738
|
Absolute: "absolute",
|
|
11601
11739
|
UsagePercentage: "usage_percentage"
|
|
11602
11740
|
};
|
|
11741
|
+
var ListEntitiesSpendLimitSource = {
|
|
11742
|
+
Customer: "customer",
|
|
11743
|
+
Plan: "plan"
|
|
11744
|
+
};
|
|
11603
11745
|
var ListEntitiesInterval = {
|
|
11604
11746
|
Day: "day",
|
|
11605
11747
|
Week: "week",
|
|
11606
11748
|
Month: "month",
|
|
11607
11749
|
Year: "year"
|
|
11608
11750
|
};
|
|
11751
|
+
var ListEntitiesUsageLimitSource = {
|
|
11752
|
+
Customer: "customer",
|
|
11753
|
+
Plan: "plan"
|
|
11754
|
+
};
|
|
11609
11755
|
var ListEntitiesThresholdType = {
|
|
11610
11756
|
Usage: "usage",
|
|
11611
11757
|
UsagePercentage: "usage_percentage",
|
|
11612
11758
|
Remaining: "remaining",
|
|
11613
11759
|
RemainingPercentage: "remaining_percentage"
|
|
11614
11760
|
};
|
|
11761
|
+
var ListEntitiesUsageAlertSource = {
|
|
11762
|
+
Customer: "customer",
|
|
11763
|
+
Plan: "plan"
|
|
11764
|
+
};
|
|
11765
|
+
var ListEntitiesOverageAllowedSource = {
|
|
11766
|
+
Customer: "customer",
|
|
11767
|
+
Plan: "plan"
|
|
11768
|
+
};
|
|
11615
11769
|
var ListEntitiesProcessorType = {
|
|
11616
11770
|
Stripe: "stripe",
|
|
11617
11771
|
Revenuecat: "revenuecat"
|
|
@@ -11780,13 +11934,15 @@ var ListEntitiesFlags$inboundSchema = z40.pipe(
|
|
|
11780
11934
|
})
|
|
11781
11935
|
);
|
|
11782
11936
|
var ListEntitiesLimitType$inboundSchema = inboundSchema(ListEntitiesLimitType);
|
|
11937
|
+
var ListEntitiesSpendLimitSource$inboundSchema = inboundSchema(ListEntitiesSpendLimitSource);
|
|
11783
11938
|
var ListEntitiesSpendLimit$inboundSchema = z40.pipe(
|
|
11784
11939
|
z40.object({
|
|
11785
11940
|
feature_id: optional3(string4()),
|
|
11786
11941
|
enabled: z40._default(boolean2(), false),
|
|
11787
11942
|
limit_type: optional3(ListEntitiesLimitType$inboundSchema),
|
|
11788
11943
|
overage_limit: optional3(number2()),
|
|
11789
|
-
skip_overage_billing: optional3(boolean2())
|
|
11944
|
+
skip_overage_billing: optional3(boolean2()),
|
|
11945
|
+
source: optional3(ListEntitiesSpendLimitSource$inboundSchema)
|
|
11790
11946
|
}),
|
|
11791
11947
|
z40.transform((v) => {
|
|
11792
11948
|
return remap(v, {
|
|
@@ -11801,6 +11957,7 @@ var ListEntitiesInterval$inboundSchema = inboundSchema(ListEntitiesInterval);
|
|
|
11801
11957
|
var ListEntitiesFilter$inboundSchema = z40.object({
|
|
11802
11958
|
properties: z40.record(z40.string(), z40.any())
|
|
11803
11959
|
});
|
|
11960
|
+
var ListEntitiesUsageLimitSource$inboundSchema = inboundSchema(ListEntitiesUsageLimitSource);
|
|
11804
11961
|
var ListEntitiesUsageLimit$inboundSchema = z40.pipe(
|
|
11805
11962
|
z40.object({
|
|
11806
11963
|
feature_id: string4(),
|
|
@@ -11808,7 +11965,8 @@ var ListEntitiesUsageLimit$inboundSchema = z40.pipe(
|
|
|
11808
11965
|
limit: number2(),
|
|
11809
11966
|
interval: ListEntitiesInterval$inboundSchema,
|
|
11810
11967
|
filter: optional3(z40.lazy(() => ListEntitiesFilter$inboundSchema)),
|
|
11811
|
-
usage: optional3(number2())
|
|
11968
|
+
usage: optional3(number2()),
|
|
11969
|
+
source: optional3(ListEntitiesUsageLimitSource$inboundSchema)
|
|
11812
11970
|
}),
|
|
11813
11971
|
z40.transform((v) => {
|
|
11814
11972
|
return remap(v, {
|
|
@@ -11817,13 +11975,15 @@ var ListEntitiesUsageLimit$inboundSchema = z40.pipe(
|
|
|
11817
11975
|
})
|
|
11818
11976
|
);
|
|
11819
11977
|
var ListEntitiesThresholdType$inboundSchema = inboundSchema(ListEntitiesThresholdType);
|
|
11978
|
+
var ListEntitiesUsageAlertSource$inboundSchema = inboundSchema(ListEntitiesUsageAlertSource);
|
|
11820
11979
|
var ListEntitiesUsageAlert$inboundSchema = z40.pipe(
|
|
11821
11980
|
z40.object({
|
|
11822
11981
|
feature_id: optional3(string4()),
|
|
11823
11982
|
enabled: z40._default(boolean2(), true),
|
|
11824
11983
|
threshold: number2(),
|
|
11825
11984
|
threshold_type: ListEntitiesThresholdType$inboundSchema,
|
|
11826
|
-
name: optional3(string4())
|
|
11985
|
+
name: optional3(string4()),
|
|
11986
|
+
source: optional3(ListEntitiesUsageAlertSource$inboundSchema)
|
|
11827
11987
|
}),
|
|
11828
11988
|
z40.transform((v) => {
|
|
11829
11989
|
return remap(v, {
|
|
@@ -11832,10 +11992,12 @@ var ListEntitiesUsageAlert$inboundSchema = z40.pipe(
|
|
|
11832
11992
|
});
|
|
11833
11993
|
})
|
|
11834
11994
|
);
|
|
11995
|
+
var ListEntitiesOverageAllowedSource$inboundSchema = inboundSchema(ListEntitiesOverageAllowedSource);
|
|
11835
11996
|
var ListEntitiesOverageAllowed$inboundSchema = z40.pipe(
|
|
11836
11997
|
z40.object({
|
|
11837
11998
|
feature_id: string4(),
|
|
11838
|
-
enabled: z40._default(boolean2(), false)
|
|
11999
|
+
enabled: z40._default(boolean2(), false),
|
|
12000
|
+
source: optional3(ListEntitiesOverageAllowedSource$inboundSchema)
|
|
11839
12001
|
}),
|
|
11840
12002
|
z40.transform((v) => {
|
|
11841
12003
|
return remap(v, {
|
|
@@ -17930,7 +18092,8 @@ var UpdateBalanceParams$outboundSchema = z61.pipe(
|
|
|
17930
18092
|
interval: z61.optional(UpdateBalanceInterval$outboundSchema),
|
|
17931
18093
|
includedGrant: z61.optional(z61.number()),
|
|
17932
18094
|
balanceId: z61.optional(z61.string()),
|
|
17933
|
-
nextResetAt: z61.optional(z61.number())
|
|
18095
|
+
nextResetAt: z61.optional(z61.number()),
|
|
18096
|
+
expiresAt: z61.optional(z61.number())
|
|
17934
18097
|
}),
|
|
17935
18098
|
z61.transform((v) => {
|
|
17936
18099
|
return remap(v, {
|
|
@@ -17940,7 +18103,8 @@ var UpdateBalanceParams$outboundSchema = z61.pipe(
|
|
|
17940
18103
|
addToBalance: "add_to_balance",
|
|
17941
18104
|
includedGrant: "included_grant",
|
|
17942
18105
|
balanceId: "balance_id",
|
|
17943
|
-
nextResetAt: "next_reset_at"
|
|
18106
|
+
nextResetAt: "next_reset_at",
|
|
18107
|
+
expiresAt: "expires_at"
|
|
17944
18108
|
});
|
|
17945
18109
|
})
|
|
17946
18110
|
);
|
|
@@ -17988,22 +18152,42 @@ var UpdateCustomerPurchaseLimitIntervalResponse1 = {
|
|
|
17988
18152
|
Week: "week",
|
|
17989
18153
|
Month: "month"
|
|
17990
18154
|
};
|
|
18155
|
+
var UpdateCustomerAutoTopupSource = {
|
|
18156
|
+
Customer: "customer",
|
|
18157
|
+
Plan: "plan"
|
|
18158
|
+
};
|
|
17991
18159
|
var UpdateCustomerLimitTypeResponse = {
|
|
17992
18160
|
Absolute: "absolute",
|
|
17993
18161
|
UsagePercentage: "usage_percentage"
|
|
17994
18162
|
};
|
|
18163
|
+
var UpdateCustomerSpendLimitSource = {
|
|
18164
|
+
Customer: "customer",
|
|
18165
|
+
Plan: "plan"
|
|
18166
|
+
};
|
|
17995
18167
|
var UpdateCustomerUsageLimitIntervalResponse = {
|
|
17996
18168
|
Day: "day",
|
|
17997
18169
|
Week: "week",
|
|
17998
18170
|
Month: "month",
|
|
17999
18171
|
Year: "year"
|
|
18000
18172
|
};
|
|
18173
|
+
var UpdateCustomerUsageLimitSource = {
|
|
18174
|
+
Customer: "customer",
|
|
18175
|
+
Plan: "plan"
|
|
18176
|
+
};
|
|
18001
18177
|
var UpdateCustomerThresholdTypeResponse = {
|
|
18002
18178
|
Usage: "usage",
|
|
18003
18179
|
UsagePercentage: "usage_percentage",
|
|
18004
18180
|
Remaining: "remaining",
|
|
18005
18181
|
RemainingPercentage: "remaining_percentage"
|
|
18006
18182
|
};
|
|
18183
|
+
var UpdateCustomerUsageAlertSource = {
|
|
18184
|
+
Customer: "customer",
|
|
18185
|
+
Plan: "plan"
|
|
18186
|
+
};
|
|
18187
|
+
var UpdateCustomerOverageAllowedSource = {
|
|
18188
|
+
Customer: "customer",
|
|
18189
|
+
Plan: "plan"
|
|
18190
|
+
};
|
|
18007
18191
|
var UpdateCustomerStatus = {
|
|
18008
18192
|
Active: "active",
|
|
18009
18193
|
Scheduled: "scheduled"
|
|
@@ -18200,38 +18384,39 @@ var UpdateCustomerEnv$inboundSchema = inboundSchema(UpdateCustomerEnv);
|
|
|
18200
18384
|
var UpdateCustomerPurchaseLimitIntervalResponse2$inboundSchema = inboundSchema(UpdateCustomerPurchaseLimitIntervalResponse2);
|
|
18201
18385
|
var UpdateCustomerPurchaseLimitResponse2$inboundSchema = z62.pipe(
|
|
18202
18386
|
z62.object({
|
|
18203
|
-
interval:
|
|
18204
|
-
|
|
18205
|
-
)
|
|
18206
|
-
interval_count: nullable(number2()),
|
|
18207
|
-
limit: nullable(number2()),
|
|
18208
|
-
count: number2(),
|
|
18209
|
-
next_reset_at: number2()
|
|
18387
|
+
interval: UpdateCustomerPurchaseLimitIntervalResponse2$inboundSchema,
|
|
18388
|
+
interval_count: z62._default(number2(), 1),
|
|
18389
|
+
limit: number2()
|
|
18210
18390
|
}),
|
|
18211
18391
|
z62.transform((v) => {
|
|
18212
18392
|
return remap(v, {
|
|
18213
|
-
"interval_count": "intervalCount"
|
|
18214
|
-
"next_reset_at": "nextResetAt"
|
|
18393
|
+
"interval_count": "intervalCount"
|
|
18215
18394
|
});
|
|
18216
18395
|
})
|
|
18217
18396
|
);
|
|
18218
18397
|
var UpdateCustomerPurchaseLimitIntervalResponse1$inboundSchema = inboundSchema(UpdateCustomerPurchaseLimitIntervalResponse1);
|
|
18219
18398
|
var UpdateCustomerPurchaseLimitResponse1$inboundSchema = z62.pipe(
|
|
18220
18399
|
z62.object({
|
|
18221
|
-
interval:
|
|
18222
|
-
|
|
18223
|
-
|
|
18400
|
+
interval: nullable(
|
|
18401
|
+
UpdateCustomerPurchaseLimitIntervalResponse1$inboundSchema
|
|
18402
|
+
),
|
|
18403
|
+
interval_count: nullable(number2()),
|
|
18404
|
+
limit: nullable(number2()),
|
|
18405
|
+
count: number2(),
|
|
18406
|
+
next_reset_at: number2()
|
|
18224
18407
|
}),
|
|
18225
18408
|
z62.transform((v) => {
|
|
18226
18409
|
return remap(v, {
|
|
18227
|
-
"interval_count": "intervalCount"
|
|
18410
|
+
"interval_count": "intervalCount",
|
|
18411
|
+
"next_reset_at": "nextResetAt"
|
|
18228
18412
|
});
|
|
18229
18413
|
})
|
|
18230
18414
|
);
|
|
18231
18415
|
var UpdateCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
18232
|
-
z62.lazy(() =>
|
|
18233
|
-
z62.lazy(() =>
|
|
18416
|
+
z62.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema),
|
|
18417
|
+
z62.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema)
|
|
18234
18418
|
]);
|
|
18419
|
+
var UpdateCustomerAutoTopupSource$inboundSchema = inboundSchema(UpdateCustomerAutoTopupSource);
|
|
18235
18420
|
var UpdateCustomerAutoTopupResponse$inboundSchema = z62.pipe(
|
|
18236
18421
|
z62.object({
|
|
18237
18422
|
feature_id: string4(),
|
|
@@ -18239,10 +18424,11 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z62.pipe(
|
|
|
18239
18424
|
threshold: number2(),
|
|
18240
18425
|
quantity: number2(),
|
|
18241
18426
|
purchase_limit: optional3(smartUnion([
|
|
18242
|
-
z62.lazy(() =>
|
|
18243
|
-
z62.lazy(() =>
|
|
18427
|
+
z62.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema),
|
|
18428
|
+
z62.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema)
|
|
18244
18429
|
])),
|
|
18245
|
-
invoice_mode: optional3(boolean2())
|
|
18430
|
+
invoice_mode: optional3(boolean2()),
|
|
18431
|
+
source: optional3(UpdateCustomerAutoTopupSource$inboundSchema)
|
|
18246
18432
|
}),
|
|
18247
18433
|
z62.transform((v) => {
|
|
18248
18434
|
return remap(v, {
|
|
@@ -18253,13 +18439,15 @@ var UpdateCustomerAutoTopupResponse$inboundSchema = z62.pipe(
|
|
|
18253
18439
|
})
|
|
18254
18440
|
);
|
|
18255
18441
|
var UpdateCustomerLimitTypeResponse$inboundSchema = inboundSchema(UpdateCustomerLimitTypeResponse);
|
|
18442
|
+
var UpdateCustomerSpendLimitSource$inboundSchema = inboundSchema(UpdateCustomerSpendLimitSource);
|
|
18256
18443
|
var UpdateCustomerSpendLimitResponse$inboundSchema = z62.pipe(
|
|
18257
18444
|
z62.object({
|
|
18258
18445
|
feature_id: optional3(string4()),
|
|
18259
18446
|
enabled: z62._default(boolean2(), false),
|
|
18260
18447
|
limit_type: optional3(UpdateCustomerLimitTypeResponse$inboundSchema),
|
|
18261
18448
|
overage_limit: optional3(number2()),
|
|
18262
|
-
skip_overage_billing: optional3(boolean2())
|
|
18449
|
+
skip_overage_billing: optional3(boolean2()),
|
|
18450
|
+
source: optional3(UpdateCustomerSpendLimitSource$inboundSchema)
|
|
18263
18451
|
}),
|
|
18264
18452
|
z62.transform((v) => {
|
|
18265
18453
|
return remap(v, {
|
|
@@ -18274,6 +18462,7 @@ var UpdateCustomerUsageLimitIntervalResponse$inboundSchema = inboundSchema(Updat
|
|
|
18274
18462
|
var UpdateCustomerFilterResponse$inboundSchema = z62.object({
|
|
18275
18463
|
properties: z62.record(z62.string(), z62.any())
|
|
18276
18464
|
});
|
|
18465
|
+
var UpdateCustomerUsageLimitSource$inboundSchema = inboundSchema(UpdateCustomerUsageLimitSource);
|
|
18277
18466
|
var UpdateCustomerUsageLimitResponse$inboundSchema = z62.pipe(
|
|
18278
18467
|
z62.object({
|
|
18279
18468
|
feature_id: string4(),
|
|
@@ -18283,7 +18472,8 @@ var UpdateCustomerUsageLimitResponse$inboundSchema = z62.pipe(
|
|
|
18283
18472
|
filter: optional3(
|
|
18284
18473
|
z62.lazy(() => UpdateCustomerFilterResponse$inboundSchema)
|
|
18285
18474
|
),
|
|
18286
|
-
usage: optional3(number2())
|
|
18475
|
+
usage: optional3(number2()),
|
|
18476
|
+
source: optional3(UpdateCustomerUsageLimitSource$inboundSchema)
|
|
18287
18477
|
}),
|
|
18288
18478
|
z62.transform((v) => {
|
|
18289
18479
|
return remap(v, {
|
|
@@ -18292,13 +18482,15 @@ var UpdateCustomerUsageLimitResponse$inboundSchema = z62.pipe(
|
|
|
18292
18482
|
})
|
|
18293
18483
|
);
|
|
18294
18484
|
var UpdateCustomerThresholdTypeResponse$inboundSchema = inboundSchema(UpdateCustomerThresholdTypeResponse);
|
|
18485
|
+
var UpdateCustomerUsageAlertSource$inboundSchema = inboundSchema(UpdateCustomerUsageAlertSource);
|
|
18295
18486
|
var UpdateCustomerUsageAlertResponse$inboundSchema = z62.pipe(
|
|
18296
18487
|
z62.object({
|
|
18297
18488
|
feature_id: optional3(string4()),
|
|
18298
18489
|
enabled: z62._default(boolean2(), true),
|
|
18299
18490
|
threshold: number2(),
|
|
18300
18491
|
threshold_type: UpdateCustomerThresholdTypeResponse$inboundSchema,
|
|
18301
|
-
name: optional3(string4())
|
|
18492
|
+
name: optional3(string4()),
|
|
18493
|
+
source: optional3(UpdateCustomerUsageAlertSource$inboundSchema)
|
|
18302
18494
|
}),
|
|
18303
18495
|
z62.transform((v) => {
|
|
18304
18496
|
return remap(v, {
|
|
@@ -18307,10 +18499,12 @@ var UpdateCustomerUsageAlertResponse$inboundSchema = z62.pipe(
|
|
|
18307
18499
|
});
|
|
18308
18500
|
})
|
|
18309
18501
|
);
|
|
18502
|
+
var UpdateCustomerOverageAllowedSource$inboundSchema = inboundSchema(UpdateCustomerOverageAllowedSource);
|
|
18310
18503
|
var UpdateCustomerOverageAllowedResponse$inboundSchema = z62.pipe(
|
|
18311
18504
|
z62.object({
|
|
18312
18505
|
feature_id: string4(),
|
|
18313
|
-
enabled: z62._default(boolean2(), false)
|
|
18506
|
+
enabled: z62._default(boolean2(), false),
|
|
18507
|
+
source: optional3(UpdateCustomerOverageAllowedSource$inboundSchema)
|
|
18314
18508
|
}),
|
|
18315
18509
|
z62.transform((v) => {
|
|
18316
18510
|
return remap(v, {
|
|
@@ -18603,18 +18797,34 @@ var UpdateEntityLimitTypeResponse = {
|
|
|
18603
18797
|
Absolute: "absolute",
|
|
18604
18798
|
UsagePercentage: "usage_percentage"
|
|
18605
18799
|
};
|
|
18800
|
+
var UpdateEntitySpendLimitSource = {
|
|
18801
|
+
Customer: "customer",
|
|
18802
|
+
Plan: "plan"
|
|
18803
|
+
};
|
|
18606
18804
|
var UpdateEntityIntervalResponse = {
|
|
18607
18805
|
Day: "day",
|
|
18608
18806
|
Week: "week",
|
|
18609
18807
|
Month: "month",
|
|
18610
18808
|
Year: "year"
|
|
18611
18809
|
};
|
|
18810
|
+
var UpdateEntityUsageLimitSource = {
|
|
18811
|
+
Customer: "customer",
|
|
18812
|
+
Plan: "plan"
|
|
18813
|
+
};
|
|
18612
18814
|
var UpdateEntityThresholdTypeResponse = {
|
|
18613
18815
|
Usage: "usage",
|
|
18614
18816
|
UsagePercentage: "usage_percentage",
|
|
18615
18817
|
Remaining: "remaining",
|
|
18616
18818
|
RemainingPercentage: "remaining_percentage"
|
|
18617
18819
|
};
|
|
18820
|
+
var UpdateEntityUsageAlertSource = {
|
|
18821
|
+
Customer: "customer",
|
|
18822
|
+
Plan: "plan"
|
|
18823
|
+
};
|
|
18824
|
+
var UpdateEntityOverageAllowedSource = {
|
|
18825
|
+
Customer: "customer",
|
|
18826
|
+
Plan: "plan"
|
|
18827
|
+
};
|
|
18618
18828
|
var UpdateEntityProcessorType = {
|
|
18619
18829
|
Stripe: "stripe",
|
|
18620
18830
|
Revenuecat: "revenuecat"
|
|
@@ -18864,13 +19074,15 @@ var UpdateEntityFlags$inboundSchema = z63.pipe(
|
|
|
18864
19074
|
})
|
|
18865
19075
|
);
|
|
18866
19076
|
var UpdateEntityLimitTypeResponse$inboundSchema = inboundSchema(UpdateEntityLimitTypeResponse);
|
|
19077
|
+
var UpdateEntitySpendLimitSource$inboundSchema = inboundSchema(UpdateEntitySpendLimitSource);
|
|
18867
19078
|
var UpdateEntitySpendLimitResponse$inboundSchema = z63.pipe(
|
|
18868
19079
|
z63.object({
|
|
18869
19080
|
feature_id: optional3(string4()),
|
|
18870
19081
|
enabled: z63._default(boolean2(), false),
|
|
18871
19082
|
limit_type: optional3(UpdateEntityLimitTypeResponse$inboundSchema),
|
|
18872
19083
|
overage_limit: optional3(number2()),
|
|
18873
|
-
skip_overage_billing: optional3(boolean2())
|
|
19084
|
+
skip_overage_billing: optional3(boolean2()),
|
|
19085
|
+
source: optional3(UpdateEntitySpendLimitSource$inboundSchema)
|
|
18874
19086
|
}),
|
|
18875
19087
|
z63.transform((v) => {
|
|
18876
19088
|
return remap(v, {
|
|
@@ -18885,6 +19097,7 @@ var UpdateEntityIntervalResponse$inboundSchema = inboundSchema(UpdateEntityInter
|
|
|
18885
19097
|
var UpdateEntityFilterResponse$inboundSchema = z63.object({
|
|
18886
19098
|
properties: z63.record(z63.string(), z63.any())
|
|
18887
19099
|
});
|
|
19100
|
+
var UpdateEntityUsageLimitSource$inboundSchema = inboundSchema(UpdateEntityUsageLimitSource);
|
|
18888
19101
|
var UpdateEntityUsageLimitResponse$inboundSchema = z63.pipe(
|
|
18889
19102
|
z63.object({
|
|
18890
19103
|
feature_id: string4(),
|
|
@@ -18894,7 +19107,8 @@ var UpdateEntityUsageLimitResponse$inboundSchema = z63.pipe(
|
|
|
18894
19107
|
filter: optional3(
|
|
18895
19108
|
z63.lazy(() => UpdateEntityFilterResponse$inboundSchema)
|
|
18896
19109
|
),
|
|
18897
|
-
usage: optional3(number2())
|
|
19110
|
+
usage: optional3(number2()),
|
|
19111
|
+
source: optional3(UpdateEntityUsageLimitSource$inboundSchema)
|
|
18898
19112
|
}),
|
|
18899
19113
|
z63.transform((v) => {
|
|
18900
19114
|
return remap(v, {
|
|
@@ -18903,13 +19117,15 @@ var UpdateEntityUsageLimitResponse$inboundSchema = z63.pipe(
|
|
|
18903
19117
|
})
|
|
18904
19118
|
);
|
|
18905
19119
|
var UpdateEntityThresholdTypeResponse$inboundSchema = inboundSchema(UpdateEntityThresholdTypeResponse);
|
|
19120
|
+
var UpdateEntityUsageAlertSource$inboundSchema = inboundSchema(UpdateEntityUsageAlertSource);
|
|
18906
19121
|
var UpdateEntityUsageAlertResponse$inboundSchema = z63.pipe(
|
|
18907
19122
|
z63.object({
|
|
18908
19123
|
feature_id: optional3(string4()),
|
|
18909
19124
|
enabled: z63._default(boolean2(), true),
|
|
18910
19125
|
threshold: number2(),
|
|
18911
19126
|
threshold_type: UpdateEntityThresholdTypeResponse$inboundSchema,
|
|
18912
|
-
name: optional3(string4())
|
|
19127
|
+
name: optional3(string4()),
|
|
19128
|
+
source: optional3(UpdateEntityUsageAlertSource$inboundSchema)
|
|
18913
19129
|
}),
|
|
18914
19130
|
z63.transform((v) => {
|
|
18915
19131
|
return remap(v, {
|
|
@@ -18918,10 +19134,12 @@ var UpdateEntityUsageAlertResponse$inboundSchema = z63.pipe(
|
|
|
18918
19134
|
});
|
|
18919
19135
|
})
|
|
18920
19136
|
);
|
|
19137
|
+
var UpdateEntityOverageAllowedSource$inboundSchema = inboundSchema(UpdateEntityOverageAllowedSource);
|
|
18921
19138
|
var UpdateEntityOverageAllowedResponse$inboundSchema = z63.pipe(
|
|
18922
19139
|
z63.object({
|
|
18923
19140
|
feature_id: string4(),
|
|
18924
|
-
enabled: z63._default(boolean2(), false)
|
|
19141
|
+
enabled: z63._default(boolean2(), false),
|
|
19142
|
+
source: optional3(UpdateEntityOverageAllowedSource$inboundSchema)
|
|
18925
19143
|
}),
|
|
18926
19144
|
z63.transform((v) => {
|
|
18927
19145
|
return remap(v, {
|
|
@@ -23266,7 +23484,7 @@ var Billing = class extends ClientSDK {
|
|
|
23266
23484
|
* @example
|
|
23267
23485
|
* ```typescript
|
|
23268
23486
|
* // Schedule a transition from a trial plan to a paid plan
|
|
23269
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
23487
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1783701939170,"plans":[{"planId":"trial_plan"}]},{"startsAt":1784911539170,"plans":[{"planId":"pro_plan"}]}] });
|
|
23270
23488
|
* ```
|
|
23271
23489
|
*
|
|
23272
23490
|
* @param customerId - The ID of the customer to create the schedule for.
|