autumn-js 1.3.27 → 1.3.29
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 +1243 -377
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.js +1243 -377
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.js +1243 -377
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.js +1243 -377
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.js +1243 -377
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{chunk-GQ5KLVRT.mjs → chunk-LNCFTS4P.mjs} +5 -5
- package/dist/backend/{chunk-BMOQW4NQ.mjs → chunk-LUP2PZTI.mjs} +1 -1
- package/dist/backend/{chunk-JEDV5ITW.mjs → chunk-QRJFDPO4.mjs} +1243 -377
- package/dist/backend/{chunk-EARUIF5Q.mjs → chunk-TV57CESJ.mjs} +7 -7
- package/dist/backend/{chunk-OGY6VQFQ.mjs → chunk-VWYHQY72.mjs} +1 -1
- package/dist/backend/{chunk-SLKIMK3F.mjs → chunk-Z4JJWIZV.mjs} +1 -1
- package/dist/backend/{chunk-RV6S5BLJ.mjs → chunk-ZHAWOIRN.mjs} +1 -1
- 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 +1243 -377
- package/dist/backend/core/handlers/coreHandler.mjs +7 -7
- 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 +2 -2
- package/dist/backend/core/handlers/handleRouteByName.js +1243 -377
- package/dist/backend/core/handlers/handleRouteByName.mjs +5 -5
- 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 +1243 -377
- 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 +1243 -377
- package/dist/backend/core/index.mjs +12 -12
- 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 +2 -2
- 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 +2 -2
- 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 +5 -5
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +1243 -377
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-DMd68zE-.d.ts → routeTypes-DoJj_pOC.d.ts} +896 -60
- package/dist/backend/{routeTypes-DEdA0wMx.d.mts → routeTypes-fIoCsrzJ.d.mts} +896 -60
- package/dist/better-auth/{chunk-Z56SHXX3.mjs → chunk-FOW6KLFG.mjs} +1243 -377
- package/dist/better-auth/index.js +1243 -377
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +1243 -377
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +1243 -377
- 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 +1183 -152
- package/dist/sdk/index.d.ts +1183 -152
- package/dist/sdk/index.js +1446 -211
- package/dist/sdk/index.mjs +1311 -212
- package/package.json +2 -2
- package/dist/backend/{chunk-G3VGTFCP.mjs → chunk-IQQQ5P6R.mjs} +4 -4
- package/dist/backend/{chunk-OVAKKRI6.mjs → chunk-MOHYGUMA.mjs} +3 -3
|
@@ -248,7 +248,7 @@ function isAbortError(err) {
|
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
// ../sdk/src/funcs/batch-track.ts
|
|
251
|
-
var
|
|
251
|
+
var z118 = __toESM(require("zod/v4-mini"), 1);
|
|
252
252
|
|
|
253
253
|
// ../sdk/src/lib/base64.ts
|
|
254
254
|
var z = __toESM(require("zod/v4-mini"), 1);
|
|
@@ -3031,7 +3031,8 @@ var AttachIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
3031
3031
|
};
|
|
3032
3032
|
var AttachProrationBehavior = {
|
|
3033
3033
|
ProrateImmediately: "prorate_immediately",
|
|
3034
|
-
None: "none"
|
|
3034
|
+
None: "none",
|
|
3035
|
+
BillDifference: "bill_difference"
|
|
3035
3036
|
};
|
|
3036
3037
|
var AttachRedirectMode = {
|
|
3037
3038
|
Always: "always",
|
|
@@ -4134,6 +4135,7 @@ var RequestBody$outboundSchema = z16.pipe(
|
|
|
4134
4135
|
eventName: z16.optional(z16.string()),
|
|
4135
4136
|
value: z16.optional(z16.number()),
|
|
4136
4137
|
properties: z16.optional(z16.record(z16.string(), z16.any())),
|
|
4138
|
+
idempotencyKey: z16.optional(z16.string()),
|
|
4137
4139
|
timestamp: z16.optional(z16.int()),
|
|
4138
4140
|
overageBehavior: z16.optional(BatchTrackOverageBehavior$outboundSchema),
|
|
4139
4141
|
async: z16.optional(z16.boolean()),
|
|
@@ -4145,13 +4147,21 @@ var RequestBody$outboundSchema = z16.pipe(
|
|
|
4145
4147
|
featureId: "feature_id",
|
|
4146
4148
|
entityId: "entity_id",
|
|
4147
4149
|
eventName: "event_name",
|
|
4150
|
+
idempotencyKey: "idempotency_key",
|
|
4148
4151
|
overageBehavior: "overage_behavior"
|
|
4149
4152
|
});
|
|
4150
4153
|
})
|
|
4151
4154
|
);
|
|
4152
|
-
var
|
|
4155
|
+
var BatchTrackResponseBody2$inboundSchema = z16.object({
|
|
4153
4156
|
success: literal3(true)
|
|
4154
4157
|
});
|
|
4158
|
+
var BatchTrackResponseBody1$inboundSchema = z16.object({
|
|
4159
|
+
success: literal3(true)
|
|
4160
|
+
});
|
|
4161
|
+
var BatchTrackResponse$inboundSchema = smartUnion([
|
|
4162
|
+
z16.lazy(() => BatchTrackResponseBody1$inboundSchema),
|
|
4163
|
+
z16.lazy(() => BatchTrackResponseBody2$inboundSchema)
|
|
4164
|
+
]);
|
|
4155
4165
|
|
|
4156
4166
|
// ../sdk/src/models/billing-update-response.ts
|
|
4157
4167
|
var z18 = __toESM(require("zod/v4-mini"), 1);
|
|
@@ -5646,7 +5656,8 @@ var BillingUpdateIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
5646
5656
|
};
|
|
5647
5657
|
var BillingUpdateProrationBehavior = {
|
|
5648
5658
|
ProrateImmediately: "prorate_immediately",
|
|
5649
|
-
None: "none"
|
|
5659
|
+
None: "none",
|
|
5660
|
+
BillDifference: "bill_difference"
|
|
5650
5661
|
};
|
|
5651
5662
|
var BillingUpdateRedirectMode = {
|
|
5652
5663
|
Always: "always",
|
|
@@ -16500,10 +16511,10 @@ var CreateSandboxResponse$inboundSchema = z33.pipe(
|
|
|
16500
16511
|
// ../sdk/src/models/create-schedule-response.ts
|
|
16501
16512
|
var z36 = __toESM(require("zod/v4-mini"), 1);
|
|
16502
16513
|
|
|
16503
|
-
// ../sdk/src/models/phase-start-
|
|
16514
|
+
// ../sdk/src/models/phase-start-add-item-feature-override.ts
|
|
16504
16515
|
var z35 = __toESM(require("zod/v4-mini"), 1);
|
|
16505
16516
|
|
|
16506
|
-
// ../sdk/src/models/unscheduled-plan-upsert-license-
|
|
16517
|
+
// ../sdk/src/models/unscheduled-plan-upsert-license-proration.ts
|
|
16507
16518
|
var z34 = __toESM(require("zod/v4-mini"), 1);
|
|
16508
16519
|
var CreateScheduleFreeTrialDurationType = {
|
|
16509
16520
|
Day: "day",
|
|
@@ -16521,7 +16532,8 @@ var CreateScheduleRedirectMode = {
|
|
|
16521
16532
|
};
|
|
16522
16533
|
var CreateScheduleBillingBehavior = {
|
|
16523
16534
|
ProrateImmediately: "prorate_immediately",
|
|
16524
|
-
None: "none"
|
|
16535
|
+
None: "none",
|
|
16536
|
+
BillDifference: "bill_difference"
|
|
16525
16537
|
};
|
|
16526
16538
|
var PriceUnscheduledPlanInterval = {
|
|
16527
16539
|
OneOff: "one_off",
|
|
@@ -16752,10 +16764,6 @@ var UnscheduledPlanUpsertLicenseOnDecrease = {
|
|
|
16752
16764
|
None: "none",
|
|
16753
16765
|
NoProrations: "no_prorations"
|
|
16754
16766
|
};
|
|
16755
|
-
var UnscheduledPlanUpsertLicenseExpiryDurationType = {
|
|
16756
|
-
Month: "month",
|
|
16757
|
-
Forever: "forever"
|
|
16758
|
-
};
|
|
16759
16767
|
var CreateScheduleFreeTrialDurationType$outboundSchema = z34.enum(CreateScheduleFreeTrialDurationType);
|
|
16760
16768
|
var CreateScheduleOnEnd$outboundSchema = z34.enum(CreateScheduleOnEnd);
|
|
16761
16769
|
var CreateScheduleFreeTrialParams$outboundSchema = z34.pipe(
|
|
@@ -16819,6 +16827,17 @@ var UnscheduledPlanFeatureQuantity$outboundSchema = z34.pipe(
|
|
|
16819
16827
|
});
|
|
16820
16828
|
})
|
|
16821
16829
|
);
|
|
16830
|
+
var UnscheduledPlanLicenseQuantity$outboundSchema = z34.pipe(
|
|
16831
|
+
z34.object({
|
|
16832
|
+
licensePlanId: z34.string(),
|
|
16833
|
+
quantity: z34.int()
|
|
16834
|
+
}),
|
|
16835
|
+
z34.transform((v) => {
|
|
16836
|
+
return remap(v, {
|
|
16837
|
+
licensePlanId: "license_plan_id"
|
|
16838
|
+
});
|
|
16839
|
+
})
|
|
16840
|
+
);
|
|
16822
16841
|
var PriceUnscheduledPlanInterval$outboundSchema = z34.enum(PriceUnscheduledPlanInterval);
|
|
16823
16842
|
var UnscheduledPlanAdditionalCurrency$outboundSchema = z34.object({
|
|
16824
16843
|
currency: z34.string(),
|
|
@@ -17963,11 +17982,12 @@ var UnscheduledPlanUpsertLicenseProration$outboundSchema = z34.pipe(
|
|
|
17963
17982
|
});
|
|
17964
17983
|
})
|
|
17965
17984
|
);
|
|
17966
|
-
var UnscheduledPlanUpsertLicenseExpiryDurationType$outboundSchema = z34.enum(
|
|
17967
|
-
UnscheduledPlanUpsertLicenseExpiryDurationType
|
|
17968
|
-
);
|
|
17969
17985
|
|
|
17970
|
-
// ../sdk/src/models/phase-start-
|
|
17986
|
+
// ../sdk/src/models/phase-start-add-item-feature-override.ts
|
|
17987
|
+
var UnscheduledPlanUpsertLicenseExpiryDurationType = {
|
|
17988
|
+
Month: "month",
|
|
17989
|
+
Forever: "forever"
|
|
17990
|
+
};
|
|
17971
17991
|
var UnscheduledPlanUpsertLicenseDuration = {
|
|
17972
17992
|
Day: "day",
|
|
17973
17993
|
Week: "week",
|
|
@@ -18136,10 +18156,9 @@ var PhaseStartDimensionsToAddItemEnum1 = {
|
|
|
18136
18156
|
var PhaseStartToAddItemEnum = {
|
|
18137
18157
|
Inf: "inf"
|
|
18138
18158
|
};
|
|
18139
|
-
var
|
|
18140
|
-
|
|
18141
|
-
|
|
18142
|
-
};
|
|
18159
|
+
var UnscheduledPlanUpsertLicenseExpiryDurationType$outboundSchema = z35.enum(
|
|
18160
|
+
UnscheduledPlanUpsertLicenseExpiryDurationType
|
|
18161
|
+
);
|
|
18143
18162
|
var UnscheduledPlanUpsertLicenseRollover$outboundSchema = z35.pipe(
|
|
18144
18163
|
z35.object({
|
|
18145
18164
|
max: z35.optional(z35.number()),
|
|
@@ -18575,6 +18594,9 @@ var UnscheduledPlan$outboundSchema = z35.pipe(
|
|
|
18575
18594
|
featureQuantities: z35.optional(
|
|
18576
18595
|
z35.array(UnscheduledPlanFeatureQuantity$outboundSchema)
|
|
18577
18596
|
),
|
|
18597
|
+
licenseQuantities: z35.optional(
|
|
18598
|
+
z35.array(UnscheduledPlanLicenseQuantity$outboundSchema)
|
|
18599
|
+
),
|
|
18578
18600
|
version: z35.optional(z35.number()),
|
|
18579
18601
|
customize: z35.optional(
|
|
18580
18602
|
z35.lazy(() => UnscheduledPlanCustomize$outboundSchema)
|
|
@@ -18586,6 +18608,7 @@ var UnscheduledPlan$outboundSchema = z35.pipe(
|
|
|
18586
18608
|
planId: "plan_id",
|
|
18587
18609
|
entityId: "entity_id",
|
|
18588
18610
|
featureQuantities: "feature_quantities",
|
|
18611
|
+
licenseQuantities: "license_quantities",
|
|
18589
18612
|
subscriptionId: "subscription_id"
|
|
18590
18613
|
});
|
|
18591
18614
|
})
|
|
@@ -18616,6 +18639,17 @@ var PhaseStartFeatureQuantity$outboundSchema = z35.pipe(
|
|
|
18616
18639
|
});
|
|
18617
18640
|
})
|
|
18618
18641
|
);
|
|
18642
|
+
var PhaseStartLicenseQuantity$outboundSchema = z35.pipe(
|
|
18643
|
+
z35.object({
|
|
18644
|
+
licensePlanId: z35.string(),
|
|
18645
|
+
quantity: z35.int()
|
|
18646
|
+
}),
|
|
18647
|
+
z35.transform((v) => {
|
|
18648
|
+
return remap(v, {
|
|
18649
|
+
licensePlanId: "license_plan_id"
|
|
18650
|
+
});
|
|
18651
|
+
})
|
|
18652
|
+
);
|
|
18619
18653
|
var PhaseStartPriceInterval$outboundSchema = z35.enum(PhaseStartPriceInterval);
|
|
18620
18654
|
var PhaseStartAdditionalCurrency$outboundSchema = z35.object({
|
|
18621
18655
|
currency: z35.string(),
|
|
@@ -19391,41 +19425,12 @@ var PhaseStartAddItemFeatureOverride$outboundSchema = z35.pipe(
|
|
|
19391
19425
|
});
|
|
19392
19426
|
})
|
|
19393
19427
|
);
|
|
19394
|
-
var PhaseStartAddItemPlanItem$outboundSchema = z35.pipe(
|
|
19395
|
-
z35.object({
|
|
19396
|
-
thresholdBilling: z35.optional(
|
|
19397
|
-
z35.nullable(
|
|
19398
|
-
z35.lazy(() => PhaseStartAddItemThresholdBilling$outboundSchema)
|
|
19399
|
-
)
|
|
19400
|
-
),
|
|
19401
|
-
featureId: z35.string(),
|
|
19402
|
-
included: z35.optional(z35.number()),
|
|
19403
|
-
unlimited: z35.optional(z35.boolean()),
|
|
19404
|
-
pooled: z35._default(z35.boolean(), false),
|
|
19405
|
-
reset: z35.optional(z35.lazy(() => PhaseStartAddItemReset$outboundSchema)),
|
|
19406
|
-
price: z35.optional(z35.lazy(() => PhaseStartAddItemPrice$outboundSchema)),
|
|
19407
|
-
proration: z35.optional(
|
|
19408
|
-
z35.lazy(() => PhaseStartAddItemProration$outboundSchema)
|
|
19409
|
-
),
|
|
19410
|
-
rollover: z35.optional(
|
|
19411
|
-
z35.lazy(() => PhaseStartAddItemRollover$outboundSchema)
|
|
19412
|
-
),
|
|
19413
|
-
expiry: z35.optional(z35.lazy(() => PhaseStartAddItemExpiry$outboundSchema)),
|
|
19414
|
-
featureOverride: z35.optional(
|
|
19415
|
-
z35.lazy(() => PhaseStartAddItemFeatureOverride$outboundSchema)
|
|
19416
|
-
)
|
|
19417
|
-
}),
|
|
19418
|
-
z35.transform((v) => {
|
|
19419
|
-
return remap(v, {
|
|
19420
|
-
thresholdBilling: "threshold_billing",
|
|
19421
|
-
featureId: "feature_id",
|
|
19422
|
-
featureOverride: "feature_override"
|
|
19423
|
-
});
|
|
19424
|
-
})
|
|
19425
|
-
);
|
|
19426
|
-
var PhaseStartRemoveItemBillingMethod$outboundSchema = z35.enum(PhaseStartRemoveItemBillingMethod);
|
|
19427
19428
|
|
|
19428
19429
|
// ../sdk/src/models/create-schedule-response.ts
|
|
19430
|
+
var PhaseStartRemoveItemBillingMethod = {
|
|
19431
|
+
Prepaid: "prepaid",
|
|
19432
|
+
UsageBased: "usage_based"
|
|
19433
|
+
};
|
|
19429
19434
|
var PhaseStartIntervalRemoveItemEnum2 = {
|
|
19430
19435
|
OneOff: "one_off",
|
|
19431
19436
|
Minute: "minute",
|
|
@@ -19574,6 +19579,33 @@ var CreateScheduleCode = {
|
|
|
19574
19579
|
PaymentFailed: "payment_failed",
|
|
19575
19580
|
PaymentProcessing: "payment_processing"
|
|
19576
19581
|
};
|
|
19582
|
+
var PhaseStartAddItemPlanItem$outboundSchema = z36.pipe(
|
|
19583
|
+
z36.object({
|
|
19584
|
+
thresholdBilling: z36.optional(
|
|
19585
|
+
z36.nullable(PhaseStartAddItemThresholdBilling$outboundSchema)
|
|
19586
|
+
),
|
|
19587
|
+
featureId: z36.string(),
|
|
19588
|
+
included: z36.optional(z36.number()),
|
|
19589
|
+
unlimited: z36.optional(z36.boolean()),
|
|
19590
|
+
pooled: z36._default(z36.boolean(), false),
|
|
19591
|
+
reset: z36.optional(PhaseStartAddItemReset$outboundSchema),
|
|
19592
|
+
price: z36.optional(PhaseStartAddItemPrice$outboundSchema),
|
|
19593
|
+
proration: z36.optional(PhaseStartAddItemProration$outboundSchema),
|
|
19594
|
+
rollover: z36.optional(PhaseStartAddItemRollover$outboundSchema),
|
|
19595
|
+
expiry: z36.optional(PhaseStartAddItemExpiry$outboundSchema),
|
|
19596
|
+
featureOverride: z36.optional(
|
|
19597
|
+
PhaseStartAddItemFeatureOverride$outboundSchema
|
|
19598
|
+
)
|
|
19599
|
+
}),
|
|
19600
|
+
z36.transform((v) => {
|
|
19601
|
+
return remap(v, {
|
|
19602
|
+
thresholdBilling: "threshold_billing",
|
|
19603
|
+
featureId: "feature_id",
|
|
19604
|
+
featureOverride: "feature_override"
|
|
19605
|
+
});
|
|
19606
|
+
})
|
|
19607
|
+
);
|
|
19608
|
+
var PhaseStartRemoveItemBillingMethod$outboundSchema = z36.enum(PhaseStartRemoveItemBillingMethod);
|
|
19577
19609
|
var PhaseStartIntervalRemoveItemEnum2$outboundSchema = z36.enum(PhaseStartIntervalRemoveItemEnum2);
|
|
19578
19610
|
var PhaseStartIntervalRemoveItemEnum1$outboundSchema = z36.enum(PhaseStartIntervalRemoveItemEnum1);
|
|
19579
19611
|
var PhaseStartIntervalUnion$outboundSchema = smartUnion([
|
|
@@ -20254,7 +20286,9 @@ var PhaseStartCustomize$outboundSchema = z36.pipe(
|
|
|
20254
20286
|
z36.object({
|
|
20255
20287
|
price: z36.optional(z36.nullable(PhaseStartBasePrice$outboundSchema)),
|
|
20256
20288
|
items: z36.optional(z36.array(PhaseStartItemPlanItem$outboundSchema)),
|
|
20257
|
-
addItems: z36.optional(
|
|
20289
|
+
addItems: z36.optional(
|
|
20290
|
+
z36.array(z36.lazy(() => PhaseStartAddItemPlanItem$outboundSchema))
|
|
20291
|
+
),
|
|
20258
20292
|
removeItems: z36.optional(
|
|
20259
20293
|
z36.array(z36.lazy(() => PhaseStartPlanItemFilter$outboundSchema))
|
|
20260
20294
|
),
|
|
@@ -20285,6 +20319,9 @@ var CreateSchedulePlan2$outboundSchema = z36.pipe(
|
|
|
20285
20319
|
featureQuantities: z36.optional(
|
|
20286
20320
|
z36.array(PhaseStartFeatureQuantity$outboundSchema)
|
|
20287
20321
|
),
|
|
20322
|
+
licenseQuantities: z36.optional(
|
|
20323
|
+
z36.array(PhaseStartLicenseQuantity$outboundSchema)
|
|
20324
|
+
),
|
|
20288
20325
|
version: z36.optional(z36.number()),
|
|
20289
20326
|
customize: z36.optional(z36.lazy(() => PhaseStartCustomize$outboundSchema)),
|
|
20290
20327
|
subscriptionId: z36.optional(z36.string())
|
|
@@ -20294,6 +20331,7 @@ var CreateSchedulePlan2$outboundSchema = z36.pipe(
|
|
|
20294
20331
|
planId: "plan_id",
|
|
20295
20332
|
entityId: "entity_id",
|
|
20296
20333
|
featureQuantities: "feature_quantities",
|
|
20334
|
+
licenseQuantities: "license_quantities",
|
|
20297
20335
|
subscriptionId: "subscription_id"
|
|
20298
20336
|
});
|
|
20299
20337
|
})
|
|
@@ -20438,7 +20476,7 @@ var CreateWebhookEvent$outboundSchema = z37.enum(CreateWebhookEvent);
|
|
|
20438
20476
|
var CreateWebhookParams$outboundSchema = z37.object({
|
|
20439
20477
|
id: z37.string(),
|
|
20440
20478
|
url: z37.string(),
|
|
20441
|
-
events: z37.array(CreateWebhookEvent$outboundSchema),
|
|
20479
|
+
events: z37.optional(z37.array(CreateWebhookEvent$outboundSchema)),
|
|
20442
20480
|
description: z37.optional(z37.string()),
|
|
20443
20481
|
disabled: z37.optional(z37.boolean())
|
|
20444
20482
|
});
|
|
@@ -34302,7 +34340,8 @@ var MultiAttachOnEnd = {
|
|
|
34302
34340
|
};
|
|
34303
34341
|
var MultiAttachBillingBehavior = {
|
|
34304
34342
|
ProrateImmediately: "prorate_immediately",
|
|
34305
|
-
None: "none"
|
|
34343
|
+
None: "none",
|
|
34344
|
+
BillDifference: "bill_difference"
|
|
34306
34345
|
};
|
|
34307
34346
|
var MultiAttachRedirectMode = {
|
|
34308
34347
|
Always: "always",
|
|
@@ -35050,7 +35089,8 @@ var MultiUpdateCancelAction = {
|
|
|
35050
35089
|
};
|
|
35051
35090
|
var MultiUpdateProrationBehavior = {
|
|
35052
35091
|
ProrateImmediately: "prorate_immediately",
|
|
35053
|
-
None: "none"
|
|
35092
|
+
None: "none",
|
|
35093
|
+
BillDifference: "bill_difference"
|
|
35054
35094
|
};
|
|
35055
35095
|
var MultiUpdateCode = {
|
|
35056
35096
|
ThreedsRequired: "3ds_required",
|
|
@@ -36744,7 +36784,8 @@ var PreviewAttachIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
36744
36784
|
};
|
|
36745
36785
|
var PreviewAttachProrationBehavior = {
|
|
36746
36786
|
ProrateImmediately: "prorate_immediately",
|
|
36747
|
-
None: "none"
|
|
36787
|
+
None: "none",
|
|
36788
|
+
BillDifference: "bill_difference"
|
|
36748
36789
|
};
|
|
36749
36790
|
var PreviewAttachRedirectMode = {
|
|
36750
36791
|
Always: "always",
|
|
@@ -37667,7 +37708,8 @@ var PreviewMultiAttachOnEnd = {
|
|
|
37667
37708
|
};
|
|
37668
37709
|
var PreviewMultiAttachBillingBehavior = {
|
|
37669
37710
|
ProrateImmediately: "prorate_immediately",
|
|
37670
|
-
None: "none"
|
|
37711
|
+
None: "none",
|
|
37712
|
+
BillDifference: "bill_difference"
|
|
37671
37713
|
};
|
|
37672
37714
|
var PreviewMultiAttachRedirectMode = {
|
|
37673
37715
|
Always: "always",
|
|
@@ -38667,7 +38709,8 @@ var PreviewMultiUpdateCancelAction = {
|
|
|
38667
38709
|
};
|
|
38668
38710
|
var PreviewMultiUpdateProrationBehavior = {
|
|
38669
38711
|
ProrateImmediately: "prorate_immediately",
|
|
38670
|
-
None: "none"
|
|
38712
|
+
None: "none",
|
|
38713
|
+
BillDifference: "bill_difference"
|
|
38671
38714
|
};
|
|
38672
38715
|
var PreviewMultiUpdateRefundLastPayment$outboundSchema = z87.enum(PreviewMultiUpdateRefundLastPayment);
|
|
38673
38716
|
var PreviewMultiUpdateCancelAction$outboundSchema = z87.enum(PreviewMultiUpdateCancelAction);
|
|
@@ -38966,7 +39009,7 @@ var PreviewSyncWebhooksEvent$outboundSchema = z88.enum(PreviewSyncWebhooksEvent)
|
|
|
38966
39009
|
var PreviewSyncWebhooksWebhookRequest$outboundSchema = z88.object({
|
|
38967
39010
|
id: z88.string(),
|
|
38968
39011
|
url: z88.string(),
|
|
38969
|
-
events: z88.array(PreviewSyncWebhooksEvent$outboundSchema),
|
|
39012
|
+
events: z88.optional(z88.array(PreviewSyncWebhooksEvent$outboundSchema)),
|
|
38970
39013
|
description: z88.optional(z88.string()),
|
|
38971
39014
|
disabled: z88.optional(z88.boolean())
|
|
38972
39015
|
});
|
|
@@ -40612,7 +40655,8 @@ var PreviewUpdateIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
40612
40655
|
};
|
|
40613
40656
|
var PreviewUpdateProrationBehavior = {
|
|
40614
40657
|
ProrateImmediately: "prorate_immediately",
|
|
40615
|
-
None: "none"
|
|
40658
|
+
None: "none",
|
|
40659
|
+
BillDifference: "bill_difference"
|
|
40616
40660
|
};
|
|
40617
40661
|
var PreviewUpdateRedirectMode = {
|
|
40618
40662
|
Always: "always",
|
|
@@ -43971,7 +44015,8 @@ var SetupPaymentIntervalUpsertLicenseRemoveItemEnum1 = {
|
|
|
43971
44015
|
};
|
|
43972
44016
|
var SetupPaymentProrationBehavior = {
|
|
43973
44017
|
ProrateImmediately: "prorate_immediately",
|
|
43974
|
-
None: "none"
|
|
44018
|
+
None: "none",
|
|
44019
|
+
BillDifference: "bill_difference"
|
|
43975
44020
|
};
|
|
43976
44021
|
var SetupPaymentUpsertLicenseDuration$outboundSchema = z100.enum(SetupPaymentUpsertLicenseDuration);
|
|
43977
44022
|
var SetupPaymentUpsertLicenseExpiry$outboundSchema = z100.object({
|
|
@@ -44630,7 +44675,7 @@ var SyncWebhooksEvent$outboundSchema = z102.enum(SyncWebhooksEvent);
|
|
|
44630
44675
|
var SyncWebhooksWebhookRequest$outboundSchema = z102.object({
|
|
44631
44676
|
id: z102.string(),
|
|
44632
44677
|
url: z102.string(),
|
|
44633
|
-
events: z102.array(SyncWebhooksEvent$outboundSchema),
|
|
44678
|
+
events: z102.optional(z102.array(SyncWebhooksEvent$outboundSchema)),
|
|
44634
44679
|
description: z102.optional(z102.string()),
|
|
44635
44680
|
disabled: z102.optional(z102.boolean())
|
|
44636
44681
|
});
|
|
@@ -53145,37 +53190,749 @@ var UpdateWebhookWebhook$inboundSchema = z115.pipe(
|
|
|
53145
53190
|
})
|
|
53146
53191
|
);
|
|
53147
53192
|
|
|
53148
|
-
// ../sdk/src/models/
|
|
53193
|
+
// ../sdk/src/models/verify-op.ts
|
|
53149
53194
|
var z116 = __toESM(require("zod/v4-mini"), 1);
|
|
53195
|
+
var CustomerMismatchSeverity12 = {
|
|
53196
|
+
Error: "error",
|
|
53197
|
+
Warning: "warning"
|
|
53198
|
+
};
|
|
53199
|
+
var CustomerMismatchSeverity11 = {
|
|
53200
|
+
Error: "error",
|
|
53201
|
+
Warning: "warning"
|
|
53202
|
+
};
|
|
53203
|
+
var CustomerMismatchSeverity10 = {
|
|
53204
|
+
Error: "error",
|
|
53205
|
+
Warning: "warning"
|
|
53206
|
+
};
|
|
53207
|
+
var CustomerMismatchSeverity9 = {
|
|
53208
|
+
Error: "error",
|
|
53209
|
+
Warning: "warning"
|
|
53210
|
+
};
|
|
53211
|
+
var CustomerMismatchSeverity8 = {
|
|
53212
|
+
Error: "error",
|
|
53213
|
+
Warning: "warning"
|
|
53214
|
+
};
|
|
53215
|
+
var CustomerMismatchSeverity7 = {
|
|
53216
|
+
Error: "error",
|
|
53217
|
+
Warning: "warning"
|
|
53218
|
+
};
|
|
53219
|
+
var CustomerMismatchSeverity6 = {
|
|
53220
|
+
Error: "error",
|
|
53221
|
+
Warning: "warning"
|
|
53222
|
+
};
|
|
53223
|
+
var CustomerMismatchSeverity5 = {
|
|
53224
|
+
Error: "error",
|
|
53225
|
+
Warning: "warning"
|
|
53226
|
+
};
|
|
53227
|
+
var CustomerMismatchReason3 = {
|
|
53228
|
+
MissingSchedule: "missing_schedule",
|
|
53229
|
+
UnexpectedSchedule: "unexpected_schedule",
|
|
53230
|
+
PhaseCountMismatch: "phase_count_mismatch",
|
|
53231
|
+
PhaseStartMismatch: "phase_start_mismatch",
|
|
53232
|
+
BillingCycleAnchorMismatch: "billing_cycle_anchor_mismatch"
|
|
53233
|
+
};
|
|
53234
|
+
var CustomerMismatchSeverity4 = {
|
|
53235
|
+
Error: "error",
|
|
53236
|
+
Warning: "warning"
|
|
53237
|
+
};
|
|
53238
|
+
var CustomerMismatchSeverity3 = {
|
|
53239
|
+
Error: "error",
|
|
53240
|
+
Warning: "warning"
|
|
53241
|
+
};
|
|
53242
|
+
var CustomerMismatchSeverity2 = {
|
|
53243
|
+
Error: "error",
|
|
53244
|
+
Warning: "warning"
|
|
53245
|
+
};
|
|
53246
|
+
var CustomerMismatchReason2 = {
|
|
53247
|
+
Missing: "missing",
|
|
53248
|
+
Unexpected: "unexpected",
|
|
53249
|
+
QuantityMismatch: "quantity_mismatch",
|
|
53250
|
+
PriceMismatch: "price_mismatch"
|
|
53251
|
+
};
|
|
53252
|
+
var CustomerMismatchPriceType = {
|
|
53253
|
+
Usage: "usage",
|
|
53254
|
+
Prepaid: "prepaid",
|
|
53255
|
+
Allocated: "allocated",
|
|
53256
|
+
Fixed: "fixed"
|
|
53257
|
+
};
|
|
53258
|
+
var CustomerMismatchSeverity1 = {
|
|
53259
|
+
Error: "error",
|
|
53260
|
+
Warning: "warning"
|
|
53261
|
+
};
|
|
53262
|
+
var CustomerMismatchReason1 = {
|
|
53263
|
+
Missing: "missing",
|
|
53264
|
+
Unexpected: "unexpected",
|
|
53265
|
+
AmountMismatch: "amount_mismatch"
|
|
53266
|
+
};
|
|
53267
|
+
var VerifyStatus = {
|
|
53268
|
+
Correct: "correct",
|
|
53269
|
+
Mismatched: "mismatched"
|
|
53270
|
+
};
|
|
53271
|
+
var MismatchSeverity12 = {
|
|
53272
|
+
Error: "error",
|
|
53273
|
+
Warning: "warning"
|
|
53274
|
+
};
|
|
53275
|
+
var MismatchSeverity11 = {
|
|
53276
|
+
Error: "error",
|
|
53277
|
+
Warning: "warning"
|
|
53278
|
+
};
|
|
53279
|
+
var MismatchSeverity10 = {
|
|
53280
|
+
Error: "error",
|
|
53281
|
+
Warning: "warning"
|
|
53282
|
+
};
|
|
53283
|
+
var MismatchSeverity9 = {
|
|
53284
|
+
Error: "error",
|
|
53285
|
+
Warning: "warning"
|
|
53286
|
+
};
|
|
53287
|
+
var MismatchSeverity8 = {
|
|
53288
|
+
Error: "error",
|
|
53289
|
+
Warning: "warning"
|
|
53290
|
+
};
|
|
53291
|
+
var MismatchSeverity7 = {
|
|
53292
|
+
Error: "error",
|
|
53293
|
+
Warning: "warning"
|
|
53294
|
+
};
|
|
53295
|
+
var MismatchSeverity6 = {
|
|
53296
|
+
Error: "error",
|
|
53297
|
+
Warning: "warning"
|
|
53298
|
+
};
|
|
53299
|
+
var MismatchSeverity5 = {
|
|
53300
|
+
Error: "error",
|
|
53301
|
+
Warning: "warning"
|
|
53302
|
+
};
|
|
53303
|
+
var MismatchReason3 = {
|
|
53304
|
+
MissingSchedule: "missing_schedule",
|
|
53305
|
+
UnexpectedSchedule: "unexpected_schedule",
|
|
53306
|
+
PhaseCountMismatch: "phase_count_mismatch",
|
|
53307
|
+
PhaseStartMismatch: "phase_start_mismatch",
|
|
53308
|
+
BillingCycleAnchorMismatch: "billing_cycle_anchor_mismatch"
|
|
53309
|
+
};
|
|
53310
|
+
var MismatchSeverity4 = {
|
|
53311
|
+
Error: "error",
|
|
53312
|
+
Warning: "warning"
|
|
53313
|
+
};
|
|
53314
|
+
var MismatchSeverity3 = {
|
|
53315
|
+
Error: "error",
|
|
53316
|
+
Warning: "warning"
|
|
53317
|
+
};
|
|
53318
|
+
var MismatchSeverity2 = {
|
|
53319
|
+
Error: "error",
|
|
53320
|
+
Warning: "warning"
|
|
53321
|
+
};
|
|
53322
|
+
var MismatchReason2 = {
|
|
53323
|
+
Missing: "missing",
|
|
53324
|
+
Unexpected: "unexpected",
|
|
53325
|
+
QuantityMismatch: "quantity_mismatch",
|
|
53326
|
+
PriceMismatch: "price_mismatch"
|
|
53327
|
+
};
|
|
53328
|
+
var MismatchPriceType = {
|
|
53329
|
+
Usage: "usage",
|
|
53330
|
+
Prepaid: "prepaid",
|
|
53331
|
+
Allocated: "allocated",
|
|
53332
|
+
Fixed: "fixed"
|
|
53333
|
+
};
|
|
53334
|
+
var MismatchSeverity1 = {
|
|
53335
|
+
Error: "error",
|
|
53336
|
+
Warning: "warning"
|
|
53337
|
+
};
|
|
53338
|
+
var MismatchReason1 = {
|
|
53339
|
+
Missing: "missing",
|
|
53340
|
+
Unexpected: "unexpected",
|
|
53341
|
+
AmountMismatch: "amount_mismatch"
|
|
53342
|
+
};
|
|
53343
|
+
var VerifyParams$outboundSchema = z116.pipe(
|
|
53344
|
+
z116.object({
|
|
53345
|
+
customerId: z116.string(),
|
|
53346
|
+
subscriptionIds: z116.optional(z116.array(z116.string())),
|
|
53347
|
+
strict: z116.optional(z116.boolean())
|
|
53348
|
+
}),
|
|
53349
|
+
z116.transform((v) => {
|
|
53350
|
+
return remap(v, {
|
|
53351
|
+
customerId: "customer_id",
|
|
53352
|
+
subscriptionIds: "subscription_ids"
|
|
53353
|
+
});
|
|
53354
|
+
})
|
|
53355
|
+
);
|
|
53356
|
+
var CustomerMismatchSeverity12$inboundSchema = inboundSchema(CustomerMismatchSeverity12);
|
|
53357
|
+
var CustomerMismatchOtherCustomer$inboundSchema = z116.object({
|
|
53358
|
+
id: string5(),
|
|
53359
|
+
name: nullable(string5()),
|
|
53360
|
+
email: nullable(string5())
|
|
53361
|
+
});
|
|
53362
|
+
var CustomerMismatch12$inboundSchema = z116.pipe(
|
|
53363
|
+
z116.object({
|
|
53364
|
+
type: literal3("shared_stripe_customer"),
|
|
53365
|
+
message: optional3(string5()),
|
|
53366
|
+
severity: optional3(CustomerMismatchSeverity12$inboundSchema),
|
|
53367
|
+
stripe_customer_id: string5(),
|
|
53368
|
+
other_customer_ids: z116.array(string5()),
|
|
53369
|
+
other_customers: optional3(
|
|
53370
|
+
z116.array(z116.lazy(() => CustomerMismatchOtherCustomer$inboundSchema))
|
|
53371
|
+
)
|
|
53372
|
+
}),
|
|
53373
|
+
z116.transform((v) => {
|
|
53374
|
+
return remap(v, {
|
|
53375
|
+
"stripe_customer_id": "stripeCustomerId",
|
|
53376
|
+
"other_customer_ids": "otherCustomerIds",
|
|
53377
|
+
"other_customers": "otherCustomers"
|
|
53378
|
+
});
|
|
53379
|
+
})
|
|
53380
|
+
);
|
|
53381
|
+
var CustomerMismatchSeverity11$inboundSchema = inboundSchema(CustomerMismatchSeverity11);
|
|
53382
|
+
var CustomerMismatch11$inboundSchema = z116.object({
|
|
53383
|
+
type: literal3("expected_state_error"),
|
|
53384
|
+
message: optional3(string5()),
|
|
53385
|
+
severity: optional3(CustomerMismatchSeverity11$inboundSchema),
|
|
53386
|
+
error: string5()
|
|
53387
|
+
});
|
|
53388
|
+
var CustomerMismatchSeverity10$inboundSchema = inboundSchema(CustomerMismatchSeverity10);
|
|
53389
|
+
var CustomerMismatch10$inboundSchema = z116.object({
|
|
53390
|
+
type: literal3("stale_subscription_link"),
|
|
53391
|
+
message: optional3(string5()),
|
|
53392
|
+
severity: optional3(CustomerMismatchSeverity10$inboundSchema)
|
|
53393
|
+
});
|
|
53394
|
+
var CustomerMismatchSeverity9$inboundSchema = inboundSchema(CustomerMismatchSeverity9);
|
|
53395
|
+
var CustomerMismatch9$inboundSchema = z116.pipe(
|
|
53396
|
+
z116.object({
|
|
53397
|
+
type: literal3("plan_on_ending_subscription"),
|
|
53398
|
+
message: optional3(string5()),
|
|
53399
|
+
severity: optional3(CustomerMismatchSeverity9$inboundSchema),
|
|
53400
|
+
ending_subscription_id: string5()
|
|
53401
|
+
}),
|
|
53402
|
+
z116.transform((v) => {
|
|
53403
|
+
return remap(v, {
|
|
53404
|
+
"ending_subscription_id": "endingSubscriptionId"
|
|
53405
|
+
});
|
|
53406
|
+
})
|
|
53407
|
+
);
|
|
53408
|
+
var CustomerMismatchSeverity8$inboundSchema = inboundSchema(CustomerMismatchSeverity8);
|
|
53409
|
+
var CustomerMismatch8$inboundSchema = z116.object({
|
|
53410
|
+
type: literal3("stripe_sub_not_in_autumn"),
|
|
53411
|
+
message: optional3(string5()),
|
|
53412
|
+
severity: optional3(CustomerMismatchSeverity8$inboundSchema)
|
|
53413
|
+
});
|
|
53414
|
+
var CustomerMismatchSeverity7$inboundSchema = inboundSchema(CustomerMismatchSeverity7);
|
|
53415
|
+
var CustomerMismatch7$inboundSchema = z116.pipe(
|
|
53416
|
+
z116.object({
|
|
53417
|
+
type: literal3("reward_mismatch"),
|
|
53418
|
+
message: optional3(string5()),
|
|
53419
|
+
severity: optional3(CustomerMismatchSeverity7$inboundSchema),
|
|
53420
|
+
missing_reward_ids: z116.array(string5()),
|
|
53421
|
+
unexpected_reward_ids: z116.array(string5())
|
|
53422
|
+
}),
|
|
53423
|
+
z116.transform((v) => {
|
|
53424
|
+
return remap(v, {
|
|
53425
|
+
"missing_reward_ids": "missingRewardIds",
|
|
53426
|
+
"unexpected_reward_ids": "unexpectedRewardIds"
|
|
53427
|
+
});
|
|
53428
|
+
})
|
|
53429
|
+
);
|
|
53430
|
+
var CustomerMismatchSeverity6$inboundSchema = inboundSchema(CustomerMismatchSeverity6);
|
|
53431
|
+
var CustomerMismatch6$inboundSchema = z116.pipe(
|
|
53432
|
+
z116.object({
|
|
53433
|
+
type: literal3("cancel_state_mismatch"),
|
|
53434
|
+
message: optional3(string5()),
|
|
53435
|
+
severity: optional3(CustomerMismatchSeverity6$inboundSchema),
|
|
53436
|
+
expected_canceling: boolean2(),
|
|
53437
|
+
actual_canceling: boolean2()
|
|
53438
|
+
}),
|
|
53439
|
+
z116.transform((v) => {
|
|
53440
|
+
return remap(v, {
|
|
53441
|
+
"expected_canceling": "expectedCanceling",
|
|
53442
|
+
"actual_canceling": "actualCanceling"
|
|
53443
|
+
});
|
|
53444
|
+
})
|
|
53445
|
+
);
|
|
53446
|
+
var CustomerMismatchSeverity5$inboundSchema = inboundSchema(CustomerMismatchSeverity5);
|
|
53447
|
+
var CustomerMismatchReason3$inboundSchema = inboundSchema(CustomerMismatchReason3);
|
|
53448
|
+
var CustomerMismatch5$inboundSchema = z116.pipe(
|
|
53449
|
+
z116.object({
|
|
53450
|
+
type: literal3("schedule_mismatch"),
|
|
53451
|
+
message: optional3(string5()),
|
|
53452
|
+
severity: optional3(CustomerMismatchSeverity5$inboundSchema),
|
|
53453
|
+
reason: CustomerMismatchReason3$inboundSchema,
|
|
53454
|
+
expected_phase_count: optional3(number2()),
|
|
53455
|
+
actual_phase_count: optional3(number2()),
|
|
53456
|
+
actual_phase_starts_at: optional3(z116.array(number2())),
|
|
53457
|
+
phase_starts_at: optional3(number2())
|
|
53458
|
+
}),
|
|
53459
|
+
z116.transform((v) => {
|
|
53460
|
+
return remap(v, {
|
|
53461
|
+
"expected_phase_count": "expectedPhaseCount",
|
|
53462
|
+
"actual_phase_count": "actualPhaseCount",
|
|
53463
|
+
"actual_phase_starts_at": "actualPhaseStartsAt",
|
|
53464
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53465
|
+
});
|
|
53466
|
+
})
|
|
53467
|
+
);
|
|
53468
|
+
var CustomerMismatchSeverity4$inboundSchema = inboundSchema(CustomerMismatchSeverity4);
|
|
53469
|
+
var CustomerMismatch4$inboundSchema = z116.pipe(
|
|
53470
|
+
z116.object({
|
|
53471
|
+
type: literal3("prepaid_price_mismatch"),
|
|
53472
|
+
message: optional3(string5()),
|
|
53473
|
+
severity: optional3(CustomerMismatchSeverity4$inboundSchema),
|
|
53474
|
+
actual_price_id: optional3(string5()),
|
|
53475
|
+
feature_id: string5(),
|
|
53476
|
+
expected_unit_amount: string5(),
|
|
53477
|
+
actual_unit_amount: string5(),
|
|
53478
|
+
phase_starts_at: optional3(number2())
|
|
53479
|
+
}),
|
|
53480
|
+
z116.transform((v) => {
|
|
53481
|
+
return remap(v, {
|
|
53482
|
+
"actual_price_id": "actualPriceId",
|
|
53483
|
+
"feature_id": "featureId",
|
|
53484
|
+
"expected_unit_amount": "expectedUnitAmount",
|
|
53485
|
+
"actual_unit_amount": "actualUnitAmount",
|
|
53486
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53487
|
+
});
|
|
53488
|
+
})
|
|
53489
|
+
);
|
|
53490
|
+
var CustomerMismatchSeverity3$inboundSchema = inboundSchema(CustomerMismatchSeverity3);
|
|
53491
|
+
var CustomerMismatch3$inboundSchema = z116.pipe(
|
|
53492
|
+
z116.object({
|
|
53493
|
+
type: literal3("prepaid_quantity_mismatch"),
|
|
53494
|
+
message: optional3(string5()),
|
|
53495
|
+
severity: optional3(CustomerMismatchSeverity3$inboundSchema),
|
|
53496
|
+
actual_price_id: optional3(string5()),
|
|
53497
|
+
feature_id: string5(),
|
|
53498
|
+
plan_id: optional3(string5()),
|
|
53499
|
+
expected_quantity: number2(),
|
|
53500
|
+
actual_quantity: number2(),
|
|
53501
|
+
phase_starts_at: optional3(number2())
|
|
53502
|
+
}),
|
|
53503
|
+
z116.transform((v) => {
|
|
53504
|
+
return remap(v, {
|
|
53505
|
+
"actual_price_id": "actualPriceId",
|
|
53506
|
+
"feature_id": "featureId",
|
|
53507
|
+
"plan_id": "planId",
|
|
53508
|
+
"expected_quantity": "expectedQuantity",
|
|
53509
|
+
"actual_quantity": "actualQuantity",
|
|
53510
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53511
|
+
});
|
|
53512
|
+
})
|
|
53513
|
+
);
|
|
53514
|
+
var CustomerMismatchSeverity2$inboundSchema = inboundSchema(CustomerMismatchSeverity2);
|
|
53515
|
+
var CustomerMismatchReason2$inboundSchema = inboundSchema(CustomerMismatchReason2);
|
|
53516
|
+
var CustomerMismatchPriceType$inboundSchema = inboundSchema(CustomerMismatchPriceType);
|
|
53517
|
+
var CustomerMismatch2$inboundSchema = z116.pipe(
|
|
53518
|
+
z116.object({
|
|
53519
|
+
type: literal3("item_mismatch"),
|
|
53520
|
+
message: optional3(string5()),
|
|
53521
|
+
severity: optional3(CustomerMismatchSeverity2$inboundSchema),
|
|
53522
|
+
reason: CustomerMismatchReason2$inboundSchema,
|
|
53523
|
+
expected_price_id: optional3(string5()),
|
|
53524
|
+
actual_price_id: optional3(string5()),
|
|
53525
|
+
price_type: optional3(CustomerMismatchPriceType$inboundSchema),
|
|
53526
|
+
feature_id: optional3(string5()),
|
|
53527
|
+
expected_quantity: optional3(number2()),
|
|
53528
|
+
actual_quantity: optional3(number2()),
|
|
53529
|
+
plan_name: optional3(string5()),
|
|
53530
|
+
plan_id: optional3(string5()),
|
|
53531
|
+
price_amount: optional3(number2()),
|
|
53532
|
+
price_interval: optional3(string5()),
|
|
53533
|
+
price_interval_count: optional3(number2()),
|
|
53534
|
+
phase_starts_at: optional3(number2())
|
|
53535
|
+
}),
|
|
53536
|
+
z116.transform((v) => {
|
|
53537
|
+
return remap(v, {
|
|
53538
|
+
"expected_price_id": "expectedPriceId",
|
|
53539
|
+
"actual_price_id": "actualPriceId",
|
|
53540
|
+
"price_type": "priceType",
|
|
53541
|
+
"feature_id": "featureId",
|
|
53542
|
+
"expected_quantity": "expectedQuantity",
|
|
53543
|
+
"actual_quantity": "actualQuantity",
|
|
53544
|
+
"plan_name": "planName",
|
|
53545
|
+
"plan_id": "planId",
|
|
53546
|
+
"price_amount": "priceAmount",
|
|
53547
|
+
"price_interval": "priceInterval",
|
|
53548
|
+
"price_interval_count": "priceIntervalCount",
|
|
53549
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53550
|
+
});
|
|
53551
|
+
})
|
|
53552
|
+
);
|
|
53553
|
+
var CustomerMismatchSeverity1$inboundSchema = inboundSchema(CustomerMismatchSeverity1);
|
|
53554
|
+
var CustomerMismatchReason1$inboundSchema = inboundSchema(CustomerMismatchReason1);
|
|
53555
|
+
var CustomerMismatch1$inboundSchema = z116.pipe(
|
|
53556
|
+
z116.object({
|
|
53557
|
+
type: literal3("base_price_mismatch"),
|
|
53558
|
+
message: optional3(string5()),
|
|
53559
|
+
severity: optional3(CustomerMismatchSeverity1$inboundSchema),
|
|
53560
|
+
reason: CustomerMismatchReason1$inboundSchema,
|
|
53561
|
+
expected_price_id: optional3(string5()),
|
|
53562
|
+
actual_price_id: optional3(string5()),
|
|
53563
|
+
expected_amount: optional3(string5()),
|
|
53564
|
+
actual_amount: optional3(string5()),
|
|
53565
|
+
plan_name: optional3(string5()),
|
|
53566
|
+
plan_id: optional3(string5()),
|
|
53567
|
+
price_amount: optional3(number2()),
|
|
53568
|
+
price_interval: optional3(string5()),
|
|
53569
|
+
price_interval_count: optional3(number2()),
|
|
53570
|
+
expected_quantity: optional3(number2()),
|
|
53571
|
+
phase_starts_at: optional3(number2())
|
|
53572
|
+
}),
|
|
53573
|
+
z116.transform((v) => {
|
|
53574
|
+
return remap(v, {
|
|
53575
|
+
"expected_price_id": "expectedPriceId",
|
|
53576
|
+
"actual_price_id": "actualPriceId",
|
|
53577
|
+
"expected_amount": "expectedAmount",
|
|
53578
|
+
"actual_amount": "actualAmount",
|
|
53579
|
+
"plan_name": "planName",
|
|
53580
|
+
"plan_id": "planId",
|
|
53581
|
+
"price_amount": "priceAmount",
|
|
53582
|
+
"price_interval": "priceInterval",
|
|
53583
|
+
"price_interval_count": "priceIntervalCount",
|
|
53584
|
+
"expected_quantity": "expectedQuantity",
|
|
53585
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53586
|
+
});
|
|
53587
|
+
})
|
|
53588
|
+
);
|
|
53589
|
+
var CustomerMismatchUnion$inboundSchema = discriminatedUnion("type", {
|
|
53590
|
+
base_price_mismatch: z116.lazy(() => CustomerMismatch1$inboundSchema),
|
|
53591
|
+
item_mismatch: z116.lazy(() => CustomerMismatch2$inboundSchema),
|
|
53592
|
+
prepaid_quantity_mismatch: z116.lazy(() => CustomerMismatch3$inboundSchema),
|
|
53593
|
+
prepaid_price_mismatch: z116.lazy(() => CustomerMismatch4$inboundSchema),
|
|
53594
|
+
schedule_mismatch: z116.lazy(() => CustomerMismatch5$inboundSchema),
|
|
53595
|
+
cancel_state_mismatch: z116.lazy(() => CustomerMismatch6$inboundSchema),
|
|
53596
|
+
reward_mismatch: z116.lazy(() => CustomerMismatch7$inboundSchema),
|
|
53597
|
+
stripe_sub_not_in_autumn: z116.lazy(() => CustomerMismatch8$inboundSchema),
|
|
53598
|
+
plan_on_ending_subscription: z116.lazy(() => CustomerMismatch9$inboundSchema),
|
|
53599
|
+
stale_subscription_link: z116.lazy(() => CustomerMismatch10$inboundSchema),
|
|
53600
|
+
expected_state_error: z116.lazy(() => CustomerMismatch11$inboundSchema),
|
|
53601
|
+
shared_stripe_customer: z116.lazy(() => CustomerMismatch12$inboundSchema)
|
|
53602
|
+
});
|
|
53603
|
+
var VerifyStatus$inboundSchema = inboundSchema(VerifyStatus);
|
|
53604
|
+
var MismatchSeverity12$inboundSchema = inboundSchema(MismatchSeverity12);
|
|
53605
|
+
var MismatchOtherCustomer$inboundSchema = z116.object({
|
|
53606
|
+
id: string5(),
|
|
53607
|
+
name: nullable(string5()),
|
|
53608
|
+
email: nullable(string5())
|
|
53609
|
+
});
|
|
53610
|
+
var Mismatch12$inboundSchema = z116.pipe(
|
|
53611
|
+
z116.object({
|
|
53612
|
+
type: literal3("shared_stripe_customer"),
|
|
53613
|
+
message: optional3(string5()),
|
|
53614
|
+
severity: optional3(MismatchSeverity12$inboundSchema),
|
|
53615
|
+
stripe_customer_id: string5(),
|
|
53616
|
+
other_customer_ids: z116.array(string5()),
|
|
53617
|
+
other_customers: optional3(
|
|
53618
|
+
z116.array(z116.lazy(() => MismatchOtherCustomer$inboundSchema))
|
|
53619
|
+
)
|
|
53620
|
+
}),
|
|
53621
|
+
z116.transform((v) => {
|
|
53622
|
+
return remap(v, {
|
|
53623
|
+
"stripe_customer_id": "stripeCustomerId",
|
|
53624
|
+
"other_customer_ids": "otherCustomerIds",
|
|
53625
|
+
"other_customers": "otherCustomers"
|
|
53626
|
+
});
|
|
53627
|
+
})
|
|
53628
|
+
);
|
|
53629
|
+
var MismatchSeverity11$inboundSchema = inboundSchema(MismatchSeverity11);
|
|
53630
|
+
var Mismatch11$inboundSchema = z116.object({
|
|
53631
|
+
type: literal3("expected_state_error"),
|
|
53632
|
+
message: optional3(string5()),
|
|
53633
|
+
severity: optional3(MismatchSeverity11$inboundSchema),
|
|
53634
|
+
error: string5()
|
|
53635
|
+
});
|
|
53636
|
+
var MismatchSeverity10$inboundSchema = inboundSchema(MismatchSeverity10);
|
|
53637
|
+
var Mismatch10$inboundSchema = z116.object({
|
|
53638
|
+
type: literal3("stale_subscription_link"),
|
|
53639
|
+
message: optional3(string5()),
|
|
53640
|
+
severity: optional3(MismatchSeverity10$inboundSchema)
|
|
53641
|
+
});
|
|
53642
|
+
var MismatchSeverity9$inboundSchema = inboundSchema(MismatchSeverity9);
|
|
53643
|
+
var Mismatch9$inboundSchema = z116.pipe(
|
|
53644
|
+
z116.object({
|
|
53645
|
+
type: literal3("plan_on_ending_subscription"),
|
|
53646
|
+
message: optional3(string5()),
|
|
53647
|
+
severity: optional3(MismatchSeverity9$inboundSchema),
|
|
53648
|
+
ending_subscription_id: string5()
|
|
53649
|
+
}),
|
|
53650
|
+
z116.transform((v) => {
|
|
53651
|
+
return remap(v, {
|
|
53652
|
+
"ending_subscription_id": "endingSubscriptionId"
|
|
53653
|
+
});
|
|
53654
|
+
})
|
|
53655
|
+
);
|
|
53656
|
+
var MismatchSeverity8$inboundSchema = inboundSchema(MismatchSeverity8);
|
|
53657
|
+
var Mismatch8$inboundSchema = z116.object({
|
|
53658
|
+
type: literal3("stripe_sub_not_in_autumn"),
|
|
53659
|
+
message: optional3(string5()),
|
|
53660
|
+
severity: optional3(MismatchSeverity8$inboundSchema)
|
|
53661
|
+
});
|
|
53662
|
+
var MismatchSeverity7$inboundSchema = inboundSchema(MismatchSeverity7);
|
|
53663
|
+
var Mismatch7$inboundSchema = z116.pipe(
|
|
53664
|
+
z116.object({
|
|
53665
|
+
type: literal3("reward_mismatch"),
|
|
53666
|
+
message: optional3(string5()),
|
|
53667
|
+
severity: optional3(MismatchSeverity7$inboundSchema),
|
|
53668
|
+
missing_reward_ids: z116.array(string5()),
|
|
53669
|
+
unexpected_reward_ids: z116.array(string5())
|
|
53670
|
+
}),
|
|
53671
|
+
z116.transform((v) => {
|
|
53672
|
+
return remap(v, {
|
|
53673
|
+
"missing_reward_ids": "missingRewardIds",
|
|
53674
|
+
"unexpected_reward_ids": "unexpectedRewardIds"
|
|
53675
|
+
});
|
|
53676
|
+
})
|
|
53677
|
+
);
|
|
53678
|
+
var MismatchSeverity6$inboundSchema = inboundSchema(MismatchSeverity6);
|
|
53679
|
+
var Mismatch6$inboundSchema = z116.pipe(
|
|
53680
|
+
z116.object({
|
|
53681
|
+
type: literal3("cancel_state_mismatch"),
|
|
53682
|
+
message: optional3(string5()),
|
|
53683
|
+
severity: optional3(MismatchSeverity6$inboundSchema),
|
|
53684
|
+
expected_canceling: boolean2(),
|
|
53685
|
+
actual_canceling: boolean2()
|
|
53686
|
+
}),
|
|
53687
|
+
z116.transform((v) => {
|
|
53688
|
+
return remap(v, {
|
|
53689
|
+
"expected_canceling": "expectedCanceling",
|
|
53690
|
+
"actual_canceling": "actualCanceling"
|
|
53691
|
+
});
|
|
53692
|
+
})
|
|
53693
|
+
);
|
|
53694
|
+
var MismatchSeverity5$inboundSchema = inboundSchema(MismatchSeverity5);
|
|
53695
|
+
var MismatchReason3$inboundSchema = inboundSchema(MismatchReason3);
|
|
53696
|
+
var Mismatch5$inboundSchema = z116.pipe(
|
|
53697
|
+
z116.object({
|
|
53698
|
+
type: literal3("schedule_mismatch"),
|
|
53699
|
+
message: optional3(string5()),
|
|
53700
|
+
severity: optional3(MismatchSeverity5$inboundSchema),
|
|
53701
|
+
reason: MismatchReason3$inboundSchema,
|
|
53702
|
+
expected_phase_count: optional3(number2()),
|
|
53703
|
+
actual_phase_count: optional3(number2()),
|
|
53704
|
+
actual_phase_starts_at: optional3(z116.array(number2())),
|
|
53705
|
+
phase_starts_at: optional3(number2())
|
|
53706
|
+
}),
|
|
53707
|
+
z116.transform((v) => {
|
|
53708
|
+
return remap(v, {
|
|
53709
|
+
"expected_phase_count": "expectedPhaseCount",
|
|
53710
|
+
"actual_phase_count": "actualPhaseCount",
|
|
53711
|
+
"actual_phase_starts_at": "actualPhaseStartsAt",
|
|
53712
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53713
|
+
});
|
|
53714
|
+
})
|
|
53715
|
+
);
|
|
53716
|
+
var MismatchSeverity4$inboundSchema = inboundSchema(MismatchSeverity4);
|
|
53717
|
+
var Mismatch4$inboundSchema = z116.pipe(
|
|
53718
|
+
z116.object({
|
|
53719
|
+
type: literal3("prepaid_price_mismatch"),
|
|
53720
|
+
message: optional3(string5()),
|
|
53721
|
+
severity: optional3(MismatchSeverity4$inboundSchema),
|
|
53722
|
+
actual_price_id: optional3(string5()),
|
|
53723
|
+
feature_id: string5(),
|
|
53724
|
+
expected_unit_amount: string5(),
|
|
53725
|
+
actual_unit_amount: string5(),
|
|
53726
|
+
phase_starts_at: optional3(number2())
|
|
53727
|
+
}),
|
|
53728
|
+
z116.transform((v) => {
|
|
53729
|
+
return remap(v, {
|
|
53730
|
+
"actual_price_id": "actualPriceId",
|
|
53731
|
+
"feature_id": "featureId",
|
|
53732
|
+
"expected_unit_amount": "expectedUnitAmount",
|
|
53733
|
+
"actual_unit_amount": "actualUnitAmount",
|
|
53734
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53735
|
+
});
|
|
53736
|
+
})
|
|
53737
|
+
);
|
|
53738
|
+
var MismatchSeverity3$inboundSchema = inboundSchema(MismatchSeverity3);
|
|
53739
|
+
var Mismatch3$inboundSchema = z116.pipe(
|
|
53740
|
+
z116.object({
|
|
53741
|
+
type: literal3("prepaid_quantity_mismatch"),
|
|
53742
|
+
message: optional3(string5()),
|
|
53743
|
+
severity: optional3(MismatchSeverity3$inboundSchema),
|
|
53744
|
+
actual_price_id: optional3(string5()),
|
|
53745
|
+
feature_id: string5(),
|
|
53746
|
+
plan_id: optional3(string5()),
|
|
53747
|
+
expected_quantity: number2(),
|
|
53748
|
+
actual_quantity: number2(),
|
|
53749
|
+
phase_starts_at: optional3(number2())
|
|
53750
|
+
}),
|
|
53751
|
+
z116.transform((v) => {
|
|
53752
|
+
return remap(v, {
|
|
53753
|
+
"actual_price_id": "actualPriceId",
|
|
53754
|
+
"feature_id": "featureId",
|
|
53755
|
+
"plan_id": "planId",
|
|
53756
|
+
"expected_quantity": "expectedQuantity",
|
|
53757
|
+
"actual_quantity": "actualQuantity",
|
|
53758
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53759
|
+
});
|
|
53760
|
+
})
|
|
53761
|
+
);
|
|
53762
|
+
var MismatchSeverity2$inboundSchema = inboundSchema(MismatchSeverity2);
|
|
53763
|
+
var MismatchReason2$inboundSchema = inboundSchema(MismatchReason2);
|
|
53764
|
+
var MismatchPriceType$inboundSchema = inboundSchema(MismatchPriceType);
|
|
53765
|
+
var Mismatch2$inboundSchema = z116.pipe(
|
|
53766
|
+
z116.object({
|
|
53767
|
+
type: literal3("item_mismatch"),
|
|
53768
|
+
message: optional3(string5()),
|
|
53769
|
+
severity: optional3(MismatchSeverity2$inboundSchema),
|
|
53770
|
+
reason: MismatchReason2$inboundSchema,
|
|
53771
|
+
expected_price_id: optional3(string5()),
|
|
53772
|
+
actual_price_id: optional3(string5()),
|
|
53773
|
+
price_type: optional3(MismatchPriceType$inboundSchema),
|
|
53774
|
+
feature_id: optional3(string5()),
|
|
53775
|
+
expected_quantity: optional3(number2()),
|
|
53776
|
+
actual_quantity: optional3(number2()),
|
|
53777
|
+
plan_name: optional3(string5()),
|
|
53778
|
+
plan_id: optional3(string5()),
|
|
53779
|
+
price_amount: optional3(number2()),
|
|
53780
|
+
price_interval: optional3(string5()),
|
|
53781
|
+
price_interval_count: optional3(number2()),
|
|
53782
|
+
phase_starts_at: optional3(number2())
|
|
53783
|
+
}),
|
|
53784
|
+
z116.transform((v) => {
|
|
53785
|
+
return remap(v, {
|
|
53786
|
+
"expected_price_id": "expectedPriceId",
|
|
53787
|
+
"actual_price_id": "actualPriceId",
|
|
53788
|
+
"price_type": "priceType",
|
|
53789
|
+
"feature_id": "featureId",
|
|
53790
|
+
"expected_quantity": "expectedQuantity",
|
|
53791
|
+
"actual_quantity": "actualQuantity",
|
|
53792
|
+
"plan_name": "planName",
|
|
53793
|
+
"plan_id": "planId",
|
|
53794
|
+
"price_amount": "priceAmount",
|
|
53795
|
+
"price_interval": "priceInterval",
|
|
53796
|
+
"price_interval_count": "priceIntervalCount",
|
|
53797
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53798
|
+
});
|
|
53799
|
+
})
|
|
53800
|
+
);
|
|
53801
|
+
var MismatchSeverity1$inboundSchema = inboundSchema(MismatchSeverity1);
|
|
53802
|
+
var MismatchReason1$inboundSchema = inboundSchema(MismatchReason1);
|
|
53803
|
+
var Mismatch1$inboundSchema = z116.pipe(
|
|
53804
|
+
z116.object({
|
|
53805
|
+
type: literal3("base_price_mismatch"),
|
|
53806
|
+
message: optional3(string5()),
|
|
53807
|
+
severity: optional3(MismatchSeverity1$inboundSchema),
|
|
53808
|
+
reason: MismatchReason1$inboundSchema,
|
|
53809
|
+
expected_price_id: optional3(string5()),
|
|
53810
|
+
actual_price_id: optional3(string5()),
|
|
53811
|
+
expected_amount: optional3(string5()),
|
|
53812
|
+
actual_amount: optional3(string5()),
|
|
53813
|
+
plan_name: optional3(string5()),
|
|
53814
|
+
plan_id: optional3(string5()),
|
|
53815
|
+
price_amount: optional3(number2()),
|
|
53816
|
+
price_interval: optional3(string5()),
|
|
53817
|
+
price_interval_count: optional3(number2()),
|
|
53818
|
+
expected_quantity: optional3(number2()),
|
|
53819
|
+
phase_starts_at: optional3(number2())
|
|
53820
|
+
}),
|
|
53821
|
+
z116.transform((v) => {
|
|
53822
|
+
return remap(v, {
|
|
53823
|
+
"expected_price_id": "expectedPriceId",
|
|
53824
|
+
"actual_price_id": "actualPriceId",
|
|
53825
|
+
"expected_amount": "expectedAmount",
|
|
53826
|
+
"actual_amount": "actualAmount",
|
|
53827
|
+
"plan_name": "planName",
|
|
53828
|
+
"plan_id": "planId",
|
|
53829
|
+
"price_amount": "priceAmount",
|
|
53830
|
+
"price_interval": "priceInterval",
|
|
53831
|
+
"price_interval_count": "priceIntervalCount",
|
|
53832
|
+
"expected_quantity": "expectedQuantity",
|
|
53833
|
+
"phase_starts_at": "phaseStartsAt"
|
|
53834
|
+
});
|
|
53835
|
+
})
|
|
53836
|
+
);
|
|
53837
|
+
var MismatchUnion$inboundSchema = discriminatedUnion("type", {
|
|
53838
|
+
base_price_mismatch: z116.lazy(() => Mismatch1$inboundSchema),
|
|
53839
|
+
item_mismatch: z116.lazy(() => Mismatch2$inboundSchema),
|
|
53840
|
+
prepaid_quantity_mismatch: z116.lazy(() => Mismatch3$inboundSchema),
|
|
53841
|
+
prepaid_price_mismatch: z116.lazy(() => Mismatch4$inboundSchema),
|
|
53842
|
+
schedule_mismatch: z116.lazy(() => Mismatch5$inboundSchema),
|
|
53843
|
+
cancel_state_mismatch: z116.lazy(() => Mismatch6$inboundSchema),
|
|
53844
|
+
reward_mismatch: z116.lazy(() => Mismatch7$inboundSchema),
|
|
53845
|
+
stripe_sub_not_in_autumn: z116.lazy(() => Mismatch8$inboundSchema),
|
|
53846
|
+
plan_on_ending_subscription: z116.lazy(() => Mismatch9$inboundSchema),
|
|
53847
|
+
stale_subscription_link: z116.lazy(() => Mismatch10$inboundSchema),
|
|
53848
|
+
expected_state_error: z116.lazy(() => Mismatch11$inboundSchema),
|
|
53849
|
+
shared_stripe_customer: z116.lazy(() => Mismatch12$inboundSchema)
|
|
53850
|
+
});
|
|
53851
|
+
var VerifySubscription$inboundSchema = z116.pipe(
|
|
53852
|
+
z116.object({
|
|
53853
|
+
stripe_subscription_id: string5(),
|
|
53854
|
+
status: VerifyStatus$inboundSchema,
|
|
53855
|
+
mismatches: z116.array(discriminatedUnion("type", {
|
|
53856
|
+
base_price_mismatch: z116.lazy(() => Mismatch1$inboundSchema),
|
|
53857
|
+
item_mismatch: z116.lazy(() => Mismatch2$inboundSchema),
|
|
53858
|
+
prepaid_quantity_mismatch: z116.lazy(() => Mismatch3$inboundSchema),
|
|
53859
|
+
prepaid_price_mismatch: z116.lazy(() => Mismatch4$inboundSchema),
|
|
53860
|
+
schedule_mismatch: z116.lazy(() => Mismatch5$inboundSchema),
|
|
53861
|
+
cancel_state_mismatch: z116.lazy(() => Mismatch6$inboundSchema),
|
|
53862
|
+
reward_mismatch: z116.lazy(() => Mismatch7$inboundSchema),
|
|
53863
|
+
stripe_sub_not_in_autumn: z116.lazy(() => Mismatch8$inboundSchema),
|
|
53864
|
+
plan_on_ending_subscription: z116.lazy(() => Mismatch9$inboundSchema),
|
|
53865
|
+
stale_subscription_link: z116.lazy(() => Mismatch10$inboundSchema),
|
|
53866
|
+
expected_state_error: z116.lazy(() => Mismatch11$inboundSchema),
|
|
53867
|
+
shared_stripe_customer: z116.lazy(() => Mismatch12$inboundSchema)
|
|
53868
|
+
}))
|
|
53869
|
+
}),
|
|
53870
|
+
z116.transform((v) => {
|
|
53871
|
+
return remap(v, {
|
|
53872
|
+
"stripe_subscription_id": "stripeSubscriptionId"
|
|
53873
|
+
});
|
|
53874
|
+
})
|
|
53875
|
+
);
|
|
53876
|
+
var VerifyResponse$inboundSchema = z116.pipe(
|
|
53877
|
+
z116.object({
|
|
53878
|
+
customer_id: string5(),
|
|
53879
|
+
customer_mismatches: z116.array(discriminatedUnion("type", {
|
|
53880
|
+
base_price_mismatch: z116.lazy(() => CustomerMismatch1$inboundSchema),
|
|
53881
|
+
item_mismatch: z116.lazy(() => CustomerMismatch2$inboundSchema),
|
|
53882
|
+
prepaid_quantity_mismatch: z116.lazy(() => CustomerMismatch3$inboundSchema),
|
|
53883
|
+
prepaid_price_mismatch: z116.lazy(() => CustomerMismatch4$inboundSchema),
|
|
53884
|
+
schedule_mismatch: z116.lazy(() => CustomerMismatch5$inboundSchema),
|
|
53885
|
+
cancel_state_mismatch: z116.lazy(() => CustomerMismatch6$inboundSchema),
|
|
53886
|
+
reward_mismatch: z116.lazy(() => CustomerMismatch7$inboundSchema),
|
|
53887
|
+
stripe_sub_not_in_autumn: z116.lazy(() => CustomerMismatch8$inboundSchema),
|
|
53888
|
+
plan_on_ending_subscription: z116.lazy(
|
|
53889
|
+
() => CustomerMismatch9$inboundSchema
|
|
53890
|
+
),
|
|
53891
|
+
stale_subscription_link: z116.lazy(() => CustomerMismatch10$inboundSchema),
|
|
53892
|
+
expected_state_error: z116.lazy(() => CustomerMismatch11$inboundSchema),
|
|
53893
|
+
shared_stripe_customer: z116.lazy(() => CustomerMismatch12$inboundSchema)
|
|
53894
|
+
})),
|
|
53895
|
+
subscriptions: z116.array(z116.lazy(() => VerifySubscription$inboundSchema))
|
|
53896
|
+
}),
|
|
53897
|
+
z116.transform((v) => {
|
|
53898
|
+
return remap(v, {
|
|
53899
|
+
"customer_id": "customerId",
|
|
53900
|
+
"customer_mismatches": "customerMismatches"
|
|
53901
|
+
});
|
|
53902
|
+
})
|
|
53903
|
+
);
|
|
53904
|
+
|
|
53905
|
+
// ../sdk/src/models/void-invoice-op.ts
|
|
53906
|
+
var z117 = __toESM(require("zod/v4-mini"), 1);
|
|
53150
53907
|
var VoidInvoiceProcessorType = {
|
|
53151
53908
|
Stripe: "stripe",
|
|
53152
53909
|
Revenuecat: "revenuecat"
|
|
53153
53910
|
};
|
|
53154
|
-
var VoidInvoiceParams$outboundSchema =
|
|
53155
|
-
|
|
53156
|
-
invoiceId:
|
|
53911
|
+
var VoidInvoiceParams$outboundSchema = z117.pipe(
|
|
53912
|
+
z117.object({
|
|
53913
|
+
invoiceId: z117.string()
|
|
53157
53914
|
}),
|
|
53158
|
-
|
|
53915
|
+
z117.transform((v) => {
|
|
53159
53916
|
return remap(v, {
|
|
53160
53917
|
invoiceId: "invoice_id"
|
|
53161
53918
|
});
|
|
53162
53919
|
})
|
|
53163
53920
|
);
|
|
53164
53921
|
var VoidInvoiceProcessorType$inboundSchema = inboundSchema(VoidInvoiceProcessorType);
|
|
53165
|
-
var VoidInvoiceEntity$inboundSchema =
|
|
53166
|
-
|
|
53922
|
+
var VoidInvoiceEntity$inboundSchema = z117.pipe(
|
|
53923
|
+
z117.object({
|
|
53167
53924
|
entity_id: string5(),
|
|
53168
53925
|
quantity: nullable(number2()),
|
|
53169
53926
|
amount: number2()
|
|
53170
53927
|
}),
|
|
53171
|
-
|
|
53928
|
+
z117.transform((v) => {
|
|
53172
53929
|
return remap(v, {
|
|
53173
53930
|
"entity_id": "entityId"
|
|
53174
53931
|
});
|
|
53175
53932
|
})
|
|
53176
53933
|
);
|
|
53177
|
-
var VoidInvoiceItem$inboundSchema =
|
|
53178
|
-
|
|
53934
|
+
var VoidInvoiceItem$inboundSchema = z117.pipe(
|
|
53935
|
+
z117.object({
|
|
53179
53936
|
id: string5(),
|
|
53180
53937
|
description: string5(),
|
|
53181
53938
|
period_start: nullable(number2()),
|
|
@@ -53185,9 +53942,9 @@ var VoidInvoiceItem$inboundSchema = z116.pipe(
|
|
|
53185
53942
|
feature_name: nullable(string5()),
|
|
53186
53943
|
quantity: nullable(number2()),
|
|
53187
53944
|
amount: number2(),
|
|
53188
|
-
entities:
|
|
53945
|
+
entities: z117.array(z117.lazy(() => VoidInvoiceEntity$inboundSchema))
|
|
53189
53946
|
}),
|
|
53190
|
-
|
|
53947
|
+
z117.transform((v) => {
|
|
53191
53948
|
return remap(v, {
|
|
53192
53949
|
"period_start": "periodStart",
|
|
53193
53950
|
"period_end": "periodEnd",
|
|
@@ -53197,11 +53954,11 @@ var VoidInvoiceItem$inboundSchema = z116.pipe(
|
|
|
53197
53954
|
});
|
|
53198
53955
|
})
|
|
53199
53956
|
);
|
|
53200
|
-
var VoidInvoiceInvoice$inboundSchema =
|
|
53201
|
-
|
|
53202
|
-
plan_ids:
|
|
53957
|
+
var VoidInvoiceInvoice$inboundSchema = z117.pipe(
|
|
53958
|
+
z117.object({
|
|
53959
|
+
plan_ids: z117.array(string5()),
|
|
53203
53960
|
stripe_id: string5(),
|
|
53204
|
-
processor_type:
|
|
53961
|
+
processor_type: z117._default(
|
|
53205
53962
|
VoidInvoiceProcessorType$inboundSchema,
|
|
53206
53963
|
"stripe"
|
|
53207
53964
|
),
|
|
@@ -53209,15 +53966,15 @@ var VoidInvoiceInvoice$inboundSchema = z116.pipe(
|
|
|
53209
53966
|
total: number2(),
|
|
53210
53967
|
currency: string5(),
|
|
53211
53968
|
created_at: number2(),
|
|
53212
|
-
hosted_invoice_url:
|
|
53969
|
+
hosted_invoice_url: z117.optional(z117.nullable(string5())),
|
|
53213
53970
|
id: string5(),
|
|
53214
53971
|
customer_id: nullable(string5()),
|
|
53215
53972
|
entity_id: nullable(string5()),
|
|
53216
53973
|
amount_paid: nullable(number2()),
|
|
53217
53974
|
refunded_amount: number2(),
|
|
53218
|
-
items: optional3(
|
|
53975
|
+
items: optional3(z117.array(z117.lazy(() => VoidInvoiceItem$inboundSchema)))
|
|
53219
53976
|
}),
|
|
53220
|
-
|
|
53977
|
+
z117.transform((v) => {
|
|
53221
53978
|
return remap(v, {
|
|
53222
53979
|
"plan_ids": "planIds",
|
|
53223
53980
|
"stripe_id": "stripeId",
|
|
@@ -53231,8 +53988,8 @@ var VoidInvoiceInvoice$inboundSchema = z116.pipe(
|
|
|
53231
53988
|
});
|
|
53232
53989
|
})
|
|
53233
53990
|
);
|
|
53234
|
-
var VoidInvoiceResponse$inboundSchema =
|
|
53235
|
-
invoice:
|
|
53991
|
+
var VoidInvoiceResponse$inboundSchema = z117.object({
|
|
53992
|
+
invoice: z117.lazy(() => VoidInvoiceInvoice$inboundSchema)
|
|
53236
53993
|
});
|
|
53237
53994
|
|
|
53238
53995
|
// ../sdk/src/types/async.ts
|
|
@@ -53272,7 +54029,7 @@ function batchTrack(client, request, options) {
|
|
|
53272
54029
|
async function $do(client, request, options) {
|
|
53273
54030
|
const parsed = safeParse(
|
|
53274
54031
|
request,
|
|
53275
|
-
(value) =>
|
|
54032
|
+
(value) => z118.parse(z118.array(RequestBody$outboundSchema), value),
|
|
53276
54033
|
"Input validation failed"
|
|
53277
54034
|
);
|
|
53278
54035
|
if (!parsed.ok) {
|
|
@@ -53328,6 +54085,7 @@ async function $do(client, request, options) {
|
|
|
53328
54085
|
}
|
|
53329
54086
|
const response = doResult.value;
|
|
53330
54087
|
const [result] = await match(
|
|
54088
|
+
json(200, BatchTrackResponse$inboundSchema),
|
|
53331
54089
|
json(202, BatchTrackResponse$inboundSchema),
|
|
53332
54090
|
fail("4XX"),
|
|
53333
54091
|
fail("5XX")
|
|
@@ -53339,7 +54097,7 @@ async function $do(client, request, options) {
|
|
|
53339
54097
|
}
|
|
53340
54098
|
|
|
53341
54099
|
// ../sdk/src/funcs/check.ts
|
|
53342
|
-
var
|
|
54100
|
+
var z119 = __toESM(require("zod/v4-mini"), 1);
|
|
53343
54101
|
function check(client, request, options) {
|
|
53344
54102
|
return new APIPromise($do2(
|
|
53345
54103
|
client,
|
|
@@ -53350,7 +54108,7 @@ function check(client, request, options) {
|
|
|
53350
54108
|
async function $do2(client, request, options) {
|
|
53351
54109
|
const parsed = safeParse(
|
|
53352
54110
|
request,
|
|
53353
|
-
(value) =>
|
|
54111
|
+
(value) => z119.parse(CheckParams$outboundSchema, value),
|
|
53354
54112
|
"Input validation failed"
|
|
53355
54113
|
);
|
|
53356
54114
|
if (!parsed.ok) {
|
|
@@ -53418,7 +54176,7 @@ async function $do2(client, request, options) {
|
|
|
53418
54176
|
}
|
|
53419
54177
|
|
|
53420
54178
|
// ../sdk/src/funcs/track-tokens.ts
|
|
53421
|
-
var
|
|
54179
|
+
var z120 = __toESM(require("zod/v4-mini"), 1);
|
|
53422
54180
|
function trackTokens(client, request, options) {
|
|
53423
54181
|
return new APIPromise($do3(
|
|
53424
54182
|
client,
|
|
@@ -53429,7 +54187,7 @@ function trackTokens(client, request, options) {
|
|
|
53429
54187
|
async function $do3(client, request, options) {
|
|
53430
54188
|
const parsed = safeParse(
|
|
53431
54189
|
request,
|
|
53432
|
-
(value) =>
|
|
54190
|
+
(value) => z120.parse(TrackTokensParams$outboundSchema, value),
|
|
53433
54191
|
"Input validation failed"
|
|
53434
54192
|
);
|
|
53435
54193
|
if (!parsed.ok) {
|
|
@@ -53497,7 +54255,7 @@ async function $do3(client, request, options) {
|
|
|
53497
54255
|
}
|
|
53498
54256
|
|
|
53499
54257
|
// ../sdk/src/funcs/track.ts
|
|
53500
|
-
var
|
|
54258
|
+
var z121 = __toESM(require("zod/v4-mini"), 1);
|
|
53501
54259
|
function track(client, request, options) {
|
|
53502
54260
|
return new APIPromise($do4(
|
|
53503
54261
|
client,
|
|
@@ -53508,7 +54266,7 @@ function track(client, request, options) {
|
|
|
53508
54266
|
async function $do4(client, request, options) {
|
|
53509
54267
|
const parsed = safeParse(
|
|
53510
54268
|
request,
|
|
53511
|
-
(value) =>
|
|
54269
|
+
(value) => z121.parse(TrackParams$outboundSchema, value),
|
|
53512
54270
|
"Input validation failed"
|
|
53513
54271
|
);
|
|
53514
54272
|
if (!parsed.ok) {
|
|
@@ -54150,7 +54908,7 @@ async function logResponse(logger, res, req) {
|
|
|
54150
54908
|
}
|
|
54151
54909
|
|
|
54152
54910
|
// ../sdk/src/funcs/balances-create.ts
|
|
54153
|
-
var
|
|
54911
|
+
var z122 = __toESM(require("zod/v4-mini"), 1);
|
|
54154
54912
|
function balancesCreate(client, request, options) {
|
|
54155
54913
|
return new APIPromise($do5(
|
|
54156
54914
|
client,
|
|
@@ -54161,7 +54919,7 @@ function balancesCreate(client, request, options) {
|
|
|
54161
54919
|
async function $do5(client, request, options) {
|
|
54162
54920
|
const parsed = safeParse(
|
|
54163
54921
|
request,
|
|
54164
|
-
(value) =>
|
|
54922
|
+
(value) => z122.parse(CreateBalanceParams$outboundSchema, value),
|
|
54165
54923
|
"Input validation failed"
|
|
54166
54924
|
);
|
|
54167
54925
|
if (!parsed.ok) {
|
|
@@ -54228,7 +54986,7 @@ async function $do5(client, request, options) {
|
|
|
54228
54986
|
}
|
|
54229
54987
|
|
|
54230
54988
|
// ../sdk/src/funcs/balances-delete.ts
|
|
54231
|
-
var
|
|
54989
|
+
var z123 = __toESM(require("zod/v4-mini"), 1);
|
|
54232
54990
|
function balancesDelete(client, request, options) {
|
|
54233
54991
|
return new APIPromise($do6(
|
|
54234
54992
|
client,
|
|
@@ -54239,7 +54997,7 @@ function balancesDelete(client, request, options) {
|
|
|
54239
54997
|
async function $do6(client, request, options) {
|
|
54240
54998
|
const parsed = safeParse(
|
|
54241
54999
|
request,
|
|
54242
|
-
(value) =>
|
|
55000
|
+
(value) => z123.parse(DeleteBalanceParams$outboundSchema, value),
|
|
54243
55001
|
"Input validation failed"
|
|
54244
55002
|
);
|
|
54245
55003
|
if (!parsed.ok) {
|
|
@@ -54306,7 +55064,7 @@ async function $do6(client, request, options) {
|
|
|
54306
55064
|
}
|
|
54307
55065
|
|
|
54308
55066
|
// ../sdk/src/funcs/balances-finalize.ts
|
|
54309
|
-
var
|
|
55067
|
+
var z124 = __toESM(require("zod/v4-mini"), 1);
|
|
54310
55068
|
function balancesFinalize(client, request, options) {
|
|
54311
55069
|
return new APIPromise($do7(
|
|
54312
55070
|
client,
|
|
@@ -54317,7 +55075,7 @@ function balancesFinalize(client, request, options) {
|
|
|
54317
55075
|
async function $do7(client, request, options) {
|
|
54318
55076
|
const parsed = safeParse(
|
|
54319
55077
|
request,
|
|
54320
|
-
(value) =>
|
|
55078
|
+
(value) => z124.parse(FinalizeBalanceParams$outboundSchema, value),
|
|
54321
55079
|
"Input validation failed"
|
|
54322
55080
|
);
|
|
54323
55081
|
if (!parsed.ok) {
|
|
@@ -54385,7 +55143,7 @@ async function $do7(client, request, options) {
|
|
|
54385
55143
|
}
|
|
54386
55144
|
|
|
54387
55145
|
// ../sdk/src/funcs/balances-update.ts
|
|
54388
|
-
var
|
|
55146
|
+
var z125 = __toESM(require("zod/v4-mini"), 1);
|
|
54389
55147
|
function balancesUpdate(client, request, options) {
|
|
54390
55148
|
return new APIPromise($do8(
|
|
54391
55149
|
client,
|
|
@@ -54396,7 +55154,7 @@ function balancesUpdate(client, request, options) {
|
|
|
54396
55154
|
async function $do8(client, request, options) {
|
|
54397
55155
|
const parsed = safeParse(
|
|
54398
55156
|
request,
|
|
54399
|
-
(value) =>
|
|
55157
|
+
(value) => z125.parse(UpdateBalanceParams$outboundSchema, value),
|
|
54400
55158
|
"Input validation failed"
|
|
54401
55159
|
);
|
|
54402
55160
|
if (!parsed.ok) {
|
|
@@ -54507,7 +55265,7 @@ var Balances = class extends ClientSDK {
|
|
|
54507
55265
|
};
|
|
54508
55266
|
|
|
54509
55267
|
// ../sdk/src/funcs/billing-attach.ts
|
|
54510
|
-
var
|
|
55268
|
+
var z126 = __toESM(require("zod/v4-mini"), 1);
|
|
54511
55269
|
function billingAttach(client, request, options) {
|
|
54512
55270
|
return new APIPromise($do9(
|
|
54513
55271
|
client,
|
|
@@ -54518,7 +55276,7 @@ function billingAttach(client, request, options) {
|
|
|
54518
55276
|
async function $do9(client, request, options) {
|
|
54519
55277
|
const parsed = safeParse(
|
|
54520
55278
|
request,
|
|
54521
|
-
(value) =>
|
|
55279
|
+
(value) => z126.parse(AttachParams$outboundSchema, value),
|
|
54522
55280
|
"Input validation failed"
|
|
54523
55281
|
);
|
|
54524
55282
|
if (!parsed.ok) {
|
|
@@ -54585,7 +55343,7 @@ async function $do9(client, request, options) {
|
|
|
54585
55343
|
}
|
|
54586
55344
|
|
|
54587
55345
|
// ../sdk/src/funcs/billing-create-schedule.ts
|
|
54588
|
-
var
|
|
55346
|
+
var z127 = __toESM(require("zod/v4-mini"), 1);
|
|
54589
55347
|
function billingCreateSchedule(client, request, options) {
|
|
54590
55348
|
return new APIPromise($do10(
|
|
54591
55349
|
client,
|
|
@@ -54596,7 +55354,7 @@ function billingCreateSchedule(client, request, options) {
|
|
|
54596
55354
|
async function $do10(client, request, options) {
|
|
54597
55355
|
const parsed = safeParse(
|
|
54598
55356
|
request,
|
|
54599
|
-
(value) =>
|
|
55357
|
+
(value) => z127.parse(CreateScheduleParams$outboundSchema, value),
|
|
54600
55358
|
"Input validation failed"
|
|
54601
55359
|
);
|
|
54602
55360
|
if (!parsed.ok) {
|
|
@@ -54663,7 +55421,7 @@ async function $do10(client, request, options) {
|
|
|
54663
55421
|
}
|
|
54664
55422
|
|
|
54665
55423
|
// ../sdk/src/funcs/billing-import.ts
|
|
54666
|
-
var
|
|
55424
|
+
var z128 = __toESM(require("zod/v4-mini"), 1);
|
|
54667
55425
|
function billingImport(client, request, options) {
|
|
54668
55426
|
return new APIPromise($do11(
|
|
54669
55427
|
client,
|
|
@@ -54674,7 +55432,7 @@ function billingImport(client, request, options) {
|
|
|
54674
55432
|
async function $do11(client, request, options) {
|
|
54675
55433
|
const parsed = safeParse(
|
|
54676
55434
|
request,
|
|
54677
|
-
(value) =>
|
|
55435
|
+
(value) => z128.parse(DfuFlashParams$outboundSchema, value),
|
|
54678
55436
|
"Input validation failed"
|
|
54679
55437
|
);
|
|
54680
55438
|
if (!parsed.ok) {
|
|
@@ -54741,7 +55499,7 @@ async function $do11(client, request, options) {
|
|
|
54741
55499
|
}
|
|
54742
55500
|
|
|
54743
55501
|
// ../sdk/src/funcs/billing-multi-attach.ts
|
|
54744
|
-
var
|
|
55502
|
+
var z129 = __toESM(require("zod/v4-mini"), 1);
|
|
54745
55503
|
function billingMultiAttach(client, request, options) {
|
|
54746
55504
|
return new APIPromise($do12(
|
|
54747
55505
|
client,
|
|
@@ -54752,7 +55510,7 @@ function billingMultiAttach(client, request, options) {
|
|
|
54752
55510
|
async function $do12(client, request, options) {
|
|
54753
55511
|
const parsed = safeParse(
|
|
54754
55512
|
request,
|
|
54755
|
-
(value) =>
|
|
55513
|
+
(value) => z129.parse(MultiAttachParams$outboundSchema, value),
|
|
54756
55514
|
"Input validation failed"
|
|
54757
55515
|
);
|
|
54758
55516
|
if (!parsed.ok) {
|
|
@@ -54819,7 +55577,7 @@ async function $do12(client, request, options) {
|
|
|
54819
55577
|
}
|
|
54820
55578
|
|
|
54821
55579
|
// ../sdk/src/funcs/billing-multi-update.ts
|
|
54822
|
-
var
|
|
55580
|
+
var z130 = __toESM(require("zod/v4-mini"), 1);
|
|
54823
55581
|
function billingMultiUpdate(client, request, options) {
|
|
54824
55582
|
return new APIPromise($do13(
|
|
54825
55583
|
client,
|
|
@@ -54830,7 +55588,7 @@ function billingMultiUpdate(client, request, options) {
|
|
|
54830
55588
|
async function $do13(client, request, options) {
|
|
54831
55589
|
const parsed = safeParse(
|
|
54832
55590
|
request,
|
|
54833
|
-
(value) =>
|
|
55591
|
+
(value) => z130.parse(MultiUpdateParams$outboundSchema, value),
|
|
54834
55592
|
"Input validation failed"
|
|
54835
55593
|
);
|
|
54836
55594
|
if (!parsed.ok) {
|
|
@@ -54897,7 +55655,7 @@ async function $do13(client, request, options) {
|
|
|
54897
55655
|
}
|
|
54898
55656
|
|
|
54899
55657
|
// ../sdk/src/funcs/billing-open-customer-portal.ts
|
|
54900
|
-
var
|
|
55658
|
+
var z131 = __toESM(require("zod/v4-mini"), 1);
|
|
54901
55659
|
function billingOpenCustomerPortal(client, request, options) {
|
|
54902
55660
|
return new APIPromise($do14(
|
|
54903
55661
|
client,
|
|
@@ -54908,7 +55666,7 @@ function billingOpenCustomerPortal(client, request, options) {
|
|
|
54908
55666
|
async function $do14(client, request, options) {
|
|
54909
55667
|
const parsed = safeParse(
|
|
54910
55668
|
request,
|
|
54911
|
-
(value) =>
|
|
55669
|
+
(value) => z131.parse(OpenCustomerPortalParams$outboundSchema, value),
|
|
54912
55670
|
"Input validation failed"
|
|
54913
55671
|
);
|
|
54914
55672
|
if (!parsed.ok) {
|
|
@@ -54975,7 +55733,7 @@ async function $do14(client, request, options) {
|
|
|
54975
55733
|
}
|
|
54976
55734
|
|
|
54977
55735
|
// ../sdk/src/funcs/billing-preview-attach.ts
|
|
54978
|
-
var
|
|
55736
|
+
var z132 = __toESM(require("zod/v4-mini"), 1);
|
|
54979
55737
|
function billingPreviewAttach(client, request, options) {
|
|
54980
55738
|
return new APIPromise($do15(
|
|
54981
55739
|
client,
|
|
@@ -54986,7 +55744,7 @@ function billingPreviewAttach(client, request, options) {
|
|
|
54986
55744
|
async function $do15(client, request, options) {
|
|
54987
55745
|
const parsed = safeParse(
|
|
54988
55746
|
request,
|
|
54989
|
-
(value) =>
|
|
55747
|
+
(value) => z132.parse(PreviewAttachParams$outboundSchema, value),
|
|
54990
55748
|
"Input validation failed"
|
|
54991
55749
|
);
|
|
54992
55750
|
if (!parsed.ok) {
|
|
@@ -55053,7 +55811,7 @@ async function $do15(client, request, options) {
|
|
|
55053
55811
|
}
|
|
55054
55812
|
|
|
55055
55813
|
// ../sdk/src/funcs/billing-preview-multi-attach.ts
|
|
55056
|
-
var
|
|
55814
|
+
var z133 = __toESM(require("zod/v4-mini"), 1);
|
|
55057
55815
|
function billingPreviewMultiAttach(client, request, options) {
|
|
55058
55816
|
return new APIPromise($do16(
|
|
55059
55817
|
client,
|
|
@@ -55064,7 +55822,7 @@ function billingPreviewMultiAttach(client, request, options) {
|
|
|
55064
55822
|
async function $do16(client, request, options) {
|
|
55065
55823
|
const parsed = safeParse(
|
|
55066
55824
|
request,
|
|
55067
|
-
(value) =>
|
|
55825
|
+
(value) => z133.parse(PreviewMultiAttachParams$outboundSchema, value),
|
|
55068
55826
|
"Input validation failed"
|
|
55069
55827
|
);
|
|
55070
55828
|
if (!parsed.ok) {
|
|
@@ -55131,7 +55889,7 @@ async function $do16(client, request, options) {
|
|
|
55131
55889
|
}
|
|
55132
55890
|
|
|
55133
55891
|
// ../sdk/src/funcs/billing-preview-multi-update.ts
|
|
55134
|
-
var
|
|
55892
|
+
var z134 = __toESM(require("zod/v4-mini"), 1);
|
|
55135
55893
|
function billingPreviewMultiUpdate(client, request, options) {
|
|
55136
55894
|
return new APIPromise($do17(
|
|
55137
55895
|
client,
|
|
@@ -55142,7 +55900,7 @@ function billingPreviewMultiUpdate(client, request, options) {
|
|
|
55142
55900
|
async function $do17(client, request, options) {
|
|
55143
55901
|
const parsed = safeParse(
|
|
55144
55902
|
request,
|
|
55145
|
-
(value) =>
|
|
55903
|
+
(value) => z134.parse(PreviewMultiUpdateParams$outboundSchema, value),
|
|
55146
55904
|
"Input validation failed"
|
|
55147
55905
|
);
|
|
55148
55906
|
if (!parsed.ok) {
|
|
@@ -55209,7 +55967,7 @@ async function $do17(client, request, options) {
|
|
|
55209
55967
|
}
|
|
55210
55968
|
|
|
55211
55969
|
// ../sdk/src/funcs/billing-preview-update.ts
|
|
55212
|
-
var
|
|
55970
|
+
var z135 = __toESM(require("zod/v4-mini"), 1);
|
|
55213
55971
|
function billingPreviewUpdate(client, request, options) {
|
|
55214
55972
|
return new APIPromise($do18(
|
|
55215
55973
|
client,
|
|
@@ -55220,7 +55978,7 @@ function billingPreviewUpdate(client, request, options) {
|
|
|
55220
55978
|
async function $do18(client, request, options) {
|
|
55221
55979
|
const parsed = safeParse(
|
|
55222
55980
|
request,
|
|
55223
|
-
(value) =>
|
|
55981
|
+
(value) => z135.parse(PreviewUpdateParams$outboundSchema, value),
|
|
55224
55982
|
"Input validation failed"
|
|
55225
55983
|
);
|
|
55226
55984
|
if (!parsed.ok) {
|
|
@@ -55287,7 +56045,7 @@ async function $do18(client, request, options) {
|
|
|
55287
56045
|
}
|
|
55288
56046
|
|
|
55289
56047
|
// ../sdk/src/funcs/billing-setup-payment.ts
|
|
55290
|
-
var
|
|
56048
|
+
var z136 = __toESM(require("zod/v4-mini"), 1);
|
|
55291
56049
|
function billingSetupPayment(client, request, options) {
|
|
55292
56050
|
return new APIPromise($do19(
|
|
55293
56051
|
client,
|
|
@@ -55298,7 +56056,7 @@ function billingSetupPayment(client, request, options) {
|
|
|
55298
56056
|
async function $do19(client, request, options) {
|
|
55299
56057
|
const parsed = safeParse(
|
|
55300
56058
|
request,
|
|
55301
|
-
(value) =>
|
|
56059
|
+
(value) => z136.parse(SetupPaymentParams$outboundSchema, value),
|
|
55302
56060
|
"Input validation failed"
|
|
55303
56061
|
);
|
|
55304
56062
|
if (!parsed.ok) {
|
|
@@ -55365,7 +56123,7 @@ async function $do19(client, request, options) {
|
|
|
55365
56123
|
}
|
|
55366
56124
|
|
|
55367
56125
|
// ../sdk/src/funcs/billing-update.ts
|
|
55368
|
-
var
|
|
56126
|
+
var z137 = __toESM(require("zod/v4-mini"), 1);
|
|
55369
56127
|
function billingUpdate(client, request, options) {
|
|
55370
56128
|
return new APIPromise($do20(
|
|
55371
56129
|
client,
|
|
@@ -55376,7 +56134,7 @@ function billingUpdate(client, request, options) {
|
|
|
55376
56134
|
async function $do20(client, request, options) {
|
|
55377
56135
|
const parsed = safeParse(
|
|
55378
56136
|
request,
|
|
55379
|
-
(value) =>
|
|
56137
|
+
(value) => z137.parse(UpdateSubscriptionParams$outboundSchema, value),
|
|
55380
56138
|
"Input validation failed"
|
|
55381
56139
|
);
|
|
55382
56140
|
if (!parsed.ok) {
|
|
@@ -55442,6 +56200,84 @@ async function $do20(client, request, options) {
|
|
|
55442
56200
|
return [result, { status: "complete", request: req, response }];
|
|
55443
56201
|
}
|
|
55444
56202
|
|
|
56203
|
+
// ../sdk/src/funcs/billing-verify.ts
|
|
56204
|
+
var z138 = __toESM(require("zod/v4-mini"), 1);
|
|
56205
|
+
function billingVerify(client, request, options) {
|
|
56206
|
+
return new APIPromise($do21(
|
|
56207
|
+
client,
|
|
56208
|
+
request,
|
|
56209
|
+
options
|
|
56210
|
+
));
|
|
56211
|
+
}
|
|
56212
|
+
async function $do21(client, request, options) {
|
|
56213
|
+
const parsed = safeParse(
|
|
56214
|
+
request,
|
|
56215
|
+
(value) => z138.parse(VerifyParams$outboundSchema, value),
|
|
56216
|
+
"Input validation failed"
|
|
56217
|
+
);
|
|
56218
|
+
if (!parsed.ok) {
|
|
56219
|
+
return [parsed, { status: "invalid" }];
|
|
56220
|
+
}
|
|
56221
|
+
const payload = parsed.value;
|
|
56222
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
56223
|
+
const path = pathToFunc("/v1/billing.verify")();
|
|
56224
|
+
const headers = new Headers(compactMap({
|
|
56225
|
+
"Content-Type": "application/json",
|
|
56226
|
+
Accept: "application/json",
|
|
56227
|
+
"x-api-version": encodeSimple(
|
|
56228
|
+
"x-api-version",
|
|
56229
|
+
client._options.xApiVersion,
|
|
56230
|
+
{ explode: false, charEncoding: "none" }
|
|
56231
|
+
)
|
|
56232
|
+
}));
|
|
56233
|
+
const secConfig = await extractSecurity(client._options.secretKey);
|
|
56234
|
+
const securityInput = secConfig == null ? {} : { secretKey: secConfig };
|
|
56235
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
56236
|
+
const context = {
|
|
56237
|
+
options: client._options,
|
|
56238
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
56239
|
+
operationID: "verify",
|
|
56240
|
+
oAuth2Scopes: null,
|
|
56241
|
+
resolvedSecurity: requestSecurity,
|
|
56242
|
+
securitySource: client._options.secretKey,
|
|
56243
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
56244
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
56245
|
+
};
|
|
56246
|
+
const requestRes = client._createRequest(context, {
|
|
56247
|
+
security: requestSecurity,
|
|
56248
|
+
method: "POST",
|
|
56249
|
+
baseURL: options?.serverURL,
|
|
56250
|
+
path,
|
|
56251
|
+
headers,
|
|
56252
|
+
body,
|
|
56253
|
+
userAgent: client._options.userAgent,
|
|
56254
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
56255
|
+
}, options);
|
|
56256
|
+
if (!requestRes.ok) {
|
|
56257
|
+
return [requestRes, { status: "invalid" }];
|
|
56258
|
+
}
|
|
56259
|
+
const req = requestRes.value;
|
|
56260
|
+
const doResult = await client._do(req, {
|
|
56261
|
+
context,
|
|
56262
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
56263
|
+
retryConfig: context.retryConfig,
|
|
56264
|
+
retryCodes: context.retryCodes
|
|
56265
|
+
});
|
|
56266
|
+
if (!doResult.ok) {
|
|
56267
|
+
return [doResult, { status: "request-error", request: req }];
|
|
56268
|
+
}
|
|
56269
|
+
const response = doResult.value;
|
|
56270
|
+
const [result] = await match(
|
|
56271
|
+
json(200, VerifyResponse$inboundSchema),
|
|
56272
|
+
fail("4XX"),
|
|
56273
|
+
fail("5XX")
|
|
56274
|
+
)(response, req);
|
|
56275
|
+
if (!result.ok) {
|
|
56276
|
+
return [result, { status: "complete", request: req, response }];
|
|
56277
|
+
}
|
|
56278
|
+
return [result, { status: "complete", request: req, response }];
|
|
56279
|
+
}
|
|
56280
|
+
|
|
55445
56281
|
// ../sdk/src/sdk/billing.ts
|
|
55446
56282
|
var Billing = class extends ClientSDK {
|
|
55447
56283
|
/**
|
|
@@ -55475,7 +56311,7 @@ var Billing = class extends ClientSDK {
|
|
|
55475
56311
|
* @param freeTrial - Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given. (optional)
|
|
55476
56312
|
* @param customize - Customize the plan to attach. Can override the price, items, licenses, free trial, or a combination. (optional)
|
|
55477
56313
|
* @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)
|
|
55478
|
-
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
|
|
56314
|
+
* @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)
|
|
55479
56315
|
* @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)
|
|
55480
56316
|
* @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)
|
|
55481
56317
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
@@ -55529,7 +56365,7 @@ var Billing = class extends ClientSDK {
|
|
|
55529
56365
|
* @param successUrl - URL to redirect to after successful checkout. (optional)
|
|
55530
56366
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
55531
56367
|
* @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)
|
|
55532
|
-
* @param billingBehavior - Whether to prorate the immediate phase. 'none' skips proration charges and credits. (optional)
|
|
56368
|
+
* @param billingBehavior - Whether to prorate the immediate phase. 'none' skips proration charges and credits, 'bill_difference' charges/credits the full-period price difference. (optional)
|
|
55533
56369
|
* @param noBillingChanges - If true, skips any billing changes for the schedule. (optional)
|
|
55534
56370
|
* @param billingCycleAnchor - Pass 'now' to reset the billing cycle anchor of the immediate phase to the current time. (optional)
|
|
55535
56371
|
* @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)
|
|
@@ -55577,7 +56413,7 @@ var Billing = class extends ClientSDK {
|
|
|
55577
56413
|
* @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)
|
|
55578
56414
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. (optional)
|
|
55579
56415
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
55580
|
-
* @param billingBehavior - How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything. (optional)
|
|
56416
|
+
* @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)
|
|
55581
56417
|
* @param billingCycleAnchor - Pass 'now' to reset the billing cycle of every plan on the subscription to the time of this request. (optional)
|
|
55582
56418
|
* @param successUrl - URL to redirect to after successful checkout. (optional)
|
|
55583
56419
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
@@ -55613,7 +56449,7 @@ var Billing = class extends ClientSDK {
|
|
|
55613
56449
|
* @param freeTrial - Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given. (optional)
|
|
55614
56450
|
* @param customize - Customize the plan to attach. Can override the price, items, licenses, free trial, or a combination. (optional)
|
|
55615
56451
|
* @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)
|
|
55616
|
-
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
|
|
56452
|
+
* @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)
|
|
55617
56453
|
* @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)
|
|
55618
56454
|
* @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)
|
|
55619
56455
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
@@ -55666,7 +56502,7 @@ var Billing = class extends ClientSDK {
|
|
|
55666
56502
|
* @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)
|
|
55667
56503
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. (optional)
|
|
55668
56504
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
55669
|
-
* @param billingBehavior - How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything. (optional)
|
|
56505
|
+
* @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)
|
|
55670
56506
|
* @param billingCycleAnchor - Pass 'now' to reset the billing cycle of every plan on the subscription to the time of this request. (optional)
|
|
55671
56507
|
* @param successUrl - URL to redirect to after successful checkout. (optional)
|
|
55672
56508
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
@@ -55714,7 +56550,7 @@ var Billing = class extends ClientSDK {
|
|
|
55714
56550
|
* @param freeTrial - Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given. (optional)
|
|
55715
56551
|
* @param customize - Customize the plan to attach. Can override the price, items, licenses, free trial, or a combination. (optional)
|
|
55716
56552
|
* @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)
|
|
55717
|
-
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
|
|
56553
|
+
* @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)
|
|
55718
56554
|
* @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)
|
|
55719
56555
|
* @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)
|
|
55720
56556
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
@@ -55757,7 +56593,7 @@ var Billing = class extends ClientSDK {
|
|
|
55757
56593
|
* @param freeTrial - Free trial for this plan. A shorthand for customize.free_trial, which takes precedence when both are given. (optional)
|
|
55758
56594
|
* @param customize - Customize the plan to attach. Can override the price, items, licenses, free trial, or a combination. (optional)
|
|
55759
56595
|
* @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)
|
|
55760
|
-
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
|
|
56596
|
+
* @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)
|
|
55761
56597
|
* @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)
|
|
55762
56598
|
* @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)
|
|
55763
56599
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
@@ -55859,6 +56695,36 @@ var Billing = class extends ClientSDK {
|
|
|
55859
56695
|
options
|
|
55860
56696
|
));
|
|
55861
56697
|
}
|
|
56698
|
+
/**
|
|
56699
|
+
* 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.
|
|
56700
|
+
*
|
|
56701
|
+
* 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.
|
|
56702
|
+
*
|
|
56703
|
+
* @example
|
|
56704
|
+
* ```typescript
|
|
56705
|
+
* // Verify every subscription for a customer
|
|
56706
|
+
* const response = await client.billing.verify({ customerId: "cus_123" });
|
|
56707
|
+
* ```
|
|
56708
|
+
*
|
|
56709
|
+
* @example
|
|
56710
|
+
* ```typescript
|
|
56711
|
+
* // Verify specific subscriptions in strict mode
|
|
56712
|
+
* const response = await client.billing.verify({ customerId: "cus_123", subscriptionIds: ["sub_1234"], strict: true });
|
|
56713
|
+
* ```
|
|
56714
|
+
*
|
|
56715
|
+
* @param customerId - Autumn customer whose Stripe subscriptions should be checked against Autumn's customer_products.
|
|
56716
|
+
* @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)
|
|
56717
|
+
* @param strict - When true, report missing usage-based items and unexpected metered Stripe items. Defaults to false. (optional)
|
|
56718
|
+
*
|
|
56719
|
+
* @returns A verify response with account-level mismatches and a per-subscription status (correct or mismatched) with the mismatches found.
|
|
56720
|
+
*/
|
|
56721
|
+
async verify(request, options) {
|
|
56722
|
+
return unwrapAsync(billingVerify(
|
|
56723
|
+
this,
|
|
56724
|
+
request,
|
|
56725
|
+
options
|
|
56726
|
+
));
|
|
56727
|
+
}
|
|
55862
56728
|
/**
|
|
55863
56729
|
* Import
|
|
55864
56730
|
*
|
|
@@ -55875,18 +56741,18 @@ var Billing = class extends ClientSDK {
|
|
|
55875
56741
|
};
|
|
55876
56742
|
|
|
55877
56743
|
// ../sdk/src/funcs/customers-advance-test-clock.ts
|
|
55878
|
-
var
|
|
56744
|
+
var z139 = __toESM(require("zod/v4-mini"), 1);
|
|
55879
56745
|
function customersAdvanceTestClock(client, request, options) {
|
|
55880
|
-
return new APIPromise($
|
|
56746
|
+
return new APIPromise($do22(
|
|
55881
56747
|
client,
|
|
55882
56748
|
request,
|
|
55883
56749
|
options
|
|
55884
56750
|
));
|
|
55885
56751
|
}
|
|
55886
|
-
async function $
|
|
56752
|
+
async function $do22(client, request, options) {
|
|
55887
56753
|
const parsed = safeParse(
|
|
55888
56754
|
request,
|
|
55889
|
-
(value) =>
|
|
56755
|
+
(value) => z139.parse(AdvanceTestClockParams$outboundSchema, value),
|
|
55890
56756
|
"Input validation failed"
|
|
55891
56757
|
);
|
|
55892
56758
|
if (!parsed.ok) {
|
|
@@ -55953,18 +56819,18 @@ async function $do21(client, request, options) {
|
|
|
55953
56819
|
}
|
|
55954
56820
|
|
|
55955
56821
|
// ../sdk/src/funcs/customers-delete.ts
|
|
55956
|
-
var
|
|
56822
|
+
var z140 = __toESM(require("zod/v4-mini"), 1);
|
|
55957
56823
|
function customersDelete(client, request, options) {
|
|
55958
|
-
return new APIPromise($
|
|
56824
|
+
return new APIPromise($do23(
|
|
55959
56825
|
client,
|
|
55960
56826
|
request,
|
|
55961
56827
|
options
|
|
55962
56828
|
));
|
|
55963
56829
|
}
|
|
55964
|
-
async function $
|
|
56830
|
+
async function $do23(client, request, options) {
|
|
55965
56831
|
const parsed = safeParse(
|
|
55966
56832
|
request,
|
|
55967
|
-
(value) =>
|
|
56833
|
+
(value) => z140.parse(DeleteCustomerParams$outboundSchema, value),
|
|
55968
56834
|
"Input validation failed"
|
|
55969
56835
|
);
|
|
55970
56836
|
if (!parsed.ok) {
|
|
@@ -56031,18 +56897,18 @@ async function $do22(client, request, options) {
|
|
|
56031
56897
|
}
|
|
56032
56898
|
|
|
56033
56899
|
// ../sdk/src/funcs/customers-get-or-create.ts
|
|
56034
|
-
var
|
|
56900
|
+
var z141 = __toESM(require("zod/v4-mini"), 1);
|
|
56035
56901
|
function customersGetOrCreate(client, request, options) {
|
|
56036
|
-
return new APIPromise($
|
|
56902
|
+
return new APIPromise($do24(
|
|
56037
56903
|
client,
|
|
56038
56904
|
request,
|
|
56039
56905
|
options
|
|
56040
56906
|
));
|
|
56041
56907
|
}
|
|
56042
|
-
async function $
|
|
56908
|
+
async function $do24(client, request, options) {
|
|
56043
56909
|
const parsed = safeParse(
|
|
56044
56910
|
request,
|
|
56045
|
-
(value) =>
|
|
56911
|
+
(value) => z141.parse(GetOrCreateCustomerParams$outboundSchema, value),
|
|
56046
56912
|
"Input validation failed"
|
|
56047
56913
|
);
|
|
56048
56914
|
if (!parsed.ok) {
|
|
@@ -56109,18 +56975,18 @@ async function $do23(client, request, options) {
|
|
|
56109
56975
|
}
|
|
56110
56976
|
|
|
56111
56977
|
// ../sdk/src/funcs/customers-get.ts
|
|
56112
|
-
var
|
|
56978
|
+
var z142 = __toESM(require("zod/v4-mini"), 1);
|
|
56113
56979
|
function customersGet(client, request, options) {
|
|
56114
|
-
return new APIPromise($
|
|
56980
|
+
return new APIPromise($do25(
|
|
56115
56981
|
client,
|
|
56116
56982
|
request,
|
|
56117
56983
|
options
|
|
56118
56984
|
));
|
|
56119
56985
|
}
|
|
56120
|
-
async function $
|
|
56986
|
+
async function $do25(client, request, options) {
|
|
56121
56987
|
const parsed = safeParse(
|
|
56122
56988
|
request,
|
|
56123
|
-
(value) =>
|
|
56989
|
+
(value) => z142.parse(GetCustomerParams$outboundSchema, value),
|
|
56124
56990
|
"Input validation failed"
|
|
56125
56991
|
);
|
|
56126
56992
|
if (!parsed.ok) {
|
|
@@ -56187,18 +57053,18 @@ async function $do24(client, request, options) {
|
|
|
56187
57053
|
}
|
|
56188
57054
|
|
|
56189
57055
|
// ../sdk/src/funcs/customers-list.ts
|
|
56190
|
-
var
|
|
57056
|
+
var z143 = __toESM(require("zod/v4-mini"), 1);
|
|
56191
57057
|
function customersList(client, request, options) {
|
|
56192
|
-
return new APIPromise($
|
|
57058
|
+
return new APIPromise($do26(
|
|
56193
57059
|
client,
|
|
56194
57060
|
request,
|
|
56195
57061
|
options
|
|
56196
57062
|
));
|
|
56197
57063
|
}
|
|
56198
|
-
async function $
|
|
57064
|
+
async function $do26(client, request, options) {
|
|
56199
57065
|
const parsed = safeParse(
|
|
56200
57066
|
request,
|
|
56201
|
-
(value) =>
|
|
57067
|
+
(value) => z143.parse(ListCustomersParams$outboundSchema, value),
|
|
56202
57068
|
"Input validation failed"
|
|
56203
57069
|
);
|
|
56204
57070
|
if (!parsed.ok) {
|
|
@@ -56265,18 +57131,18 @@ async function $do25(client, request, options) {
|
|
|
56265
57131
|
}
|
|
56266
57132
|
|
|
56267
57133
|
// ../sdk/src/funcs/customers-update.ts
|
|
56268
|
-
var
|
|
57134
|
+
var z144 = __toESM(require("zod/v4-mini"), 1);
|
|
56269
57135
|
function customersUpdate(client, request, options) {
|
|
56270
|
-
return new APIPromise($
|
|
57136
|
+
return new APIPromise($do27(
|
|
56271
57137
|
client,
|
|
56272
57138
|
request,
|
|
56273
57139
|
options
|
|
56274
57140
|
));
|
|
56275
57141
|
}
|
|
56276
|
-
async function $
|
|
57142
|
+
async function $do27(client, request, options) {
|
|
56277
57143
|
const parsed = safeParse(
|
|
56278
57144
|
request,
|
|
56279
|
-
(value) =>
|
|
57145
|
+
(value) => z144.parse(UpdateCustomerParams$outboundSchema, value),
|
|
56280
57146
|
"Input validation failed"
|
|
56281
57147
|
);
|
|
56282
57148
|
if (!parsed.ok) {
|
|
@@ -56447,18 +57313,18 @@ var Customers = class extends ClientSDK {
|
|
|
56447
57313
|
};
|
|
56448
57314
|
|
|
56449
57315
|
// ../sdk/src/funcs/entities-create.ts
|
|
56450
|
-
var
|
|
57316
|
+
var z145 = __toESM(require("zod/v4-mini"), 1);
|
|
56451
57317
|
function entitiesCreate(client, request, options) {
|
|
56452
|
-
return new APIPromise($
|
|
57318
|
+
return new APIPromise($do28(
|
|
56453
57319
|
client,
|
|
56454
57320
|
request,
|
|
56455
57321
|
options
|
|
56456
57322
|
));
|
|
56457
57323
|
}
|
|
56458
|
-
async function $
|
|
57324
|
+
async function $do28(client, request, options) {
|
|
56459
57325
|
const parsed = safeParse(
|
|
56460
57326
|
request,
|
|
56461
|
-
(value) =>
|
|
57327
|
+
(value) => z145.parse(CreateEntityParams$outboundSchema, value),
|
|
56462
57328
|
"Input validation failed"
|
|
56463
57329
|
);
|
|
56464
57330
|
if (!parsed.ok) {
|
|
@@ -56525,18 +57391,18 @@ async function $do27(client, request, options) {
|
|
|
56525
57391
|
}
|
|
56526
57392
|
|
|
56527
57393
|
// ../sdk/src/funcs/entities-delete.ts
|
|
56528
|
-
var
|
|
57394
|
+
var z146 = __toESM(require("zod/v4-mini"), 1);
|
|
56529
57395
|
function entitiesDelete(client, request, options) {
|
|
56530
|
-
return new APIPromise($
|
|
57396
|
+
return new APIPromise($do29(
|
|
56531
57397
|
client,
|
|
56532
57398
|
request,
|
|
56533
57399
|
options
|
|
56534
57400
|
));
|
|
56535
57401
|
}
|
|
56536
|
-
async function $
|
|
57402
|
+
async function $do29(client, request, options) {
|
|
56537
57403
|
const parsed = safeParse(
|
|
56538
57404
|
request,
|
|
56539
|
-
(value) =>
|
|
57405
|
+
(value) => z146.parse(DeleteEntityParams$outboundSchema, value),
|
|
56540
57406
|
"Input validation failed"
|
|
56541
57407
|
);
|
|
56542
57408
|
if (!parsed.ok) {
|
|
@@ -56603,18 +57469,18 @@ async function $do28(client, request, options) {
|
|
|
56603
57469
|
}
|
|
56604
57470
|
|
|
56605
57471
|
// ../sdk/src/funcs/entities-get.ts
|
|
56606
|
-
var
|
|
57472
|
+
var z147 = __toESM(require("zod/v4-mini"), 1);
|
|
56607
57473
|
function entitiesGet(client, request, options) {
|
|
56608
|
-
return new APIPromise($
|
|
57474
|
+
return new APIPromise($do30(
|
|
56609
57475
|
client,
|
|
56610
57476
|
request,
|
|
56611
57477
|
options
|
|
56612
57478
|
));
|
|
56613
57479
|
}
|
|
56614
|
-
async function $
|
|
57480
|
+
async function $do30(client, request, options) {
|
|
56615
57481
|
const parsed = safeParse(
|
|
56616
57482
|
request,
|
|
56617
|
-
(value) =>
|
|
57483
|
+
(value) => z147.parse(GetEntityParams$outboundSchema, value),
|
|
56618
57484
|
"Input validation failed"
|
|
56619
57485
|
);
|
|
56620
57486
|
if (!parsed.ok) {
|
|
@@ -56681,18 +57547,18 @@ async function $do29(client, request, options) {
|
|
|
56681
57547
|
}
|
|
56682
57548
|
|
|
56683
57549
|
// ../sdk/src/funcs/entities-list.ts
|
|
56684
|
-
var
|
|
57550
|
+
var z148 = __toESM(require("zod/v4-mini"), 1);
|
|
56685
57551
|
function entitiesList(client, request, options) {
|
|
56686
|
-
return new APIPromise($
|
|
57552
|
+
return new APIPromise($do31(
|
|
56687
57553
|
client,
|
|
56688
57554
|
request,
|
|
56689
57555
|
options
|
|
56690
57556
|
));
|
|
56691
57557
|
}
|
|
56692
|
-
async function $
|
|
57558
|
+
async function $do31(client, request, options) {
|
|
56693
57559
|
const parsed = safeParse(
|
|
56694
57560
|
request,
|
|
56695
|
-
(value) =>
|
|
57561
|
+
(value) => z148.parse(ListEntitiesParams$outboundSchema, value),
|
|
56696
57562
|
"Input validation failed"
|
|
56697
57563
|
);
|
|
56698
57564
|
if (!parsed.ok) {
|
|
@@ -56759,18 +57625,18 @@ async function $do30(client, request, options) {
|
|
|
56759
57625
|
}
|
|
56760
57626
|
|
|
56761
57627
|
// ../sdk/src/funcs/entities-update.ts
|
|
56762
|
-
var
|
|
57628
|
+
var z149 = __toESM(require("zod/v4-mini"), 1);
|
|
56763
57629
|
function entitiesUpdate(client, request, options) {
|
|
56764
|
-
return new APIPromise($
|
|
57630
|
+
return new APIPromise($do32(
|
|
56765
57631
|
client,
|
|
56766
57632
|
request,
|
|
56767
57633
|
options
|
|
56768
57634
|
));
|
|
56769
57635
|
}
|
|
56770
|
-
async function $
|
|
57636
|
+
async function $do32(client, request, options) {
|
|
56771
57637
|
const parsed = safeParse(
|
|
56772
57638
|
request,
|
|
56773
|
-
(value) =>
|
|
57639
|
+
(value) => z149.parse(UpdateEntityParams$outboundSchema, value),
|
|
56774
57640
|
"Input validation failed"
|
|
56775
57641
|
);
|
|
56776
57642
|
if (!parsed.ok) {
|
|
@@ -56984,18 +57850,18 @@ var Entities = class extends ClientSDK {
|
|
|
56984
57850
|
};
|
|
56985
57851
|
|
|
56986
57852
|
// ../sdk/src/funcs/events-aggregate.ts
|
|
56987
|
-
var
|
|
57853
|
+
var z150 = __toESM(require("zod/v4-mini"), 1);
|
|
56988
57854
|
function eventsAggregate(client, request, options) {
|
|
56989
|
-
return new APIPromise($
|
|
57855
|
+
return new APIPromise($do33(
|
|
56990
57856
|
client,
|
|
56991
57857
|
request,
|
|
56992
57858
|
options
|
|
56993
57859
|
));
|
|
56994
57860
|
}
|
|
56995
|
-
async function $
|
|
57861
|
+
async function $do33(client, request, options) {
|
|
56996
57862
|
const parsed = safeParse(
|
|
56997
57863
|
request,
|
|
56998
|
-
(value) =>
|
|
57864
|
+
(value) => z150.parse(EventsAggregateParams$outboundSchema, value),
|
|
56999
57865
|
"Input validation failed"
|
|
57000
57866
|
);
|
|
57001
57867
|
if (!parsed.ok) {
|
|
@@ -57062,18 +57928,18 @@ async function $do32(client, request, options) {
|
|
|
57062
57928
|
}
|
|
57063
57929
|
|
|
57064
57930
|
// ../sdk/src/funcs/events-list.ts
|
|
57065
|
-
var
|
|
57931
|
+
var z151 = __toESM(require("zod/v4-mini"), 1);
|
|
57066
57932
|
function eventsList(client, request, options) {
|
|
57067
|
-
return new APIPromise($
|
|
57933
|
+
return new APIPromise($do34(
|
|
57068
57934
|
client,
|
|
57069
57935
|
request,
|
|
57070
57936
|
options
|
|
57071
57937
|
));
|
|
57072
57938
|
}
|
|
57073
|
-
async function $
|
|
57939
|
+
async function $do34(client, request, options) {
|
|
57074
57940
|
const parsed = safeParse(
|
|
57075
57941
|
request,
|
|
57076
|
-
(value) =>
|
|
57942
|
+
(value) => z151.parse(EventsListParams$outboundSchema, value),
|
|
57077
57943
|
"Input validation failed"
|
|
57078
57944
|
);
|
|
57079
57945
|
if (!parsed.ok) {
|
|
@@ -57164,18 +58030,18 @@ var Events = class extends ClientSDK {
|
|
|
57164
58030
|
};
|
|
57165
58031
|
|
|
57166
58032
|
// ../sdk/src/funcs/features-create.ts
|
|
57167
|
-
var
|
|
58033
|
+
var z152 = __toESM(require("zod/v4-mini"), 1);
|
|
57168
58034
|
function featuresCreate(client, request, options) {
|
|
57169
|
-
return new APIPromise($
|
|
58035
|
+
return new APIPromise($do35(
|
|
57170
58036
|
client,
|
|
57171
58037
|
request,
|
|
57172
58038
|
options
|
|
57173
58039
|
));
|
|
57174
58040
|
}
|
|
57175
|
-
async function $
|
|
58041
|
+
async function $do35(client, request, options) {
|
|
57176
58042
|
const parsed = safeParse(
|
|
57177
58043
|
request,
|
|
57178
|
-
(value) =>
|
|
58044
|
+
(value) => z152.parse(CreateFeatureParams$outboundSchema, value),
|
|
57179
58045
|
"Input validation failed"
|
|
57180
58046
|
);
|
|
57181
58047
|
if (!parsed.ok) {
|
|
@@ -57242,18 +58108,18 @@ async function $do34(client, request, options) {
|
|
|
57242
58108
|
}
|
|
57243
58109
|
|
|
57244
58110
|
// ../sdk/src/funcs/features-delete.ts
|
|
57245
|
-
var
|
|
58111
|
+
var z153 = __toESM(require("zod/v4-mini"), 1);
|
|
57246
58112
|
function featuresDelete(client, request, options) {
|
|
57247
|
-
return new APIPromise($
|
|
58113
|
+
return new APIPromise($do36(
|
|
57248
58114
|
client,
|
|
57249
58115
|
request,
|
|
57250
58116
|
options
|
|
57251
58117
|
));
|
|
57252
58118
|
}
|
|
57253
|
-
async function $
|
|
58119
|
+
async function $do36(client, request, options) {
|
|
57254
58120
|
const parsed = safeParse(
|
|
57255
58121
|
request,
|
|
57256
|
-
(value) =>
|
|
58122
|
+
(value) => z153.parse(DeleteFeatureParams$outboundSchema, value),
|
|
57257
58123
|
"Input validation failed"
|
|
57258
58124
|
);
|
|
57259
58125
|
if (!parsed.ok) {
|
|
@@ -57320,18 +58186,18 @@ async function $do35(client, request, options) {
|
|
|
57320
58186
|
}
|
|
57321
58187
|
|
|
57322
58188
|
// ../sdk/src/funcs/features-get.ts
|
|
57323
|
-
var
|
|
58189
|
+
var z154 = __toESM(require("zod/v4-mini"), 1);
|
|
57324
58190
|
function featuresGet(client, request, options) {
|
|
57325
|
-
return new APIPromise($
|
|
58191
|
+
return new APIPromise($do37(
|
|
57326
58192
|
client,
|
|
57327
58193
|
request,
|
|
57328
58194
|
options
|
|
57329
58195
|
));
|
|
57330
58196
|
}
|
|
57331
|
-
async function $
|
|
58197
|
+
async function $do37(client, request, options) {
|
|
57332
58198
|
const parsed = safeParse(
|
|
57333
58199
|
request,
|
|
57334
|
-
(value) =>
|
|
58200
|
+
(value) => z154.parse(GetFeatureParams$outboundSchema, value),
|
|
57335
58201
|
"Input validation failed"
|
|
57336
58202
|
);
|
|
57337
58203
|
if (!parsed.ok) {
|
|
@@ -57399,13 +58265,13 @@ async function $do36(client, request, options) {
|
|
|
57399
58265
|
|
|
57400
58266
|
// ../sdk/src/funcs/features-list.ts
|
|
57401
58267
|
function featuresList(client, _request, options) {
|
|
57402
|
-
return new APIPromise($
|
|
58268
|
+
return new APIPromise($do38(
|
|
57403
58269
|
client,
|
|
57404
58270
|
_request,
|
|
57405
58271
|
options
|
|
57406
58272
|
));
|
|
57407
58273
|
}
|
|
57408
|
-
async function $
|
|
58274
|
+
async function $do38(client, _request, options) {
|
|
57409
58275
|
const path = pathToFunc("/v1/features.list")();
|
|
57410
58276
|
const headers = new Headers(compactMap({
|
|
57411
58277
|
Accept: "application/json",
|
|
@@ -57463,18 +58329,18 @@ async function $do37(client, _request, options) {
|
|
|
57463
58329
|
}
|
|
57464
58330
|
|
|
57465
58331
|
// ../sdk/src/funcs/features-update.ts
|
|
57466
|
-
var
|
|
58332
|
+
var z155 = __toESM(require("zod/v4-mini"), 1);
|
|
57467
58333
|
function featuresUpdate(client, request, options) {
|
|
57468
|
-
return new APIPromise($
|
|
58334
|
+
return new APIPromise($do39(
|
|
57469
58335
|
client,
|
|
57470
58336
|
request,
|
|
57471
58337
|
options
|
|
57472
58338
|
));
|
|
57473
58339
|
}
|
|
57474
|
-
async function $
|
|
58340
|
+
async function $do39(client, request, options) {
|
|
57475
58341
|
const parsed = safeParse(
|
|
57476
58342
|
request,
|
|
57477
|
-
(value) =>
|
|
58343
|
+
(value) => z155.parse(UpdateFeatureParams$outboundSchema, value),
|
|
57478
58344
|
"Input validation failed"
|
|
57479
58345
|
);
|
|
57480
58346
|
if (!parsed.ok) {
|
|
@@ -57683,18 +58549,18 @@ var Features = class extends ClientSDK {
|
|
|
57683
58549
|
};
|
|
57684
58550
|
|
|
57685
58551
|
// ../sdk/src/funcs/invoices-create.ts
|
|
57686
|
-
var
|
|
58552
|
+
var z156 = __toESM(require("zod/v4-mini"), 1);
|
|
57687
58553
|
function invoicesCreate(client, request, options) {
|
|
57688
|
-
return new APIPromise($
|
|
58554
|
+
return new APIPromise($do40(
|
|
57689
58555
|
client,
|
|
57690
58556
|
request,
|
|
57691
58557
|
options
|
|
57692
58558
|
));
|
|
57693
58559
|
}
|
|
57694
|
-
async function $
|
|
58560
|
+
async function $do40(client, request, options) {
|
|
57695
58561
|
const parsed = safeParse(
|
|
57696
58562
|
request,
|
|
57697
|
-
(value) =>
|
|
58563
|
+
(value) => z156.parse(CreateInvoiceParams$outboundSchema, value),
|
|
57698
58564
|
"Input validation failed"
|
|
57699
58565
|
);
|
|
57700
58566
|
if (!parsed.ok) {
|
|
@@ -57761,18 +58627,18 @@ async function $do39(client, request, options) {
|
|
|
57761
58627
|
}
|
|
57762
58628
|
|
|
57763
58629
|
// ../sdk/src/funcs/invoices-insert.ts
|
|
57764
|
-
var
|
|
58630
|
+
var z157 = __toESM(require("zod/v4-mini"), 1);
|
|
57765
58631
|
function invoicesInsert(client, request, options) {
|
|
57766
|
-
return new APIPromise($
|
|
58632
|
+
return new APIPromise($do41(
|
|
57767
58633
|
client,
|
|
57768
58634
|
request,
|
|
57769
58635
|
options
|
|
57770
58636
|
));
|
|
57771
58637
|
}
|
|
57772
|
-
async function $
|
|
58638
|
+
async function $do41(client, request, options) {
|
|
57773
58639
|
const parsed = safeParse(
|
|
57774
58640
|
request,
|
|
57775
|
-
(value) =>
|
|
58641
|
+
(value) => z157.parse(InsertInvoicesParams$outboundSchema, value),
|
|
57776
58642
|
"Input validation failed"
|
|
57777
58643
|
);
|
|
57778
58644
|
if (!parsed.ok) {
|
|
@@ -57839,18 +58705,18 @@ async function $do40(client, request, options) {
|
|
|
57839
58705
|
}
|
|
57840
58706
|
|
|
57841
58707
|
// ../sdk/src/funcs/invoices-list-templates.ts
|
|
57842
|
-
var
|
|
58708
|
+
var z158 = __toESM(require("zod/v4-mini"), 1);
|
|
57843
58709
|
function invoicesListTemplates(client, request, options) {
|
|
57844
|
-
return new APIPromise($
|
|
58710
|
+
return new APIPromise($do42(
|
|
57845
58711
|
client,
|
|
57846
58712
|
request,
|
|
57847
58713
|
options
|
|
57848
58714
|
));
|
|
57849
58715
|
}
|
|
57850
|
-
async function $
|
|
58716
|
+
async function $do42(client, request, options) {
|
|
57851
58717
|
const parsed = safeParse(
|
|
57852
58718
|
request,
|
|
57853
|
-
(value) =>
|
|
58719
|
+
(value) => z158.parse(ListInvoiceTemplatesParams$outboundSchema, value),
|
|
57854
58720
|
"Input validation failed"
|
|
57855
58721
|
);
|
|
57856
58722
|
if (!parsed.ok) {
|
|
@@ -57917,18 +58783,18 @@ async function $do41(client, request, options) {
|
|
|
57917
58783
|
}
|
|
57918
58784
|
|
|
57919
58785
|
// ../sdk/src/funcs/invoices-list.ts
|
|
57920
|
-
var
|
|
58786
|
+
var z159 = __toESM(require("zod/v4-mini"), 1);
|
|
57921
58787
|
function invoicesList(client, request, options) {
|
|
57922
|
-
return new APIPromise($
|
|
58788
|
+
return new APIPromise($do43(
|
|
57923
58789
|
client,
|
|
57924
58790
|
request,
|
|
57925
58791
|
options
|
|
57926
58792
|
));
|
|
57927
58793
|
}
|
|
57928
|
-
async function $
|
|
58794
|
+
async function $do43(client, request, options) {
|
|
57929
58795
|
const parsed = safeParse(
|
|
57930
58796
|
request,
|
|
57931
|
-
(value) =>
|
|
58797
|
+
(value) => z159.parse(ListInvoicesParams$outboundSchema, value),
|
|
57932
58798
|
"Input validation failed"
|
|
57933
58799
|
);
|
|
57934
58800
|
if (!parsed.ok) {
|
|
@@ -57995,18 +58861,18 @@ async function $do42(client, request, options) {
|
|
|
57995
58861
|
}
|
|
57996
58862
|
|
|
57997
58863
|
// ../sdk/src/funcs/invoices-pay.ts
|
|
57998
|
-
var
|
|
58864
|
+
var z160 = __toESM(require("zod/v4-mini"), 1);
|
|
57999
58865
|
function invoicesPay(client, request, options) {
|
|
58000
|
-
return new APIPromise($
|
|
58866
|
+
return new APIPromise($do44(
|
|
58001
58867
|
client,
|
|
58002
58868
|
request,
|
|
58003
58869
|
options
|
|
58004
58870
|
));
|
|
58005
58871
|
}
|
|
58006
|
-
async function $
|
|
58872
|
+
async function $do44(client, request, options) {
|
|
58007
58873
|
const parsed = safeParse(
|
|
58008
58874
|
request,
|
|
58009
|
-
(value) =>
|
|
58875
|
+
(value) => z160.parse(PayInvoiceParams$outboundSchema, value),
|
|
58010
58876
|
"Input validation failed"
|
|
58011
58877
|
);
|
|
58012
58878
|
if (!parsed.ok) {
|
|
@@ -58073,18 +58939,18 @@ async function $do43(client, request, options) {
|
|
|
58073
58939
|
}
|
|
58074
58940
|
|
|
58075
58941
|
// ../sdk/src/funcs/invoices-reissue.ts
|
|
58076
|
-
var
|
|
58942
|
+
var z161 = __toESM(require("zod/v4-mini"), 1);
|
|
58077
58943
|
function invoicesReissue(client, request, options) {
|
|
58078
|
-
return new APIPromise($
|
|
58944
|
+
return new APIPromise($do45(
|
|
58079
58945
|
client,
|
|
58080
58946
|
request,
|
|
58081
58947
|
options
|
|
58082
58948
|
));
|
|
58083
58949
|
}
|
|
58084
|
-
async function $
|
|
58950
|
+
async function $do45(client, request, options) {
|
|
58085
58951
|
const parsed = safeParse(
|
|
58086
58952
|
request,
|
|
58087
|
-
(value) =>
|
|
58953
|
+
(value) => z161.parse(ReissueInvoiceParams$outboundSchema, value),
|
|
58088
58954
|
"Input validation failed"
|
|
58089
58955
|
);
|
|
58090
58956
|
if (!parsed.ok) {
|
|
@@ -58151,18 +59017,18 @@ async function $do44(client, request, options) {
|
|
|
58151
59017
|
}
|
|
58152
59018
|
|
|
58153
59019
|
// ../sdk/src/funcs/invoices-void.ts
|
|
58154
|
-
var
|
|
59020
|
+
var z162 = __toESM(require("zod/v4-mini"), 1);
|
|
58155
59021
|
function invoicesVoid(client, request, options) {
|
|
58156
|
-
return new APIPromise($
|
|
59022
|
+
return new APIPromise($do46(
|
|
58157
59023
|
client,
|
|
58158
59024
|
request,
|
|
58159
59025
|
options
|
|
58160
59026
|
));
|
|
58161
59027
|
}
|
|
58162
|
-
async function $
|
|
59028
|
+
async function $do46(client, request, options) {
|
|
58163
59029
|
const parsed = safeParse(
|
|
58164
59030
|
request,
|
|
58165
|
-
(value) =>
|
|
59031
|
+
(value) => z162.parse(VoidInvoiceParams$outboundSchema, value),
|
|
58166
59032
|
"Input validation failed"
|
|
58167
59033
|
);
|
|
58168
59034
|
if (!parsed.ok) {
|
|
@@ -58303,18 +59169,18 @@ var Invoices = class extends ClientSDK {
|
|
|
58303
59169
|
};
|
|
58304
59170
|
|
|
58305
59171
|
// ../sdk/src/funcs/keys-mint.ts
|
|
58306
|
-
var
|
|
59172
|
+
var z163 = __toESM(require("zod/v4-mini"), 1);
|
|
58307
59173
|
function keysMint(client, request, options) {
|
|
58308
|
-
return new APIPromise($
|
|
59174
|
+
return new APIPromise($do47(
|
|
58309
59175
|
client,
|
|
58310
59176
|
request,
|
|
58311
59177
|
options
|
|
58312
59178
|
));
|
|
58313
59179
|
}
|
|
58314
|
-
async function $
|
|
59180
|
+
async function $do47(client, request, options) {
|
|
58315
59181
|
const parsed = safeParse(
|
|
58316
59182
|
request,
|
|
58317
|
-
(value) =>
|
|
59183
|
+
(value) => z163.parse(MintKeyParams$outboundSchema, value),
|
|
58318
59184
|
"Input validation failed"
|
|
58319
59185
|
);
|
|
58320
59186
|
if (!parsed.ok) {
|
|
@@ -58382,13 +59248,13 @@ async function $do46(client, request, options) {
|
|
|
58382
59248
|
|
|
58383
59249
|
// ../sdk/src/funcs/keys-refresh.ts
|
|
58384
59250
|
function keysRefresh(client, _request, options) {
|
|
58385
|
-
return new APIPromise($
|
|
59251
|
+
return new APIPromise($do48(
|
|
58386
59252
|
client,
|
|
58387
59253
|
_request,
|
|
58388
59254
|
options
|
|
58389
59255
|
));
|
|
58390
59256
|
}
|
|
58391
|
-
async function $
|
|
59257
|
+
async function $do48(client, _request, options) {
|
|
58392
59258
|
const path = pathToFunc("/v1/keys.refresh")();
|
|
58393
59259
|
const headers = new Headers(compactMap({
|
|
58394
59260
|
"Content-Type": "application/json",
|
|
@@ -58447,18 +59313,18 @@ async function $do47(client, _request, options) {
|
|
|
58447
59313
|
}
|
|
58448
59314
|
|
|
58449
59315
|
// ../sdk/src/funcs/keys-revoke.ts
|
|
58450
|
-
var
|
|
59316
|
+
var z164 = __toESM(require("zod/v4-mini"), 1);
|
|
58451
59317
|
function keysRevoke(client, request, options) {
|
|
58452
|
-
return new APIPromise($
|
|
59318
|
+
return new APIPromise($do49(
|
|
58453
59319
|
client,
|
|
58454
59320
|
request,
|
|
58455
59321
|
options
|
|
58456
59322
|
));
|
|
58457
59323
|
}
|
|
58458
|
-
async function $
|
|
59324
|
+
async function $do49(client, request, options) {
|
|
58459
59325
|
const parsed = safeParse(
|
|
58460
59326
|
request,
|
|
58461
|
-
(value) =>
|
|
59327
|
+
(value) => z164.parse(RevokeKeyParams$outboundSchema, value),
|
|
58462
59328
|
"Input validation failed"
|
|
58463
59329
|
);
|
|
58464
59330
|
if (!parsed.ok) {
|
|
@@ -58559,18 +59425,18 @@ var Keys = class extends ClientSDK {
|
|
|
58559
59425
|
};
|
|
58560
59426
|
|
|
58561
59427
|
// ../sdk/src/funcs/licenses-attach.ts
|
|
58562
|
-
var
|
|
59428
|
+
var z165 = __toESM(require("zod/v4-mini"), 1);
|
|
58563
59429
|
function licensesAttach(client, request, options) {
|
|
58564
|
-
return new APIPromise($
|
|
59430
|
+
return new APIPromise($do50(
|
|
58565
59431
|
client,
|
|
58566
59432
|
request,
|
|
58567
59433
|
options
|
|
58568
59434
|
));
|
|
58569
59435
|
}
|
|
58570
|
-
async function $
|
|
59436
|
+
async function $do50(client, request, options) {
|
|
58571
59437
|
const parsed = safeParse(
|
|
58572
59438
|
request,
|
|
58573
|
-
(value) =>
|
|
59439
|
+
(value) => z165.parse(AttachLicenseParams$outboundSchema, value),
|
|
58574
59440
|
"Input validation failed"
|
|
58575
59441
|
);
|
|
58576
59442
|
if (!parsed.ok) {
|
|
@@ -58637,18 +59503,18 @@ async function $do49(client, request, options) {
|
|
|
58637
59503
|
}
|
|
58638
59504
|
|
|
58639
59505
|
// ../sdk/src/funcs/licenses-release.ts
|
|
58640
|
-
var
|
|
59506
|
+
var z166 = __toESM(require("zod/v4-mini"), 1);
|
|
58641
59507
|
function licensesRelease(client, request, options) {
|
|
58642
|
-
return new APIPromise($
|
|
59508
|
+
return new APIPromise($do51(
|
|
58643
59509
|
client,
|
|
58644
59510
|
request,
|
|
58645
59511
|
options
|
|
58646
59512
|
));
|
|
58647
59513
|
}
|
|
58648
|
-
async function $
|
|
59514
|
+
async function $do51(client, request, options) {
|
|
58649
59515
|
const parsed = safeParse(
|
|
58650
59516
|
request,
|
|
58651
|
-
(value) =>
|
|
59517
|
+
(value) => z166.parse(ReleaseLicenseParams$outboundSchema, value),
|
|
58652
59518
|
"Input validation failed"
|
|
58653
59519
|
);
|
|
58654
59520
|
if (!parsed.ok) {
|
|
@@ -58739,18 +59605,18 @@ var Licenses = class extends ClientSDK {
|
|
|
58739
59605
|
};
|
|
58740
59606
|
|
|
58741
59607
|
// ../sdk/src/funcs/logs-search.ts
|
|
58742
|
-
var
|
|
59608
|
+
var z167 = __toESM(require("zod/v4-mini"), 1);
|
|
58743
59609
|
function logsSearch(client, request, options) {
|
|
58744
|
-
return new APIPromise($
|
|
59610
|
+
return new APIPromise($do52(
|
|
58745
59611
|
client,
|
|
58746
59612
|
request,
|
|
58747
59613
|
options
|
|
58748
59614
|
));
|
|
58749
59615
|
}
|
|
58750
|
-
async function $
|
|
59616
|
+
async function $do52(client, request, options) {
|
|
58751
59617
|
const parsed = safeParse(
|
|
58752
59618
|
request,
|
|
58753
|
-
(value) =>
|
|
59619
|
+
(value) => z167.parse(SearchRequestLogsParams$outboundSchema, value),
|
|
58754
59620
|
"Input validation failed"
|
|
58755
59621
|
);
|
|
58756
59622
|
if (!parsed.ok) {
|
|
@@ -58831,18 +59697,18 @@ var Logs = class extends ClientSDK {
|
|
|
58831
59697
|
};
|
|
58832
59698
|
|
|
58833
59699
|
// ../sdk/src/funcs/plans-create.ts
|
|
58834
|
-
var
|
|
59700
|
+
var z168 = __toESM(require("zod/v4-mini"), 1);
|
|
58835
59701
|
function plansCreate(client, request, options) {
|
|
58836
|
-
return new APIPromise($
|
|
59702
|
+
return new APIPromise($do53(
|
|
58837
59703
|
client,
|
|
58838
59704
|
request,
|
|
58839
59705
|
options
|
|
58840
59706
|
));
|
|
58841
59707
|
}
|
|
58842
|
-
async function $
|
|
59708
|
+
async function $do53(client, request, options) {
|
|
58843
59709
|
const parsed = safeParse(
|
|
58844
59710
|
request,
|
|
58845
|
-
(value) =>
|
|
59711
|
+
(value) => z168.parse(CreatePlanParams$outboundSchema, value),
|
|
58846
59712
|
"Input validation failed"
|
|
58847
59713
|
);
|
|
58848
59714
|
if (!parsed.ok) {
|
|
@@ -58909,18 +59775,18 @@ async function $do52(client, request, options) {
|
|
|
58909
59775
|
}
|
|
58910
59776
|
|
|
58911
59777
|
// ../sdk/src/funcs/plans-delete.ts
|
|
58912
|
-
var
|
|
59778
|
+
var z169 = __toESM(require("zod/v4-mini"), 1);
|
|
58913
59779
|
function plansDelete(client, request, options) {
|
|
58914
|
-
return new APIPromise($
|
|
59780
|
+
return new APIPromise($do54(
|
|
58915
59781
|
client,
|
|
58916
59782
|
request,
|
|
58917
59783
|
options
|
|
58918
59784
|
));
|
|
58919
59785
|
}
|
|
58920
|
-
async function $
|
|
59786
|
+
async function $do54(client, request, options) {
|
|
58921
59787
|
const parsed = safeParse(
|
|
58922
59788
|
request,
|
|
58923
|
-
(value) =>
|
|
59789
|
+
(value) => z169.parse(DeletePlanParams$outboundSchema, value),
|
|
58924
59790
|
"Input validation failed"
|
|
58925
59791
|
);
|
|
58926
59792
|
if (!parsed.ok) {
|
|
@@ -58987,18 +59853,18 @@ async function $do53(client, request, options) {
|
|
|
58987
59853
|
}
|
|
58988
59854
|
|
|
58989
59855
|
// ../sdk/src/funcs/plans-get.ts
|
|
58990
|
-
var
|
|
59856
|
+
var z170 = __toESM(require("zod/v4-mini"), 1);
|
|
58991
59857
|
function plansGet(client, request, options) {
|
|
58992
|
-
return new APIPromise($
|
|
59858
|
+
return new APIPromise($do55(
|
|
58993
59859
|
client,
|
|
58994
59860
|
request,
|
|
58995
59861
|
options
|
|
58996
59862
|
));
|
|
58997
59863
|
}
|
|
58998
|
-
async function $
|
|
59864
|
+
async function $do55(client, request, options) {
|
|
58999
59865
|
const parsed = safeParse(
|
|
59000
59866
|
request,
|
|
59001
|
-
(value) =>
|
|
59867
|
+
(value) => z170.parse(GetPlanParams$outboundSchema, value),
|
|
59002
59868
|
"Input validation failed"
|
|
59003
59869
|
);
|
|
59004
59870
|
if (!parsed.ok) {
|
|
@@ -59065,18 +59931,18 @@ async function $do54(client, request, options) {
|
|
|
59065
59931
|
}
|
|
59066
59932
|
|
|
59067
59933
|
// ../sdk/src/funcs/plans-list.ts
|
|
59068
|
-
var
|
|
59934
|
+
var z171 = __toESM(require("zod/v4-mini"), 1);
|
|
59069
59935
|
function plansList(client, request, options) {
|
|
59070
|
-
return new APIPromise($
|
|
59936
|
+
return new APIPromise($do56(
|
|
59071
59937
|
client,
|
|
59072
59938
|
request,
|
|
59073
59939
|
options
|
|
59074
59940
|
));
|
|
59075
59941
|
}
|
|
59076
|
-
async function $
|
|
59942
|
+
async function $do56(client, request, options) {
|
|
59077
59943
|
const parsed = safeParse(
|
|
59078
59944
|
request,
|
|
59079
|
-
(value) =>
|
|
59945
|
+
(value) => z171.parse(z171.optional(ListPlansParams$outboundSchema), value),
|
|
59080
59946
|
"Input validation failed"
|
|
59081
59947
|
);
|
|
59082
59948
|
if (!parsed.ok) {
|
|
@@ -59143,18 +60009,18 @@ async function $do55(client, request, options) {
|
|
|
59143
60009
|
}
|
|
59144
60010
|
|
|
59145
60011
|
// ../sdk/src/funcs/plans-update.ts
|
|
59146
|
-
var
|
|
60012
|
+
var z172 = __toESM(require("zod/v4-mini"), 1);
|
|
59147
60013
|
function plansUpdate(client, request, options) {
|
|
59148
|
-
return new APIPromise($
|
|
60014
|
+
return new APIPromise($do57(
|
|
59149
60015
|
client,
|
|
59150
60016
|
request,
|
|
59151
60017
|
options
|
|
59152
60018
|
));
|
|
59153
60019
|
}
|
|
59154
|
-
async function $
|
|
60020
|
+
async function $do57(client, request, options) {
|
|
59155
60021
|
const parsed = safeParse(
|
|
59156
60022
|
request,
|
|
59157
|
-
(value) =>
|
|
60023
|
+
(value) => z172.parse(UpdatePlanParams$outboundSchema, value),
|
|
59158
60024
|
"Input validation failed"
|
|
59159
60025
|
);
|
|
59160
60026
|
if (!parsed.ok) {
|
|
@@ -59463,18 +60329,18 @@ var Plans = class extends ClientSDK {
|
|
|
59463
60329
|
};
|
|
59464
60330
|
|
|
59465
60331
|
// ../sdk/src/funcs/platform-disconnect-stripe.ts
|
|
59466
|
-
var
|
|
60332
|
+
var z173 = __toESM(require("zod/v4-mini"), 1);
|
|
59467
60333
|
function platformDisconnectStripe(client, request, options) {
|
|
59468
|
-
return new APIPromise($
|
|
60334
|
+
return new APIPromise($do58(
|
|
59469
60335
|
client,
|
|
59470
60336
|
request,
|
|
59471
60337
|
options
|
|
59472
60338
|
));
|
|
59473
60339
|
}
|
|
59474
|
-
async function $
|
|
60340
|
+
async function $do58(client, request, options) {
|
|
59475
60341
|
const parsed = safeParse(
|
|
59476
60342
|
request,
|
|
59477
|
-
(value) =>
|
|
60343
|
+
(value) => z173.parse(DisconnectStripeParams$outboundSchema, value),
|
|
59478
60344
|
"Input validation failed"
|
|
59479
60345
|
);
|
|
59480
60346
|
if (!parsed.ok) {
|
|
@@ -59541,18 +60407,18 @@ async function $do57(client, request, options) {
|
|
|
59541
60407
|
}
|
|
59542
60408
|
|
|
59543
60409
|
// ../sdk/src/funcs/platform-get-revenue-cat-keys.ts
|
|
59544
|
-
var
|
|
60410
|
+
var z174 = __toESM(require("zod/v4-mini"), 1);
|
|
59545
60411
|
function platformGetRevenueCatKeys(client, request, options) {
|
|
59546
|
-
return new APIPromise($
|
|
60412
|
+
return new APIPromise($do59(
|
|
59547
60413
|
client,
|
|
59548
60414
|
request,
|
|
59549
60415
|
options
|
|
59550
60416
|
));
|
|
59551
60417
|
}
|
|
59552
|
-
async function $
|
|
60418
|
+
async function $do59(client, request, options) {
|
|
59553
60419
|
const parsed = safeParse(
|
|
59554
60420
|
request,
|
|
59555
|
-
(value) =>
|
|
60421
|
+
(value) => z174.parse(GetRevenueCatKeysParams$outboundSchema, value),
|
|
59556
60422
|
"Input validation failed"
|
|
59557
60423
|
);
|
|
59558
60424
|
if (!parsed.ok) {
|
|
@@ -59619,18 +60485,18 @@ async function $do58(client, request, options) {
|
|
|
59619
60485
|
}
|
|
59620
60486
|
|
|
59621
60487
|
// ../sdk/src/funcs/platform-get-stripe-connection.ts
|
|
59622
|
-
var
|
|
60488
|
+
var z175 = __toESM(require("zod/v4-mini"), 1);
|
|
59623
60489
|
function platformGetStripeConnection(client, request, options) {
|
|
59624
|
-
return new APIPromise($
|
|
60490
|
+
return new APIPromise($do60(
|
|
59625
60491
|
client,
|
|
59626
60492
|
request,
|
|
59627
60493
|
options
|
|
59628
60494
|
));
|
|
59629
60495
|
}
|
|
59630
|
-
async function $
|
|
60496
|
+
async function $do60(client, request, options) {
|
|
59631
60497
|
const parsed = safeParse(
|
|
59632
60498
|
request,
|
|
59633
|
-
(value) =>
|
|
60499
|
+
(value) => z175.parse(GetStripeConnectionParams$outboundSchema, value),
|
|
59634
60500
|
"Input validation failed"
|
|
59635
60501
|
);
|
|
59636
60502
|
if (!parsed.ok) {
|
|
@@ -59697,18 +60563,18 @@ async function $do59(client, request, options) {
|
|
|
59697
60563
|
}
|
|
59698
60564
|
|
|
59699
60565
|
// ../sdk/src/funcs/platform-link-revenue-cat.ts
|
|
59700
|
-
var
|
|
60566
|
+
var z176 = __toESM(require("zod/v4-mini"), 1);
|
|
59701
60567
|
function platformLinkRevenueCat(client, request, options) {
|
|
59702
|
-
return new APIPromise($
|
|
60568
|
+
return new APIPromise($do61(
|
|
59703
60569
|
client,
|
|
59704
60570
|
request,
|
|
59705
60571
|
options
|
|
59706
60572
|
));
|
|
59707
60573
|
}
|
|
59708
|
-
async function $
|
|
60574
|
+
async function $do61(client, request, options) {
|
|
59709
60575
|
const parsed = safeParse(
|
|
59710
60576
|
request,
|
|
59711
|
-
(value) =>
|
|
60577
|
+
(value) => z176.parse(LinkRevenueCatParams$outboundSchema, value),
|
|
59712
60578
|
"Input validation failed"
|
|
59713
60579
|
);
|
|
59714
60580
|
if (!parsed.ok) {
|
|
@@ -59775,18 +60641,18 @@ async function $do60(client, request, options) {
|
|
|
59775
60641
|
}
|
|
59776
60642
|
|
|
59777
60643
|
// ../sdk/src/funcs/platform-sync-revenue-cat.ts
|
|
59778
|
-
var
|
|
60644
|
+
var z177 = __toESM(require("zod/v4-mini"), 1);
|
|
59779
60645
|
function platformSyncRevenueCat(client, request, options) {
|
|
59780
|
-
return new APIPromise($
|
|
60646
|
+
return new APIPromise($do62(
|
|
59781
60647
|
client,
|
|
59782
60648
|
request,
|
|
59783
60649
|
options
|
|
59784
60650
|
));
|
|
59785
60651
|
}
|
|
59786
|
-
async function $
|
|
60652
|
+
async function $do62(client, request, options) {
|
|
59787
60653
|
const parsed = safeParse(
|
|
59788
60654
|
request,
|
|
59789
|
-
(value) =>
|
|
60655
|
+
(value) => z177.parse(SyncRevenueCatParams$outboundSchema, value),
|
|
59790
60656
|
"Input validation failed"
|
|
59791
60657
|
);
|
|
59792
60658
|
if (!parsed.ok) {
|
|
@@ -59907,18 +60773,18 @@ var Platform = class extends ClientSDK {
|
|
|
59907
60773
|
};
|
|
59908
60774
|
|
|
59909
60775
|
// ../sdk/src/funcs/referrals-create-code.ts
|
|
59910
|
-
var
|
|
60776
|
+
var z178 = __toESM(require("zod/v4-mini"), 1);
|
|
59911
60777
|
function referralsCreateCode(client, request, options) {
|
|
59912
|
-
return new APIPromise($
|
|
60778
|
+
return new APIPromise($do63(
|
|
59913
60779
|
client,
|
|
59914
60780
|
request,
|
|
59915
60781
|
options
|
|
59916
60782
|
));
|
|
59917
60783
|
}
|
|
59918
|
-
async function $
|
|
60784
|
+
async function $do63(client, request, options) {
|
|
59919
60785
|
const parsed = safeParse(
|
|
59920
60786
|
request,
|
|
59921
|
-
(value) =>
|
|
60787
|
+
(value) => z178.parse(CreateReferralCodeParams$outboundSchema, value),
|
|
59922
60788
|
"Input validation failed"
|
|
59923
60789
|
);
|
|
59924
60790
|
if (!parsed.ok) {
|
|
@@ -59985,18 +60851,18 @@ async function $do62(client, request, options) {
|
|
|
59985
60851
|
}
|
|
59986
60852
|
|
|
59987
60853
|
// ../sdk/src/funcs/referrals-create-program.ts
|
|
59988
|
-
var
|
|
60854
|
+
var z179 = __toESM(require("zod/v4-mini"), 1);
|
|
59989
60855
|
function referralsCreateProgram(client, request, options) {
|
|
59990
|
-
return new APIPromise($
|
|
60856
|
+
return new APIPromise($do64(
|
|
59991
60857
|
client,
|
|
59992
60858
|
request,
|
|
59993
60859
|
options
|
|
59994
60860
|
));
|
|
59995
60861
|
}
|
|
59996
|
-
async function $
|
|
60862
|
+
async function $do64(client, request, options) {
|
|
59997
60863
|
const parsed = safeParse(
|
|
59998
60864
|
request,
|
|
59999
|
-
(value) =>
|
|
60865
|
+
(value) => z179.parse(CreateReferralProgramParams$outboundSchema, value),
|
|
60000
60866
|
"Input validation failed"
|
|
60001
60867
|
);
|
|
60002
60868
|
if (!parsed.ok) {
|
|
@@ -60063,18 +60929,18 @@ async function $do63(client, request, options) {
|
|
|
60063
60929
|
}
|
|
60064
60930
|
|
|
60065
60931
|
// ../sdk/src/funcs/referrals-delete-program.ts
|
|
60066
|
-
var
|
|
60932
|
+
var z180 = __toESM(require("zod/v4-mini"), 1);
|
|
60067
60933
|
function referralsDeleteProgram(client, request, options) {
|
|
60068
|
-
return new APIPromise($
|
|
60934
|
+
return new APIPromise($do65(
|
|
60069
60935
|
client,
|
|
60070
60936
|
request,
|
|
60071
60937
|
options
|
|
60072
60938
|
));
|
|
60073
60939
|
}
|
|
60074
|
-
async function $
|
|
60940
|
+
async function $do65(client, request, options) {
|
|
60075
60941
|
const parsed = safeParse(
|
|
60076
60942
|
request,
|
|
60077
|
-
(value) =>
|
|
60943
|
+
(value) => z180.parse(DeleteReferralProgramParams$outboundSchema, value),
|
|
60078
60944
|
"Input validation failed"
|
|
60079
60945
|
);
|
|
60080
60946
|
if (!parsed.ok) {
|
|
@@ -60141,18 +61007,18 @@ async function $do64(client, request, options) {
|
|
|
60141
61007
|
}
|
|
60142
61008
|
|
|
60143
61009
|
// ../sdk/src/funcs/referrals-get-program.ts
|
|
60144
|
-
var
|
|
61010
|
+
var z181 = __toESM(require("zod/v4-mini"), 1);
|
|
60145
61011
|
function referralsGetProgram(client, request, options) {
|
|
60146
|
-
return new APIPromise($
|
|
61012
|
+
return new APIPromise($do66(
|
|
60147
61013
|
client,
|
|
60148
61014
|
request,
|
|
60149
61015
|
options
|
|
60150
61016
|
));
|
|
60151
61017
|
}
|
|
60152
|
-
async function $
|
|
61018
|
+
async function $do66(client, request, options) {
|
|
60153
61019
|
const parsed = safeParse(
|
|
60154
61020
|
request,
|
|
60155
|
-
(value) =>
|
|
61021
|
+
(value) => z181.parse(GetReferralProgramParams$outboundSchema, value),
|
|
60156
61022
|
"Input validation failed"
|
|
60157
61023
|
);
|
|
60158
61024
|
if (!parsed.ok) {
|
|
@@ -60220,13 +61086,13 @@ async function $do65(client, request, options) {
|
|
|
60220
61086
|
|
|
60221
61087
|
// ../sdk/src/funcs/referrals-list-programs.ts
|
|
60222
61088
|
function referralsListPrograms(client, _request, options) {
|
|
60223
|
-
return new APIPromise($
|
|
61089
|
+
return new APIPromise($do67(
|
|
60224
61090
|
client,
|
|
60225
61091
|
_request,
|
|
60226
61092
|
options
|
|
60227
61093
|
));
|
|
60228
61094
|
}
|
|
60229
|
-
async function $
|
|
61095
|
+
async function $do67(client, _request, options) {
|
|
60230
61096
|
const path = pathToFunc("/v1/referral_programs.list")();
|
|
60231
61097
|
const headers = new Headers(compactMap({
|
|
60232
61098
|
"Content-Type": "application/json",
|
|
@@ -60285,18 +61151,18 @@ async function $do66(client, _request, options) {
|
|
|
60285
61151
|
}
|
|
60286
61152
|
|
|
60287
61153
|
// ../sdk/src/funcs/referrals-redeem-code.ts
|
|
60288
|
-
var
|
|
61154
|
+
var z182 = __toESM(require("zod/v4-mini"), 1);
|
|
60289
61155
|
function referralsRedeemCode(client, request, options) {
|
|
60290
|
-
return new APIPromise($
|
|
61156
|
+
return new APIPromise($do68(
|
|
60291
61157
|
client,
|
|
60292
61158
|
request,
|
|
60293
61159
|
options
|
|
60294
61160
|
));
|
|
60295
61161
|
}
|
|
60296
|
-
async function $
|
|
61162
|
+
async function $do68(client, request, options) {
|
|
60297
61163
|
const parsed = safeParse(
|
|
60298
61164
|
request,
|
|
60299
|
-
(value) =>
|
|
61165
|
+
(value) => z182.parse(RedeemReferralCodeParams$outboundSchema, value),
|
|
60300
61166
|
"Input validation failed"
|
|
60301
61167
|
);
|
|
60302
61168
|
if (!parsed.ok) {
|
|
@@ -60363,18 +61229,18 @@ async function $do67(client, request, options) {
|
|
|
60363
61229
|
}
|
|
60364
61230
|
|
|
60365
61231
|
// ../sdk/src/funcs/referrals-update-program.ts
|
|
60366
|
-
var
|
|
61232
|
+
var z183 = __toESM(require("zod/v4-mini"), 1);
|
|
60367
61233
|
function referralsUpdateProgram(client, request, options) {
|
|
60368
|
-
return new APIPromise($
|
|
61234
|
+
return new APIPromise($do69(
|
|
60369
61235
|
client,
|
|
60370
61236
|
request,
|
|
60371
61237
|
options
|
|
60372
61238
|
));
|
|
60373
61239
|
}
|
|
60374
|
-
async function $
|
|
61240
|
+
async function $do69(client, request, options) {
|
|
60375
61241
|
const parsed = safeParse(
|
|
60376
61242
|
request,
|
|
60377
|
-
(value) =>
|
|
61243
|
+
(value) => z183.parse(UpdateReferralProgramParams$outboundSchema, value),
|
|
60378
61244
|
"Input validation failed"
|
|
60379
61245
|
);
|
|
60380
61246
|
if (!parsed.ok) {
|
|
@@ -60515,18 +61381,18 @@ var Referrals = class extends ClientSDK {
|
|
|
60515
61381
|
};
|
|
60516
61382
|
|
|
60517
61383
|
// ../sdk/src/funcs/rewards-create.ts
|
|
60518
|
-
var
|
|
61384
|
+
var z184 = __toESM(require("zod/v4-mini"), 1);
|
|
60519
61385
|
function rewardsCreate(client, request, options) {
|
|
60520
|
-
return new APIPromise($
|
|
61386
|
+
return new APIPromise($do70(
|
|
60521
61387
|
client,
|
|
60522
61388
|
request,
|
|
60523
61389
|
options
|
|
60524
61390
|
));
|
|
60525
61391
|
}
|
|
60526
|
-
async function $
|
|
61392
|
+
async function $do70(client, request, options) {
|
|
60527
61393
|
const parsed = safeParse(
|
|
60528
61394
|
request,
|
|
60529
|
-
(value) =>
|
|
61395
|
+
(value) => z184.parse(CreateRewardParams$outboundSchema, value),
|
|
60530
61396
|
"Input validation failed"
|
|
60531
61397
|
);
|
|
60532
61398
|
if (!parsed.ok) {
|
|
@@ -60593,18 +61459,18 @@ async function $do69(client, request, options) {
|
|
|
60593
61459
|
}
|
|
60594
61460
|
|
|
60595
61461
|
// ../sdk/src/funcs/rewards-delete.ts
|
|
60596
|
-
var
|
|
61462
|
+
var z185 = __toESM(require("zod/v4-mini"), 1);
|
|
60597
61463
|
function rewardsDelete(client, request, options) {
|
|
60598
|
-
return new APIPromise($
|
|
61464
|
+
return new APIPromise($do71(
|
|
60599
61465
|
client,
|
|
60600
61466
|
request,
|
|
60601
61467
|
options
|
|
60602
61468
|
));
|
|
60603
61469
|
}
|
|
60604
|
-
async function $
|
|
61470
|
+
async function $do71(client, request, options) {
|
|
60605
61471
|
const parsed = safeParse(
|
|
60606
61472
|
request,
|
|
60607
|
-
(value) =>
|
|
61473
|
+
(value) => z185.parse(DeleteRewardParams$outboundSchema, value),
|
|
60608
61474
|
"Input validation failed"
|
|
60609
61475
|
);
|
|
60610
61476
|
if (!parsed.ok) {
|
|
@@ -60671,18 +61537,18 @@ async function $do70(client, request, options) {
|
|
|
60671
61537
|
}
|
|
60672
61538
|
|
|
60673
61539
|
// ../sdk/src/funcs/rewards-get.ts
|
|
60674
|
-
var
|
|
61540
|
+
var z186 = __toESM(require("zod/v4-mini"), 1);
|
|
60675
61541
|
function rewardsGet(client, request, options) {
|
|
60676
|
-
return new APIPromise($
|
|
61542
|
+
return new APIPromise($do72(
|
|
60677
61543
|
client,
|
|
60678
61544
|
request,
|
|
60679
61545
|
options
|
|
60680
61546
|
));
|
|
60681
61547
|
}
|
|
60682
|
-
async function $
|
|
61548
|
+
async function $do72(client, request, options) {
|
|
60683
61549
|
const parsed = safeParse(
|
|
60684
61550
|
request,
|
|
60685
|
-
(value) =>
|
|
61551
|
+
(value) => z186.parse(GetRewardParams$outboundSchema, value),
|
|
60686
61552
|
"Input validation failed"
|
|
60687
61553
|
);
|
|
60688
61554
|
if (!parsed.ok) {
|
|
@@ -60750,13 +61616,13 @@ async function $do71(client, request, options) {
|
|
|
60750
61616
|
|
|
60751
61617
|
// ../sdk/src/funcs/rewards-list.ts
|
|
60752
61618
|
function rewardsList(client, _request, options) {
|
|
60753
|
-
return new APIPromise($
|
|
61619
|
+
return new APIPromise($do73(
|
|
60754
61620
|
client,
|
|
60755
61621
|
_request,
|
|
60756
61622
|
options
|
|
60757
61623
|
));
|
|
60758
61624
|
}
|
|
60759
|
-
async function $
|
|
61625
|
+
async function $do73(client, _request, options) {
|
|
60760
61626
|
const path = pathToFunc("/v1/rewards.list")();
|
|
60761
61627
|
const headers = new Headers(compactMap({
|
|
60762
61628
|
"Content-Type": "application/json",
|
|
@@ -60815,18 +61681,18 @@ async function $do72(client, _request, options) {
|
|
|
60815
61681
|
}
|
|
60816
61682
|
|
|
60817
61683
|
// ../sdk/src/funcs/rewards-redeem-code.ts
|
|
60818
|
-
var
|
|
61684
|
+
var z187 = __toESM(require("zod/v4-mini"), 1);
|
|
60819
61685
|
function rewardsRedeemCode(client, request, options) {
|
|
60820
|
-
return new APIPromise($
|
|
61686
|
+
return new APIPromise($do74(
|
|
60821
61687
|
client,
|
|
60822
61688
|
request,
|
|
60823
61689
|
options
|
|
60824
61690
|
));
|
|
60825
61691
|
}
|
|
60826
|
-
async function $
|
|
61692
|
+
async function $do74(client, request, options) {
|
|
60827
61693
|
const parsed = safeParse(
|
|
60828
61694
|
request,
|
|
60829
|
-
(value) =>
|
|
61695
|
+
(value) => z187.parse(RedeemRewardCodeParams$outboundSchema, value),
|
|
60830
61696
|
"Input validation failed"
|
|
60831
61697
|
);
|
|
60832
61698
|
if (!parsed.ok) {
|
|
@@ -60893,18 +61759,18 @@ async function $do73(client, request, options) {
|
|
|
60893
61759
|
}
|
|
60894
61760
|
|
|
60895
61761
|
// ../sdk/src/funcs/rewards-update.ts
|
|
60896
|
-
var
|
|
61762
|
+
var z188 = __toESM(require("zod/v4-mini"), 1);
|
|
60897
61763
|
function rewardsUpdate(client, request, options) {
|
|
60898
|
-
return new APIPromise($
|
|
61764
|
+
return new APIPromise($do75(
|
|
60899
61765
|
client,
|
|
60900
61766
|
request,
|
|
60901
61767
|
options
|
|
60902
61768
|
));
|
|
60903
61769
|
}
|
|
60904
|
-
async function $
|
|
61770
|
+
async function $do75(client, request, options) {
|
|
60905
61771
|
const parsed = safeParse(
|
|
60906
61772
|
request,
|
|
60907
|
-
(value) =>
|
|
61773
|
+
(value) => z188.parse(UpdateRewardParams$outboundSchema, value),
|
|
60908
61774
|
"Input validation failed"
|
|
60909
61775
|
);
|
|
60910
61776
|
if (!parsed.ok) {
|
|
@@ -61035,18 +61901,18 @@ var Rewards = class extends ClientSDK {
|
|
|
61035
61901
|
};
|
|
61036
61902
|
|
|
61037
61903
|
// ../sdk/src/funcs/sandboxes-create.ts
|
|
61038
|
-
var
|
|
61904
|
+
var z189 = __toESM(require("zod/v4-mini"), 1);
|
|
61039
61905
|
function sandboxesCreate(client, request, options) {
|
|
61040
|
-
return new APIPromise($
|
|
61906
|
+
return new APIPromise($do76(
|
|
61041
61907
|
client,
|
|
61042
61908
|
request,
|
|
61043
61909
|
options
|
|
61044
61910
|
));
|
|
61045
61911
|
}
|
|
61046
|
-
async function $
|
|
61912
|
+
async function $do76(client, request, options) {
|
|
61047
61913
|
const parsed = safeParse(
|
|
61048
61914
|
request,
|
|
61049
|
-
(value) =>
|
|
61915
|
+
(value) => z189.parse(CreateSandboxParams$outboundSchema, value),
|
|
61050
61916
|
"Input validation failed"
|
|
61051
61917
|
);
|
|
61052
61918
|
if (!parsed.ok) {
|
|
@@ -61113,18 +61979,18 @@ async function $do75(client, request, options) {
|
|
|
61113
61979
|
}
|
|
61114
61980
|
|
|
61115
61981
|
// ../sdk/src/funcs/sandboxes-delete.ts
|
|
61116
|
-
var
|
|
61982
|
+
var z190 = __toESM(require("zod/v4-mini"), 1);
|
|
61117
61983
|
function sandboxesDelete(client, request, options) {
|
|
61118
|
-
return new APIPromise($
|
|
61984
|
+
return new APIPromise($do77(
|
|
61119
61985
|
client,
|
|
61120
61986
|
request,
|
|
61121
61987
|
options
|
|
61122
61988
|
));
|
|
61123
61989
|
}
|
|
61124
|
-
async function $
|
|
61990
|
+
async function $do77(client, request, options) {
|
|
61125
61991
|
const parsed = safeParse(
|
|
61126
61992
|
request,
|
|
61127
|
-
(value) =>
|
|
61993
|
+
(value) => z190.parse(DeleteSandboxParams$outboundSchema, value),
|
|
61128
61994
|
"Input validation failed"
|
|
61129
61995
|
);
|
|
61130
61996
|
if (!parsed.ok) {
|
|
@@ -61192,13 +62058,13 @@ async function $do76(client, request, options) {
|
|
|
61192
62058
|
|
|
61193
62059
|
// ../sdk/src/funcs/sandboxes-list.ts
|
|
61194
62060
|
function sandboxesList(client, _request, options) {
|
|
61195
|
-
return new APIPromise($
|
|
62061
|
+
return new APIPromise($do78(
|
|
61196
62062
|
client,
|
|
61197
62063
|
_request,
|
|
61198
62064
|
options
|
|
61199
62065
|
));
|
|
61200
62066
|
}
|
|
61201
|
-
async function $
|
|
62067
|
+
async function $do78(client, _request, options) {
|
|
61202
62068
|
const path = pathToFunc("/v1/sandboxes.list")();
|
|
61203
62069
|
const headers = new Headers(compactMap({
|
|
61204
62070
|
"Content-Type": "application/json",
|
|
@@ -61258,13 +62124,13 @@ async function $do77(client, _request, options) {
|
|
|
61258
62124
|
|
|
61259
62125
|
// ../sdk/src/funcs/sandboxes-reset.ts
|
|
61260
62126
|
function sandboxesReset(client, _request, options) {
|
|
61261
|
-
return new APIPromise($
|
|
62127
|
+
return new APIPromise($do79(
|
|
61262
62128
|
client,
|
|
61263
62129
|
_request,
|
|
61264
62130
|
options
|
|
61265
62131
|
));
|
|
61266
62132
|
}
|
|
61267
|
-
async function $
|
|
62133
|
+
async function $do79(client, _request, options) {
|
|
61268
62134
|
const path = pathToFunc("/v1/sandboxes.reset")();
|
|
61269
62135
|
const headers = new Headers(compactMap({
|
|
61270
62136
|
"Content-Type": "application/json",
|
|
@@ -61367,18 +62233,18 @@ var Sandboxes = class extends ClientSDK {
|
|
|
61367
62233
|
};
|
|
61368
62234
|
|
|
61369
62235
|
// ../sdk/src/funcs/webhooks-create.ts
|
|
61370
|
-
var
|
|
62236
|
+
var z191 = __toESM(require("zod/v4-mini"), 1);
|
|
61371
62237
|
function webhooksCreate(client, request, options) {
|
|
61372
|
-
return new APIPromise($
|
|
62238
|
+
return new APIPromise($do80(
|
|
61373
62239
|
client,
|
|
61374
62240
|
request,
|
|
61375
62241
|
options
|
|
61376
62242
|
));
|
|
61377
62243
|
}
|
|
61378
|
-
async function $
|
|
62244
|
+
async function $do80(client, request, options) {
|
|
61379
62245
|
const parsed = safeParse(
|
|
61380
62246
|
request,
|
|
61381
|
-
(value) =>
|
|
62247
|
+
(value) => z191.parse(CreateWebhookParams$outboundSchema, value),
|
|
61382
62248
|
"Input validation failed"
|
|
61383
62249
|
);
|
|
61384
62250
|
if (!parsed.ok) {
|
|
@@ -61445,18 +62311,18 @@ async function $do79(client, request, options) {
|
|
|
61445
62311
|
}
|
|
61446
62312
|
|
|
61447
62313
|
// ../sdk/src/funcs/webhooks-delete.ts
|
|
61448
|
-
var
|
|
62314
|
+
var z192 = __toESM(require("zod/v4-mini"), 1);
|
|
61449
62315
|
function webhooksDelete(client, request, options) {
|
|
61450
|
-
return new APIPromise($
|
|
62316
|
+
return new APIPromise($do81(
|
|
61451
62317
|
client,
|
|
61452
62318
|
request,
|
|
61453
62319
|
options
|
|
61454
62320
|
));
|
|
61455
62321
|
}
|
|
61456
|
-
async function $
|
|
62322
|
+
async function $do81(client, request, options) {
|
|
61457
62323
|
const parsed = safeParse(
|
|
61458
62324
|
request,
|
|
61459
|
-
(value) =>
|
|
62325
|
+
(value) => z192.parse(DeleteWebhookParams$outboundSchema, value),
|
|
61460
62326
|
"Input validation failed"
|
|
61461
62327
|
);
|
|
61462
62328
|
if (!parsed.ok) {
|
|
@@ -61523,18 +62389,18 @@ async function $do80(client, request, options) {
|
|
|
61523
62389
|
}
|
|
61524
62390
|
|
|
61525
62391
|
// ../sdk/src/funcs/webhooks-get.ts
|
|
61526
|
-
var
|
|
62392
|
+
var z193 = __toESM(require("zod/v4-mini"), 1);
|
|
61527
62393
|
function webhooksGet(client, request, options) {
|
|
61528
|
-
return new APIPromise($
|
|
62394
|
+
return new APIPromise($do82(
|
|
61529
62395
|
client,
|
|
61530
62396
|
request,
|
|
61531
62397
|
options
|
|
61532
62398
|
));
|
|
61533
62399
|
}
|
|
61534
|
-
async function $
|
|
62400
|
+
async function $do82(client, request, options) {
|
|
61535
62401
|
const parsed = safeParse(
|
|
61536
62402
|
request,
|
|
61537
|
-
(value) =>
|
|
62403
|
+
(value) => z193.parse(GetWebhookParams$outboundSchema, value),
|
|
61538
62404
|
"Input validation failed"
|
|
61539
62405
|
);
|
|
61540
62406
|
if (!parsed.ok) {
|
|
@@ -61602,13 +62468,13 @@ async function $do81(client, request, options) {
|
|
|
61602
62468
|
|
|
61603
62469
|
// ../sdk/src/funcs/webhooks-list.ts
|
|
61604
62470
|
function webhooksList(client, _request, options) {
|
|
61605
|
-
return new APIPromise($
|
|
62471
|
+
return new APIPromise($do83(
|
|
61606
62472
|
client,
|
|
61607
62473
|
_request,
|
|
61608
62474
|
options
|
|
61609
62475
|
));
|
|
61610
62476
|
}
|
|
61611
|
-
async function $
|
|
62477
|
+
async function $do83(client, _request, options) {
|
|
61612
62478
|
const path = pathToFunc("/v1/webhooks.list")();
|
|
61613
62479
|
const headers = new Headers(compactMap({
|
|
61614
62480
|
"Content-Type": "application/json",
|
|
@@ -61667,18 +62533,18 @@ async function $do82(client, _request, options) {
|
|
|
61667
62533
|
}
|
|
61668
62534
|
|
|
61669
62535
|
// ../sdk/src/funcs/webhooks-preview-sync.ts
|
|
61670
|
-
var
|
|
62536
|
+
var z194 = __toESM(require("zod/v4-mini"), 1);
|
|
61671
62537
|
function webhooksPreviewSync(client, request, options) {
|
|
61672
|
-
return new APIPromise($
|
|
62538
|
+
return new APIPromise($do84(
|
|
61673
62539
|
client,
|
|
61674
62540
|
request,
|
|
61675
62541
|
options
|
|
61676
62542
|
));
|
|
61677
62543
|
}
|
|
61678
|
-
async function $
|
|
62544
|
+
async function $do84(client, request, options) {
|
|
61679
62545
|
const parsed = safeParse(
|
|
61680
62546
|
request,
|
|
61681
|
-
(value) =>
|
|
62547
|
+
(value) => z194.parse(
|
|
61682
62548
|
PreviewSyncWebhooksSyncWebhooksParams$outboundSchema,
|
|
61683
62549
|
value
|
|
61684
62550
|
),
|
|
@@ -61748,18 +62614,18 @@ async function $do83(client, request, options) {
|
|
|
61748
62614
|
}
|
|
61749
62615
|
|
|
61750
62616
|
// ../sdk/src/funcs/webhooks-sync.ts
|
|
61751
|
-
var
|
|
62617
|
+
var z195 = __toESM(require("zod/v4-mini"), 1);
|
|
61752
62618
|
function webhooksSync(client, request, options) {
|
|
61753
|
-
return new APIPromise($
|
|
62619
|
+
return new APIPromise($do85(
|
|
61754
62620
|
client,
|
|
61755
62621
|
request,
|
|
61756
62622
|
options
|
|
61757
62623
|
));
|
|
61758
62624
|
}
|
|
61759
|
-
async function $
|
|
62625
|
+
async function $do85(client, request, options) {
|
|
61760
62626
|
const parsed = safeParse(
|
|
61761
62627
|
request,
|
|
61762
|
-
(value) =>
|
|
62628
|
+
(value) => z195.parse(SyncWebhooksSyncWebhooksParams$outboundSchema, value),
|
|
61763
62629
|
"Input validation failed"
|
|
61764
62630
|
);
|
|
61765
62631
|
if (!parsed.ok) {
|
|
@@ -61826,18 +62692,18 @@ async function $do84(client, request, options) {
|
|
|
61826
62692
|
}
|
|
61827
62693
|
|
|
61828
62694
|
// ../sdk/src/funcs/webhooks-update.ts
|
|
61829
|
-
var
|
|
62695
|
+
var z196 = __toESM(require("zod/v4-mini"), 1);
|
|
61830
62696
|
function webhooksUpdate(client, request, options) {
|
|
61831
|
-
return new APIPromise($
|
|
62697
|
+
return new APIPromise($do86(
|
|
61832
62698
|
client,
|
|
61833
62699
|
request,
|
|
61834
62700
|
options
|
|
61835
62701
|
));
|
|
61836
62702
|
}
|
|
61837
|
-
async function $
|
|
62703
|
+
async function $do86(client, request, options) {
|
|
61838
62704
|
const parsed = safeParse(
|
|
61839
62705
|
request,
|
|
61840
|
-
(value) =>
|
|
62706
|
+
(value) => z196.parse(UpdateWebhookParams$outboundSchema, value),
|
|
61841
62707
|
"Input validation failed"
|
|
61842
62708
|
);
|
|
61843
62709
|
if (!parsed.ok) {
|
|
@@ -62164,7 +63030,7 @@ var Autumn = class extends ClientSDK {
|
|
|
62164
63030
|
));
|
|
62165
63031
|
}
|
|
62166
63032
|
/**
|
|
62167
|
-
* Enqueue up to 1000 usage events for asynchronous processing. Items are validated synchronously up front; validated items are then enqueued via SQS for background deduction by workers. The response returns 202 immediately and does not include balance information. On partial enqueue failure (some items fail to enqueue, others succeed), the endpoint still returns 202 and logs the failures server-side; clients should NOT retry, because retrying re-enqueues the already-succeeded items. A 503 is returned only when zero items were successfully enqueued (queue entirely unavailable) — that case is safe to retry.
|
|
63033
|
+
* Enqueue up to 1000 usage events for asynchronous processing. Items are validated synchronously up front; validated items are then enqueued via SQS for background deduction by workers. The response returns 200 (or 202) immediately and does not include balance information. On partial enqueue failure (some items fail to enqueue, others succeed), the endpoint still returns 200 (or 202) and logs the failures server-side; clients should NOT retry, because retrying re-enqueues the already-succeeded items. A 503 is returned only when zero items were successfully enqueued (queue entirely unavailable) — that case is safe to retry.
|
|
62168
63034
|
*/
|
|
62169
63035
|
async batchTrack(request, options) {
|
|
62170
63036
|
return unwrapAsync(batchTrack(
|