autumn-js 1.3.28 → 1.3.30
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 +1231 -375
- package/dist/backend/adapters/express.mjs +8 -8
- package/dist/backend/adapters/fetch.js +1231 -375
- package/dist/backend/adapters/fetch.mjs +8 -8
- package/dist/backend/adapters/hono.js +1231 -375
- package/dist/backend/adapters/hono.mjs +8 -8
- package/dist/backend/adapters/index.js +1231 -375
- package/dist/backend/adapters/index.mjs +11 -11
- package/dist/backend/adapters/next.js +1231 -375
- package/dist/backend/adapters/next.mjs +8 -8
- package/dist/backend/{chunk-RPS2BYZQ.mjs → chunk-MRFQEKBR.mjs} +1 -1
- package/dist/backend/{chunk-FMYC62PB.mjs → chunk-N4L4DLFM.mjs} +6 -6
- package/dist/backend/{chunk-QMG7DDIG.mjs → chunk-OWSZPOV7.mjs} +1 -1
- package/dist/backend/{chunk-746ER4JF.mjs → chunk-QRJFDPO4.mjs} +1231 -375
- package/dist/backend/{chunk-Y4KIFJY4.mjs → chunk-SAUYRKWO.mjs} +1 -1
- package/dist/backend/{chunk-BQADVXTY.mjs → chunk-SESSECCJ.mjs} +1 -1
- package/dist/backend/{chunk-MZAOYQT4.mjs → chunk-YFZ7FT2F.mjs} +4 -4
- 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 +1231 -375
- 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 +1231 -375
- 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 +1231 -375
- 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 +1231 -375
- 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 +1231 -375
- package/dist/backend/index.mjs +9 -9
- package/dist/backend/{routeTypes-HV2JbO7a.d.ts → routeTypes-DoJj_pOC.d.ts} +882 -57
- package/dist/backend/{routeTypes-CRMMAwhb.d.mts → routeTypes-fIoCsrzJ.d.mts} +882 -57
- package/dist/better-auth/{chunk-EBLVOVTN.mjs → chunk-FOW6KLFG.mjs} +1231 -375
- package/dist/better-auth/index.js +1231 -375
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +1231 -375
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +1231 -375
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/react/AutumnContext.d.mts +1 -1
- package/dist/react/AutumnContext.d.ts +1 -1
- package/dist/react/client/AutumnClient.d.mts +1 -1
- package/dist/react/client/AutumnClient.d.ts +1 -1
- package/dist/react/client/IAutumnClient.d.mts +1 -1
- package/dist/react/client/IAutumnClient.d.ts +1 -1
- package/dist/react/client/index.d.mts +1 -1
- package/dist/react/client/index.d.ts +1 -1
- package/dist/react/hooks/index.d.mts +1 -1
- package/dist/react/hooks/index.d.ts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +1 -1
- package/dist/react/hooks/internal/useCustomerActions.d.mts +1 -1
- package/dist/react/hooks/internal/useCustomerActions.d.ts +1 -1
- 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 +1 -1
- package/dist/react/hooks/useCustomer.d.ts +1 -1
- 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 +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/{params-BTjLs-GK.d.mts → params-Yk7M-n-7.d.mts} +28 -21
- package/dist/react/{params-CDDVDhfW.d.ts → params-k6ijFeOE.d.ts} +28 -21
- package/dist/sdk/index.d.mts +1162 -149
- package/dist/sdk/index.d.ts +1162 -149
- package/dist/sdk/index.js +1416 -209
- package/dist/sdk/index.mjs +1285 -210
- package/package.json +2 -2
- package/dist/backend/{chunk-MOHYGUMA.mjs → chunk-IXUCY7AU.mjs} +3 -3
|
@@ -251,7 +251,7 @@ function isAbortError(err) {
|
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
// ../sdk/src/funcs/batch-track.ts
|
|
254
|
-
var
|
|
254
|
+
var z118 = __toESM(require("zod/v4-mini"), 1);
|
|
255
255
|
|
|
256
256
|
// ../sdk/src/lib/base64.ts
|
|
257
257
|
var z = __toESM(require("zod/v4-mini"), 1);
|
|
@@ -3034,7 +3034,8 @@ var AttachIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
3034
3034
|
};
|
|
3035
3035
|
var AttachProrationBehavior = {
|
|
3036
3036
|
ProrateImmediately: "prorate_immediately",
|
|
3037
|
-
None: "none"
|
|
3037
|
+
None: "none",
|
|
3038
|
+
BillDifference: "bill_difference"
|
|
3038
3039
|
};
|
|
3039
3040
|
var AttachRedirectMode = {
|
|
3040
3041
|
Always: "always",
|
|
@@ -5658,7 +5659,8 @@ var BillingUpdateIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
5658
5659
|
};
|
|
5659
5660
|
var BillingUpdateProrationBehavior = {
|
|
5660
5661
|
ProrateImmediately: "prorate_immediately",
|
|
5661
|
-
None: "none"
|
|
5662
|
+
None: "none",
|
|
5663
|
+
BillDifference: "bill_difference"
|
|
5662
5664
|
};
|
|
5663
5665
|
var BillingUpdateRedirectMode = {
|
|
5664
5666
|
Always: "always",
|
|
@@ -16512,10 +16514,10 @@ var CreateSandboxResponse$inboundSchema = z33.pipe(
|
|
|
16512
16514
|
// ../sdk/src/models/create-schedule-response.ts
|
|
16513
16515
|
var z36 = __toESM(require("zod/v4-mini"), 1);
|
|
16514
16516
|
|
|
16515
|
-
// ../sdk/src/models/phase-start-
|
|
16517
|
+
// ../sdk/src/models/phase-start-add-item-feature-override.ts
|
|
16516
16518
|
var z35 = __toESM(require("zod/v4-mini"), 1);
|
|
16517
16519
|
|
|
16518
|
-
// ../sdk/src/models/unscheduled-plan-upsert-license-
|
|
16520
|
+
// ../sdk/src/models/unscheduled-plan-upsert-license-proration.ts
|
|
16519
16521
|
var z34 = __toESM(require("zod/v4-mini"), 1);
|
|
16520
16522
|
var CreateScheduleFreeTrialDurationType = {
|
|
16521
16523
|
Day: "day",
|
|
@@ -16533,7 +16535,8 @@ var CreateScheduleRedirectMode = {
|
|
|
16533
16535
|
};
|
|
16534
16536
|
var CreateScheduleBillingBehavior = {
|
|
16535
16537
|
ProrateImmediately: "prorate_immediately",
|
|
16536
|
-
None: "none"
|
|
16538
|
+
None: "none",
|
|
16539
|
+
BillDifference: "bill_difference"
|
|
16537
16540
|
};
|
|
16538
16541
|
var PriceUnscheduledPlanInterval = {
|
|
16539
16542
|
OneOff: "one_off",
|
|
@@ -16764,10 +16767,6 @@ var UnscheduledPlanUpsertLicenseOnDecrease = {
|
|
|
16764
16767
|
None: "none",
|
|
16765
16768
|
NoProrations: "no_prorations"
|
|
16766
16769
|
};
|
|
16767
|
-
var UnscheduledPlanUpsertLicenseExpiryDurationType = {
|
|
16768
|
-
Month: "month",
|
|
16769
|
-
Forever: "forever"
|
|
16770
|
-
};
|
|
16771
16770
|
var CreateScheduleFreeTrialDurationType$outboundSchema = z34.enum(CreateScheduleFreeTrialDurationType);
|
|
16772
16771
|
var CreateScheduleOnEnd$outboundSchema = z34.enum(CreateScheduleOnEnd);
|
|
16773
16772
|
var CreateScheduleFreeTrialParams$outboundSchema = z34.pipe(
|
|
@@ -16831,6 +16830,17 @@ var UnscheduledPlanFeatureQuantity$outboundSchema = z34.pipe(
|
|
|
16831
16830
|
});
|
|
16832
16831
|
})
|
|
16833
16832
|
);
|
|
16833
|
+
var UnscheduledPlanLicenseQuantity$outboundSchema = z34.pipe(
|
|
16834
|
+
z34.object({
|
|
16835
|
+
licensePlanId: z34.string(),
|
|
16836
|
+
quantity: z34.int()
|
|
16837
|
+
}),
|
|
16838
|
+
z34.transform((v) => {
|
|
16839
|
+
return remap(v, {
|
|
16840
|
+
licensePlanId: "license_plan_id"
|
|
16841
|
+
});
|
|
16842
|
+
})
|
|
16843
|
+
);
|
|
16834
16844
|
var PriceUnscheduledPlanInterval$outboundSchema = z34.enum(PriceUnscheduledPlanInterval);
|
|
16835
16845
|
var UnscheduledPlanAdditionalCurrency$outboundSchema = z34.object({
|
|
16836
16846
|
currency: z34.string(),
|
|
@@ -17975,11 +17985,12 @@ var UnscheduledPlanUpsertLicenseProration$outboundSchema = z34.pipe(
|
|
|
17975
17985
|
});
|
|
17976
17986
|
})
|
|
17977
17987
|
);
|
|
17978
|
-
var UnscheduledPlanUpsertLicenseExpiryDurationType$outboundSchema = z34.enum(
|
|
17979
|
-
UnscheduledPlanUpsertLicenseExpiryDurationType
|
|
17980
|
-
);
|
|
17981
17988
|
|
|
17982
|
-
// ../sdk/src/models/phase-start-
|
|
17989
|
+
// ../sdk/src/models/phase-start-add-item-feature-override.ts
|
|
17990
|
+
var UnscheduledPlanUpsertLicenseExpiryDurationType = {
|
|
17991
|
+
Month: "month",
|
|
17992
|
+
Forever: "forever"
|
|
17993
|
+
};
|
|
17983
17994
|
var UnscheduledPlanUpsertLicenseDuration = {
|
|
17984
17995
|
Day: "day",
|
|
17985
17996
|
Week: "week",
|
|
@@ -18148,10 +18159,9 @@ var PhaseStartDimensionsToAddItemEnum1 = {
|
|
|
18148
18159
|
var PhaseStartToAddItemEnum = {
|
|
18149
18160
|
Inf: "inf"
|
|
18150
18161
|
};
|
|
18151
|
-
var
|
|
18152
|
-
|
|
18153
|
-
|
|
18154
|
-
};
|
|
18162
|
+
var UnscheduledPlanUpsertLicenseExpiryDurationType$outboundSchema = z35.enum(
|
|
18163
|
+
UnscheduledPlanUpsertLicenseExpiryDurationType
|
|
18164
|
+
);
|
|
18155
18165
|
var UnscheduledPlanUpsertLicenseRollover$outboundSchema = z35.pipe(
|
|
18156
18166
|
z35.object({
|
|
18157
18167
|
max: z35.optional(z35.number()),
|
|
@@ -18587,6 +18597,9 @@ var UnscheduledPlan$outboundSchema = z35.pipe(
|
|
|
18587
18597
|
featureQuantities: z35.optional(
|
|
18588
18598
|
z35.array(UnscheduledPlanFeatureQuantity$outboundSchema)
|
|
18589
18599
|
),
|
|
18600
|
+
licenseQuantities: z35.optional(
|
|
18601
|
+
z35.array(UnscheduledPlanLicenseQuantity$outboundSchema)
|
|
18602
|
+
),
|
|
18590
18603
|
version: z35.optional(z35.number()),
|
|
18591
18604
|
customize: z35.optional(
|
|
18592
18605
|
z35.lazy(() => UnscheduledPlanCustomize$outboundSchema)
|
|
@@ -18598,6 +18611,7 @@ var UnscheduledPlan$outboundSchema = z35.pipe(
|
|
|
18598
18611
|
planId: "plan_id",
|
|
18599
18612
|
entityId: "entity_id",
|
|
18600
18613
|
featureQuantities: "feature_quantities",
|
|
18614
|
+
licenseQuantities: "license_quantities",
|
|
18601
18615
|
subscriptionId: "subscription_id"
|
|
18602
18616
|
});
|
|
18603
18617
|
})
|
|
@@ -18628,6 +18642,17 @@ var PhaseStartFeatureQuantity$outboundSchema = z35.pipe(
|
|
|
18628
18642
|
});
|
|
18629
18643
|
})
|
|
18630
18644
|
);
|
|
18645
|
+
var PhaseStartLicenseQuantity$outboundSchema = z35.pipe(
|
|
18646
|
+
z35.object({
|
|
18647
|
+
licensePlanId: z35.string(),
|
|
18648
|
+
quantity: z35.int()
|
|
18649
|
+
}),
|
|
18650
|
+
z35.transform((v) => {
|
|
18651
|
+
return remap(v, {
|
|
18652
|
+
licensePlanId: "license_plan_id"
|
|
18653
|
+
});
|
|
18654
|
+
})
|
|
18655
|
+
);
|
|
18631
18656
|
var PhaseStartPriceInterval$outboundSchema = z35.enum(PhaseStartPriceInterval);
|
|
18632
18657
|
var PhaseStartAdditionalCurrency$outboundSchema = z35.object({
|
|
18633
18658
|
currency: z35.string(),
|
|
@@ -19403,41 +19428,12 @@ var PhaseStartAddItemFeatureOverride$outboundSchema = z35.pipe(
|
|
|
19403
19428
|
});
|
|
19404
19429
|
})
|
|
19405
19430
|
);
|
|
19406
|
-
var PhaseStartAddItemPlanItem$outboundSchema = z35.pipe(
|
|
19407
|
-
z35.object({
|
|
19408
|
-
thresholdBilling: z35.optional(
|
|
19409
|
-
z35.nullable(
|
|
19410
|
-
z35.lazy(() => PhaseStartAddItemThresholdBilling$outboundSchema)
|
|
19411
|
-
)
|
|
19412
|
-
),
|
|
19413
|
-
featureId: z35.string(),
|
|
19414
|
-
included: z35.optional(z35.number()),
|
|
19415
|
-
unlimited: z35.optional(z35.boolean()),
|
|
19416
|
-
pooled: z35._default(z35.boolean(), false),
|
|
19417
|
-
reset: z35.optional(z35.lazy(() => PhaseStartAddItemReset$outboundSchema)),
|
|
19418
|
-
price: z35.optional(z35.lazy(() => PhaseStartAddItemPrice$outboundSchema)),
|
|
19419
|
-
proration: z35.optional(
|
|
19420
|
-
z35.lazy(() => PhaseStartAddItemProration$outboundSchema)
|
|
19421
|
-
),
|
|
19422
|
-
rollover: z35.optional(
|
|
19423
|
-
z35.lazy(() => PhaseStartAddItemRollover$outboundSchema)
|
|
19424
|
-
),
|
|
19425
|
-
expiry: z35.optional(z35.lazy(() => PhaseStartAddItemExpiry$outboundSchema)),
|
|
19426
|
-
featureOverride: z35.optional(
|
|
19427
|
-
z35.lazy(() => PhaseStartAddItemFeatureOverride$outboundSchema)
|
|
19428
|
-
)
|
|
19429
|
-
}),
|
|
19430
|
-
z35.transform((v) => {
|
|
19431
|
-
return remap(v, {
|
|
19432
|
-
thresholdBilling: "threshold_billing",
|
|
19433
|
-
featureId: "feature_id",
|
|
19434
|
-
featureOverride: "feature_override"
|
|
19435
|
-
});
|
|
19436
|
-
})
|
|
19437
|
-
);
|
|
19438
|
-
var PhaseStartRemoveItemBillingMethod$outboundSchema = z35.enum(PhaseStartRemoveItemBillingMethod);
|
|
19439
19431
|
|
|
19440
19432
|
// ../sdk/src/models/create-schedule-response.ts
|
|
19433
|
+
var PhaseStartRemoveItemBillingMethod = {
|
|
19434
|
+
Prepaid: "prepaid",
|
|
19435
|
+
UsageBased: "usage_based"
|
|
19436
|
+
};
|
|
19441
19437
|
var PhaseStartIntervalRemoveItemEnum2 = {
|
|
19442
19438
|
OneOff: "one_off",
|
|
19443
19439
|
Minute: "minute",
|
|
@@ -19586,6 +19582,33 @@ var CreateScheduleCode = {
|
|
|
19586
19582
|
PaymentFailed: "payment_failed",
|
|
19587
19583
|
PaymentProcessing: "payment_processing"
|
|
19588
19584
|
};
|
|
19585
|
+
var PhaseStartAddItemPlanItem$outboundSchema = z36.pipe(
|
|
19586
|
+
z36.object({
|
|
19587
|
+
thresholdBilling: z36.optional(
|
|
19588
|
+
z36.nullable(PhaseStartAddItemThresholdBilling$outboundSchema)
|
|
19589
|
+
),
|
|
19590
|
+
featureId: z36.string(),
|
|
19591
|
+
included: z36.optional(z36.number()),
|
|
19592
|
+
unlimited: z36.optional(z36.boolean()),
|
|
19593
|
+
pooled: z36._default(z36.boolean(), false),
|
|
19594
|
+
reset: z36.optional(PhaseStartAddItemReset$outboundSchema),
|
|
19595
|
+
price: z36.optional(PhaseStartAddItemPrice$outboundSchema),
|
|
19596
|
+
proration: z36.optional(PhaseStartAddItemProration$outboundSchema),
|
|
19597
|
+
rollover: z36.optional(PhaseStartAddItemRollover$outboundSchema),
|
|
19598
|
+
expiry: z36.optional(PhaseStartAddItemExpiry$outboundSchema),
|
|
19599
|
+
featureOverride: z36.optional(
|
|
19600
|
+
PhaseStartAddItemFeatureOverride$outboundSchema
|
|
19601
|
+
)
|
|
19602
|
+
}),
|
|
19603
|
+
z36.transform((v) => {
|
|
19604
|
+
return remap(v, {
|
|
19605
|
+
thresholdBilling: "threshold_billing",
|
|
19606
|
+
featureId: "feature_id",
|
|
19607
|
+
featureOverride: "feature_override"
|
|
19608
|
+
});
|
|
19609
|
+
})
|
|
19610
|
+
);
|
|
19611
|
+
var PhaseStartRemoveItemBillingMethod$outboundSchema = z36.enum(PhaseStartRemoveItemBillingMethod);
|
|
19589
19612
|
var PhaseStartIntervalRemoveItemEnum2$outboundSchema = z36.enum(PhaseStartIntervalRemoveItemEnum2);
|
|
19590
19613
|
var PhaseStartIntervalRemoveItemEnum1$outboundSchema = z36.enum(PhaseStartIntervalRemoveItemEnum1);
|
|
19591
19614
|
var PhaseStartIntervalUnion$outboundSchema = smartUnion([
|
|
@@ -20266,7 +20289,9 @@ var PhaseStartCustomize$outboundSchema = z36.pipe(
|
|
|
20266
20289
|
z36.object({
|
|
20267
20290
|
price: z36.optional(z36.nullable(PhaseStartBasePrice$outboundSchema)),
|
|
20268
20291
|
items: z36.optional(z36.array(PhaseStartItemPlanItem$outboundSchema)),
|
|
20269
|
-
addItems: z36.optional(
|
|
20292
|
+
addItems: z36.optional(
|
|
20293
|
+
z36.array(z36.lazy(() => PhaseStartAddItemPlanItem$outboundSchema))
|
|
20294
|
+
),
|
|
20270
20295
|
removeItems: z36.optional(
|
|
20271
20296
|
z36.array(z36.lazy(() => PhaseStartPlanItemFilter$outboundSchema))
|
|
20272
20297
|
),
|
|
@@ -20297,6 +20322,9 @@ var CreateSchedulePlan2$outboundSchema = z36.pipe(
|
|
|
20297
20322
|
featureQuantities: z36.optional(
|
|
20298
20323
|
z36.array(PhaseStartFeatureQuantity$outboundSchema)
|
|
20299
20324
|
),
|
|
20325
|
+
licenseQuantities: z36.optional(
|
|
20326
|
+
z36.array(PhaseStartLicenseQuantity$outboundSchema)
|
|
20327
|
+
),
|
|
20300
20328
|
version: z36.optional(z36.number()),
|
|
20301
20329
|
customize: z36.optional(z36.lazy(() => PhaseStartCustomize$outboundSchema)),
|
|
20302
20330
|
subscriptionId: z36.optional(z36.string())
|
|
@@ -20306,6 +20334,7 @@ var CreateSchedulePlan2$outboundSchema = z36.pipe(
|
|
|
20306
20334
|
planId: "plan_id",
|
|
20307
20335
|
entityId: "entity_id",
|
|
20308
20336
|
featureQuantities: "feature_quantities",
|
|
20337
|
+
licenseQuantities: "license_quantities",
|
|
20309
20338
|
subscriptionId: "subscription_id"
|
|
20310
20339
|
});
|
|
20311
20340
|
})
|
|
@@ -20450,7 +20479,7 @@ var CreateWebhookEvent$outboundSchema = z37.enum(CreateWebhookEvent);
|
|
|
20450
20479
|
var CreateWebhookParams$outboundSchema = z37.object({
|
|
20451
20480
|
id: z37.string(),
|
|
20452
20481
|
url: z37.string(),
|
|
20453
|
-
events: z37.array(CreateWebhookEvent$outboundSchema),
|
|
20482
|
+
events: z37.optional(z37.array(CreateWebhookEvent$outboundSchema)),
|
|
20454
20483
|
description: z37.optional(z37.string()),
|
|
20455
20484
|
disabled: z37.optional(z37.boolean())
|
|
20456
20485
|
});
|
|
@@ -34314,7 +34343,8 @@ var MultiAttachOnEnd = {
|
|
|
34314
34343
|
};
|
|
34315
34344
|
var MultiAttachBillingBehavior = {
|
|
34316
34345
|
ProrateImmediately: "prorate_immediately",
|
|
34317
|
-
None: "none"
|
|
34346
|
+
None: "none",
|
|
34347
|
+
BillDifference: "bill_difference"
|
|
34318
34348
|
};
|
|
34319
34349
|
var MultiAttachRedirectMode = {
|
|
34320
34350
|
Always: "always",
|
|
@@ -35062,7 +35092,8 @@ var MultiUpdateCancelAction = {
|
|
|
35062
35092
|
};
|
|
35063
35093
|
var MultiUpdateProrationBehavior = {
|
|
35064
35094
|
ProrateImmediately: "prorate_immediately",
|
|
35065
|
-
None: "none"
|
|
35095
|
+
None: "none",
|
|
35096
|
+
BillDifference: "bill_difference"
|
|
35066
35097
|
};
|
|
35067
35098
|
var MultiUpdateCode = {
|
|
35068
35099
|
ThreedsRequired: "3ds_required",
|
|
@@ -36756,7 +36787,8 @@ var PreviewAttachIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
36756
36787
|
};
|
|
36757
36788
|
var PreviewAttachProrationBehavior = {
|
|
36758
36789
|
ProrateImmediately: "prorate_immediately",
|
|
36759
|
-
None: "none"
|
|
36790
|
+
None: "none",
|
|
36791
|
+
BillDifference: "bill_difference"
|
|
36760
36792
|
};
|
|
36761
36793
|
var PreviewAttachRedirectMode = {
|
|
36762
36794
|
Always: "always",
|
|
@@ -37679,7 +37711,8 @@ var PreviewMultiAttachOnEnd = {
|
|
|
37679
37711
|
};
|
|
37680
37712
|
var PreviewMultiAttachBillingBehavior = {
|
|
37681
37713
|
ProrateImmediately: "prorate_immediately",
|
|
37682
|
-
None: "none"
|
|
37714
|
+
None: "none",
|
|
37715
|
+
BillDifference: "bill_difference"
|
|
37683
37716
|
};
|
|
37684
37717
|
var PreviewMultiAttachRedirectMode = {
|
|
37685
37718
|
Always: "always",
|
|
@@ -38679,7 +38712,8 @@ var PreviewMultiUpdateCancelAction = {
|
|
|
38679
38712
|
};
|
|
38680
38713
|
var PreviewMultiUpdateProrationBehavior = {
|
|
38681
38714
|
ProrateImmediately: "prorate_immediately",
|
|
38682
|
-
None: "none"
|
|
38715
|
+
None: "none",
|
|
38716
|
+
BillDifference: "bill_difference"
|
|
38683
38717
|
};
|
|
38684
38718
|
var PreviewMultiUpdateRefundLastPayment$outboundSchema = z87.enum(PreviewMultiUpdateRefundLastPayment);
|
|
38685
38719
|
var PreviewMultiUpdateCancelAction$outboundSchema = z87.enum(PreviewMultiUpdateCancelAction);
|
|
@@ -38978,7 +39012,7 @@ var PreviewSyncWebhooksEvent$outboundSchema = z88.enum(PreviewSyncWebhooksEvent)
|
|
|
38978
39012
|
var PreviewSyncWebhooksWebhookRequest$outboundSchema = z88.object({
|
|
38979
39013
|
id: z88.string(),
|
|
38980
39014
|
url: z88.string(),
|
|
38981
|
-
events: z88.array(PreviewSyncWebhooksEvent$outboundSchema),
|
|
39015
|
+
events: z88.optional(z88.array(PreviewSyncWebhooksEvent$outboundSchema)),
|
|
38982
39016
|
description: z88.optional(z88.string()),
|
|
38983
39017
|
disabled: z88.optional(z88.boolean())
|
|
38984
39018
|
});
|
|
@@ -40624,7 +40658,8 @@ var PreviewUpdateIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
40624
40658
|
};
|
|
40625
40659
|
var PreviewUpdateProrationBehavior = {
|
|
40626
40660
|
ProrateImmediately: "prorate_immediately",
|
|
40627
|
-
None: "none"
|
|
40661
|
+
None: "none",
|
|
40662
|
+
BillDifference: "bill_difference"
|
|
40628
40663
|
};
|
|
40629
40664
|
var PreviewUpdateRedirectMode = {
|
|
40630
40665
|
Always: "always",
|
|
@@ -43983,7 +44018,8 @@ var SetupPaymentIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
43983
44018
|
};
|
|
43984
44019
|
var SetupPaymentProrationBehavior = {
|
|
43985
44020
|
ProrateImmediately: "prorate_immediately",
|
|
43986
|
-
None: "none"
|
|
44021
|
+
None: "none",
|
|
44022
|
+
BillDifference: "bill_difference"
|
|
43987
44023
|
};
|
|
43988
44024
|
var SetupPaymentUpsertLicenseDuration$outboundSchema = z100.enum(SetupPaymentUpsertLicenseDuration);
|
|
43989
44025
|
var SetupPaymentUpsertLicenseExpiry$outboundSchema = z100.object({
|
|
@@ -44642,7 +44678,7 @@ var SyncWebhooksEvent$outboundSchema = z102.enum(SyncWebhooksEvent);
|
|
|
44642
44678
|
var SyncWebhooksWebhookRequest$outboundSchema = z102.object({
|
|
44643
44679
|
id: z102.string(),
|
|
44644
44680
|
url: z102.string(),
|
|
44645
|
-
events: z102.array(SyncWebhooksEvent$outboundSchema),
|
|
44681
|
+
events: z102.optional(z102.array(SyncWebhooksEvent$outboundSchema)),
|
|
44646
44682
|
description: z102.optional(z102.string()),
|
|
44647
44683
|
disabled: z102.optional(z102.boolean())
|
|
44648
44684
|
});
|
|
@@ -53157,37 +53193,749 @@ var UpdateWebhookWebhook$inboundSchema = z115.pipe(
|
|
|
53157
53193
|
})
|
|
53158
53194
|
);
|
|
53159
53195
|
|
|
53160
|
-
// ../sdk/src/models/
|
|
53196
|
+
// ../sdk/src/models/verify-op.ts
|
|
53161
53197
|
var z116 = __toESM(require("zod/v4-mini"), 1);
|
|
53198
|
+
var CustomerMismatchSeverity12 = {
|
|
53199
|
+
Error: "error",
|
|
53200
|
+
Warning: "warning"
|
|
53201
|
+
};
|
|
53202
|
+
var CustomerMismatchSeverity11 = {
|
|
53203
|
+
Error: "error",
|
|
53204
|
+
Warning: "warning"
|
|
53205
|
+
};
|
|
53206
|
+
var CustomerMismatchSeverity10 = {
|
|
53207
|
+
Error: "error",
|
|
53208
|
+
Warning: "warning"
|
|
53209
|
+
};
|
|
53210
|
+
var CustomerMismatchSeverity9 = {
|
|
53211
|
+
Error: "error",
|
|
53212
|
+
Warning: "warning"
|
|
53213
|
+
};
|
|
53214
|
+
var CustomerMismatchSeverity8 = {
|
|
53215
|
+
Error: "error",
|
|
53216
|
+
Warning: "warning"
|
|
53217
|
+
};
|
|
53218
|
+
var CustomerMismatchSeverity7 = {
|
|
53219
|
+
Error: "error",
|
|
53220
|
+
Warning: "warning"
|
|
53221
|
+
};
|
|
53222
|
+
var CustomerMismatchSeverity6 = {
|
|
53223
|
+
Error: "error",
|
|
53224
|
+
Warning: "warning"
|
|
53225
|
+
};
|
|
53226
|
+
var CustomerMismatchSeverity5 = {
|
|
53227
|
+
Error: "error",
|
|
53228
|
+
Warning: "warning"
|
|
53229
|
+
};
|
|
53230
|
+
var CustomerMismatchReason3 = {
|
|
53231
|
+
MissingSchedule: "missing_schedule",
|
|
53232
|
+
UnexpectedSchedule: "unexpected_schedule",
|
|
53233
|
+
PhaseCountMismatch: "phase_count_mismatch",
|
|
53234
|
+
PhaseStartMismatch: "phase_start_mismatch",
|
|
53235
|
+
BillingCycleAnchorMismatch: "billing_cycle_anchor_mismatch"
|
|
53236
|
+
};
|
|
53237
|
+
var CustomerMismatchSeverity4 = {
|
|
53238
|
+
Error: "error",
|
|
53239
|
+
Warning: "warning"
|
|
53240
|
+
};
|
|
53241
|
+
var CustomerMismatchSeverity3 = {
|
|
53242
|
+
Error: "error",
|
|
53243
|
+
Warning: "warning"
|
|
53244
|
+
};
|
|
53245
|
+
var CustomerMismatchSeverity2 = {
|
|
53246
|
+
Error: "error",
|
|
53247
|
+
Warning: "warning"
|
|
53248
|
+
};
|
|
53249
|
+
var CustomerMismatchReason2 = {
|
|
53250
|
+
Missing: "missing",
|
|
53251
|
+
Unexpected: "unexpected",
|
|
53252
|
+
QuantityMismatch: "quantity_mismatch",
|
|
53253
|
+
PriceMismatch: "price_mismatch"
|
|
53254
|
+
};
|
|
53255
|
+
var CustomerMismatchPriceType = {
|
|
53256
|
+
Usage: "usage",
|
|
53257
|
+
Prepaid: "prepaid",
|
|
53258
|
+
Allocated: "allocated",
|
|
53259
|
+
Fixed: "fixed"
|
|
53260
|
+
};
|
|
53261
|
+
var CustomerMismatchSeverity1 = {
|
|
53262
|
+
Error: "error",
|
|
53263
|
+
Warning: "warning"
|
|
53264
|
+
};
|
|
53265
|
+
var CustomerMismatchReason1 = {
|
|
53266
|
+
Missing: "missing",
|
|
53267
|
+
Unexpected: "unexpected",
|
|
53268
|
+
AmountMismatch: "amount_mismatch"
|
|
53269
|
+
};
|
|
53270
|
+
var VerifyStatus = {
|
|
53271
|
+
Correct: "correct",
|
|
53272
|
+
Mismatched: "mismatched"
|
|
53273
|
+
};
|
|
53274
|
+
var MismatchSeverity12 = {
|
|
53275
|
+
Error: "error",
|
|
53276
|
+
Warning: "warning"
|
|
53277
|
+
};
|
|
53278
|
+
var MismatchSeverity11 = {
|
|
53279
|
+
Error: "error",
|
|
53280
|
+
Warning: "warning"
|
|
53281
|
+
};
|
|
53282
|
+
var MismatchSeverity10 = {
|
|
53283
|
+
Error: "error",
|
|
53284
|
+
Warning: "warning"
|
|
53285
|
+
};
|
|
53286
|
+
var MismatchSeverity9 = {
|
|
53287
|
+
Error: "error",
|
|
53288
|
+
Warning: "warning"
|
|
53289
|
+
};
|
|
53290
|
+
var MismatchSeverity8 = {
|
|
53291
|
+
Error: "error",
|
|
53292
|
+
Warning: "warning"
|
|
53293
|
+
};
|
|
53294
|
+
var MismatchSeverity7 = {
|
|
53295
|
+
Error: "error",
|
|
53296
|
+
Warning: "warning"
|
|
53297
|
+
};
|
|
53298
|
+
var MismatchSeverity6 = {
|
|
53299
|
+
Error: "error",
|
|
53300
|
+
Warning: "warning"
|
|
53301
|
+
};
|
|
53302
|
+
var MismatchSeverity5 = {
|
|
53303
|
+
Error: "error",
|
|
53304
|
+
Warning: "warning"
|
|
53305
|
+
};
|
|
53306
|
+
var MismatchReason3 = {
|
|
53307
|
+
MissingSchedule: "missing_schedule",
|
|
53308
|
+
UnexpectedSchedule: "unexpected_schedule",
|
|
53309
|
+
PhaseCountMismatch: "phase_count_mismatch",
|
|
53310
|
+
PhaseStartMismatch: "phase_start_mismatch",
|
|
53311
|
+
BillingCycleAnchorMismatch: "billing_cycle_anchor_mismatch"
|
|
53312
|
+
};
|
|
53313
|
+
var MismatchSeverity4 = {
|
|
53314
|
+
Error: "error",
|
|
53315
|
+
Warning: "warning"
|
|
53316
|
+
};
|
|
53317
|
+
var MismatchSeverity3 = {
|
|
53318
|
+
Error: "error",
|
|
53319
|
+
Warning: "warning"
|
|
53320
|
+
};
|
|
53321
|
+
var MismatchSeverity2 = {
|
|
53322
|
+
Error: "error",
|
|
53323
|
+
Warning: "warning"
|
|
53324
|
+
};
|
|
53325
|
+
var MismatchReason2 = {
|
|
53326
|
+
Missing: "missing",
|
|
53327
|
+
Unexpected: "unexpected",
|
|
53328
|
+
QuantityMismatch: "quantity_mismatch",
|
|
53329
|
+
PriceMismatch: "price_mismatch"
|
|
53330
|
+
};
|
|
53331
|
+
var MismatchPriceType = {
|
|
53332
|
+
Usage: "usage",
|
|
53333
|
+
Prepaid: "prepaid",
|
|
53334
|
+
Allocated: "allocated",
|
|
53335
|
+
Fixed: "fixed"
|
|
53336
|
+
};
|
|
53337
|
+
var MismatchSeverity1 = {
|
|
53338
|
+
Error: "error",
|
|
53339
|
+
Warning: "warning"
|
|
53340
|
+
};
|
|
53341
|
+
var MismatchReason1 = {
|
|
53342
|
+
Missing: "missing",
|
|
53343
|
+
Unexpected: "unexpected",
|
|
53344
|
+
AmountMismatch: "amount_mismatch"
|
|
53345
|
+
};
|
|
53346
|
+
var VerifyParams$outboundSchema = z116.pipe(
|
|
53347
|
+
z116.object({
|
|
53348
|
+
customerId: z116.string(),
|
|
53349
|
+
subscriptionIds: z116.optional(z116.array(z116.string())),
|
|
53350
|
+
strict: z116.optional(z116.boolean())
|
|
53351
|
+
}),
|
|
53352
|
+
z116.transform((v) => {
|
|
53353
|
+
return remap(v, {
|
|
53354
|
+
customerId: "customer_id",
|
|
53355
|
+
subscriptionIds: "subscription_ids"
|
|
53356
|
+
});
|
|
53357
|
+
})
|
|
53358
|
+
);
|
|
53359
|
+
var CustomerMismatchSeverity12$inboundSchema = inboundSchema(CustomerMismatchSeverity12);
|
|
53360
|
+
var CustomerMismatchOtherCustomer$inboundSchema = z116.object({
|
|
53361
|
+
id: string5(),
|
|
53362
|
+
name: nullable(string5()),
|
|
53363
|
+
email: nullable(string5())
|
|
53364
|
+
});
|
|
53365
|
+
var CustomerMismatch12$inboundSchema = z116.pipe(
|
|
53366
|
+
z116.object({
|
|
53367
|
+
type: literal3("shared_stripe_customer"),
|
|
53368
|
+
message: optional3(string5()),
|
|
53369
|
+
severity: optional3(CustomerMismatchSeverity12$inboundSchema),
|
|
53370
|
+
stripe_customer_id: string5(),
|
|
53371
|
+
other_customer_ids: z116.array(string5()),
|
|
53372
|
+
other_customers: optional3(
|
|
53373
|
+
z116.array(z116.lazy(() => CustomerMismatchOtherCustomer$inboundSchema))
|
|
53374
|
+
)
|
|
53375
|
+
}),
|
|
53376
|
+
z116.transform((v) => {
|
|
53377
|
+
return remap(v, {
|
|
53378
|
+
"stripe_customer_id": "stripeCustomerId",
|
|
53379
|
+
"other_customer_ids": "otherCustomerIds",
|
|
53380
|
+
"other_customers": "otherCustomers"
|
|
53381
|
+
});
|
|
53382
|
+
})
|
|
53383
|
+
);
|
|
53384
|
+
var CustomerMismatchSeverity11$inboundSchema = inboundSchema(CustomerMismatchSeverity11);
|
|
53385
|
+
var CustomerMismatch11$inboundSchema = z116.object({
|
|
53386
|
+
type: literal3("expected_state_error"),
|
|
53387
|
+
message: optional3(string5()),
|
|
53388
|
+
severity: optional3(CustomerMismatchSeverity11$inboundSchema),
|
|
53389
|
+
error: string5()
|
|
53390
|
+
});
|
|
53391
|
+
var CustomerMismatchSeverity10$inboundSchema = inboundSchema(CustomerMismatchSeverity10);
|
|
53392
|
+
var CustomerMismatch10$inboundSchema = z116.object({
|
|
53393
|
+
type: literal3("stale_subscription_link"),
|
|
53394
|
+
message: optional3(string5()),
|
|
53395
|
+
severity: optional3(CustomerMismatchSeverity10$inboundSchema)
|
|
53396
|
+
});
|
|
53397
|
+
var CustomerMismatchSeverity9$inboundSchema = inboundSchema(CustomerMismatchSeverity9);
|
|
53398
|
+
var CustomerMismatch9$inboundSchema = z116.pipe(
|
|
53399
|
+
z116.object({
|
|
53400
|
+
type: literal3("plan_on_ending_subscription"),
|
|
53401
|
+
message: optional3(string5()),
|
|
53402
|
+
severity: optional3(CustomerMismatchSeverity9$inboundSchema),
|
|
53403
|
+
ending_subscription_id: string5()
|
|
53404
|
+
}),
|
|
53405
|
+
z116.transform((v) => {
|
|
53406
|
+
return remap(v, {
|
|
53407
|
+
"ending_subscription_id": "endingSubscriptionId"
|
|
53408
|
+
});
|
|
53409
|
+
})
|
|
53410
|
+
);
|
|
53411
|
+
var CustomerMismatchSeverity8$inboundSchema = inboundSchema(CustomerMismatchSeverity8);
|
|
53412
|
+
var CustomerMismatch8$inboundSchema = z116.object({
|
|
53413
|
+
type: literal3("stripe_sub_not_in_autumn"),
|
|
53414
|
+
message: optional3(string5()),
|
|
53415
|
+
severity: optional3(CustomerMismatchSeverity8$inboundSchema)
|
|
53416
|
+
});
|
|
53417
|
+
var CustomerMismatchSeverity7$inboundSchema = inboundSchema(CustomerMismatchSeverity7);
|
|
53418
|
+
var CustomerMismatch7$inboundSchema = z116.pipe(
|
|
53419
|
+
z116.object({
|
|
53420
|
+
type: literal3("reward_mismatch"),
|
|
53421
|
+
message: optional3(string5()),
|
|
53422
|
+
severity: optional3(CustomerMismatchSeverity7$inboundSchema),
|
|
53423
|
+
missing_reward_ids: z116.array(string5()),
|
|
53424
|
+
unexpected_reward_ids: z116.array(string5())
|
|
53425
|
+
}),
|
|
53426
|
+
z116.transform((v) => {
|
|
53427
|
+
return remap(v, {
|
|
53428
|
+
"missing_reward_ids": "missingRewardIds",
|
|
53429
|
+
"unexpected_reward_ids": "unexpectedRewardIds"
|
|
53430
|
+
});
|
|
53431
|
+
})
|
|
53432
|
+
);
|
|
53433
|
+
var CustomerMismatchSeverity6$inboundSchema = inboundSchema(CustomerMismatchSeverity6);
|
|
53434
|
+
var CustomerMismatch6$inboundSchema = z116.pipe(
|
|
53435
|
+
z116.object({
|
|
53436
|
+
type: literal3("cancel_state_mismatch"),
|
|
53437
|
+
message: optional3(string5()),
|
|
53438
|
+
severity: optional3(CustomerMismatchSeverity6$inboundSchema),
|
|
53439
|
+
expected_canceling: boolean2(),
|
|
53440
|
+
actual_canceling: boolean2()
|
|
53441
|
+
}),
|
|
53442
|
+
z116.transform((v) => {
|
|
53443
|
+
return remap(v, {
|
|
53444
|
+
"expected_canceling": "expectedCanceling",
|
|
53445
|
+
"actual_canceling": "actualCanceling"
|
|
53446
|
+
});
|
|
53447
|
+
})
|
|
53448
|
+
);
|
|
53449
|
+
var CustomerMismatchSeverity5$inboundSchema = inboundSchema(CustomerMismatchSeverity5);
|
|
53450
|
+
var CustomerMismatchReason3$inboundSchema = inboundSchema(CustomerMismatchReason3);
|
|
53451
|
+
var CustomerMismatch5$inboundSchema = z116.pipe(
|
|
53452
|
+
z116.object({
|
|
53453
|
+
type: literal3("schedule_mismatch"),
|
|
53454
|
+
message: optional3(string5()),
|
|
53455
|
+
severity: optional3(CustomerMismatchSeverity5$inboundSchema),
|
|
53456
|
+
reason: CustomerMismatchReason3$inboundSchema,
|
|
53457
|
+
expected_phase_count: optional3(number2()),
|
|
53458
|
+
actual_phase_count: optional3(number2()),
|
|
53459
|
+
actual_phase_starts_at: optional3(z116.array(number2())),
|
|
53460
|
+
phase_starts_at: optional3(number2())
|
|
53461
|
+
}),
|
|
53462
|
+
z116.transform((v) => {
|
|
53463
|
+
return remap(v, {
|
|
53464
|
+
"expected_phase_count": "expectedPhaseCount",
|
|
53465
|
+
"actual_phase_count": "actualPhaseCount",
|
|
53466
|
+
"actual_phase_starts_at": "actualPhaseStartsAt",
|
|
53467
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53468
|
+
});
|
|
53469
|
+
})
|
|
53470
|
+
);
|
|
53471
|
+
var CustomerMismatchSeverity4$inboundSchema = inboundSchema(CustomerMismatchSeverity4);
|
|
53472
|
+
var CustomerMismatch4$inboundSchema = z116.pipe(
|
|
53473
|
+
z116.object({
|
|
53474
|
+
type: literal3("prepaid_price_mismatch"),
|
|
53475
|
+
message: optional3(string5()),
|
|
53476
|
+
severity: optional3(CustomerMismatchSeverity4$inboundSchema),
|
|
53477
|
+
actual_price_id: optional3(string5()),
|
|
53478
|
+
feature_id: string5(),
|
|
53479
|
+
expected_unit_amount: string5(),
|
|
53480
|
+
actual_unit_amount: string5(),
|
|
53481
|
+
phase_starts_at: optional3(number2())
|
|
53482
|
+
}),
|
|
53483
|
+
z116.transform((v) => {
|
|
53484
|
+
return remap(v, {
|
|
53485
|
+
"actual_price_id": "actualPriceId",
|
|
53486
|
+
"feature_id": "featureId",
|
|
53487
|
+
"expected_unit_amount": "expectedUnitAmount",
|
|
53488
|
+
"actual_unit_amount": "actualUnitAmount",
|
|
53489
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53490
|
+
});
|
|
53491
|
+
})
|
|
53492
|
+
);
|
|
53493
|
+
var CustomerMismatchSeverity3$inboundSchema = inboundSchema(CustomerMismatchSeverity3);
|
|
53494
|
+
var CustomerMismatch3$inboundSchema = z116.pipe(
|
|
53495
|
+
z116.object({
|
|
53496
|
+
type: literal3("prepaid_quantity_mismatch"),
|
|
53497
|
+
message: optional3(string5()),
|
|
53498
|
+
severity: optional3(CustomerMismatchSeverity3$inboundSchema),
|
|
53499
|
+
actual_price_id: optional3(string5()),
|
|
53500
|
+
feature_id: string5(),
|
|
53501
|
+
plan_id: optional3(string5()),
|
|
53502
|
+
expected_quantity: number2(),
|
|
53503
|
+
actual_quantity: number2(),
|
|
53504
|
+
phase_starts_at: optional3(number2())
|
|
53505
|
+
}),
|
|
53506
|
+
z116.transform((v) => {
|
|
53507
|
+
return remap(v, {
|
|
53508
|
+
"actual_price_id": "actualPriceId",
|
|
53509
|
+
"feature_id": "featureId",
|
|
53510
|
+
"plan_id": "planId",
|
|
53511
|
+
"expected_quantity": "expectedQuantity",
|
|
53512
|
+
"actual_quantity": "actualQuantity",
|
|
53513
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53514
|
+
});
|
|
53515
|
+
})
|
|
53516
|
+
);
|
|
53517
|
+
var CustomerMismatchSeverity2$inboundSchema = inboundSchema(CustomerMismatchSeverity2);
|
|
53518
|
+
var CustomerMismatchReason2$inboundSchema = inboundSchema(CustomerMismatchReason2);
|
|
53519
|
+
var CustomerMismatchPriceType$inboundSchema = inboundSchema(CustomerMismatchPriceType);
|
|
53520
|
+
var CustomerMismatch2$inboundSchema = z116.pipe(
|
|
53521
|
+
z116.object({
|
|
53522
|
+
type: literal3("item_mismatch"),
|
|
53523
|
+
message: optional3(string5()),
|
|
53524
|
+
severity: optional3(CustomerMismatchSeverity2$inboundSchema),
|
|
53525
|
+
reason: CustomerMismatchReason2$inboundSchema,
|
|
53526
|
+
expected_price_id: optional3(string5()),
|
|
53527
|
+
actual_price_id: optional3(string5()),
|
|
53528
|
+
price_type: optional3(CustomerMismatchPriceType$inboundSchema),
|
|
53529
|
+
feature_id: optional3(string5()),
|
|
53530
|
+
expected_quantity: optional3(number2()),
|
|
53531
|
+
actual_quantity: optional3(number2()),
|
|
53532
|
+
plan_name: optional3(string5()),
|
|
53533
|
+
plan_id: optional3(string5()),
|
|
53534
|
+
price_amount: optional3(number2()),
|
|
53535
|
+
price_interval: optional3(string5()),
|
|
53536
|
+
price_interval_count: optional3(number2()),
|
|
53537
|
+
phase_starts_at: optional3(number2())
|
|
53538
|
+
}),
|
|
53539
|
+
z116.transform((v) => {
|
|
53540
|
+
return remap(v, {
|
|
53541
|
+
"expected_price_id": "expectedPriceId",
|
|
53542
|
+
"actual_price_id": "actualPriceId",
|
|
53543
|
+
"price_type": "priceType",
|
|
53544
|
+
"feature_id": "featureId",
|
|
53545
|
+
"expected_quantity": "expectedQuantity",
|
|
53546
|
+
"actual_quantity": "actualQuantity",
|
|
53547
|
+
"plan_name": "planName",
|
|
53548
|
+
"plan_id": "planId",
|
|
53549
|
+
"price_amount": "priceAmount",
|
|
53550
|
+
"price_interval": "priceInterval",
|
|
53551
|
+
"price_interval_count": "priceIntervalCount",
|
|
53552
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53553
|
+
});
|
|
53554
|
+
})
|
|
53555
|
+
);
|
|
53556
|
+
var CustomerMismatchSeverity1$inboundSchema = inboundSchema(CustomerMismatchSeverity1);
|
|
53557
|
+
var CustomerMismatchReason1$inboundSchema = inboundSchema(CustomerMismatchReason1);
|
|
53558
|
+
var CustomerMismatch1$inboundSchema = z116.pipe(
|
|
53559
|
+
z116.object({
|
|
53560
|
+
type: literal3("base_price_mismatch"),
|
|
53561
|
+
message: optional3(string5()),
|
|
53562
|
+
severity: optional3(CustomerMismatchSeverity1$inboundSchema),
|
|
53563
|
+
reason: CustomerMismatchReason1$inboundSchema,
|
|
53564
|
+
expected_price_id: optional3(string5()),
|
|
53565
|
+
actual_price_id: optional3(string5()),
|
|
53566
|
+
expected_amount: optional3(string5()),
|
|
53567
|
+
actual_amount: optional3(string5()),
|
|
53568
|
+
plan_name: optional3(string5()),
|
|
53569
|
+
plan_id: optional3(string5()),
|
|
53570
|
+
price_amount: optional3(number2()),
|
|
53571
|
+
price_interval: optional3(string5()),
|
|
53572
|
+
price_interval_count: optional3(number2()),
|
|
53573
|
+
expected_quantity: optional3(number2()),
|
|
53574
|
+
phase_starts_at: optional3(number2())
|
|
53575
|
+
}),
|
|
53576
|
+
z116.transform((v) => {
|
|
53577
|
+
return remap(v, {
|
|
53578
|
+
"expected_price_id": "expectedPriceId",
|
|
53579
|
+
"actual_price_id": "actualPriceId",
|
|
53580
|
+
"expected_amount": "expectedAmount",
|
|
53581
|
+
"actual_amount": "actualAmount",
|
|
53582
|
+
"plan_name": "planName",
|
|
53583
|
+
"plan_id": "planId",
|
|
53584
|
+
"price_amount": "priceAmount",
|
|
53585
|
+
"price_interval": "priceInterval",
|
|
53586
|
+
"price_interval_count": "priceIntervalCount",
|
|
53587
|
+
"expected_quantity": "expectedQuantity",
|
|
53588
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53589
|
+
});
|
|
53590
|
+
})
|
|
53591
|
+
);
|
|
53592
|
+
var CustomerMismatchUnion$inboundSchema = discriminatedUnion("type", {
|
|
53593
|
+
base_price_mismatch: z116.lazy(() => CustomerMismatch1$inboundSchema),
|
|
53594
|
+
item_mismatch: z116.lazy(() => CustomerMismatch2$inboundSchema),
|
|
53595
|
+
prepaid_quantity_mismatch: z116.lazy(() => CustomerMismatch3$inboundSchema),
|
|
53596
|
+
prepaid_price_mismatch: z116.lazy(() => CustomerMismatch4$inboundSchema),
|
|
53597
|
+
schedule_mismatch: z116.lazy(() => CustomerMismatch5$inboundSchema),
|
|
53598
|
+
cancel_state_mismatch: z116.lazy(() => CustomerMismatch6$inboundSchema),
|
|
53599
|
+
reward_mismatch: z116.lazy(() => CustomerMismatch7$inboundSchema),
|
|
53600
|
+
stripe_sub_not_in_autumn: z116.lazy(() => CustomerMismatch8$inboundSchema),
|
|
53601
|
+
plan_on_ending_subscription: z116.lazy(() => CustomerMismatch9$inboundSchema),
|
|
53602
|
+
stale_subscription_link: z116.lazy(() => CustomerMismatch10$inboundSchema),
|
|
53603
|
+
expected_state_error: z116.lazy(() => CustomerMismatch11$inboundSchema),
|
|
53604
|
+
shared_stripe_customer: z116.lazy(() => CustomerMismatch12$inboundSchema)
|
|
53605
|
+
});
|
|
53606
|
+
var VerifyStatus$inboundSchema = inboundSchema(VerifyStatus);
|
|
53607
|
+
var MismatchSeverity12$inboundSchema = inboundSchema(MismatchSeverity12);
|
|
53608
|
+
var MismatchOtherCustomer$inboundSchema = z116.object({
|
|
53609
|
+
id: string5(),
|
|
53610
|
+
name: nullable(string5()),
|
|
53611
|
+
email: nullable(string5())
|
|
53612
|
+
});
|
|
53613
|
+
var Mismatch12$inboundSchema = z116.pipe(
|
|
53614
|
+
z116.object({
|
|
53615
|
+
type: literal3("shared_stripe_customer"),
|
|
53616
|
+
message: optional3(string5()),
|
|
53617
|
+
severity: optional3(MismatchSeverity12$inboundSchema),
|
|
53618
|
+
stripe_customer_id: string5(),
|
|
53619
|
+
other_customer_ids: z116.array(string5()),
|
|
53620
|
+
other_customers: optional3(
|
|
53621
|
+
z116.array(z116.lazy(() => MismatchOtherCustomer$inboundSchema))
|
|
53622
|
+
)
|
|
53623
|
+
}),
|
|
53624
|
+
z116.transform((v) => {
|
|
53625
|
+
return remap(v, {
|
|
53626
|
+
"stripe_customer_id": "stripeCustomerId",
|
|
53627
|
+
"other_customer_ids": "otherCustomerIds",
|
|
53628
|
+
"other_customers": "otherCustomers"
|
|
53629
|
+
});
|
|
53630
|
+
})
|
|
53631
|
+
);
|
|
53632
|
+
var MismatchSeverity11$inboundSchema = inboundSchema(MismatchSeverity11);
|
|
53633
|
+
var Mismatch11$inboundSchema = z116.object({
|
|
53634
|
+
type: literal3("expected_state_error"),
|
|
53635
|
+
message: optional3(string5()),
|
|
53636
|
+
severity: optional3(MismatchSeverity11$inboundSchema),
|
|
53637
|
+
error: string5()
|
|
53638
|
+
});
|
|
53639
|
+
var MismatchSeverity10$inboundSchema = inboundSchema(MismatchSeverity10);
|
|
53640
|
+
var Mismatch10$inboundSchema = z116.object({
|
|
53641
|
+
type: literal3("stale_subscription_link"),
|
|
53642
|
+
message: optional3(string5()),
|
|
53643
|
+
severity: optional3(MismatchSeverity10$inboundSchema)
|
|
53644
|
+
});
|
|
53645
|
+
var MismatchSeverity9$inboundSchema = inboundSchema(MismatchSeverity9);
|
|
53646
|
+
var Mismatch9$inboundSchema = z116.pipe(
|
|
53647
|
+
z116.object({
|
|
53648
|
+
type: literal3("plan_on_ending_subscription"),
|
|
53649
|
+
message: optional3(string5()),
|
|
53650
|
+
severity: optional3(MismatchSeverity9$inboundSchema),
|
|
53651
|
+
ending_subscription_id: string5()
|
|
53652
|
+
}),
|
|
53653
|
+
z116.transform((v) => {
|
|
53654
|
+
return remap(v, {
|
|
53655
|
+
"ending_subscription_id": "endingSubscriptionId"
|
|
53656
|
+
});
|
|
53657
|
+
})
|
|
53658
|
+
);
|
|
53659
|
+
var MismatchSeverity8$inboundSchema = inboundSchema(MismatchSeverity8);
|
|
53660
|
+
var Mismatch8$inboundSchema = z116.object({
|
|
53661
|
+
type: literal3("stripe_sub_not_in_autumn"),
|
|
53662
|
+
message: optional3(string5()),
|
|
53663
|
+
severity: optional3(MismatchSeverity8$inboundSchema)
|
|
53664
|
+
});
|
|
53665
|
+
var MismatchSeverity7$inboundSchema = inboundSchema(MismatchSeverity7);
|
|
53666
|
+
var Mismatch7$inboundSchema = z116.pipe(
|
|
53667
|
+
z116.object({
|
|
53668
|
+
type: literal3("reward_mismatch"),
|
|
53669
|
+
message: optional3(string5()),
|
|
53670
|
+
severity: optional3(MismatchSeverity7$inboundSchema),
|
|
53671
|
+
missing_reward_ids: z116.array(string5()),
|
|
53672
|
+
unexpected_reward_ids: z116.array(string5())
|
|
53673
|
+
}),
|
|
53674
|
+
z116.transform((v) => {
|
|
53675
|
+
return remap(v, {
|
|
53676
|
+
"missing_reward_ids": "missingRewardIds",
|
|
53677
|
+
"unexpected_reward_ids": "unexpectedRewardIds"
|
|
53678
|
+
});
|
|
53679
|
+
})
|
|
53680
|
+
);
|
|
53681
|
+
var MismatchSeverity6$inboundSchema = inboundSchema(MismatchSeverity6);
|
|
53682
|
+
var Mismatch6$inboundSchema = z116.pipe(
|
|
53683
|
+
z116.object({
|
|
53684
|
+
type: literal3("cancel_state_mismatch"),
|
|
53685
|
+
message: optional3(string5()),
|
|
53686
|
+
severity: optional3(MismatchSeverity6$inboundSchema),
|
|
53687
|
+
expected_canceling: boolean2(),
|
|
53688
|
+
actual_canceling: boolean2()
|
|
53689
|
+
}),
|
|
53690
|
+
z116.transform((v) => {
|
|
53691
|
+
return remap(v, {
|
|
53692
|
+
"expected_canceling": "expectedCanceling",
|
|
53693
|
+
"actual_canceling": "actualCanceling"
|
|
53694
|
+
});
|
|
53695
|
+
})
|
|
53696
|
+
);
|
|
53697
|
+
var MismatchSeverity5$inboundSchema = inboundSchema(MismatchSeverity5);
|
|
53698
|
+
var MismatchReason3$inboundSchema = inboundSchema(MismatchReason3);
|
|
53699
|
+
var Mismatch5$inboundSchema = z116.pipe(
|
|
53700
|
+
z116.object({
|
|
53701
|
+
type: literal3("schedule_mismatch"),
|
|
53702
|
+
message: optional3(string5()),
|
|
53703
|
+
severity: optional3(MismatchSeverity5$inboundSchema),
|
|
53704
|
+
reason: MismatchReason3$inboundSchema,
|
|
53705
|
+
expected_phase_count: optional3(number2()),
|
|
53706
|
+
actual_phase_count: optional3(number2()),
|
|
53707
|
+
actual_phase_starts_at: optional3(z116.array(number2())),
|
|
53708
|
+
phase_starts_at: optional3(number2())
|
|
53709
|
+
}),
|
|
53710
|
+
z116.transform((v) => {
|
|
53711
|
+
return remap(v, {
|
|
53712
|
+
"expected_phase_count": "expectedPhaseCount",
|
|
53713
|
+
"actual_phase_count": "actualPhaseCount",
|
|
53714
|
+
"actual_phase_starts_at": "actualPhaseStartsAt",
|
|
53715
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53716
|
+
});
|
|
53717
|
+
})
|
|
53718
|
+
);
|
|
53719
|
+
var MismatchSeverity4$inboundSchema = inboundSchema(MismatchSeverity4);
|
|
53720
|
+
var Mismatch4$inboundSchema = z116.pipe(
|
|
53721
|
+
z116.object({
|
|
53722
|
+
type: literal3("prepaid_price_mismatch"),
|
|
53723
|
+
message: optional3(string5()),
|
|
53724
|
+
severity: optional3(MismatchSeverity4$inboundSchema),
|
|
53725
|
+
actual_price_id: optional3(string5()),
|
|
53726
|
+
feature_id: string5(),
|
|
53727
|
+
expected_unit_amount: string5(),
|
|
53728
|
+
actual_unit_amount: string5(),
|
|
53729
|
+
phase_starts_at: optional3(number2())
|
|
53730
|
+
}),
|
|
53731
|
+
z116.transform((v) => {
|
|
53732
|
+
return remap(v, {
|
|
53733
|
+
"actual_price_id": "actualPriceId",
|
|
53734
|
+
"feature_id": "featureId",
|
|
53735
|
+
"expected_unit_amount": "expectedUnitAmount",
|
|
53736
|
+
"actual_unit_amount": "actualUnitAmount",
|
|
53737
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53738
|
+
});
|
|
53739
|
+
})
|
|
53740
|
+
);
|
|
53741
|
+
var MismatchSeverity3$inboundSchema = inboundSchema(MismatchSeverity3);
|
|
53742
|
+
var Mismatch3$inboundSchema = z116.pipe(
|
|
53743
|
+
z116.object({
|
|
53744
|
+
type: literal3("prepaid_quantity_mismatch"),
|
|
53745
|
+
message: optional3(string5()),
|
|
53746
|
+
severity: optional3(MismatchSeverity3$inboundSchema),
|
|
53747
|
+
actual_price_id: optional3(string5()),
|
|
53748
|
+
feature_id: string5(),
|
|
53749
|
+
plan_id: optional3(string5()),
|
|
53750
|
+
expected_quantity: number2(),
|
|
53751
|
+
actual_quantity: number2(),
|
|
53752
|
+
phase_starts_at: optional3(number2())
|
|
53753
|
+
}),
|
|
53754
|
+
z116.transform((v) => {
|
|
53755
|
+
return remap(v, {
|
|
53756
|
+
"actual_price_id": "actualPriceId",
|
|
53757
|
+
"feature_id": "featureId",
|
|
53758
|
+
"plan_id": "planId",
|
|
53759
|
+
"expected_quantity": "expectedQuantity",
|
|
53760
|
+
"actual_quantity": "actualQuantity",
|
|
53761
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53762
|
+
});
|
|
53763
|
+
})
|
|
53764
|
+
);
|
|
53765
|
+
var MismatchSeverity2$inboundSchema = inboundSchema(MismatchSeverity2);
|
|
53766
|
+
var MismatchReason2$inboundSchema = inboundSchema(MismatchReason2);
|
|
53767
|
+
var MismatchPriceType$inboundSchema = inboundSchema(MismatchPriceType);
|
|
53768
|
+
var Mismatch2$inboundSchema = z116.pipe(
|
|
53769
|
+
z116.object({
|
|
53770
|
+
type: literal3("item_mismatch"),
|
|
53771
|
+
message: optional3(string5()),
|
|
53772
|
+
severity: optional3(MismatchSeverity2$inboundSchema),
|
|
53773
|
+
reason: MismatchReason2$inboundSchema,
|
|
53774
|
+
expected_price_id: optional3(string5()),
|
|
53775
|
+
actual_price_id: optional3(string5()),
|
|
53776
|
+
price_type: optional3(MismatchPriceType$inboundSchema),
|
|
53777
|
+
feature_id: optional3(string5()),
|
|
53778
|
+
expected_quantity: optional3(number2()),
|
|
53779
|
+
actual_quantity: optional3(number2()),
|
|
53780
|
+
plan_name: optional3(string5()),
|
|
53781
|
+
plan_id: optional3(string5()),
|
|
53782
|
+
price_amount: optional3(number2()),
|
|
53783
|
+
price_interval: optional3(string5()),
|
|
53784
|
+
price_interval_count: optional3(number2()),
|
|
53785
|
+
phase_starts_at: optional3(number2())
|
|
53786
|
+
}),
|
|
53787
|
+
z116.transform((v) => {
|
|
53788
|
+
return remap(v, {
|
|
53789
|
+
"expected_price_id": "expectedPriceId",
|
|
53790
|
+
"actual_price_id": "actualPriceId",
|
|
53791
|
+
"price_type": "priceType",
|
|
53792
|
+
"feature_id": "featureId",
|
|
53793
|
+
"expected_quantity": "expectedQuantity",
|
|
53794
|
+
"actual_quantity": "actualQuantity",
|
|
53795
|
+
"plan_name": "planName",
|
|
53796
|
+
"plan_id": "planId",
|
|
53797
|
+
"price_amount": "priceAmount",
|
|
53798
|
+
"price_interval": "priceInterval",
|
|
53799
|
+
"price_interval_count": "priceIntervalCount",
|
|
53800
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53801
|
+
});
|
|
53802
|
+
})
|
|
53803
|
+
);
|
|
53804
|
+
var MismatchSeverity1$inboundSchema = inboundSchema(MismatchSeverity1);
|
|
53805
|
+
var MismatchReason1$inboundSchema = inboundSchema(MismatchReason1);
|
|
53806
|
+
var Mismatch1$inboundSchema = z116.pipe(
|
|
53807
|
+
z116.object({
|
|
53808
|
+
type: literal3("base_price_mismatch"),
|
|
53809
|
+
message: optional3(string5()),
|
|
53810
|
+
severity: optional3(MismatchSeverity1$inboundSchema),
|
|
53811
|
+
reason: MismatchReason1$inboundSchema,
|
|
53812
|
+
expected_price_id: optional3(string5()),
|
|
53813
|
+
actual_price_id: optional3(string5()),
|
|
53814
|
+
expected_amount: optional3(string5()),
|
|
53815
|
+
actual_amount: optional3(string5()),
|
|
53816
|
+
plan_name: optional3(string5()),
|
|
53817
|
+
plan_id: optional3(string5()),
|
|
53818
|
+
price_amount: optional3(number2()),
|
|
53819
|
+
price_interval: optional3(string5()),
|
|
53820
|
+
price_interval_count: optional3(number2()),
|
|
53821
|
+
expected_quantity: optional3(number2()),
|
|
53822
|
+
phase_starts_at: optional3(number2())
|
|
53823
|
+
}),
|
|
53824
|
+
z116.transform((v) => {
|
|
53825
|
+
return remap(v, {
|
|
53826
|
+
"expected_price_id": "expectedPriceId",
|
|
53827
|
+
"actual_price_id": "actualPriceId",
|
|
53828
|
+
"expected_amount": "expectedAmount",
|
|
53829
|
+
"actual_amount": "actualAmount",
|
|
53830
|
+
"plan_name": "planName",
|
|
53831
|
+
"plan_id": "planId",
|
|
53832
|
+
"price_amount": "priceAmount",
|
|
53833
|
+
"price_interval": "priceInterval",
|
|
53834
|
+
"price_interval_count": "priceIntervalCount",
|
|
53835
|
+
"expected_quantity": "expectedQuantity",
|
|
53836
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53837
|
+
});
|
|
53838
|
+
})
|
|
53839
|
+
);
|
|
53840
|
+
var MismatchUnion$inboundSchema = discriminatedUnion("type", {
|
|
53841
|
+
base_price_mismatch: z116.lazy(() => Mismatch1$inboundSchema),
|
|
53842
|
+
item_mismatch: z116.lazy(() => Mismatch2$inboundSchema),
|
|
53843
|
+
prepaid_quantity_mismatch: z116.lazy(() => Mismatch3$inboundSchema),
|
|
53844
|
+
prepaid_price_mismatch: z116.lazy(() => Mismatch4$inboundSchema),
|
|
53845
|
+
schedule_mismatch: z116.lazy(() => Mismatch5$inboundSchema),
|
|
53846
|
+
cancel_state_mismatch: z116.lazy(() => Mismatch6$inboundSchema),
|
|
53847
|
+
reward_mismatch: z116.lazy(() => Mismatch7$inboundSchema),
|
|
53848
|
+
stripe_sub_not_in_autumn: z116.lazy(() => Mismatch8$inboundSchema),
|
|
53849
|
+
plan_on_ending_subscription: z116.lazy(() => Mismatch9$inboundSchema),
|
|
53850
|
+
stale_subscription_link: z116.lazy(() => Mismatch10$inboundSchema),
|
|
53851
|
+
expected_state_error: z116.lazy(() => Mismatch11$inboundSchema),
|
|
53852
|
+
shared_stripe_customer: z116.lazy(() => Mismatch12$inboundSchema)
|
|
53853
|
+
});
|
|
53854
|
+
var VerifySubscription$inboundSchema = z116.pipe(
|
|
53855
|
+
z116.object({
|
|
53856
|
+
stripe_subscription_id: string5(),
|
|
53857
|
+
status: VerifyStatus$inboundSchema,
|
|
53858
|
+
mismatches: z116.array(discriminatedUnion("type", {
|
|
53859
|
+
base_price_mismatch: z116.lazy(() => Mismatch1$inboundSchema),
|
|
53860
|
+
item_mismatch: z116.lazy(() => Mismatch2$inboundSchema),
|
|
53861
|
+
prepaid_quantity_mismatch: z116.lazy(() => Mismatch3$inboundSchema),
|
|
53862
|
+
prepaid_price_mismatch: z116.lazy(() => Mismatch4$inboundSchema),
|
|
53863
|
+
schedule_mismatch: z116.lazy(() => Mismatch5$inboundSchema),
|
|
53864
|
+
cancel_state_mismatch: z116.lazy(() => Mismatch6$inboundSchema),
|
|
53865
|
+
reward_mismatch: z116.lazy(() => Mismatch7$inboundSchema),
|
|
53866
|
+
stripe_sub_not_in_autumn: z116.lazy(() => Mismatch8$inboundSchema),
|
|
53867
|
+
plan_on_ending_subscription: z116.lazy(() => Mismatch9$inboundSchema),
|
|
53868
|
+
stale_subscription_link: z116.lazy(() => Mismatch10$inboundSchema),
|
|
53869
|
+
expected_state_error: z116.lazy(() => Mismatch11$inboundSchema),
|
|
53870
|
+
shared_stripe_customer: z116.lazy(() => Mismatch12$inboundSchema)
|
|
53871
|
+
}))
|
|
53872
|
+
}),
|
|
53873
|
+
z116.transform((v) => {
|
|
53874
|
+
return remap(v, {
|
|
53875
|
+
"stripe_subscription_id": "stripeSubscriptionId"
|
|
53876
|
+
});
|
|
53877
|
+
})
|
|
53878
|
+
);
|
|
53879
|
+
var VerifyResponse$inboundSchema = z116.pipe(
|
|
53880
|
+
z116.object({
|
|
53881
|
+
customer_id: string5(),
|
|
53882
|
+
customer_mismatches: z116.array(discriminatedUnion("type", {
|
|
53883
|
+
base_price_mismatch: z116.lazy(() => CustomerMismatch1$inboundSchema),
|
|
53884
|
+
item_mismatch: z116.lazy(() => CustomerMismatch2$inboundSchema),
|
|
53885
|
+
prepaid_quantity_mismatch: z116.lazy(() => CustomerMismatch3$inboundSchema),
|
|
53886
|
+
prepaid_price_mismatch: z116.lazy(() => CustomerMismatch4$inboundSchema),
|
|
53887
|
+
schedule_mismatch: z116.lazy(() => CustomerMismatch5$inboundSchema),
|
|
53888
|
+
cancel_state_mismatch: z116.lazy(() => CustomerMismatch6$inboundSchema),
|
|
53889
|
+
reward_mismatch: z116.lazy(() => CustomerMismatch7$inboundSchema),
|
|
53890
|
+
stripe_sub_not_in_autumn: z116.lazy(() => CustomerMismatch8$inboundSchema),
|
|
53891
|
+
plan_on_ending_subscription: z116.lazy(
|
|
53892
|
+
() => CustomerMismatch9$inboundSchema
|
|
53893
|
+
),
|
|
53894
|
+
stale_subscription_link: z116.lazy(() => CustomerMismatch10$inboundSchema),
|
|
53895
|
+
expected_state_error: z116.lazy(() => CustomerMismatch11$inboundSchema),
|
|
53896
|
+
shared_stripe_customer: z116.lazy(() => CustomerMismatch12$inboundSchema)
|
|
53897
|
+
})),
|
|
53898
|
+
subscriptions: z116.array(z116.lazy(() => VerifySubscription$inboundSchema))
|
|
53899
|
+
}),
|
|
53900
|
+
z116.transform((v) => {
|
|
53901
|
+
return remap(v, {
|
|
53902
|
+
"customer_id": "customerId",
|
|
53903
|
+
"customer_mismatches": "customerMismatches"
|
|
53904
|
+
});
|
|
53905
|
+
})
|
|
53906
|
+
);
|
|
53907
|
+
|
|
53908
|
+
// ../sdk/src/models/void-invoice-op.ts
|
|
53909
|
+
var z117 = __toESM(require("zod/v4-mini"), 1);
|
|
53162
53910
|
var VoidInvoiceProcessorType = {
|
|
53163
53911
|
Stripe: "stripe",
|
|
53164
53912
|
Revenuecat: "revenuecat"
|
|
53165
53913
|
};
|
|
53166
|
-
var VoidInvoiceParams$outboundSchema =
|
|
53167
|
-
|
|
53168
|
-
invoiceId:
|
|
53914
|
+
var VoidInvoiceParams$outboundSchema = z117.pipe(
|
|
53915
|
+
z117.object({
|
|
53916
|
+
invoiceId: z117.string()
|
|
53169
53917
|
}),
|
|
53170
|
-
|
|
53918
|
+
z117.transform((v) => {
|
|
53171
53919
|
return remap(v, {
|
|
53172
53920
|
invoiceId: "invoice_id"
|
|
53173
53921
|
});
|
|
53174
53922
|
})
|
|
53175
53923
|
);
|
|
53176
53924
|
var VoidInvoiceProcessorType$inboundSchema = inboundSchema(VoidInvoiceProcessorType);
|
|
53177
|
-
var VoidInvoiceEntity$inboundSchema =
|
|
53178
|
-
|
|
53925
|
+
var VoidInvoiceEntity$inboundSchema = z117.pipe(
|
|
53926
|
+
z117.object({
|
|
53179
53927
|
entity_id: string5(),
|
|
53180
53928
|
quantity: nullable(number2()),
|
|
53181
53929
|
amount: number2()
|
|
53182
53930
|
}),
|
|
53183
|
-
|
|
53931
|
+
z117.transform((v) => {
|
|
53184
53932
|
return remap(v, {
|
|
53185
53933
|
"entity_id": "entityId"
|
|
53186
53934
|
});
|
|
53187
53935
|
})
|
|
53188
53936
|
);
|
|
53189
|
-
var VoidInvoiceItem$inboundSchema =
|
|
53190
|
-
|
|
53937
|
+
var VoidInvoiceItem$inboundSchema = z117.pipe(
|
|
53938
|
+
z117.object({
|
|
53191
53939
|
id: string5(),
|
|
53192
53940
|
description: string5(),
|
|
53193
53941
|
period_start: nullable(number2()),
|
|
@@ -53197,9 +53945,9 @@ var VoidInvoiceItem$inboundSchema = z116.pipe(
|
|
|
53197
53945
|
feature_name: nullable(string5()),
|
|
53198
53946
|
quantity: nullable(number2()),
|
|
53199
53947
|
amount: number2(),
|
|
53200
|
-
entities:
|
|
53948
|
+
entities: z117.array(z117.lazy(() => VoidInvoiceEntity$inboundSchema))
|
|
53201
53949
|
}),
|
|
53202
|
-
|
|
53950
|
+
z117.transform((v) => {
|
|
53203
53951
|
return remap(v, {
|
|
53204
53952
|
"period_start": "periodStart",
|
|
53205
53953
|
"period_end": "periodEnd",
|
|
@@ -53209,11 +53957,11 @@ var VoidInvoiceItem$inboundSchema = z116.pipe(
|
|
|
53209
53957
|
});
|
|
53210
53958
|
})
|
|
53211
53959
|
);
|
|
53212
|
-
var VoidInvoiceInvoice$inboundSchema =
|
|
53213
|
-
|
|
53214
|
-
plan_ids:
|
|
53960
|
+
var VoidInvoiceInvoice$inboundSchema = z117.pipe(
|
|
53961
|
+
z117.object({
|
|
53962
|
+
plan_ids: z117.array(string5()),
|
|
53215
53963
|
stripe_id: string5(),
|
|
53216
|
-
processor_type:
|
|
53964
|
+
processor_type: z117._default(
|
|
53217
53965
|
VoidInvoiceProcessorType$inboundSchema,
|
|
53218
53966
|
"stripe"
|
|
53219
53967
|
),
|
|
@@ -53221,15 +53969,15 @@ var VoidInvoiceInvoice$inboundSchema = z116.pipe(
|
|
|
53221
53969
|
total: number2(),
|
|
53222
53970
|
currency: string5(),
|
|
53223
53971
|
created_at: number2(),
|
|
53224
|
-
hosted_invoice_url:
|
|
53972
|
+
hosted_invoice_url: z117.optional(z117.nullable(string5())),
|
|
53225
53973
|
id: string5(),
|
|
53226
53974
|
customer_id: nullable(string5()),
|
|
53227
53975
|
entity_id: nullable(string5()),
|
|
53228
53976
|
amount_paid: nullable(number2()),
|
|
53229
53977
|
refunded_amount: number2(),
|
|
53230
|
-
items: optional3(
|
|
53978
|
+
items: optional3(z117.array(z117.lazy(() => VoidInvoiceItem$inboundSchema)))
|
|
53231
53979
|
}),
|
|
53232
|
-
|
|
53980
|
+
z117.transform((v) => {
|
|
53233
53981
|
return remap(v, {
|
|
53234
53982
|
"plan_ids": "planIds",
|
|
53235
53983
|
"stripe_id": "stripeId",
|
|
@@ -53243,8 +53991,8 @@ var VoidInvoiceInvoice$inboundSchema = z116.pipe(
|
|
|
53243
53991
|
});
|
|
53244
53992
|
})
|
|
53245
53993
|
);
|
|
53246
|
-
var VoidInvoiceResponse$inboundSchema =
|
|
53247
|
-
invoice:
|
|
53994
|
+
var VoidInvoiceResponse$inboundSchema = z117.object({
|
|
53995
|
+
invoice: z117.lazy(() => VoidInvoiceInvoice$inboundSchema)
|
|
53248
53996
|
});
|
|
53249
53997
|
|
|
53250
53998
|
// ../sdk/src/types/async.ts
|
|
@@ -53284,7 +54032,7 @@ function batchTrack(client, request, options) {
|
|
|
53284
54032
|
async function $do(client, request, options) {
|
|
53285
54033
|
const parsed = safeParse(
|
|
53286
54034
|
request,
|
|
53287
|
-
(value) =>
|
|
54035
|
+
(value) => z118.parse(z118.array(RequestBody$outboundSchema), value),
|
|
53288
54036
|
"Input validation failed"
|
|
53289
54037
|
);
|
|
53290
54038
|
if (!parsed.ok) {
|
|
@@ -53352,7 +54100,7 @@ async function $do(client, request, options) {
|
|
|
53352
54100
|
}
|
|
53353
54101
|
|
|
53354
54102
|
// ../sdk/src/funcs/check.ts
|
|
53355
|
-
var
|
|
54103
|
+
var z119 = __toESM(require("zod/v4-mini"), 1);
|
|
53356
54104
|
function check(client, request, options) {
|
|
53357
54105
|
return new APIPromise($do2(
|
|
53358
54106
|
client,
|
|
@@ -53363,7 +54111,7 @@ function check(client, request, options) {
|
|
|
53363
54111
|
async function $do2(client, request, options) {
|
|
53364
54112
|
const parsed = safeParse(
|
|
53365
54113
|
request,
|
|
53366
|
-
(value) =>
|
|
54114
|
+
(value) => z119.parse(CheckParams$outboundSchema, value),
|
|
53367
54115
|
"Input validation failed"
|
|
53368
54116
|
);
|
|
53369
54117
|
if (!parsed.ok) {
|
|
@@ -53431,7 +54179,7 @@ async function $do2(client, request, options) {
|
|
|
53431
54179
|
}
|
|
53432
54180
|
|
|
53433
54181
|
// ../sdk/src/funcs/track-tokens.ts
|
|
53434
|
-
var
|
|
54182
|
+
var z120 = __toESM(require("zod/v4-mini"), 1);
|
|
53435
54183
|
function trackTokens(client, request, options) {
|
|
53436
54184
|
return new APIPromise($do3(
|
|
53437
54185
|
client,
|
|
@@ -53442,7 +54190,7 @@ function trackTokens(client, request, options) {
|
|
|
53442
54190
|
async function $do3(client, request, options) {
|
|
53443
54191
|
const parsed = safeParse(
|
|
53444
54192
|
request,
|
|
53445
|
-
(value) =>
|
|
54193
|
+
(value) => z120.parse(TrackTokensParams$outboundSchema, value),
|
|
53446
54194
|
"Input validation failed"
|
|
53447
54195
|
);
|
|
53448
54196
|
if (!parsed.ok) {
|
|
@@ -53510,7 +54258,7 @@ async function $do3(client, request, options) {
|
|
|
53510
54258
|
}
|
|
53511
54259
|
|
|
53512
54260
|
// ../sdk/src/funcs/track.ts
|
|
53513
|
-
var
|
|
54261
|
+
var z121 = __toESM(require("zod/v4-mini"), 1);
|
|
53514
54262
|
function track(client, request, options) {
|
|
53515
54263
|
return new APIPromise($do4(
|
|
53516
54264
|
client,
|
|
@@ -53521,7 +54269,7 @@ function track(client, request, options) {
|
|
|
53521
54269
|
async function $do4(client, request, options) {
|
|
53522
54270
|
const parsed = safeParse(
|
|
53523
54271
|
request,
|
|
53524
|
-
(value) =>
|
|
54272
|
+
(value) => z121.parse(TrackParams$outboundSchema, value),
|
|
53525
54273
|
"Input validation failed"
|
|
53526
54274
|
);
|
|
53527
54275
|
if (!parsed.ok) {
|
|
@@ -54163,7 +54911,7 @@ async function logResponse(logger, res, req) {
|
|
|
54163
54911
|
}
|
|
54164
54912
|
|
|
54165
54913
|
// ../sdk/src/funcs/balances-create.ts
|
|
54166
|
-
var
|
|
54914
|
+
var z122 = __toESM(require("zod/v4-mini"), 1);
|
|
54167
54915
|
function balancesCreate(client, request, options) {
|
|
54168
54916
|
return new APIPromise($do5(
|
|
54169
54917
|
client,
|
|
@@ -54174,7 +54922,7 @@ function balancesCreate(client, request, options) {
|
|
|
54174
54922
|
async function $do5(client, request, options) {
|
|
54175
54923
|
const parsed = safeParse(
|
|
54176
54924
|
request,
|
|
54177
|
-
(value) =>
|
|
54925
|
+
(value) => z122.parse(CreateBalanceParams$outboundSchema, value),
|
|
54178
54926
|
"Input validation failed"
|
|
54179
54927
|
);
|
|
54180
54928
|
if (!parsed.ok) {
|
|
@@ -54241,7 +54989,7 @@ async function $do5(client, request, options) {
|
|
|
54241
54989
|
}
|
|
54242
54990
|
|
|
54243
54991
|
// ../sdk/src/funcs/balances-delete.ts
|
|
54244
|
-
var
|
|
54992
|
+
var z123 = __toESM(require("zod/v4-mini"), 1);
|
|
54245
54993
|
function balancesDelete(client, request, options) {
|
|
54246
54994
|
return new APIPromise($do6(
|
|
54247
54995
|
client,
|
|
@@ -54252,7 +55000,7 @@ function balancesDelete(client, request, options) {
|
|
|
54252
55000
|
async function $do6(client, request, options) {
|
|
54253
55001
|
const parsed = safeParse(
|
|
54254
55002
|
request,
|
|
54255
|
-
(value) =>
|
|
55003
|
+
(value) => z123.parse(DeleteBalanceParams$outboundSchema, value),
|
|
54256
55004
|
"Input validation failed"
|
|
54257
55005
|
);
|
|
54258
55006
|
if (!parsed.ok) {
|
|
@@ -54319,7 +55067,7 @@ async function $do6(client, request, options) {
|
|
|
54319
55067
|
}
|
|
54320
55068
|
|
|
54321
55069
|
// ../sdk/src/funcs/balances-finalize.ts
|
|
54322
|
-
var
|
|
55070
|
+
var z124 = __toESM(require("zod/v4-mini"), 1);
|
|
54323
55071
|
function balancesFinalize(client, request, options) {
|
|
54324
55072
|
return new APIPromise($do7(
|
|
54325
55073
|
client,
|
|
@@ -54330,7 +55078,7 @@ function balancesFinalize(client, request, options) {
|
|
|
54330
55078
|
async function $do7(client, request, options) {
|
|
54331
55079
|
const parsed = safeParse(
|
|
54332
55080
|
request,
|
|
54333
|
-
(value) =>
|
|
55081
|
+
(value) => z124.parse(FinalizeBalanceParams$outboundSchema, value),
|
|
54334
55082
|
"Input validation failed"
|
|
54335
55083
|
);
|
|
54336
55084
|
if (!parsed.ok) {
|
|
@@ -54398,7 +55146,7 @@ async function $do7(client, request, options) {
|
|
|
54398
55146
|
}
|
|
54399
55147
|
|
|
54400
55148
|
// ../sdk/src/funcs/balances-update.ts
|
|
54401
|
-
var
|
|
55149
|
+
var z125 = __toESM(require("zod/v4-mini"), 1);
|
|
54402
55150
|
function balancesUpdate(client, request, options) {
|
|
54403
55151
|
return new APIPromise($do8(
|
|
54404
55152
|
client,
|
|
@@ -54409,7 +55157,7 @@ function balancesUpdate(client, request, options) {
|
|
|
54409
55157
|
async function $do8(client, request, options) {
|
|
54410
55158
|
const parsed = safeParse(
|
|
54411
55159
|
request,
|
|
54412
|
-
(value) =>
|
|
55160
|
+
(value) => z125.parse(UpdateBalanceParams$outboundSchema, value),
|
|
54413
55161
|
"Input validation failed"
|
|
54414
55162
|
);
|
|
54415
55163
|
if (!parsed.ok) {
|
|
@@ -54520,7 +55268,7 @@ var Balances = class extends ClientSDK {
|
|
|
54520
55268
|
};
|
|
54521
55269
|
|
|
54522
55270
|
// ../sdk/src/funcs/billing-attach.ts
|
|
54523
|
-
var
|
|
55271
|
+
var z126 = __toESM(require("zod/v4-mini"), 1);
|
|
54524
55272
|
function billingAttach(client, request, options) {
|
|
54525
55273
|
return new APIPromise($do9(
|
|
54526
55274
|
client,
|
|
@@ -54531,7 +55279,7 @@ function billingAttach(client, request, options) {
|
|
|
54531
55279
|
async function $do9(client, request, options) {
|
|
54532
55280
|
const parsed = safeParse(
|
|
54533
55281
|
request,
|
|
54534
|
-
(value) =>
|
|
55282
|
+
(value) => z126.parse(AttachParams$outboundSchema, value),
|
|
54535
55283
|
"Input validation failed"
|
|
54536
55284
|
);
|
|
54537
55285
|
if (!parsed.ok) {
|
|
@@ -54598,7 +55346,7 @@ async function $do9(client, request, options) {
|
|
|
54598
55346
|
}
|
|
54599
55347
|
|
|
54600
55348
|
// ../sdk/src/funcs/billing-create-schedule.ts
|
|
54601
|
-
var
|
|
55349
|
+
var z127 = __toESM(require("zod/v4-mini"), 1);
|
|
54602
55350
|
function billingCreateSchedule(client, request, options) {
|
|
54603
55351
|
return new APIPromise($do10(
|
|
54604
55352
|
client,
|
|
@@ -54609,7 +55357,7 @@ function billingCreateSchedule(client, request, options) {
|
|
|
54609
55357
|
async function $do10(client, request, options) {
|
|
54610
55358
|
const parsed = safeParse(
|
|
54611
55359
|
request,
|
|
54612
|
-
(value) =>
|
|
55360
|
+
(value) => z127.parse(CreateScheduleParams$outboundSchema, value),
|
|
54613
55361
|
"Input validation failed"
|
|
54614
55362
|
);
|
|
54615
55363
|
if (!parsed.ok) {
|
|
@@ -54676,7 +55424,7 @@ async function $do10(client, request, options) {
|
|
|
54676
55424
|
}
|
|
54677
55425
|
|
|
54678
55426
|
// ../sdk/src/funcs/billing-import.ts
|
|
54679
|
-
var
|
|
55427
|
+
var z128 = __toESM(require("zod/v4-mini"), 1);
|
|
54680
55428
|
function billingImport(client, request, options) {
|
|
54681
55429
|
return new APIPromise($do11(
|
|
54682
55430
|
client,
|
|
@@ -54687,7 +55435,7 @@ function billingImport(client, request, options) {
|
|
|
54687
55435
|
async function $do11(client, request, options) {
|
|
54688
55436
|
const parsed = safeParse(
|
|
54689
55437
|
request,
|
|
54690
|
-
(value) =>
|
|
55438
|
+
(value) => z128.parse(DfuFlashParams$outboundSchema, value),
|
|
54691
55439
|
"Input validation failed"
|
|
54692
55440
|
);
|
|
54693
55441
|
if (!parsed.ok) {
|
|
@@ -54754,7 +55502,7 @@ async function $do11(client, request, options) {
|
|
|
54754
55502
|
}
|
|
54755
55503
|
|
|
54756
55504
|
// ../sdk/src/funcs/billing-multi-attach.ts
|
|
54757
|
-
var
|
|
55505
|
+
var z129 = __toESM(require("zod/v4-mini"), 1);
|
|
54758
55506
|
function billingMultiAttach(client, request, options) {
|
|
54759
55507
|
return new APIPromise($do12(
|
|
54760
55508
|
client,
|
|
@@ -54765,7 +55513,7 @@ function billingMultiAttach(client, request, options) {
|
|
|
54765
55513
|
async function $do12(client, request, options) {
|
|
54766
55514
|
const parsed = safeParse(
|
|
54767
55515
|
request,
|
|
54768
|
-
(value) =>
|
|
55516
|
+
(value) => z129.parse(MultiAttachParams$outboundSchema, value),
|
|
54769
55517
|
"Input validation failed"
|
|
54770
55518
|
);
|
|
54771
55519
|
if (!parsed.ok) {
|
|
@@ -54832,7 +55580,7 @@ async function $do12(client, request, options) {
|
|
|
54832
55580
|
}
|
|
54833
55581
|
|
|
54834
55582
|
// ../sdk/src/funcs/billing-multi-update.ts
|
|
54835
|
-
var
|
|
55583
|
+
var z130 = __toESM(require("zod/v4-mini"), 1);
|
|
54836
55584
|
function billingMultiUpdate(client, request, options) {
|
|
54837
55585
|
return new APIPromise($do13(
|
|
54838
55586
|
client,
|
|
@@ -54843,7 +55591,7 @@ function billingMultiUpdate(client, request, options) {
|
|
|
54843
55591
|
async function $do13(client, request, options) {
|
|
54844
55592
|
const parsed = safeParse(
|
|
54845
55593
|
request,
|
|
54846
|
-
(value) =>
|
|
55594
|
+
(value) => z130.parse(MultiUpdateParams$outboundSchema, value),
|
|
54847
55595
|
"Input validation failed"
|
|
54848
55596
|
);
|
|
54849
55597
|
if (!parsed.ok) {
|
|
@@ -54910,7 +55658,7 @@ async function $do13(client, request, options) {
|
|
|
54910
55658
|
}
|
|
54911
55659
|
|
|
54912
55660
|
// ../sdk/src/funcs/billing-open-customer-portal.ts
|
|
54913
|
-
var
|
|
55661
|
+
var z131 = __toESM(require("zod/v4-mini"), 1);
|
|
54914
55662
|
function billingOpenCustomerPortal(client, request, options) {
|
|
54915
55663
|
return new APIPromise($do14(
|
|
54916
55664
|
client,
|
|
@@ -54921,7 +55669,7 @@ function billingOpenCustomerPortal(client, request, options) {
|
|
|
54921
55669
|
async function $do14(client, request, options) {
|
|
54922
55670
|
const parsed = safeParse(
|
|
54923
55671
|
request,
|
|
54924
|
-
(value) =>
|
|
55672
|
+
(value) => z131.parse(OpenCustomerPortalParams$outboundSchema, value),
|
|
54925
55673
|
"Input validation failed"
|
|
54926
55674
|
);
|
|
54927
55675
|
if (!parsed.ok) {
|
|
@@ -54988,7 +55736,7 @@ async function $do14(client, request, options) {
|
|
|
54988
55736
|
}
|
|
54989
55737
|
|
|
54990
55738
|
// ../sdk/src/funcs/billing-preview-attach.ts
|
|
54991
|
-
var
|
|
55739
|
+
var z132 = __toESM(require("zod/v4-mini"), 1);
|
|
54992
55740
|
function billingPreviewAttach(client, request, options) {
|
|
54993
55741
|
return new APIPromise($do15(
|
|
54994
55742
|
client,
|
|
@@ -54999,7 +55747,7 @@ function billingPreviewAttach(client, request, options) {
|
|
|
54999
55747
|
async function $do15(client, request, options) {
|
|
55000
55748
|
const parsed = safeParse(
|
|
55001
55749
|
request,
|
|
55002
|
-
(value) =>
|
|
55750
|
+
(value) => z132.parse(PreviewAttachParams$outboundSchema, value),
|
|
55003
55751
|
"Input validation failed"
|
|
55004
55752
|
);
|
|
55005
55753
|
if (!parsed.ok) {
|
|
@@ -55066,7 +55814,7 @@ async function $do15(client, request, options) {
|
|
|
55066
55814
|
}
|
|
55067
55815
|
|
|
55068
55816
|
// ../sdk/src/funcs/billing-preview-multi-attach.ts
|
|
55069
|
-
var
|
|
55817
|
+
var z133 = __toESM(require("zod/v4-mini"), 1);
|
|
55070
55818
|
function billingPreviewMultiAttach(client, request, options) {
|
|
55071
55819
|
return new APIPromise($do16(
|
|
55072
55820
|
client,
|
|
@@ -55077,7 +55825,7 @@ function billingPreviewMultiAttach(client, request, options) {
|
|
|
55077
55825
|
async function $do16(client, request, options) {
|
|
55078
55826
|
const parsed = safeParse(
|
|
55079
55827
|
request,
|
|
55080
|
-
(value) =>
|
|
55828
|
+
(value) => z133.parse(PreviewMultiAttachParams$outboundSchema, value),
|
|
55081
55829
|
"Input validation failed"
|
|
55082
55830
|
);
|
|
55083
55831
|
if (!parsed.ok) {
|
|
@@ -55144,7 +55892,7 @@ async function $do16(client, request, options) {
|
|
|
55144
55892
|
}
|
|
55145
55893
|
|
|
55146
55894
|
// ../sdk/src/funcs/billing-preview-multi-update.ts
|
|
55147
|
-
var
|
|
55895
|
+
var z134 = __toESM(require("zod/v4-mini"), 1);
|
|
55148
55896
|
function billingPreviewMultiUpdate(client, request, options) {
|
|
55149
55897
|
return new APIPromise($do17(
|
|
55150
55898
|
client,
|
|
@@ -55155,7 +55903,7 @@ function billingPreviewMultiUpdate(client, request, options) {
|
|
|
55155
55903
|
async function $do17(client, request, options) {
|
|
55156
55904
|
const parsed = safeParse(
|
|
55157
55905
|
request,
|
|
55158
|
-
(value) =>
|
|
55906
|
+
(value) => z134.parse(PreviewMultiUpdateParams$outboundSchema, value),
|
|
55159
55907
|
"Input validation failed"
|
|
55160
55908
|
);
|
|
55161
55909
|
if (!parsed.ok) {
|
|
@@ -55222,7 +55970,7 @@ async function $do17(client, request, options) {
|
|
|
55222
55970
|
}
|
|
55223
55971
|
|
|
55224
55972
|
// ../sdk/src/funcs/billing-preview-update.ts
|
|
55225
|
-
var
|
|
55973
|
+
var z135 = __toESM(require("zod/v4-mini"), 1);
|
|
55226
55974
|
function billingPreviewUpdate(client, request, options) {
|
|
55227
55975
|
return new APIPromise($do18(
|
|
55228
55976
|
client,
|
|
@@ -55233,7 +55981,7 @@ function billingPreviewUpdate(client, request, options) {
|
|
|
55233
55981
|
async function $do18(client, request, options) {
|
|
55234
55982
|
const parsed = safeParse(
|
|
55235
55983
|
request,
|
|
55236
|
-
(value) =>
|
|
55984
|
+
(value) => z135.parse(PreviewUpdateParams$outboundSchema, value),
|
|
55237
55985
|
"Input validation failed"
|
|
55238
55986
|
);
|
|
55239
55987
|
if (!parsed.ok) {
|
|
@@ -55300,7 +56048,7 @@ async function $do18(client, request, options) {
|
|
|
55300
56048
|
}
|
|
55301
56049
|
|
|
55302
56050
|
// ../sdk/src/funcs/billing-setup-payment.ts
|
|
55303
|
-
var
|
|
56051
|
+
var z136 = __toESM(require("zod/v4-mini"), 1);
|
|
55304
56052
|
function billingSetupPayment(client, request, options) {
|
|
55305
56053
|
return new APIPromise($do19(
|
|
55306
56054
|
client,
|
|
@@ -55311,7 +56059,7 @@ function billingSetupPayment(client, request, options) {
|
|
|
55311
56059
|
async function $do19(client, request, options) {
|
|
55312
56060
|
const parsed = safeParse(
|
|
55313
56061
|
request,
|
|
55314
|
-
(value) =>
|
|
56062
|
+
(value) => z136.parse(SetupPaymentParams$outboundSchema, value),
|
|
55315
56063
|
"Input validation failed"
|
|
55316
56064
|
);
|
|
55317
56065
|
if (!parsed.ok) {
|
|
@@ -55378,7 +56126,7 @@ async function $do19(client, request, options) {
|
|
|
55378
56126
|
}
|
|
55379
56127
|
|
|
55380
56128
|
// ../sdk/src/funcs/billing-update.ts
|
|
55381
|
-
var
|
|
56129
|
+
var z137 = __toESM(require("zod/v4-mini"), 1);
|
|
55382
56130
|
function billingUpdate(client, request, options) {
|
|
55383
56131
|
return new APIPromise($do20(
|
|
55384
56132
|
client,
|
|
@@ -55389,7 +56137,7 @@ function billingUpdate(client, request, options) {
|
|
|
55389
56137
|
async function $do20(client, request, options) {
|
|
55390
56138
|
const parsed = safeParse(
|
|
55391
56139
|
request,
|
|
55392
|
-
(value) =>
|
|
56140
|
+
(value) => z137.parse(UpdateSubscriptionParams$outboundSchema, value),
|
|
55393
56141
|
"Input validation failed"
|
|
55394
56142
|
);
|
|
55395
56143
|
if (!parsed.ok) {
|
|
@@ -55455,6 +56203,84 @@ async function $do20(client, request, options) {
|
|
|
55455
56203
|
return [result, { status: "complete", request: req, response }];
|
|
55456
56204
|
}
|
|
55457
56205
|
|
|
56206
|
+
// ../sdk/src/funcs/billing-verify.ts
|
|
56207
|
+
var z138 = __toESM(require("zod/v4-mini"), 1);
|
|
56208
|
+
function billingVerify(client, request, options) {
|
|
56209
|
+
return new APIPromise($do21(
|
|
56210
|
+
client,
|
|
56211
|
+
request,
|
|
56212
|
+
options
|
|
56213
|
+
));
|
|
56214
|
+
}
|
|
56215
|
+
async function $do21(client, request, options) {
|
|
56216
|
+
const parsed = safeParse(
|
|
56217
|
+
request,
|
|
56218
|
+
(value) => z138.parse(VerifyParams$outboundSchema, value),
|
|
56219
|
+
"Input validation failed"
|
|
56220
|
+
);
|
|
56221
|
+
if (!parsed.ok) {
|
|
56222
|
+
return [parsed, { status: "invalid" }];
|
|
56223
|
+
}
|
|
56224
|
+
const payload = parsed.value;
|
|
56225
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
56226
|
+
const path = pathToFunc("/v1/billing.verify")();
|
|
56227
|
+
const headers = new Headers(compactMap({
|
|
56228
|
+
"Content-Type": "application/json",
|
|
56229
|
+
Accept: "application/json",
|
|
56230
|
+
"x-api-version": encodeSimple(
|
|
56231
|
+
"x-api-version",
|
|
56232
|
+
client._options.xApiVersion,
|
|
56233
|
+
{ explode: false, charEncoding: "none" }
|
|
56234
|
+
)
|
|
56235
|
+
}));
|
|
56236
|
+
const secConfig = await extractSecurity(client._options.secretKey);
|
|
56237
|
+
const securityInput = secConfig == null ? {} : { secretKey: secConfig };
|
|
56238
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
56239
|
+
const context = {
|
|
56240
|
+
options: client._options,
|
|
56241
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
56242
|
+
operationID: "verify",
|
|
56243
|
+
oAuth2Scopes: null,
|
|
56244
|
+
resolvedSecurity: requestSecurity,
|
|
56245
|
+
securitySource: client._options.secretKey,
|
|
56246
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
56247
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
56248
|
+
};
|
|
56249
|
+
const requestRes = client._createRequest(context, {
|
|
56250
|
+
security: requestSecurity,
|
|
56251
|
+
method: "POST",
|
|
56252
|
+
baseURL: options?.serverURL,
|
|
56253
|
+
path,
|
|
56254
|
+
headers,
|
|
56255
|
+
body,
|
|
56256
|
+
userAgent: client._options.userAgent,
|
|
56257
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
56258
|
+
}, options);
|
|
56259
|
+
if (!requestRes.ok) {
|
|
56260
|
+
return [requestRes, { status: "invalid" }];
|
|
56261
|
+
}
|
|
56262
|
+
const req = requestRes.value;
|
|
56263
|
+
const doResult = await client._do(req, {
|
|
56264
|
+
context,
|
|
56265
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
56266
|
+
retryConfig: context.retryConfig,
|
|
56267
|
+
retryCodes: context.retryCodes
|
|
56268
|
+
});
|
|
56269
|
+
if (!doResult.ok) {
|
|
56270
|
+
return [doResult, { status: "request-error", request: req }];
|
|
56271
|
+
}
|
|
56272
|
+
const response = doResult.value;
|
|
56273
|
+
const [result] = await match(
|
|
56274
|
+
json(200, VerifyResponse$inboundSchema),
|
|
56275
|
+
fail("4XX"),
|
|
56276
|
+
fail("5XX")
|
|
56277
|
+
)(response, req);
|
|
56278
|
+
if (!result.ok) {
|
|
56279
|
+
return [result, { status: "complete", request: req, response }];
|
|
56280
|
+
}
|
|
56281
|
+
return [result, { status: "complete", request: req, response }];
|
|
56282
|
+
}
|
|
56283
|
+
|
|
55458
56284
|
// ../sdk/src/sdk/billing.ts
|
|
55459
56285
|
var Billing = class extends ClientSDK {
|
|
55460
56286
|
/**
|
|
@@ -55488,7 +56314,7 @@ var Billing = class extends ClientSDK {
|
|
|
55488
56314
|
* @param freeTrial - Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given. (optional)
|
|
55489
56315
|
* @param customize - Customize the plan to attach. Can override the price, items, licenses, free trial, or a combination. (optional)
|
|
55490
56316
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. This uses Stripe's send_invoice collection method. (optional)
|
|
55491
|
-
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
|
|
56317
|
+
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle. (optional)
|
|
55492
56318
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
55493
56319
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
55494
56320
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
@@ -55542,7 +56368,7 @@ var Billing = class extends ClientSDK {
|
|
|
55542
56368
|
* @param successUrl - URL to redirect to after successful checkout. (optional)
|
|
55543
56369
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
55544
56370
|
* @param redirectMode - Controls when to return a checkout URL for the immediate phase. 'always' forces a confirmation or checkout flow, 'if_required' only redirects when needed, and 'never' disables redirects. (optional)
|
|
55545
|
-
* @param billingBehavior - Whether to prorate the immediate phase. 'none' skips proration charges and credits. (optional)
|
|
56371
|
+
* @param billingBehavior - Whether to prorate the immediate phase. 'none' skips proration charges and credits, 'bill_difference' charges/credits the full-period price difference. (optional)
|
|
55546
56372
|
* @param noBillingChanges - If true, skips any billing changes for the schedule. (optional)
|
|
55547
56373
|
* @param billingCycleAnchor - Pass 'now' to reset the billing cycle anchor of the immediate phase to the current time. (optional)
|
|
55548
56374
|
* @param enablePlanImmediately - If true, the immediate-phase cusProducts are activated immediately (and scheduled-phase cusProducts pre-inserted) even when payment is pending via Stripe checkout. The Autumn schedule rows are persisted on checkout.session.completed. (optional)
|
|
@@ -55590,7 +56416,7 @@ var Billing = class extends ClientSDK {
|
|
|
55590
56416
|
* @param currency - Currency to bill this multi-attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and every plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
55591
56417
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. (optional)
|
|
55592
56418
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
55593
|
-
* @param billingBehavior - How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything. (optional)
|
|
56419
|
+
* @param billingBehavior - How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle. (optional)
|
|
55594
56420
|
* @param billingCycleAnchor - Pass 'now' to reset the billing cycle of every plan on the subscription to the time of this request. (optional)
|
|
55595
56421
|
* @param successUrl - URL to redirect to after successful checkout. (optional)
|
|
55596
56422
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
@@ -55626,7 +56452,7 @@ var Billing = class extends ClientSDK {
|
|
|
55626
56452
|
* @param freeTrial - Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given. (optional)
|
|
55627
56453
|
* @param customize - Customize the plan to attach. Can override the price, items, licenses, free trial, or a combination. (optional)
|
|
55628
56454
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. This uses Stripe's send_invoice collection method. (optional)
|
|
55629
|
-
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
|
|
56455
|
+
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle. (optional)
|
|
55630
56456
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
55631
56457
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
55632
56458
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
@@ -55679,7 +56505,7 @@ var Billing = class extends ClientSDK {
|
|
|
55679
56505
|
* @param currency - Currency to bill this multi-attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and every plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
55680
56506
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. (optional)
|
|
55681
56507
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
55682
|
-
* @param billingBehavior - How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything. (optional)
|
|
56508
|
+
* @param billingBehavior - How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle. (optional)
|
|
55683
56509
|
* @param billingCycleAnchor - Pass 'now' to reset the billing cycle of every plan on the subscription to the time of this request. (optional)
|
|
55684
56510
|
* @param successUrl - URL to redirect to after successful checkout. (optional)
|
|
55685
56511
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
@@ -55727,7 +56553,7 @@ var Billing = class extends ClientSDK {
|
|
|
55727
56553
|
* @param freeTrial - Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given. (optional)
|
|
55728
56554
|
* @param customize - Customize the plan to attach. Can override the price, items, licenses, free trial, or a combination. (optional)
|
|
55729
56555
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. This uses Stripe's send_invoice collection method. (optional)
|
|
55730
|
-
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
|
|
56556
|
+
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle. (optional)
|
|
55731
56557
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
55732
56558
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
55733
56559
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
@@ -55770,7 +56596,7 @@ var Billing = class extends ClientSDK {
|
|
|
55770
56596
|
* @param freeTrial - Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given. (optional)
|
|
55771
56597
|
* @param customize - Customize the plan to attach. Can override the price, items, licenses, free trial, or a combination. (optional)
|
|
55772
56598
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. This uses Stripe's send_invoice collection method. (optional)
|
|
55773
|
-
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
|
|
56599
|
+
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle. (optional)
|
|
55774
56600
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
55775
56601
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
55776
56602
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
@@ -55872,6 +56698,36 @@ var Billing = class extends ClientSDK {
|
|
|
55872
56698
|
options
|
|
55873
56699
|
));
|
|
55874
56700
|
}
|
|
56701
|
+
/**
|
|
56702
|
+
* Checks a customer's Stripe subscriptions against Autumn's record of their plans and reports any drift. Read-only: it never changes Autumn or Stripe.
|
|
56703
|
+
*
|
|
56704
|
+
* Use this endpoint to audit that a customer's Stripe subscriptions, items, quantities, prices, schedules and cancellation state match what Autumn expects, for example after a migration or a manual change in Stripe.
|
|
56705
|
+
*
|
|
56706
|
+
* @example
|
|
56707
|
+
* ```typescript
|
|
56708
|
+
* // Verify every subscription for a customer
|
|
56709
|
+
* const response = await client.billing.verify({ customerId: "cus_123" });
|
|
56710
|
+
* ```
|
|
56711
|
+
*
|
|
56712
|
+
* @example
|
|
56713
|
+
* ```typescript
|
|
56714
|
+
* // Verify specific subscriptions in strict mode
|
|
56715
|
+
* const response = await client.billing.verify({ customerId: "cus_123", subscriptionIds: ["sub_1234"], strict: true });
|
|
56716
|
+
* ```
|
|
56717
|
+
*
|
|
56718
|
+
* @param customerId - Autumn customer whose Stripe subscriptions should be checked against Autumn's customer_products.
|
|
56719
|
+
* @param subscriptionIds - Optional whitelist of Stripe subscription IDs to verify. Defaults to every subscription linked to the customer's plans, plus any other active Stripe subscription on the customer, which is reported as not linked to Autumn. (optional)
|
|
56720
|
+
* @param strict - When true, report missing usage-based items and unexpected metered Stripe items. Defaults to false. (optional)
|
|
56721
|
+
*
|
|
56722
|
+
* @returns A verify response with account-level mismatches and a per-subscription status (correct or mismatched) with the mismatches found.
|
|
56723
|
+
*/
|
|
56724
|
+
async verify(request, options) {
|
|
56725
|
+
return unwrapAsync(billingVerify(
|
|
56726
|
+
this,
|
|
56727
|
+
request,
|
|
56728
|
+
options
|
|
56729
|
+
));
|
|
56730
|
+
}
|
|
55875
56731
|
/**
|
|
55876
56732
|
* Import
|
|
55877
56733
|
*
|
|
@@ -55888,18 +56744,18 @@ var Billing = class extends ClientSDK {
|
|
|
55888
56744
|
};
|
|
55889
56745
|
|
|
55890
56746
|
// ../sdk/src/funcs/customers-advance-test-clock.ts
|
|
55891
|
-
var
|
|
56747
|
+
var z139 = __toESM(require("zod/v4-mini"), 1);
|
|
55892
56748
|
function customersAdvanceTestClock(client, request, options) {
|
|
55893
|
-
return new APIPromise($
|
|
56749
|
+
return new APIPromise($do22(
|
|
55894
56750
|
client,
|
|
55895
56751
|
request,
|
|
55896
56752
|
options
|
|
55897
56753
|
));
|
|
55898
56754
|
}
|
|
55899
|
-
async function $
|
|
56755
|
+
async function $do22(client, request, options) {
|
|
55900
56756
|
const parsed = safeParse(
|
|
55901
56757
|
request,
|
|
55902
|
-
(value) =>
|
|
56758
|
+
(value) => z139.parse(AdvanceTestClockParams$outboundSchema, value),
|
|
55903
56759
|
"Input validation failed"
|
|
55904
56760
|
);
|
|
55905
56761
|
if (!parsed.ok) {
|
|
@@ -55966,18 +56822,18 @@ async function $do21(client, request, options) {
|
|
|
55966
56822
|
}
|
|
55967
56823
|
|
|
55968
56824
|
// ../sdk/src/funcs/customers-delete.ts
|
|
55969
|
-
var
|
|
56825
|
+
var z140 = __toESM(require("zod/v4-mini"), 1);
|
|
55970
56826
|
function customersDelete(client, request, options) {
|
|
55971
|
-
return new APIPromise($
|
|
56827
|
+
return new APIPromise($do23(
|
|
55972
56828
|
client,
|
|
55973
56829
|
request,
|
|
55974
56830
|
options
|
|
55975
56831
|
));
|
|
55976
56832
|
}
|
|
55977
|
-
async function $
|
|
56833
|
+
async function $do23(client, request, options) {
|
|
55978
56834
|
const parsed = safeParse(
|
|
55979
56835
|
request,
|
|
55980
|
-
(value) =>
|
|
56836
|
+
(value) => z140.parse(DeleteCustomerParams$outboundSchema, value),
|
|
55981
56837
|
"Input validation failed"
|
|
55982
56838
|
);
|
|
55983
56839
|
if (!parsed.ok) {
|
|
@@ -56044,18 +56900,18 @@ async function $do22(client, request, options) {
|
|
|
56044
56900
|
}
|
|
56045
56901
|
|
|
56046
56902
|
// ../sdk/src/funcs/customers-get-or-create.ts
|
|
56047
|
-
var
|
|
56903
|
+
var z141 = __toESM(require("zod/v4-mini"), 1);
|
|
56048
56904
|
function customersGetOrCreate(client, request, options) {
|
|
56049
|
-
return new APIPromise($
|
|
56905
|
+
return new APIPromise($do24(
|
|
56050
56906
|
client,
|
|
56051
56907
|
request,
|
|
56052
56908
|
options
|
|
56053
56909
|
));
|
|
56054
56910
|
}
|
|
56055
|
-
async function $
|
|
56911
|
+
async function $do24(client, request, options) {
|
|
56056
56912
|
const parsed = safeParse(
|
|
56057
56913
|
request,
|
|
56058
|
-
(value) =>
|
|
56914
|
+
(value) => z141.parse(GetOrCreateCustomerParams$outboundSchema, value),
|
|
56059
56915
|
"Input validation failed"
|
|
56060
56916
|
);
|
|
56061
56917
|
if (!parsed.ok) {
|
|
@@ -56122,18 +56978,18 @@ async function $do23(client, request, options) {
|
|
|
56122
56978
|
}
|
|
56123
56979
|
|
|
56124
56980
|
// ../sdk/src/funcs/customers-get.ts
|
|
56125
|
-
var
|
|
56981
|
+
var z142 = __toESM(require("zod/v4-mini"), 1);
|
|
56126
56982
|
function customersGet(client, request, options) {
|
|
56127
|
-
return new APIPromise($
|
|
56983
|
+
return new APIPromise($do25(
|
|
56128
56984
|
client,
|
|
56129
56985
|
request,
|
|
56130
56986
|
options
|
|
56131
56987
|
));
|
|
56132
56988
|
}
|
|
56133
|
-
async function $
|
|
56989
|
+
async function $do25(client, request, options) {
|
|
56134
56990
|
const parsed = safeParse(
|
|
56135
56991
|
request,
|
|
56136
|
-
(value) =>
|
|
56992
|
+
(value) => z142.parse(GetCustomerParams$outboundSchema, value),
|
|
56137
56993
|
"Input validation failed"
|
|
56138
56994
|
);
|
|
56139
56995
|
if (!parsed.ok) {
|
|
@@ -56200,18 +57056,18 @@ async function $do24(client, request, options) {
|
|
|
56200
57056
|
}
|
|
56201
57057
|
|
|
56202
57058
|
// ../sdk/src/funcs/customers-list.ts
|
|
56203
|
-
var
|
|
57059
|
+
var z143 = __toESM(require("zod/v4-mini"), 1);
|
|
56204
57060
|
function customersList(client, request, options) {
|
|
56205
|
-
return new APIPromise($
|
|
57061
|
+
return new APIPromise($do26(
|
|
56206
57062
|
client,
|
|
56207
57063
|
request,
|
|
56208
57064
|
options
|
|
56209
57065
|
));
|
|
56210
57066
|
}
|
|
56211
|
-
async function $
|
|
57067
|
+
async function $do26(client, request, options) {
|
|
56212
57068
|
const parsed = safeParse(
|
|
56213
57069
|
request,
|
|
56214
|
-
(value) =>
|
|
57070
|
+
(value) => z143.parse(ListCustomersParams$outboundSchema, value),
|
|
56215
57071
|
"Input validation failed"
|
|
56216
57072
|
);
|
|
56217
57073
|
if (!parsed.ok) {
|
|
@@ -56278,18 +57134,18 @@ async function $do25(client, request, options) {
|
|
|
56278
57134
|
}
|
|
56279
57135
|
|
|
56280
57136
|
// ../sdk/src/funcs/customers-update.ts
|
|
56281
|
-
var
|
|
57137
|
+
var z144 = __toESM(require("zod/v4-mini"), 1);
|
|
56282
57138
|
function customersUpdate(client, request, options) {
|
|
56283
|
-
return new APIPromise($
|
|
57139
|
+
return new APIPromise($do27(
|
|
56284
57140
|
client,
|
|
56285
57141
|
request,
|
|
56286
57142
|
options
|
|
56287
57143
|
));
|
|
56288
57144
|
}
|
|
56289
|
-
async function $
|
|
57145
|
+
async function $do27(client, request, options) {
|
|
56290
57146
|
const parsed = safeParse(
|
|
56291
57147
|
request,
|
|
56292
|
-
(value) =>
|
|
57148
|
+
(value) => z144.parse(UpdateCustomerParams$outboundSchema, value),
|
|
56293
57149
|
"Input validation failed"
|
|
56294
57150
|
);
|
|
56295
57151
|
if (!parsed.ok) {
|
|
@@ -56460,18 +57316,18 @@ var Customers = class extends ClientSDK {
|
|
|
56460
57316
|
};
|
|
56461
57317
|
|
|
56462
57318
|
// ../sdk/src/funcs/entities-create.ts
|
|
56463
|
-
var
|
|
57319
|
+
var z145 = __toESM(require("zod/v4-mini"), 1);
|
|
56464
57320
|
function entitiesCreate(client, request, options) {
|
|
56465
|
-
return new APIPromise($
|
|
57321
|
+
return new APIPromise($do28(
|
|
56466
57322
|
client,
|
|
56467
57323
|
request,
|
|
56468
57324
|
options
|
|
56469
57325
|
));
|
|
56470
57326
|
}
|
|
56471
|
-
async function $
|
|
57327
|
+
async function $do28(client, request, options) {
|
|
56472
57328
|
const parsed = safeParse(
|
|
56473
57329
|
request,
|
|
56474
|
-
(value) =>
|
|
57330
|
+
(value) => z145.parse(CreateEntityParams$outboundSchema, value),
|
|
56475
57331
|
"Input validation failed"
|
|
56476
57332
|
);
|
|
56477
57333
|
if (!parsed.ok) {
|
|
@@ -56538,18 +57394,18 @@ async function $do27(client, request, options) {
|
|
|
56538
57394
|
}
|
|
56539
57395
|
|
|
56540
57396
|
// ../sdk/src/funcs/entities-delete.ts
|
|
56541
|
-
var
|
|
57397
|
+
var z146 = __toESM(require("zod/v4-mini"), 1);
|
|
56542
57398
|
function entitiesDelete(client, request, options) {
|
|
56543
|
-
return new APIPromise($
|
|
57399
|
+
return new APIPromise($do29(
|
|
56544
57400
|
client,
|
|
56545
57401
|
request,
|
|
56546
57402
|
options
|
|
56547
57403
|
));
|
|
56548
57404
|
}
|
|
56549
|
-
async function $
|
|
57405
|
+
async function $do29(client, request, options) {
|
|
56550
57406
|
const parsed = safeParse(
|
|
56551
57407
|
request,
|
|
56552
|
-
(value) =>
|
|
57408
|
+
(value) => z146.parse(DeleteEntityParams$outboundSchema, value),
|
|
56553
57409
|
"Input validation failed"
|
|
56554
57410
|
);
|
|
56555
57411
|
if (!parsed.ok) {
|
|
@@ -56616,18 +57472,18 @@ async function $do28(client, request, options) {
|
|
|
56616
57472
|
}
|
|
56617
57473
|
|
|
56618
57474
|
// ../sdk/src/funcs/entities-get.ts
|
|
56619
|
-
var
|
|
57475
|
+
var z147 = __toESM(require("zod/v4-mini"), 1);
|
|
56620
57476
|
function entitiesGet(client, request, options) {
|
|
56621
|
-
return new APIPromise($
|
|
57477
|
+
return new APIPromise($do30(
|
|
56622
57478
|
client,
|
|
56623
57479
|
request,
|
|
56624
57480
|
options
|
|
56625
57481
|
));
|
|
56626
57482
|
}
|
|
56627
|
-
async function $
|
|
57483
|
+
async function $do30(client, request, options) {
|
|
56628
57484
|
const parsed = safeParse(
|
|
56629
57485
|
request,
|
|
56630
|
-
(value) =>
|
|
57486
|
+
(value) => z147.parse(GetEntityParams$outboundSchema, value),
|
|
56631
57487
|
"Input validation failed"
|
|
56632
57488
|
);
|
|
56633
57489
|
if (!parsed.ok) {
|
|
@@ -56694,18 +57550,18 @@ async function $do29(client, request, options) {
|
|
|
56694
57550
|
}
|
|
56695
57551
|
|
|
56696
57552
|
// ../sdk/src/funcs/entities-list.ts
|
|
56697
|
-
var
|
|
57553
|
+
var z148 = __toESM(require("zod/v4-mini"), 1);
|
|
56698
57554
|
function entitiesList(client, request, options) {
|
|
56699
|
-
return new APIPromise($
|
|
57555
|
+
return new APIPromise($do31(
|
|
56700
57556
|
client,
|
|
56701
57557
|
request,
|
|
56702
57558
|
options
|
|
56703
57559
|
));
|
|
56704
57560
|
}
|
|
56705
|
-
async function $
|
|
57561
|
+
async function $do31(client, request, options) {
|
|
56706
57562
|
const parsed = safeParse(
|
|
56707
57563
|
request,
|
|
56708
|
-
(value) =>
|
|
57564
|
+
(value) => z148.parse(ListEntitiesParams$outboundSchema, value),
|
|
56709
57565
|
"Input validation failed"
|
|
56710
57566
|
);
|
|
56711
57567
|
if (!parsed.ok) {
|
|
@@ -56772,18 +57628,18 @@ async function $do30(client, request, options) {
|
|
|
56772
57628
|
}
|
|
56773
57629
|
|
|
56774
57630
|
// ../sdk/src/funcs/entities-update.ts
|
|
56775
|
-
var
|
|
57631
|
+
var z149 = __toESM(require("zod/v4-mini"), 1);
|
|
56776
57632
|
function entitiesUpdate(client, request, options) {
|
|
56777
|
-
return new APIPromise($
|
|
57633
|
+
return new APIPromise($do32(
|
|
56778
57634
|
client,
|
|
56779
57635
|
request,
|
|
56780
57636
|
options
|
|
56781
57637
|
));
|
|
56782
57638
|
}
|
|
56783
|
-
async function $
|
|
57639
|
+
async function $do32(client, request, options) {
|
|
56784
57640
|
const parsed = safeParse(
|
|
56785
57641
|
request,
|
|
56786
|
-
(value) =>
|
|
57642
|
+
(value) => z149.parse(UpdateEntityParams$outboundSchema, value),
|
|
56787
57643
|
"Input validation failed"
|
|
56788
57644
|
);
|
|
56789
57645
|
if (!parsed.ok) {
|
|
@@ -56997,18 +57853,18 @@ var Entities = class extends ClientSDK {
|
|
|
56997
57853
|
};
|
|
56998
57854
|
|
|
56999
57855
|
// ../sdk/src/funcs/events-aggregate.ts
|
|
57000
|
-
var
|
|
57856
|
+
var z150 = __toESM(require("zod/v4-mini"), 1);
|
|
57001
57857
|
function eventsAggregate(client, request, options) {
|
|
57002
|
-
return new APIPromise($
|
|
57858
|
+
return new APIPromise($do33(
|
|
57003
57859
|
client,
|
|
57004
57860
|
request,
|
|
57005
57861
|
options
|
|
57006
57862
|
));
|
|
57007
57863
|
}
|
|
57008
|
-
async function $
|
|
57864
|
+
async function $do33(client, request, options) {
|
|
57009
57865
|
const parsed = safeParse(
|
|
57010
57866
|
request,
|
|
57011
|
-
(value) =>
|
|
57867
|
+
(value) => z150.parse(EventsAggregateParams$outboundSchema, value),
|
|
57012
57868
|
"Input validation failed"
|
|
57013
57869
|
);
|
|
57014
57870
|
if (!parsed.ok) {
|
|
@@ -57075,18 +57931,18 @@ async function $do32(client, request, options) {
|
|
|
57075
57931
|
}
|
|
57076
57932
|
|
|
57077
57933
|
// ../sdk/src/funcs/events-list.ts
|
|
57078
|
-
var
|
|
57934
|
+
var z151 = __toESM(require("zod/v4-mini"), 1);
|
|
57079
57935
|
function eventsList(client, request, options) {
|
|
57080
|
-
return new APIPromise($
|
|
57936
|
+
return new APIPromise($do34(
|
|
57081
57937
|
client,
|
|
57082
57938
|
request,
|
|
57083
57939
|
options
|
|
57084
57940
|
));
|
|
57085
57941
|
}
|
|
57086
|
-
async function $
|
|
57942
|
+
async function $do34(client, request, options) {
|
|
57087
57943
|
const parsed = safeParse(
|
|
57088
57944
|
request,
|
|
57089
|
-
(value) =>
|
|
57945
|
+
(value) => z151.parse(EventsListParams$outboundSchema, value),
|
|
57090
57946
|
"Input validation failed"
|
|
57091
57947
|
);
|
|
57092
57948
|
if (!parsed.ok) {
|
|
@@ -57177,18 +58033,18 @@ var Events = class extends ClientSDK {
|
|
|
57177
58033
|
};
|
|
57178
58034
|
|
|
57179
58035
|
// ../sdk/src/funcs/features-create.ts
|
|
57180
|
-
var
|
|
58036
|
+
var z152 = __toESM(require("zod/v4-mini"), 1);
|
|
57181
58037
|
function featuresCreate(client, request, options) {
|
|
57182
|
-
return new APIPromise($
|
|
58038
|
+
return new APIPromise($do35(
|
|
57183
58039
|
client,
|
|
57184
58040
|
request,
|
|
57185
58041
|
options
|
|
57186
58042
|
));
|
|
57187
58043
|
}
|
|
57188
|
-
async function $
|
|
58044
|
+
async function $do35(client, request, options) {
|
|
57189
58045
|
const parsed = safeParse(
|
|
57190
58046
|
request,
|
|
57191
|
-
(value) =>
|
|
58047
|
+
(value) => z152.parse(CreateFeatureParams$outboundSchema, value),
|
|
57192
58048
|
"Input validation failed"
|
|
57193
58049
|
);
|
|
57194
58050
|
if (!parsed.ok) {
|
|
@@ -57255,18 +58111,18 @@ async function $do34(client, request, options) {
|
|
|
57255
58111
|
}
|
|
57256
58112
|
|
|
57257
58113
|
// ../sdk/src/funcs/features-delete.ts
|
|
57258
|
-
var
|
|
58114
|
+
var z153 = __toESM(require("zod/v4-mini"), 1);
|
|
57259
58115
|
function featuresDelete(client, request, options) {
|
|
57260
|
-
return new APIPromise($
|
|
58116
|
+
return new APIPromise($do36(
|
|
57261
58117
|
client,
|
|
57262
58118
|
request,
|
|
57263
58119
|
options
|
|
57264
58120
|
));
|
|
57265
58121
|
}
|
|
57266
|
-
async function $
|
|
58122
|
+
async function $do36(client, request, options) {
|
|
57267
58123
|
const parsed = safeParse(
|
|
57268
58124
|
request,
|
|
57269
|
-
(value) =>
|
|
58125
|
+
(value) => z153.parse(DeleteFeatureParams$outboundSchema, value),
|
|
57270
58126
|
"Input validation failed"
|
|
57271
58127
|
);
|
|
57272
58128
|
if (!parsed.ok) {
|
|
@@ -57333,18 +58189,18 @@ async function $do35(client, request, options) {
|
|
|
57333
58189
|
}
|
|
57334
58190
|
|
|
57335
58191
|
// ../sdk/src/funcs/features-get.ts
|
|
57336
|
-
var
|
|
58192
|
+
var z154 = __toESM(require("zod/v4-mini"), 1);
|
|
57337
58193
|
function featuresGet(client, request, options) {
|
|
57338
|
-
return new APIPromise($
|
|
58194
|
+
return new APIPromise($do37(
|
|
57339
58195
|
client,
|
|
57340
58196
|
request,
|
|
57341
58197
|
options
|
|
57342
58198
|
));
|
|
57343
58199
|
}
|
|
57344
|
-
async function $
|
|
58200
|
+
async function $do37(client, request, options) {
|
|
57345
58201
|
const parsed = safeParse(
|
|
57346
58202
|
request,
|
|
57347
|
-
(value) =>
|
|
58203
|
+
(value) => z154.parse(GetFeatureParams$outboundSchema, value),
|
|
57348
58204
|
"Input validation failed"
|
|
57349
58205
|
);
|
|
57350
58206
|
if (!parsed.ok) {
|
|
@@ -57412,13 +58268,13 @@ async function $do36(client, request, options) {
|
|
|
57412
58268
|
|
|
57413
58269
|
// ../sdk/src/funcs/features-list.ts
|
|
57414
58270
|
function featuresList(client, _request, options) {
|
|
57415
|
-
return new APIPromise($
|
|
58271
|
+
return new APIPromise($do38(
|
|
57416
58272
|
client,
|
|
57417
58273
|
_request,
|
|
57418
58274
|
options
|
|
57419
58275
|
));
|
|
57420
58276
|
}
|
|
57421
|
-
async function $
|
|
58277
|
+
async function $do38(client, _request, options) {
|
|
57422
58278
|
const path = pathToFunc("/v1/features.list")();
|
|
57423
58279
|
const headers = new Headers(compactMap({
|
|
57424
58280
|
Accept: "application/json",
|
|
@@ -57476,18 +58332,18 @@ async function $do37(client, _request, options) {
|
|
|
57476
58332
|
}
|
|
57477
58333
|
|
|
57478
58334
|
// ../sdk/src/funcs/features-update.ts
|
|
57479
|
-
var
|
|
58335
|
+
var z155 = __toESM(require("zod/v4-mini"), 1);
|
|
57480
58336
|
function featuresUpdate(client, request, options) {
|
|
57481
|
-
return new APIPromise($
|
|
58337
|
+
return new APIPromise($do39(
|
|
57482
58338
|
client,
|
|
57483
58339
|
request,
|
|
57484
58340
|
options
|
|
57485
58341
|
));
|
|
57486
58342
|
}
|
|
57487
|
-
async function $
|
|
58343
|
+
async function $do39(client, request, options) {
|
|
57488
58344
|
const parsed = safeParse(
|
|
57489
58345
|
request,
|
|
57490
|
-
(value) =>
|
|
58346
|
+
(value) => z155.parse(UpdateFeatureParams$outboundSchema, value),
|
|
57491
58347
|
"Input validation failed"
|
|
57492
58348
|
);
|
|
57493
58349
|
if (!parsed.ok) {
|
|
@@ -57696,18 +58552,18 @@ var Features = class extends ClientSDK {
|
|
|
57696
58552
|
};
|
|
57697
58553
|
|
|
57698
58554
|
// ../sdk/src/funcs/invoices-create.ts
|
|
57699
|
-
var
|
|
58555
|
+
var z156 = __toESM(require("zod/v4-mini"), 1);
|
|
57700
58556
|
function invoicesCreate(client, request, options) {
|
|
57701
|
-
return new APIPromise($
|
|
58557
|
+
return new APIPromise($do40(
|
|
57702
58558
|
client,
|
|
57703
58559
|
request,
|
|
57704
58560
|
options
|
|
57705
58561
|
));
|
|
57706
58562
|
}
|
|
57707
|
-
async function $
|
|
58563
|
+
async function $do40(client, request, options) {
|
|
57708
58564
|
const parsed = safeParse(
|
|
57709
58565
|
request,
|
|
57710
|
-
(value) =>
|
|
58566
|
+
(value) => z156.parse(CreateInvoiceParams$outboundSchema, value),
|
|
57711
58567
|
"Input validation failed"
|
|
57712
58568
|
);
|
|
57713
58569
|
if (!parsed.ok) {
|
|
@@ -57774,18 +58630,18 @@ async function $do39(client, request, options) {
|
|
|
57774
58630
|
}
|
|
57775
58631
|
|
|
57776
58632
|
// ../sdk/src/funcs/invoices-insert.ts
|
|
57777
|
-
var
|
|
58633
|
+
var z157 = __toESM(require("zod/v4-mini"), 1);
|
|
57778
58634
|
function invoicesInsert(client, request, options) {
|
|
57779
|
-
return new APIPromise($
|
|
58635
|
+
return new APIPromise($do41(
|
|
57780
58636
|
client,
|
|
57781
58637
|
request,
|
|
57782
58638
|
options
|
|
57783
58639
|
));
|
|
57784
58640
|
}
|
|
57785
|
-
async function $
|
|
58641
|
+
async function $do41(client, request, options) {
|
|
57786
58642
|
const parsed = safeParse(
|
|
57787
58643
|
request,
|
|
57788
|
-
(value) =>
|
|
58644
|
+
(value) => z157.parse(InsertInvoicesParams$outboundSchema, value),
|
|
57789
58645
|
"Input validation failed"
|
|
57790
58646
|
);
|
|
57791
58647
|
if (!parsed.ok) {
|
|
@@ -57852,18 +58708,18 @@ async function $do40(client, request, options) {
|
|
|
57852
58708
|
}
|
|
57853
58709
|
|
|
57854
58710
|
// ../sdk/src/funcs/invoices-list-templates.ts
|
|
57855
|
-
var
|
|
58711
|
+
var z158 = __toESM(require("zod/v4-mini"), 1);
|
|
57856
58712
|
function invoicesListTemplates(client, request, options) {
|
|
57857
|
-
return new APIPromise($
|
|
58713
|
+
return new APIPromise($do42(
|
|
57858
58714
|
client,
|
|
57859
58715
|
request,
|
|
57860
58716
|
options
|
|
57861
58717
|
));
|
|
57862
58718
|
}
|
|
57863
|
-
async function $
|
|
58719
|
+
async function $do42(client, request, options) {
|
|
57864
58720
|
const parsed = safeParse(
|
|
57865
58721
|
request,
|
|
57866
|
-
(value) =>
|
|
58722
|
+
(value) => z158.parse(ListInvoiceTemplatesParams$outboundSchema, value),
|
|
57867
58723
|
"Input validation failed"
|
|
57868
58724
|
);
|
|
57869
58725
|
if (!parsed.ok) {
|
|
@@ -57930,18 +58786,18 @@ async function $do41(client, request, options) {
|
|
|
57930
58786
|
}
|
|
57931
58787
|
|
|
57932
58788
|
// ../sdk/src/funcs/invoices-list.ts
|
|
57933
|
-
var
|
|
58789
|
+
var z159 = __toESM(require("zod/v4-mini"), 1);
|
|
57934
58790
|
function invoicesList(client, request, options) {
|
|
57935
|
-
return new APIPromise($
|
|
58791
|
+
return new APIPromise($do43(
|
|
57936
58792
|
client,
|
|
57937
58793
|
request,
|
|
57938
58794
|
options
|
|
57939
58795
|
));
|
|
57940
58796
|
}
|
|
57941
|
-
async function $
|
|
58797
|
+
async function $do43(client, request, options) {
|
|
57942
58798
|
const parsed = safeParse(
|
|
57943
58799
|
request,
|
|
57944
|
-
(value) =>
|
|
58800
|
+
(value) => z159.parse(ListInvoicesParams$outboundSchema, value),
|
|
57945
58801
|
"Input validation failed"
|
|
57946
58802
|
);
|
|
57947
58803
|
if (!parsed.ok) {
|
|
@@ -58008,18 +58864,18 @@ async function $do42(client, request, options) {
|
|
|
58008
58864
|
}
|
|
58009
58865
|
|
|
58010
58866
|
// ../sdk/src/funcs/invoices-pay.ts
|
|
58011
|
-
var
|
|
58867
|
+
var z160 = __toESM(require("zod/v4-mini"), 1);
|
|
58012
58868
|
function invoicesPay(client, request, options) {
|
|
58013
|
-
return new APIPromise($
|
|
58869
|
+
return new APIPromise($do44(
|
|
58014
58870
|
client,
|
|
58015
58871
|
request,
|
|
58016
58872
|
options
|
|
58017
58873
|
));
|
|
58018
58874
|
}
|
|
58019
|
-
async function $
|
|
58875
|
+
async function $do44(client, request, options) {
|
|
58020
58876
|
const parsed = safeParse(
|
|
58021
58877
|
request,
|
|
58022
|
-
(value) =>
|
|
58878
|
+
(value) => z160.parse(PayInvoiceParams$outboundSchema, value),
|
|
58023
58879
|
"Input validation failed"
|
|
58024
58880
|
);
|
|
58025
58881
|
if (!parsed.ok) {
|
|
@@ -58086,18 +58942,18 @@ async function $do43(client, request, options) {
|
|
|
58086
58942
|
}
|
|
58087
58943
|
|
|
58088
58944
|
// ../sdk/src/funcs/invoices-reissue.ts
|
|
58089
|
-
var
|
|
58945
|
+
var z161 = __toESM(require("zod/v4-mini"), 1);
|
|
58090
58946
|
function invoicesReissue(client, request, options) {
|
|
58091
|
-
return new APIPromise($
|
|
58947
|
+
return new APIPromise($do45(
|
|
58092
58948
|
client,
|
|
58093
58949
|
request,
|
|
58094
58950
|
options
|
|
58095
58951
|
));
|
|
58096
58952
|
}
|
|
58097
|
-
async function $
|
|
58953
|
+
async function $do45(client, request, options) {
|
|
58098
58954
|
const parsed = safeParse(
|
|
58099
58955
|
request,
|
|
58100
|
-
(value) =>
|
|
58956
|
+
(value) => z161.parse(ReissueInvoiceParams$outboundSchema, value),
|
|
58101
58957
|
"Input validation failed"
|
|
58102
58958
|
);
|
|
58103
58959
|
if (!parsed.ok) {
|
|
@@ -58164,18 +59020,18 @@ async function $do44(client, request, options) {
|
|
|
58164
59020
|
}
|
|
58165
59021
|
|
|
58166
59022
|
// ../sdk/src/funcs/invoices-void.ts
|
|
58167
|
-
var
|
|
59023
|
+
var z162 = __toESM(require("zod/v4-mini"), 1);
|
|
58168
59024
|
function invoicesVoid(client, request, options) {
|
|
58169
|
-
return new APIPromise($
|
|
59025
|
+
return new APIPromise($do46(
|
|
58170
59026
|
client,
|
|
58171
59027
|
request,
|
|
58172
59028
|
options
|
|
58173
59029
|
));
|
|
58174
59030
|
}
|
|
58175
|
-
async function $
|
|
59031
|
+
async function $do46(client, request, options) {
|
|
58176
59032
|
const parsed = safeParse(
|
|
58177
59033
|
request,
|
|
58178
|
-
(value) =>
|
|
59034
|
+
(value) => z162.parse(VoidInvoiceParams$outboundSchema, value),
|
|
58179
59035
|
"Input validation failed"
|
|
58180
59036
|
);
|
|
58181
59037
|
if (!parsed.ok) {
|
|
@@ -58316,18 +59172,18 @@ var Invoices = class extends ClientSDK {
|
|
|
58316
59172
|
};
|
|
58317
59173
|
|
|
58318
59174
|
// ../sdk/src/funcs/keys-mint.ts
|
|
58319
|
-
var
|
|
59175
|
+
var z163 = __toESM(require("zod/v4-mini"), 1);
|
|
58320
59176
|
function keysMint(client, request, options) {
|
|
58321
|
-
return new APIPromise($
|
|
59177
|
+
return new APIPromise($do47(
|
|
58322
59178
|
client,
|
|
58323
59179
|
request,
|
|
58324
59180
|
options
|
|
58325
59181
|
));
|
|
58326
59182
|
}
|
|
58327
|
-
async function $
|
|
59183
|
+
async function $do47(client, request, options) {
|
|
58328
59184
|
const parsed = safeParse(
|
|
58329
59185
|
request,
|
|
58330
|
-
(value) =>
|
|
59186
|
+
(value) => z163.parse(MintKeyParams$outboundSchema, value),
|
|
58331
59187
|
"Input validation failed"
|
|
58332
59188
|
);
|
|
58333
59189
|
if (!parsed.ok) {
|
|
@@ -58395,13 +59251,13 @@ async function $do46(client, request, options) {
|
|
|
58395
59251
|
|
|
58396
59252
|
// ../sdk/src/funcs/keys-refresh.ts
|
|
58397
59253
|
function keysRefresh(client, _request, options) {
|
|
58398
|
-
return new APIPromise($
|
|
59254
|
+
return new APIPromise($do48(
|
|
58399
59255
|
client,
|
|
58400
59256
|
_request,
|
|
58401
59257
|
options
|
|
58402
59258
|
));
|
|
58403
59259
|
}
|
|
58404
|
-
async function $
|
|
59260
|
+
async function $do48(client, _request, options) {
|
|
58405
59261
|
const path = pathToFunc("/v1/keys.refresh")();
|
|
58406
59262
|
const headers = new Headers(compactMap({
|
|
58407
59263
|
"Content-Type": "application/json",
|
|
@@ -58460,18 +59316,18 @@ async function $do47(client, _request, options) {
|
|
|
58460
59316
|
}
|
|
58461
59317
|
|
|
58462
59318
|
// ../sdk/src/funcs/keys-revoke.ts
|
|
58463
|
-
var
|
|
59319
|
+
var z164 = __toESM(require("zod/v4-mini"), 1);
|
|
58464
59320
|
function keysRevoke(client, request, options) {
|
|
58465
|
-
return new APIPromise($
|
|
59321
|
+
return new APIPromise($do49(
|
|
58466
59322
|
client,
|
|
58467
59323
|
request,
|
|
58468
59324
|
options
|
|
58469
59325
|
));
|
|
58470
59326
|
}
|
|
58471
|
-
async function $
|
|
59327
|
+
async function $do49(client, request, options) {
|
|
58472
59328
|
const parsed = safeParse(
|
|
58473
59329
|
request,
|
|
58474
|
-
(value) =>
|
|
59330
|
+
(value) => z164.parse(RevokeKeyParams$outboundSchema, value),
|
|
58475
59331
|
"Input validation failed"
|
|
58476
59332
|
);
|
|
58477
59333
|
if (!parsed.ok) {
|
|
@@ -58572,18 +59428,18 @@ var Keys = class extends ClientSDK {
|
|
|
58572
59428
|
};
|
|
58573
59429
|
|
|
58574
59430
|
// ../sdk/src/funcs/licenses-attach.ts
|
|
58575
|
-
var
|
|
59431
|
+
var z165 = __toESM(require("zod/v4-mini"), 1);
|
|
58576
59432
|
function licensesAttach(client, request, options) {
|
|
58577
|
-
return new APIPromise($
|
|
59433
|
+
return new APIPromise($do50(
|
|
58578
59434
|
client,
|
|
58579
59435
|
request,
|
|
58580
59436
|
options
|
|
58581
59437
|
));
|
|
58582
59438
|
}
|
|
58583
|
-
async function $
|
|
59439
|
+
async function $do50(client, request, options) {
|
|
58584
59440
|
const parsed = safeParse(
|
|
58585
59441
|
request,
|
|
58586
|
-
(value) =>
|
|
59442
|
+
(value) => z165.parse(AttachLicenseParams$outboundSchema, value),
|
|
58587
59443
|
"Input validation failed"
|
|
58588
59444
|
);
|
|
58589
59445
|
if (!parsed.ok) {
|
|
@@ -58650,18 +59506,18 @@ async function $do49(client, request, options) {
|
|
|
58650
59506
|
}
|
|
58651
59507
|
|
|
58652
59508
|
// ../sdk/src/funcs/licenses-release.ts
|
|
58653
|
-
var
|
|
59509
|
+
var z166 = __toESM(require("zod/v4-mini"), 1);
|
|
58654
59510
|
function licensesRelease(client, request, options) {
|
|
58655
|
-
return new APIPromise($
|
|
59511
|
+
return new APIPromise($do51(
|
|
58656
59512
|
client,
|
|
58657
59513
|
request,
|
|
58658
59514
|
options
|
|
58659
59515
|
));
|
|
58660
59516
|
}
|
|
58661
|
-
async function $
|
|
59517
|
+
async function $do51(client, request, options) {
|
|
58662
59518
|
const parsed = safeParse(
|
|
58663
59519
|
request,
|
|
58664
|
-
(value) =>
|
|
59520
|
+
(value) => z166.parse(ReleaseLicenseParams$outboundSchema, value),
|
|
58665
59521
|
"Input validation failed"
|
|
58666
59522
|
);
|
|
58667
59523
|
if (!parsed.ok) {
|
|
@@ -58752,18 +59608,18 @@ var Licenses = class extends ClientSDK {
|
|
|
58752
59608
|
};
|
|
58753
59609
|
|
|
58754
59610
|
// ../sdk/src/funcs/logs-search.ts
|
|
58755
|
-
var
|
|
59611
|
+
var z167 = __toESM(require("zod/v4-mini"), 1);
|
|
58756
59612
|
function logsSearch(client, request, options) {
|
|
58757
|
-
return new APIPromise($
|
|
59613
|
+
return new APIPromise($do52(
|
|
58758
59614
|
client,
|
|
58759
59615
|
request,
|
|
58760
59616
|
options
|
|
58761
59617
|
));
|
|
58762
59618
|
}
|
|
58763
|
-
async function $
|
|
59619
|
+
async function $do52(client, request, options) {
|
|
58764
59620
|
const parsed = safeParse(
|
|
58765
59621
|
request,
|
|
58766
|
-
(value) =>
|
|
59622
|
+
(value) => z167.parse(SearchRequestLogsParams$outboundSchema, value),
|
|
58767
59623
|
"Input validation failed"
|
|
58768
59624
|
);
|
|
58769
59625
|
if (!parsed.ok) {
|
|
@@ -58844,18 +59700,18 @@ var Logs = class extends ClientSDK {
|
|
|
58844
59700
|
};
|
|
58845
59701
|
|
|
58846
59702
|
// ../sdk/src/funcs/plans-create.ts
|
|
58847
|
-
var
|
|
59703
|
+
var z168 = __toESM(require("zod/v4-mini"), 1);
|
|
58848
59704
|
function plansCreate(client, request, options) {
|
|
58849
|
-
return new APIPromise($
|
|
59705
|
+
return new APIPromise($do53(
|
|
58850
59706
|
client,
|
|
58851
59707
|
request,
|
|
58852
59708
|
options
|
|
58853
59709
|
));
|
|
58854
59710
|
}
|
|
58855
|
-
async function $
|
|
59711
|
+
async function $do53(client, request, options) {
|
|
58856
59712
|
const parsed = safeParse(
|
|
58857
59713
|
request,
|
|
58858
|
-
(value) =>
|
|
59714
|
+
(value) => z168.parse(CreatePlanParams$outboundSchema, value),
|
|
58859
59715
|
"Input validation failed"
|
|
58860
59716
|
);
|
|
58861
59717
|
if (!parsed.ok) {
|
|
@@ -58922,18 +59778,18 @@ async function $do52(client, request, options) {
|
|
|
58922
59778
|
}
|
|
58923
59779
|
|
|
58924
59780
|
// ../sdk/src/funcs/plans-delete.ts
|
|
58925
|
-
var
|
|
59781
|
+
var z169 = __toESM(require("zod/v4-mini"), 1);
|
|
58926
59782
|
function plansDelete(client, request, options) {
|
|
58927
|
-
return new APIPromise($
|
|
59783
|
+
return new APIPromise($do54(
|
|
58928
59784
|
client,
|
|
58929
59785
|
request,
|
|
58930
59786
|
options
|
|
58931
59787
|
));
|
|
58932
59788
|
}
|
|
58933
|
-
async function $
|
|
59789
|
+
async function $do54(client, request, options) {
|
|
58934
59790
|
const parsed = safeParse(
|
|
58935
59791
|
request,
|
|
58936
|
-
(value) =>
|
|
59792
|
+
(value) => z169.parse(DeletePlanParams$outboundSchema, value),
|
|
58937
59793
|
"Input validation failed"
|
|
58938
59794
|
);
|
|
58939
59795
|
if (!parsed.ok) {
|
|
@@ -59000,18 +59856,18 @@ async function $do53(client, request, options) {
|
|
|
59000
59856
|
}
|
|
59001
59857
|
|
|
59002
59858
|
// ../sdk/src/funcs/plans-get.ts
|
|
59003
|
-
var
|
|
59859
|
+
var z170 = __toESM(require("zod/v4-mini"), 1);
|
|
59004
59860
|
function plansGet(client, request, options) {
|
|
59005
|
-
return new APIPromise($
|
|
59861
|
+
return new APIPromise($do55(
|
|
59006
59862
|
client,
|
|
59007
59863
|
request,
|
|
59008
59864
|
options
|
|
59009
59865
|
));
|
|
59010
59866
|
}
|
|
59011
|
-
async function $
|
|
59867
|
+
async function $do55(client, request, options) {
|
|
59012
59868
|
const parsed = safeParse(
|
|
59013
59869
|
request,
|
|
59014
|
-
(value) =>
|
|
59870
|
+
(value) => z170.parse(GetPlanParams$outboundSchema, value),
|
|
59015
59871
|
"Input validation failed"
|
|
59016
59872
|
);
|
|
59017
59873
|
if (!parsed.ok) {
|
|
@@ -59078,18 +59934,18 @@ async function $do54(client, request, options) {
|
|
|
59078
59934
|
}
|
|
59079
59935
|
|
|
59080
59936
|
// ../sdk/src/funcs/plans-list.ts
|
|
59081
|
-
var
|
|
59937
|
+
var z171 = __toESM(require("zod/v4-mini"), 1);
|
|
59082
59938
|
function plansList(client, request, options) {
|
|
59083
|
-
return new APIPromise($
|
|
59939
|
+
return new APIPromise($do56(
|
|
59084
59940
|
client,
|
|
59085
59941
|
request,
|
|
59086
59942
|
options
|
|
59087
59943
|
));
|
|
59088
59944
|
}
|
|
59089
|
-
async function $
|
|
59945
|
+
async function $do56(client, request, options) {
|
|
59090
59946
|
const parsed = safeParse(
|
|
59091
59947
|
request,
|
|
59092
|
-
(value) =>
|
|
59948
|
+
(value) => z171.parse(z171.optional(ListPlansParams$outboundSchema), value),
|
|
59093
59949
|
"Input validation failed"
|
|
59094
59950
|
);
|
|
59095
59951
|
if (!parsed.ok) {
|
|
@@ -59156,18 +60012,18 @@ async function $do55(client, request, options) {
|
|
|
59156
60012
|
}
|
|
59157
60013
|
|
|
59158
60014
|
// ../sdk/src/funcs/plans-update.ts
|
|
59159
|
-
var
|
|
60015
|
+
var z172 = __toESM(require("zod/v4-mini"), 1);
|
|
59160
60016
|
function plansUpdate(client, request, options) {
|
|
59161
|
-
return new APIPromise($
|
|
60017
|
+
return new APIPromise($do57(
|
|
59162
60018
|
client,
|
|
59163
60019
|
request,
|
|
59164
60020
|
options
|
|
59165
60021
|
));
|
|
59166
60022
|
}
|
|
59167
|
-
async function $
|
|
60023
|
+
async function $do57(client, request, options) {
|
|
59168
60024
|
const parsed = safeParse(
|
|
59169
60025
|
request,
|
|
59170
|
-
(value) =>
|
|
60026
|
+
(value) => z172.parse(UpdatePlanParams$outboundSchema, value),
|
|
59171
60027
|
"Input validation failed"
|
|
59172
60028
|
);
|
|
59173
60029
|
if (!parsed.ok) {
|
|
@@ -59476,18 +60332,18 @@ var Plans = class extends ClientSDK {
|
|
|
59476
60332
|
};
|
|
59477
60333
|
|
|
59478
60334
|
// ../sdk/src/funcs/platform-disconnect-stripe.ts
|
|
59479
|
-
var
|
|
60335
|
+
var z173 = __toESM(require("zod/v4-mini"), 1);
|
|
59480
60336
|
function platformDisconnectStripe(client, request, options) {
|
|
59481
|
-
return new APIPromise($
|
|
60337
|
+
return new APIPromise($do58(
|
|
59482
60338
|
client,
|
|
59483
60339
|
request,
|
|
59484
60340
|
options
|
|
59485
60341
|
));
|
|
59486
60342
|
}
|
|
59487
|
-
async function $
|
|
60343
|
+
async function $do58(client, request, options) {
|
|
59488
60344
|
const parsed = safeParse(
|
|
59489
60345
|
request,
|
|
59490
|
-
(value) =>
|
|
60346
|
+
(value) => z173.parse(DisconnectStripeParams$outboundSchema, value),
|
|
59491
60347
|
"Input validation failed"
|
|
59492
60348
|
);
|
|
59493
60349
|
if (!parsed.ok) {
|
|
@@ -59554,18 +60410,18 @@ async function $do57(client, request, options) {
|
|
|
59554
60410
|
}
|
|
59555
60411
|
|
|
59556
60412
|
// ../sdk/src/funcs/platform-get-revenue-cat-keys.ts
|
|
59557
|
-
var
|
|
60413
|
+
var z174 = __toESM(require("zod/v4-mini"), 1);
|
|
59558
60414
|
function platformGetRevenueCatKeys(client, request, options) {
|
|
59559
|
-
return new APIPromise($
|
|
60415
|
+
return new APIPromise($do59(
|
|
59560
60416
|
client,
|
|
59561
60417
|
request,
|
|
59562
60418
|
options
|
|
59563
60419
|
));
|
|
59564
60420
|
}
|
|
59565
|
-
async function $
|
|
60421
|
+
async function $do59(client, request, options) {
|
|
59566
60422
|
const parsed = safeParse(
|
|
59567
60423
|
request,
|
|
59568
|
-
(value) =>
|
|
60424
|
+
(value) => z174.parse(GetRevenueCatKeysParams$outboundSchema, value),
|
|
59569
60425
|
"Input validation failed"
|
|
59570
60426
|
);
|
|
59571
60427
|
if (!parsed.ok) {
|
|
@@ -59632,18 +60488,18 @@ async function $do58(client, request, options) {
|
|
|
59632
60488
|
}
|
|
59633
60489
|
|
|
59634
60490
|
// ../sdk/src/funcs/platform-get-stripe-connection.ts
|
|
59635
|
-
var
|
|
60491
|
+
var z175 = __toESM(require("zod/v4-mini"), 1);
|
|
59636
60492
|
function platformGetStripeConnection(client, request, options) {
|
|
59637
|
-
return new APIPromise($
|
|
60493
|
+
return new APIPromise($do60(
|
|
59638
60494
|
client,
|
|
59639
60495
|
request,
|
|
59640
60496
|
options
|
|
59641
60497
|
));
|
|
59642
60498
|
}
|
|
59643
|
-
async function $
|
|
60499
|
+
async function $do60(client, request, options) {
|
|
59644
60500
|
const parsed = safeParse(
|
|
59645
60501
|
request,
|
|
59646
|
-
(value) =>
|
|
60502
|
+
(value) => z175.parse(GetStripeConnectionParams$outboundSchema, value),
|
|
59647
60503
|
"Input validation failed"
|
|
59648
60504
|
);
|
|
59649
60505
|
if (!parsed.ok) {
|
|
@@ -59710,18 +60566,18 @@ async function $do59(client, request, options) {
|
|
|
59710
60566
|
}
|
|
59711
60567
|
|
|
59712
60568
|
// ../sdk/src/funcs/platform-link-revenue-cat.ts
|
|
59713
|
-
var
|
|
60569
|
+
var z176 = __toESM(require("zod/v4-mini"), 1);
|
|
59714
60570
|
function platformLinkRevenueCat(client, request, options) {
|
|
59715
|
-
return new APIPromise($
|
|
60571
|
+
return new APIPromise($do61(
|
|
59716
60572
|
client,
|
|
59717
60573
|
request,
|
|
59718
60574
|
options
|
|
59719
60575
|
));
|
|
59720
60576
|
}
|
|
59721
|
-
async function $
|
|
60577
|
+
async function $do61(client, request, options) {
|
|
59722
60578
|
const parsed = safeParse(
|
|
59723
60579
|
request,
|
|
59724
|
-
(value) =>
|
|
60580
|
+
(value) => z176.parse(LinkRevenueCatParams$outboundSchema, value),
|
|
59725
60581
|
"Input validation failed"
|
|
59726
60582
|
);
|
|
59727
60583
|
if (!parsed.ok) {
|
|
@@ -59788,18 +60644,18 @@ async function $do60(client, request, options) {
|
|
|
59788
60644
|
}
|
|
59789
60645
|
|
|
59790
60646
|
// ../sdk/src/funcs/platform-sync-revenue-cat.ts
|
|
59791
|
-
var
|
|
60647
|
+
var z177 = __toESM(require("zod/v4-mini"), 1);
|
|
59792
60648
|
function platformSyncRevenueCat(client, request, options) {
|
|
59793
|
-
return new APIPromise($
|
|
60649
|
+
return new APIPromise($do62(
|
|
59794
60650
|
client,
|
|
59795
60651
|
request,
|
|
59796
60652
|
options
|
|
59797
60653
|
));
|
|
59798
60654
|
}
|
|
59799
|
-
async function $
|
|
60655
|
+
async function $do62(client, request, options) {
|
|
59800
60656
|
const parsed = safeParse(
|
|
59801
60657
|
request,
|
|
59802
|
-
(value) =>
|
|
60658
|
+
(value) => z177.parse(SyncRevenueCatParams$outboundSchema, value),
|
|
59803
60659
|
"Input validation failed"
|
|
59804
60660
|
);
|
|
59805
60661
|
if (!parsed.ok) {
|
|
@@ -59920,18 +60776,18 @@ var Platform = class extends ClientSDK {
|
|
|
59920
60776
|
};
|
|
59921
60777
|
|
|
59922
60778
|
// ../sdk/src/funcs/referrals-create-code.ts
|
|
59923
|
-
var
|
|
60779
|
+
var z178 = __toESM(require("zod/v4-mini"), 1);
|
|
59924
60780
|
function referralsCreateCode(client, request, options) {
|
|
59925
|
-
return new APIPromise($
|
|
60781
|
+
return new APIPromise($do63(
|
|
59926
60782
|
client,
|
|
59927
60783
|
request,
|
|
59928
60784
|
options
|
|
59929
60785
|
));
|
|
59930
60786
|
}
|
|
59931
|
-
async function $
|
|
60787
|
+
async function $do63(client, request, options) {
|
|
59932
60788
|
const parsed = safeParse(
|
|
59933
60789
|
request,
|
|
59934
|
-
(value) =>
|
|
60790
|
+
(value) => z178.parse(CreateReferralCodeParams$outboundSchema, value),
|
|
59935
60791
|
"Input validation failed"
|
|
59936
60792
|
);
|
|
59937
60793
|
if (!parsed.ok) {
|
|
@@ -59998,18 +60854,18 @@ async function $do62(client, request, options) {
|
|
|
59998
60854
|
}
|
|
59999
60855
|
|
|
60000
60856
|
// ../sdk/src/funcs/referrals-create-program.ts
|
|
60001
|
-
var
|
|
60857
|
+
var z179 = __toESM(require("zod/v4-mini"), 1);
|
|
60002
60858
|
function referralsCreateProgram(client, request, options) {
|
|
60003
|
-
return new APIPromise($
|
|
60859
|
+
return new APIPromise($do64(
|
|
60004
60860
|
client,
|
|
60005
60861
|
request,
|
|
60006
60862
|
options
|
|
60007
60863
|
));
|
|
60008
60864
|
}
|
|
60009
|
-
async function $
|
|
60865
|
+
async function $do64(client, request, options) {
|
|
60010
60866
|
const parsed = safeParse(
|
|
60011
60867
|
request,
|
|
60012
|
-
(value) =>
|
|
60868
|
+
(value) => z179.parse(CreateReferralProgramParams$outboundSchema, value),
|
|
60013
60869
|
"Input validation failed"
|
|
60014
60870
|
);
|
|
60015
60871
|
if (!parsed.ok) {
|
|
@@ -60076,18 +60932,18 @@ async function $do63(client, request, options) {
|
|
|
60076
60932
|
}
|
|
60077
60933
|
|
|
60078
60934
|
// ../sdk/src/funcs/referrals-delete-program.ts
|
|
60079
|
-
var
|
|
60935
|
+
var z180 = __toESM(require("zod/v4-mini"), 1);
|
|
60080
60936
|
function referralsDeleteProgram(client, request, options) {
|
|
60081
|
-
return new APIPromise($
|
|
60937
|
+
return new APIPromise($do65(
|
|
60082
60938
|
client,
|
|
60083
60939
|
request,
|
|
60084
60940
|
options
|
|
60085
60941
|
));
|
|
60086
60942
|
}
|
|
60087
|
-
async function $
|
|
60943
|
+
async function $do65(client, request, options) {
|
|
60088
60944
|
const parsed = safeParse(
|
|
60089
60945
|
request,
|
|
60090
|
-
(value) =>
|
|
60946
|
+
(value) => z180.parse(DeleteReferralProgramParams$outboundSchema, value),
|
|
60091
60947
|
"Input validation failed"
|
|
60092
60948
|
);
|
|
60093
60949
|
if (!parsed.ok) {
|
|
@@ -60154,18 +61010,18 @@ async function $do64(client, request, options) {
|
|
|
60154
61010
|
}
|
|
60155
61011
|
|
|
60156
61012
|
// ../sdk/src/funcs/referrals-get-program.ts
|
|
60157
|
-
var
|
|
61013
|
+
var z181 = __toESM(require("zod/v4-mini"), 1);
|
|
60158
61014
|
function referralsGetProgram(client, request, options) {
|
|
60159
|
-
return new APIPromise($
|
|
61015
|
+
return new APIPromise($do66(
|
|
60160
61016
|
client,
|
|
60161
61017
|
request,
|
|
60162
61018
|
options
|
|
60163
61019
|
));
|
|
60164
61020
|
}
|
|
60165
|
-
async function $
|
|
61021
|
+
async function $do66(client, request, options) {
|
|
60166
61022
|
const parsed = safeParse(
|
|
60167
61023
|
request,
|
|
60168
|
-
(value) =>
|
|
61024
|
+
(value) => z181.parse(GetReferralProgramParams$outboundSchema, value),
|
|
60169
61025
|
"Input validation failed"
|
|
60170
61026
|
);
|
|
60171
61027
|
if (!parsed.ok) {
|
|
@@ -60233,13 +61089,13 @@ async function $do65(client, request, options) {
|
|
|
60233
61089
|
|
|
60234
61090
|
// ../sdk/src/funcs/referrals-list-programs.ts
|
|
60235
61091
|
function referralsListPrograms(client, _request, options) {
|
|
60236
|
-
return new APIPromise($
|
|
61092
|
+
return new APIPromise($do67(
|
|
60237
61093
|
client,
|
|
60238
61094
|
_request,
|
|
60239
61095
|
options
|
|
60240
61096
|
));
|
|
60241
61097
|
}
|
|
60242
|
-
async function $
|
|
61098
|
+
async function $do67(client, _request, options) {
|
|
60243
61099
|
const path = pathToFunc("/v1/referral_programs.list")();
|
|
60244
61100
|
const headers = new Headers(compactMap({
|
|
60245
61101
|
"Content-Type": "application/json",
|
|
@@ -60298,18 +61154,18 @@ async function $do66(client, _request, options) {
|
|
|
60298
61154
|
}
|
|
60299
61155
|
|
|
60300
61156
|
// ../sdk/src/funcs/referrals-redeem-code.ts
|
|
60301
|
-
var
|
|
61157
|
+
var z182 = __toESM(require("zod/v4-mini"), 1);
|
|
60302
61158
|
function referralsRedeemCode(client, request, options) {
|
|
60303
|
-
return new APIPromise($
|
|
61159
|
+
return new APIPromise($do68(
|
|
60304
61160
|
client,
|
|
60305
61161
|
request,
|
|
60306
61162
|
options
|
|
60307
61163
|
));
|
|
60308
61164
|
}
|
|
60309
|
-
async function $
|
|
61165
|
+
async function $do68(client, request, options) {
|
|
60310
61166
|
const parsed = safeParse(
|
|
60311
61167
|
request,
|
|
60312
|
-
(value) =>
|
|
61168
|
+
(value) => z182.parse(RedeemReferralCodeParams$outboundSchema, value),
|
|
60313
61169
|
"Input validation failed"
|
|
60314
61170
|
);
|
|
60315
61171
|
if (!parsed.ok) {
|
|
@@ -60376,18 +61232,18 @@ async function $do67(client, request, options) {
|
|
|
60376
61232
|
}
|
|
60377
61233
|
|
|
60378
61234
|
// ../sdk/src/funcs/referrals-update-program.ts
|
|
60379
|
-
var
|
|
61235
|
+
var z183 = __toESM(require("zod/v4-mini"), 1);
|
|
60380
61236
|
function referralsUpdateProgram(client, request, options) {
|
|
60381
|
-
return new APIPromise($
|
|
61237
|
+
return new APIPromise($do69(
|
|
60382
61238
|
client,
|
|
60383
61239
|
request,
|
|
60384
61240
|
options
|
|
60385
61241
|
));
|
|
60386
61242
|
}
|
|
60387
|
-
async function $
|
|
61243
|
+
async function $do69(client, request, options) {
|
|
60388
61244
|
const parsed = safeParse(
|
|
60389
61245
|
request,
|
|
60390
|
-
(value) =>
|
|
61246
|
+
(value) => z183.parse(UpdateReferralProgramParams$outboundSchema, value),
|
|
60391
61247
|
"Input validation failed"
|
|
60392
61248
|
);
|
|
60393
61249
|
if (!parsed.ok) {
|
|
@@ -60528,18 +61384,18 @@ var Referrals = class extends ClientSDK {
|
|
|
60528
61384
|
};
|
|
60529
61385
|
|
|
60530
61386
|
// ../sdk/src/funcs/rewards-create.ts
|
|
60531
|
-
var
|
|
61387
|
+
var z184 = __toESM(require("zod/v4-mini"), 1);
|
|
60532
61388
|
function rewardsCreate(client, request, options) {
|
|
60533
|
-
return new APIPromise($
|
|
61389
|
+
return new APIPromise($do70(
|
|
60534
61390
|
client,
|
|
60535
61391
|
request,
|
|
60536
61392
|
options
|
|
60537
61393
|
));
|
|
60538
61394
|
}
|
|
60539
|
-
async function $
|
|
61395
|
+
async function $do70(client, request, options) {
|
|
60540
61396
|
const parsed = safeParse(
|
|
60541
61397
|
request,
|
|
60542
|
-
(value) =>
|
|
61398
|
+
(value) => z184.parse(CreateRewardParams$outboundSchema, value),
|
|
60543
61399
|
"Input validation failed"
|
|
60544
61400
|
);
|
|
60545
61401
|
if (!parsed.ok) {
|
|
@@ -60606,18 +61462,18 @@ async function $do69(client, request, options) {
|
|
|
60606
61462
|
}
|
|
60607
61463
|
|
|
60608
61464
|
// ../sdk/src/funcs/rewards-delete.ts
|
|
60609
|
-
var
|
|
61465
|
+
var z185 = __toESM(require("zod/v4-mini"), 1);
|
|
60610
61466
|
function rewardsDelete(client, request, options) {
|
|
60611
|
-
return new APIPromise($
|
|
61467
|
+
return new APIPromise($do71(
|
|
60612
61468
|
client,
|
|
60613
61469
|
request,
|
|
60614
61470
|
options
|
|
60615
61471
|
));
|
|
60616
61472
|
}
|
|
60617
|
-
async function $
|
|
61473
|
+
async function $do71(client, request, options) {
|
|
60618
61474
|
const parsed = safeParse(
|
|
60619
61475
|
request,
|
|
60620
|
-
(value) =>
|
|
61476
|
+
(value) => z185.parse(DeleteRewardParams$outboundSchema, value),
|
|
60621
61477
|
"Input validation failed"
|
|
60622
61478
|
);
|
|
60623
61479
|
if (!parsed.ok) {
|
|
@@ -60684,18 +61540,18 @@ async function $do70(client, request, options) {
|
|
|
60684
61540
|
}
|
|
60685
61541
|
|
|
60686
61542
|
// ../sdk/src/funcs/rewards-get.ts
|
|
60687
|
-
var
|
|
61543
|
+
var z186 = __toESM(require("zod/v4-mini"), 1);
|
|
60688
61544
|
function rewardsGet(client, request, options) {
|
|
60689
|
-
return new APIPromise($
|
|
61545
|
+
return new APIPromise($do72(
|
|
60690
61546
|
client,
|
|
60691
61547
|
request,
|
|
60692
61548
|
options
|
|
60693
61549
|
));
|
|
60694
61550
|
}
|
|
60695
|
-
async function $
|
|
61551
|
+
async function $do72(client, request, options) {
|
|
60696
61552
|
const parsed = safeParse(
|
|
60697
61553
|
request,
|
|
60698
|
-
(value) =>
|
|
61554
|
+
(value) => z186.parse(GetRewardParams$outboundSchema, value),
|
|
60699
61555
|
"Input validation failed"
|
|
60700
61556
|
);
|
|
60701
61557
|
if (!parsed.ok) {
|
|
@@ -60763,13 +61619,13 @@ async function $do71(client, request, options) {
|
|
|
60763
61619
|
|
|
60764
61620
|
// ../sdk/src/funcs/rewards-list.ts
|
|
60765
61621
|
function rewardsList(client, _request, options) {
|
|
60766
|
-
return new APIPromise($
|
|
61622
|
+
return new APIPromise($do73(
|
|
60767
61623
|
client,
|
|
60768
61624
|
_request,
|
|
60769
61625
|
options
|
|
60770
61626
|
));
|
|
60771
61627
|
}
|
|
60772
|
-
async function $
|
|
61628
|
+
async function $do73(client, _request, options) {
|
|
60773
61629
|
const path = pathToFunc("/v1/rewards.list")();
|
|
60774
61630
|
const headers = new Headers(compactMap({
|
|
60775
61631
|
"Content-Type": "application/json",
|
|
@@ -60828,18 +61684,18 @@ async function $do72(client, _request, options) {
|
|
|
60828
61684
|
}
|
|
60829
61685
|
|
|
60830
61686
|
// ../sdk/src/funcs/rewards-redeem-code.ts
|
|
60831
|
-
var
|
|
61687
|
+
var z187 = __toESM(require("zod/v4-mini"), 1);
|
|
60832
61688
|
function rewardsRedeemCode(client, request, options) {
|
|
60833
|
-
return new APIPromise($
|
|
61689
|
+
return new APIPromise($do74(
|
|
60834
61690
|
client,
|
|
60835
61691
|
request,
|
|
60836
61692
|
options
|
|
60837
61693
|
));
|
|
60838
61694
|
}
|
|
60839
|
-
async function $
|
|
61695
|
+
async function $do74(client, request, options) {
|
|
60840
61696
|
const parsed = safeParse(
|
|
60841
61697
|
request,
|
|
60842
|
-
(value) =>
|
|
61698
|
+
(value) => z187.parse(RedeemRewardCodeParams$outboundSchema, value),
|
|
60843
61699
|
"Input validation failed"
|
|
60844
61700
|
);
|
|
60845
61701
|
if (!parsed.ok) {
|
|
@@ -60906,18 +61762,18 @@ async function $do73(client, request, options) {
|
|
|
60906
61762
|
}
|
|
60907
61763
|
|
|
60908
61764
|
// ../sdk/src/funcs/rewards-update.ts
|
|
60909
|
-
var
|
|
61765
|
+
var z188 = __toESM(require("zod/v4-mini"), 1);
|
|
60910
61766
|
function rewardsUpdate(client, request, options) {
|
|
60911
|
-
return new APIPromise($
|
|
61767
|
+
return new APIPromise($do75(
|
|
60912
61768
|
client,
|
|
60913
61769
|
request,
|
|
60914
61770
|
options
|
|
60915
61771
|
));
|
|
60916
61772
|
}
|
|
60917
|
-
async function $
|
|
61773
|
+
async function $do75(client, request, options) {
|
|
60918
61774
|
const parsed = safeParse(
|
|
60919
61775
|
request,
|
|
60920
|
-
(value) =>
|
|
61776
|
+
(value) => z188.parse(UpdateRewardParams$outboundSchema, value),
|
|
60921
61777
|
"Input validation failed"
|
|
60922
61778
|
);
|
|
60923
61779
|
if (!parsed.ok) {
|
|
@@ -61048,18 +61904,18 @@ var Rewards = class extends ClientSDK {
|
|
|
61048
61904
|
};
|
|
61049
61905
|
|
|
61050
61906
|
// ../sdk/src/funcs/sandboxes-create.ts
|
|
61051
|
-
var
|
|
61907
|
+
var z189 = __toESM(require("zod/v4-mini"), 1);
|
|
61052
61908
|
function sandboxesCreate(client, request, options) {
|
|
61053
|
-
return new APIPromise($
|
|
61909
|
+
return new APIPromise($do76(
|
|
61054
61910
|
client,
|
|
61055
61911
|
request,
|
|
61056
61912
|
options
|
|
61057
61913
|
));
|
|
61058
61914
|
}
|
|
61059
|
-
async function $
|
|
61915
|
+
async function $do76(client, request, options) {
|
|
61060
61916
|
const parsed = safeParse(
|
|
61061
61917
|
request,
|
|
61062
|
-
(value) =>
|
|
61918
|
+
(value) => z189.parse(CreateSandboxParams$outboundSchema, value),
|
|
61063
61919
|
"Input validation failed"
|
|
61064
61920
|
);
|
|
61065
61921
|
if (!parsed.ok) {
|
|
@@ -61126,18 +61982,18 @@ async function $do75(client, request, options) {
|
|
|
61126
61982
|
}
|
|
61127
61983
|
|
|
61128
61984
|
// ../sdk/src/funcs/sandboxes-delete.ts
|
|
61129
|
-
var
|
|
61985
|
+
var z190 = __toESM(require("zod/v4-mini"), 1);
|
|
61130
61986
|
function sandboxesDelete(client, request, options) {
|
|
61131
|
-
return new APIPromise($
|
|
61987
|
+
return new APIPromise($do77(
|
|
61132
61988
|
client,
|
|
61133
61989
|
request,
|
|
61134
61990
|
options
|
|
61135
61991
|
));
|
|
61136
61992
|
}
|
|
61137
|
-
async function $
|
|
61993
|
+
async function $do77(client, request, options) {
|
|
61138
61994
|
const parsed = safeParse(
|
|
61139
61995
|
request,
|
|
61140
|
-
(value) =>
|
|
61996
|
+
(value) => z190.parse(DeleteSandboxParams$outboundSchema, value),
|
|
61141
61997
|
"Input validation failed"
|
|
61142
61998
|
);
|
|
61143
61999
|
if (!parsed.ok) {
|
|
@@ -61205,13 +62061,13 @@ async function $do76(client, request, options) {
|
|
|
61205
62061
|
|
|
61206
62062
|
// ../sdk/src/funcs/sandboxes-list.ts
|
|
61207
62063
|
function sandboxesList(client, _request, options) {
|
|
61208
|
-
return new APIPromise($
|
|
62064
|
+
return new APIPromise($do78(
|
|
61209
62065
|
client,
|
|
61210
62066
|
_request,
|
|
61211
62067
|
options
|
|
61212
62068
|
));
|
|
61213
62069
|
}
|
|
61214
|
-
async function $
|
|
62070
|
+
async function $do78(client, _request, options) {
|
|
61215
62071
|
const path = pathToFunc("/v1/sandboxes.list")();
|
|
61216
62072
|
const headers = new Headers(compactMap({
|
|
61217
62073
|
"Content-Type": "application/json",
|
|
@@ -61271,13 +62127,13 @@ async function $do77(client, _request, options) {
|
|
|
61271
62127
|
|
|
61272
62128
|
// ../sdk/src/funcs/sandboxes-reset.ts
|
|
61273
62129
|
function sandboxesReset(client, _request, options) {
|
|
61274
|
-
return new APIPromise($
|
|
62130
|
+
return new APIPromise($do79(
|
|
61275
62131
|
client,
|
|
61276
62132
|
_request,
|
|
61277
62133
|
options
|
|
61278
62134
|
));
|
|
61279
62135
|
}
|
|
61280
|
-
async function $
|
|
62136
|
+
async function $do79(client, _request, options) {
|
|
61281
62137
|
const path = pathToFunc("/v1/sandboxes.reset")();
|
|
61282
62138
|
const headers = new Headers(compactMap({
|
|
61283
62139
|
"Content-Type": "application/json",
|
|
@@ -61380,18 +62236,18 @@ var Sandboxes = class extends ClientSDK {
|
|
|
61380
62236
|
};
|
|
61381
62237
|
|
|
61382
62238
|
// ../sdk/src/funcs/webhooks-create.ts
|
|
61383
|
-
var
|
|
62239
|
+
var z191 = __toESM(require("zod/v4-mini"), 1);
|
|
61384
62240
|
function webhooksCreate(client, request, options) {
|
|
61385
|
-
return new APIPromise($
|
|
62241
|
+
return new APIPromise($do80(
|
|
61386
62242
|
client,
|
|
61387
62243
|
request,
|
|
61388
62244
|
options
|
|
61389
62245
|
));
|
|
61390
62246
|
}
|
|
61391
|
-
async function $
|
|
62247
|
+
async function $do80(client, request, options) {
|
|
61392
62248
|
const parsed = safeParse(
|
|
61393
62249
|
request,
|
|
61394
|
-
(value) =>
|
|
62250
|
+
(value) => z191.parse(CreateWebhookParams$outboundSchema, value),
|
|
61395
62251
|
"Input validation failed"
|
|
61396
62252
|
);
|
|
61397
62253
|
if (!parsed.ok) {
|
|
@@ -61458,18 +62314,18 @@ async function $do79(client, request, options) {
|
|
|
61458
62314
|
}
|
|
61459
62315
|
|
|
61460
62316
|
// ../sdk/src/funcs/webhooks-delete.ts
|
|
61461
|
-
var
|
|
62317
|
+
var z192 = __toESM(require("zod/v4-mini"), 1);
|
|
61462
62318
|
function webhooksDelete(client, request, options) {
|
|
61463
|
-
return new APIPromise($
|
|
62319
|
+
return new APIPromise($do81(
|
|
61464
62320
|
client,
|
|
61465
62321
|
request,
|
|
61466
62322
|
options
|
|
61467
62323
|
));
|
|
61468
62324
|
}
|
|
61469
|
-
async function $
|
|
62325
|
+
async function $do81(client, request, options) {
|
|
61470
62326
|
const parsed = safeParse(
|
|
61471
62327
|
request,
|
|
61472
|
-
(value) =>
|
|
62328
|
+
(value) => z192.parse(DeleteWebhookParams$outboundSchema, value),
|
|
61473
62329
|
"Input validation failed"
|
|
61474
62330
|
);
|
|
61475
62331
|
if (!parsed.ok) {
|
|
@@ -61536,18 +62392,18 @@ async function $do80(client, request, options) {
|
|
|
61536
62392
|
}
|
|
61537
62393
|
|
|
61538
62394
|
// ../sdk/src/funcs/webhooks-get.ts
|
|
61539
|
-
var
|
|
62395
|
+
var z193 = __toESM(require("zod/v4-mini"), 1);
|
|
61540
62396
|
function webhooksGet(client, request, options) {
|
|
61541
|
-
return new APIPromise($
|
|
62397
|
+
return new APIPromise($do82(
|
|
61542
62398
|
client,
|
|
61543
62399
|
request,
|
|
61544
62400
|
options
|
|
61545
62401
|
));
|
|
61546
62402
|
}
|
|
61547
|
-
async function $
|
|
62403
|
+
async function $do82(client, request, options) {
|
|
61548
62404
|
const parsed = safeParse(
|
|
61549
62405
|
request,
|
|
61550
|
-
(value) =>
|
|
62406
|
+
(value) => z193.parse(GetWebhookParams$outboundSchema, value),
|
|
61551
62407
|
"Input validation failed"
|
|
61552
62408
|
);
|
|
61553
62409
|
if (!parsed.ok) {
|
|
@@ -61615,13 +62471,13 @@ async function $do81(client, request, options) {
|
|
|
61615
62471
|
|
|
61616
62472
|
// ../sdk/src/funcs/webhooks-list.ts
|
|
61617
62473
|
function webhooksList(client, _request, options) {
|
|
61618
|
-
return new APIPromise($
|
|
62474
|
+
return new APIPromise($do83(
|
|
61619
62475
|
client,
|
|
61620
62476
|
_request,
|
|
61621
62477
|
options
|
|
61622
62478
|
));
|
|
61623
62479
|
}
|
|
61624
|
-
async function $
|
|
62480
|
+
async function $do83(client, _request, options) {
|
|
61625
62481
|
const path = pathToFunc("/v1/webhooks.list")();
|
|
61626
62482
|
const headers = new Headers(compactMap({
|
|
61627
62483
|
"Content-Type": "application/json",
|
|
@@ -61680,18 +62536,18 @@ async function $do82(client, _request, options) {
|
|
|
61680
62536
|
}
|
|
61681
62537
|
|
|
61682
62538
|
// ../sdk/src/funcs/webhooks-preview-sync.ts
|
|
61683
|
-
var
|
|
62539
|
+
var z194 = __toESM(require("zod/v4-mini"), 1);
|
|
61684
62540
|
function webhooksPreviewSync(client, request, options) {
|
|
61685
|
-
return new APIPromise($
|
|
62541
|
+
return new APIPromise($do84(
|
|
61686
62542
|
client,
|
|
61687
62543
|
request,
|
|
61688
62544
|
options
|
|
61689
62545
|
));
|
|
61690
62546
|
}
|
|
61691
|
-
async function $
|
|
62547
|
+
async function $do84(client, request, options) {
|
|
61692
62548
|
const parsed = safeParse(
|
|
61693
62549
|
request,
|
|
61694
|
-
(value) =>
|
|
62550
|
+
(value) => z194.parse(
|
|
61695
62551
|
PreviewSyncWebhooksSyncWebhooksParams$outboundSchema,
|
|
61696
62552
|
value
|
|
61697
62553
|
),
|
|
@@ -61761,18 +62617,18 @@ async function $do83(client, request, options) {
|
|
|
61761
62617
|
}
|
|
61762
62618
|
|
|
61763
62619
|
// ../sdk/src/funcs/webhooks-sync.ts
|
|
61764
|
-
var
|
|
62620
|
+
var z195 = __toESM(require("zod/v4-mini"), 1);
|
|
61765
62621
|
function webhooksSync(client, request, options) {
|
|
61766
|
-
return new APIPromise($
|
|
62622
|
+
return new APIPromise($do85(
|
|
61767
62623
|
client,
|
|
61768
62624
|
request,
|
|
61769
62625
|
options
|
|
61770
62626
|
));
|
|
61771
62627
|
}
|
|
61772
|
-
async function $
|
|
62628
|
+
async function $do85(client, request, options) {
|
|
61773
62629
|
const parsed = safeParse(
|
|
61774
62630
|
request,
|
|
61775
|
-
(value) =>
|
|
62631
|
+
(value) => z195.parse(SyncWebhooksSyncWebhooksParams$outboundSchema, value),
|
|
61776
62632
|
"Input validation failed"
|
|
61777
62633
|
);
|
|
61778
62634
|
if (!parsed.ok) {
|
|
@@ -61839,18 +62695,18 @@ async function $do84(client, request, options) {
|
|
|
61839
62695
|
}
|
|
61840
62696
|
|
|
61841
62697
|
// ../sdk/src/funcs/webhooks-update.ts
|
|
61842
|
-
var
|
|
62698
|
+
var z196 = __toESM(require("zod/v4-mini"), 1);
|
|
61843
62699
|
function webhooksUpdate(client, request, options) {
|
|
61844
|
-
return new APIPromise($
|
|
62700
|
+
return new APIPromise($do86(
|
|
61845
62701
|
client,
|
|
61846
62702
|
request,
|
|
61847
62703
|
options
|
|
61848
62704
|
));
|
|
61849
62705
|
}
|
|
61850
|
-
async function $
|
|
62706
|
+
async function $do86(client, request, options) {
|
|
61851
62707
|
const parsed = safeParse(
|
|
61852
62708
|
request,
|
|
61853
|
-
(value) =>
|
|
62709
|
+
(value) => z196.parse(UpdateWebhookParams$outboundSchema, value),
|
|
61854
62710
|
"Input validation failed"
|
|
61855
62711
|
);
|
|
61856
62712
|
if (!parsed.ok) {
|