@stewardhq/sdk 0.3.0 → 0.6.0
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/LICENSE +201 -0
- package/README.md +332 -273
- package/dist/_chunks/errors.js +1 -1
- package/dist/_chunks/events.d.ts +386 -78
- package/dist/_chunks/events.js +1035 -19
- package/dist/_chunks/index.d.ts +3752 -305
- package/dist/_chunks/locale.d.ts +270 -2
- package/dist/_chunks/src.js +925 -31
- package/dist/_chunks/validators.d.ts +46 -2
- package/dist/_chunks/validators.js +128 -27
- package/dist/_chunks/webhook-core.d.ts +2 -2
- package/dist/contract.d.ts +4 -4
- package/dist/contract.js +4 -4
- package/dist/index.d.ts +447 -33
- package/dist/index.js +1659 -26
- package/dist/server.d.ts +66 -16
- package/dist/server.js +35 -4
- package/package.json +14 -13
- package/dist/_chunks/steward.d.ts +0 -189
- package/dist/_chunks/steward.js +0 -564
- package/dist/testing/fixtures/events/LOCK.json +0 -27
- package/dist/testing/fixtures/events/account.deleted.json +0 -36
- package/dist/testing/fixtures/events/account.state_changed.json +0 -53
- package/dist/testing/fixtures/events/account.updated.json +0 -37
- package/dist/testing/fixtures/events/checkout.completed.json +0 -36
- package/dist/testing/fixtures/events/checkout.expired.json +0 -26
- package/dist/testing/fixtures/events/checkout.failed.json +0 -27
- package/dist/testing/fixtures/events/invoice.created.json +0 -37
- package/dist/testing/fixtures/events/invoice.issued.json +0 -38
- package/dist/testing/fixtures/events/invoice.voided.json +0 -39
- package/dist/testing/fixtures/events/subscription.activated.json +0 -40
- package/dist/testing/fixtures/events/subscription.cancel_scheduled.json +0 -38
- package/dist/testing/fixtures/events/subscription.canceled.json +0 -29
- package/dist/testing/fixtures/events/subscription.expired.json +0 -27
- package/dist/testing/fixtures/events/subscription.payment_failed.json +0 -38
- package/dist/testing/fixtures/events/subscription.reactivated.json +0 -36
- package/dist/testing/fixtures/events/subscription.renewed.json +0 -39
- package/dist/testing/fixtures/events/subscription.suspended.json +0 -36
- package/dist/testing/fixtures/events/subscription.terminated.json +0 -28
- package/dist/testing.d.ts +0 -656
- package/dist/testing.js +0 -3684
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
//#region ../contract/src/micro-units.d.ts
|
|
2
|
+
/** Decimal places of a meter unit value (10⁻⁶). */
|
|
3
|
+
declare const UNIT_DECIMALS = 6;
|
|
4
|
+
/** Micro units in one unit. */
|
|
5
|
+
declare const MICRO_UNITS_PER_UNIT = 1000000n;
|
|
6
|
+
/** A unit value that is not a finite, non-negative decimal (M4 `invalid_value`). */
|
|
7
|
+
declare class InvalidUnitValueError extends RangeError {
|
|
8
|
+
readonly code: 'invalid_value';
|
|
9
|
+
constructor(value: unknown);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Micro units (10⁻⁶) of a finite, non-negative decimal, or `null` when the value is not one.
|
|
13
|
+
* A number is read from its canonical decimal text (`String(value)`); a string must be a plain
|
|
14
|
+
* decimal (`"12"`, `"0.25"`, `"1e-7"`, Postgres `numeric` text). Beyond 6 decimals: half up.
|
|
15
|
+
*/
|
|
16
|
+
declare function parseMicroUnits(value: number | string): bigint | null;
|
|
17
|
+
/**
|
|
18
|
+
* Micro units (10⁻⁶) of a finite, non-negative decimal: `toMicroUnits(0.25) === 250000n`,
|
|
19
|
+
* `toMicroUnits("123.4567895") === 123456790n` (half up), `toMicroUnits(1e-7) === 0n`.
|
|
20
|
+
* Throws `InvalidUnitValueError` (`code: "invalid_value"`) for a negative, non-finite or
|
|
21
|
+
* non-decimal value.
|
|
22
|
+
*/
|
|
23
|
+
declare function toMicroUnits(value: number | string): bigint;
|
|
24
|
+
/**
|
|
25
|
+
* Canonical decimal text of micro units: no exponent, no leading zeros, no trailing fraction zeros
|
|
26
|
+
* (`1500000000n` → `"1500"`, `250000n` → `"0.25"`, `-1500000n` → `"-1.5"`). Invoice line `units`.
|
|
27
|
+
*/
|
|
28
|
+
declare function microToDecimalString(micro: bigint): string;
|
|
29
|
+
/**
|
|
30
|
+
* Micro units as a JSON number (API responses): the double nearest to the exact decimal, so any
|
|
31
|
+
* value up to 15 significant digits round-trips (`toMicroUnits(fromMicroUnits(x)) === x`).
|
|
32
|
+
*/
|
|
33
|
+
declare function fromMicroUnits(micro: bigint): number;
|
|
34
|
+
/**
|
|
35
|
+
* Plain decimal text of a finite number, without exponent: `1e21` → `"1000000000000000000000"`,
|
|
36
|
+
* `1e-7` → `"0.0000001"`, `-0` → `"0"`. Throws for a non-finite number.
|
|
37
|
+
*/
|
|
38
|
+
declare function plainDecimalOf(value: number): string;
|
|
39
|
+
/**
|
|
40
|
+
* Whether a number is a finite value with at most 6 decimals, i.e. exactly representable in micro
|
|
41
|
+
* units (catalog credits, credit grants and `lowAt` must be; event values are rounded instead).
|
|
42
|
+
*/
|
|
43
|
+
declare function isMicroPrecise(value: number): boolean;
|
|
44
|
+
//#endregion
|
|
1
45
|
//#region ../contract/src/validators.d.ts
|
|
2
46
|
/**
|
|
3
47
|
* T.C. kimlik numarası: 11 hane, ilk hane 0 değil;
|
|
@@ -17,7 +61,7 @@ declare function isValidVkn(value: unknown): boolean;
|
|
|
17
61
|
* (iyzico'nun istediği biçim).
|
|
18
62
|
*/
|
|
19
63
|
declare function isE164(value: unknown, options?: {
|
|
20
|
-
country?:
|
|
64
|
+
country?: 'TR';
|
|
21
65
|
}): boolean;
|
|
22
66
|
//#endregion
|
|
23
|
-
export { isValidTckn as n, isValidVkn as r, isE164 as t };
|
|
67
|
+
export { MICRO_UNITS_PER_UNIT as a, isMicroPrecise as c, plainDecimalOf as d, toMicroUnits as f, InvalidUnitValueError as i, microToDecimalString as l, isValidTckn as n, UNIT_DECIMALS as o, isValidVkn as r, fromMicroUnits as s, isE164 as t, parseMicroUnits as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../contract/src/rules.ts
|
|
2
|
-
/**
|
|
2
|
+
/** Live subscription statuses. An account may hold several live subscriptions (billing core, M34). */
|
|
3
3
|
const LIVE_SUBSCRIPTION_STATUSES = [
|
|
4
4
|
"active",
|
|
5
5
|
"past_due",
|
|
@@ -8,8 +8,12 @@ const LIVE_SUBSCRIPTION_STATUSES = [
|
|
|
8
8
|
function isLiveSubscriptionStatus(status) {
|
|
9
9
|
return LIVE_SUBSCRIPTION_STATUSES.includes(status);
|
|
10
10
|
}
|
|
11
|
+
/** Type of a plan's implicit benefit and of account overrides. */
|
|
12
|
+
const FEATURE_FLAG_BENEFIT_TYPE = "feature_flag";
|
|
13
|
+
/** Source of the account overrides benefit. */
|
|
14
|
+
const OVERRIDE_BENEFIT_SOURCE = "override";
|
|
11
15
|
const toMs = (value) => value instanceof Date ? value.getTime() : Date.parse(value);
|
|
12
|
-
/**
|
|
16
|
+
/** Not revoked and (when `at` is given) inside its window. */
|
|
13
17
|
function isGrantActive(grant, at) {
|
|
14
18
|
if (grant.revokedAt !== void 0 && grant.revokedAt !== null) return false;
|
|
15
19
|
if (at === void 0) return true;
|
|
@@ -18,46 +22,143 @@ function isGrantActive(grant, at) {
|
|
|
18
22
|
if (grant.endsAt !== void 0 && grant.endsAt !== null && toMs(grant.endsAt) <= now) return false;
|
|
19
23
|
return true;
|
|
20
24
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
/** Stable sort by an instant, then id; the given order when not every item has the instant. */
|
|
26
|
+
function orderedBy(items, instant) {
|
|
27
|
+
if (!items.every((item) => instant(item) !== void 0)) return items;
|
|
28
|
+
return [...items].sort((a, b) => {
|
|
29
|
+
const diff = toMs(instant(a)) - toMs(instant(b));
|
|
25
30
|
if (diff !== 0) return diff;
|
|
26
31
|
if (a.id === void 0 || b.id === void 0 || a.id === b.id) return 0;
|
|
27
32
|
return a.id < b.id ? -1 : 1;
|
|
28
33
|
});
|
|
29
34
|
}
|
|
35
|
+
function isEntitlementValue(value) {
|
|
36
|
+
return value === null || typeof value === "boolean" || typeof value === "string" || typeof value === "number" && Number.isFinite(value);
|
|
37
|
+
}
|
|
38
|
+
function inferredType(value) {
|
|
39
|
+
if (typeof value === "boolean") return "boolean";
|
|
40
|
+
if (typeof value === "string") return "string";
|
|
41
|
+
return "limit";
|
|
42
|
+
}
|
|
30
43
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
44
|
+
* Merges one layer's value into the current value of a feature (`undefined` = no layer set it
|
|
45
|
+
* yet). A value that does not fit the feature type (and `null` outside `limit`) does not count.
|
|
33
46
|
*/
|
|
34
|
-
function
|
|
47
|
+
function mergeValue(type, current, next) {
|
|
48
|
+
switch (type ?? inferredType(next)) {
|
|
49
|
+
case "limit":
|
|
50
|
+
if (next !== null && typeof next !== "number") return current;
|
|
51
|
+
if (current === void 0) return next;
|
|
52
|
+
if (current === null || next === null) return null;
|
|
53
|
+
return typeof current === "number" ? Math.max(current, next) : next;
|
|
54
|
+
case "boolean":
|
|
55
|
+
if (typeof next !== "boolean") return current;
|
|
56
|
+
return current === true || next;
|
|
57
|
+
case "string": return typeof next === "string" ? next : current;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The account's granted benefits and their projection (planCode, accessState, entitlements).
|
|
62
|
+
* Throws when a plan it refers to is not in the catalog (inconsistent data; the service
|
|
63
|
+
* guarantees it with foreign keys).
|
|
64
|
+
*/
|
|
65
|
+
function resolveBenefits(input) {
|
|
35
66
|
const { catalog } = input;
|
|
36
67
|
const plans = new Map(catalog.plans.map((p) => [p.code, p]));
|
|
37
68
|
const planOf = (code) => {
|
|
38
69
|
const plan = plans.get(code);
|
|
39
|
-
if (!plan) throw new Error(`plan
|
|
70
|
+
if (!plan) throw new Error(`plan not in catalog: ${code}`);
|
|
40
71
|
return plan;
|
|
41
72
|
};
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
73
|
+
const featureTypes = new Map(catalog.features.map((f) => [f.key, f.type]));
|
|
74
|
+
const definitions = catalog.benefits ?? {};
|
|
75
|
+
const live = orderedBy(input.subscriptions, (s) => s.startedAt).filter((s) => isLiveSubscriptionStatus(s.status));
|
|
76
|
+
const grants = orderedBy((input.grants ?? []).filter((g) => isGrantActive(g, input.at)), (g) => g.createdAt);
|
|
77
|
+
const grantSource = (grant, index) => `grant:${grant.id ?? index}`;
|
|
78
|
+
const benefits = [];
|
|
79
|
+
const seen = /* @__PURE__ */ new Set();
|
|
80
|
+
const add = (benefit) => {
|
|
81
|
+
const identity = `${benefit.source}|${benefit.code ?? ""}`;
|
|
82
|
+
if (seen.has(identity)) return;
|
|
83
|
+
seen.add(identity);
|
|
84
|
+
benefits.push(benefit);
|
|
85
|
+
};
|
|
86
|
+
const onlyFeatures = (properties) => Object.fromEntries(Object.entries(properties).filter(([key]) => featureTypes.has(key)));
|
|
87
|
+
const addNamed = (code, source) => {
|
|
88
|
+
if (!Object.hasOwn(definitions, code)) return;
|
|
89
|
+
const definition = definitions[code];
|
|
90
|
+
const properties = definition.type === "feature_flag" ? onlyFeatures(definition.properties) : { ...definition.properties };
|
|
91
|
+
add({
|
|
92
|
+
code,
|
|
93
|
+
type: definition.type,
|
|
94
|
+
properties,
|
|
95
|
+
source
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
const addPlan = (code, source) => {
|
|
99
|
+
const plan = planOf(code);
|
|
100
|
+
const properties = Object.fromEntries(catalog.features.filter((f) => Object.hasOwn(plan.entitlements, f.key)).map((f) => [f.key, plan.entitlements[f.key] ?? null]));
|
|
101
|
+
add({
|
|
102
|
+
code: null,
|
|
103
|
+
type: FEATURE_FLAG_BENEFIT_TYPE,
|
|
104
|
+
properties,
|
|
105
|
+
source
|
|
106
|
+
});
|
|
107
|
+
for (const benefitCode of plan.benefits ?? []) addNamed(benefitCode, source);
|
|
108
|
+
};
|
|
109
|
+
addPlan(catalog.defaultPlanCode, `plan:${catalog.defaultPlanCode}`);
|
|
110
|
+
const anyNotSuspended = live.some((sub) => sub.status !== "suspended");
|
|
111
|
+
for (const sub of live) if (sub.status === "suspended" && anyNotSuspended) planOf(sub.planCode);
|
|
112
|
+
else addPlan(sub.planCode, `plan:${sub.planCode}`);
|
|
113
|
+
grants.forEach((g, i) => {
|
|
114
|
+
if (g.planCode) addPlan(g.planCode, grantSource(g, i));
|
|
115
|
+
});
|
|
116
|
+
grants.forEach((g, i) => {
|
|
117
|
+
for (const code of g.benefitCodes ?? []) addNamed(code, grantSource(g, i));
|
|
118
|
+
});
|
|
119
|
+
const values = /* @__PURE__ */ new Map();
|
|
120
|
+
for (const benefit of benefits) {
|
|
121
|
+
if (benefit.type !== "feature_flag") continue;
|
|
122
|
+
for (const [key, value] of Object.entries(benefit.properties)) {
|
|
123
|
+
if (!featureTypes.has(key) || !isEntitlementValue(value)) continue;
|
|
124
|
+
values.set(key, mergeValue(featureTypes.get(key), values.get(key), value));
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
const overrides = {};
|
|
128
|
+
for (const g of grants) for (const [key, value] of Object.entries(g.overrides ?? {})) if (featureTypes.has(key)) overrides[key] = value;
|
|
129
|
+
if (Object.keys(overrides).length > 0) {
|
|
130
|
+
const properties = Object.fromEntries(catalog.features.filter((f) => Object.hasOwn(overrides, f.key)).map((f) => [f.key, overrides[f.key]]));
|
|
131
|
+
benefits.push({
|
|
132
|
+
code: null,
|
|
133
|
+
type: FEATURE_FLAG_BENEFIT_TYPE,
|
|
134
|
+
properties,
|
|
135
|
+
source: OVERRIDE_BENEFIT_SOURCE
|
|
136
|
+
});
|
|
137
|
+
for (const [key, value] of Object.entries(properties)) values.set(key, value);
|
|
53
138
|
}
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
139
|
+
const planGrants = grants.filter((g) => g.planCode);
|
|
140
|
+
return {
|
|
141
|
+
planCode: live[0]?.planCode ?? planGrants.at(-1)?.planCode ?? catalog.defaultPlanCode,
|
|
142
|
+
accessState: live.length > 0 && live.every((s) => s.status === "suspended") ? "suspended" : "active",
|
|
143
|
+
entitlements: Object.fromEntries(catalog.features.map((f) => [f.key, values.get(f.key) ?? null])),
|
|
144
|
+
benefits
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* The account's effective plan, entitlements and access state: the projection of
|
|
149
|
+
* `resolveBenefits` for a single subscription (the pre-billing-core signature).
|
|
150
|
+
*/
|
|
151
|
+
function resolveEntitlements(input) {
|
|
152
|
+
const { planCode, accessState, entitlements } = resolveBenefits({
|
|
153
|
+
catalog: input.catalog,
|
|
154
|
+
subscriptions: input.subscription ? [input.subscription] : [],
|
|
155
|
+
grants: input.grants,
|
|
156
|
+
at: input.at
|
|
157
|
+
});
|
|
57
158
|
return {
|
|
58
|
-
planCode
|
|
159
|
+
planCode,
|
|
59
160
|
accessState,
|
|
60
|
-
entitlements
|
|
161
|
+
entitlements
|
|
61
162
|
};
|
|
62
163
|
}
|
|
63
164
|
//#endregion
|
|
@@ -103,4 +204,4 @@ function isE164(value, options = {}) {
|
|
|
103
204
|
return options.country === "TR" ? /^\+90\d{10}$/.test(value) : /^\+[1-9]\d{7,14}$/.test(value);
|
|
104
205
|
}
|
|
105
206
|
//#endregion
|
|
106
|
-
export {
|
|
207
|
+
export { LIVE_SUBSCRIPTION_STATUSES as a, isLiveSubscriptionStatus as c, FEATURE_FLAG_BENEFIT_TYPE as i, resolveBenefits as l, isValidTckn as n, OVERRIDE_BENEFIT_SOURCE as o, isValidVkn as r, isGrantActive as s, isE164 as t, resolveEntitlements as u };
|
|
@@ -5,7 +5,7 @@ declare const HEADER_TIMESTAMP = "steward-timestamp";
|
|
|
5
5
|
declare const HEADER_SIGNATURE = "steward-signature";
|
|
6
6
|
declare const DEFAULT_TOLERANCE_SECONDS = 300;
|
|
7
7
|
type HeaderSource = Headers | Record<string, string | string[] | undefined>;
|
|
8
|
-
type VerifyFailure =
|
|
8
|
+
type VerifyFailure = 'missing_headers' | 'timestamp_out_of_tolerance' | 'bad_signature' | 'invalid_payload' | 'id_mismatch';
|
|
9
9
|
type VerifyResult = {
|
|
10
10
|
ok: true;
|
|
11
11
|
event: BillingEvent;
|
|
@@ -14,7 +14,7 @@ type VerifyResult = {
|
|
|
14
14
|
reason: VerifyFailure;
|
|
15
15
|
};
|
|
16
16
|
/** Gövdeyi parse etmeden yapılan doğrulamanın başarısızlık nedenleri. */
|
|
17
|
-
type VerifyRawFailure =
|
|
17
|
+
type VerifyRawFailure = 'missing_headers' | 'timestamp_out_of_tolerance' | 'bad_signature';
|
|
18
18
|
type VerifyRawResult = {
|
|
19
19
|
ok: true;
|
|
20
20
|
eventId: string;
|
package/dist/contract.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as Branding, $n as CancelSubscriptionInputSchema, $r as PriceDef, $t as PlanSetWarningSchema, A as buildDoctorReport, An as InvoiceIssueResponse, Ar as CheckoutSessionSchema, At as EmailTemplate, B as WebhookEndpointCreateInputSchema, Bn as InvoiceLineSchema, Br as AccountsRefreshResultSchema, Bt as emailTemplateOf, C as DoctorSeveritySchema, Cn as GrantCreateResponse, Cr as CheckoutReturnStatus, Ct as EmailLocale, D as DoctorWarning, Dn as HEADER_IDEMPOTENCY_KEY, Dr as CheckoutSessionCreateParsed, Dt as EmailSettingsPatch, E as DoctorUnsellableReason, En as HEADER_API_VERSION, Er as CheckoutSessionCreateInputSchema, Et as EmailSettings, F as EventTypeSchema, Fn as ManualInvoiceResponseSchema, Fr as MAX_CHECKOUT_CONSENT_DOCS, Ft as NotificationEmailsSchema, G as WebhookEndpointSchema, Gn as MANUAL_INVOICE_MAX_AMOUNT_MINOR, Gr as CatalogSyncResult, Gt as PlanSetInput, H as WebhookEndpointListSchema, Hn as InvoiceStatusSchema, Hr as CatalogSchema, Ht as isEmailRelevant, I as WEBHOOK_ENDPOINT_STATUSES, In as Invoice, Ir as ProviderPayload, It as applyEmailSettingsPatch, J as WebhookLastDelivery, Jn as ManualInvoiceLineInput, Jr as FeatureDefSchema, Jt as PlanSetModeSchema, K as WebhookEndpointStatus, Kn as ManualInvoiceInput, Kr as CatalogSyncResultSchema, Kt as PlanSetInputSchema, L as WEBHOOK_SECRET_PREFIX, Ln as InvoiceIssueInput, Lr as ProviderPayloadSchema, Lt as billingPageUrl, M as endpointDiagnosisOf, Mn as InvoiceVoidResponse, Mr as CheckoutStatusSchema, Mt as EmailTemplateSettings, N as hostedReadinessOf, Nn as InvoiceVoidResponseSchema, Nr as Consent, Nt as EmailTemplateSettingsSchema, O as DoctorWarningCode, On as HEADER_REQUEST_ID, Or as CheckoutSessionCreated, Ot as EmailSettingsPatchSchema, P as DEFAULT_ENDPOINT_EVENT_TYPES, Pn as ManualInvoiceResponse, Pr as ConsentSchema, Pt as MAX_NOTIFICATION_EMAILS, Q as webhookEndpointUrlProblem, Qn as CancelSubscriptionInput, Qr as Price, Qt as PlanSetWarningCode, R as WebhookEndpoint, Rn as InvoiceIssueInputSchema, Rr as checkoutRedirectUrl, Rt as emailLocaleOf, S as DoctorSeverity, Si as MetadataSchema, Sn as CheckoutSessionResponseSchema, Sr as CheckoutRedirectTarget, St as EmailExtraTextSchema, T as DoctorUnsellablePriceSchema, Tn as HEADER_ACTOR_REF, Tr as CheckoutSessionCreateInput, Tt as EmailSenderSchema, U as WebhookEndpointRotateInput, Un as InvoiceVoidInput, Ur as CatalogSyncInput, Ut as uniqueEmails, V as WebhookEndpointList, Vn as InvoiceSchema, Vr as Catalog, Vt as emailTemplateSettings, W as WebhookEndpointRotateInputSchema, Wn as InvoiceVoidInputSchema, Wr as CatalogSyncInputSchema, Wt as PLAN_SET_MODES, X as WebhookSecretSchema, Xn as manualInvoiceTotals, Xr as PlanDef, Xt as PlanSetResponseSchema, Y as WebhookLastDeliverySchema, Yn as ManualInvoiceLineInputSchema, Yr as FeatureTypeSchema, Yt as PlanSetResponse, Z as generateWebhookSecret, Zn as splitInclusiveTax, Zr as PlanDefSchema, Zt as PlanSetWarning, _ as DoctorProviderSchema, _i as ErrorResponseSchema, _n as AccountUpsertResponse, _r as CheckoutConsentInput, _t as BILLING_PATH_PLACEHOLDERS, a as DOCTOR_SEVERITIES, ai as CodeSchema, an as ResolveEntitlementsInput, ar as PaymentSchema, at as ProductSettingsPatch, b as DoctorSettings, bi as Interval, bn as CancelSubscriptionResponseSchema, br as CheckoutPrefill, bt as EMAIL_TEMPLATES, c as DoctorEmails, ci as DateTimeSchema, cn as isLiveSubscriptionStatus, cr as Subscription, ct as ReturnOriginSchema, d as DoctorEndpointDiagnosis, di as EntitlementValueSchema, dn as ErrorCode, dr as PortalSession, dt as SettingsLocaleSchema, ei as PriceDefSchema, en as ResyncResult, er as Grant, et as BrandingPatchSchema, f as DoctorEndpointSchema, fi as Entitlements, fn as ErrorCodeSpec, fr as PortalSessionCreateInput, ft as TtlMinutesSchema, g as DoctorProvider, gi as ErrorResponse, gn as AccountDetailSchema, gr as CHECKOUT_ERRORS, gt as returnOriginsOf, h as DoctorHostedSchema, hi as ErrorCategorySchema, hn as AccountDetail, hr as PortalSessionSchema, ht as isReturnUrlAllowed, i as DOCTOR_REQUIRED_LEGAL_LINKS, ii as AmountMinorSchema, in as LIVE_SUBSCRIPTION_STATUSES, ir as Payment, it as ProductSettings, j as emailReadinessOf, jn as InvoiceIssueResponseSchema, jr as CheckoutStatus, jt as EmailTemplateSchema, k as DoctorWarningSchema, kn as HEADER_SDK, kr as CheckoutSessionCreatedSchema, kt as EmailSettingsSchema, l as DoctorEmailsSchema, li as ERROR_CATEGORIES, ln as resolveEntitlements, lr as SubscriptionSchema, lt as SETTINGS_LOCALES, m as DoctorHosted, mi as ErrorCategory, mn as isKnownErrorCode, mr as PortalSessionError, mt as applySettingsPatch, n as DOCTOR_PROVIDER_ENVIRONMENTS, ni as API_VERSION, nn as EntitlementRulesCatalog, nr as GrantCreateInputSchema, nt as DEFAULT_CHECKOUT_TTL_MINUTES, o as DoctorCatalog, oi as Currency, on as ResolvedEntitlements, or as Stats, ot as ProductSettingsPatchSchema, p as DoctorFacts, pi as EntitlementsSchema, pn as errorCodeSpec, pr as PortalSessionCreateInputSchema, pt as WebUrlSchema, q as WebhookEndpointStatusSchema, qn as ManualInvoiceInputSchema, qr as FeatureDef, qt as PlanSetMode, r as DOCTOR_REQUIRED_BRANDING, ri as ActorRefSchema, rn as EntitlementRulesGrant, rr as GrantSchema, rt as DEFAULT_PORTAL_TTL_MINUTES, s as DoctorCatalogSchema, si as CurrencySchema, sn as isGrantActive, sr as StatsSchema, st as ProductSettingsSchema, t as DOCTOR_PENDING_BACKLOG_MS, ti as PriceSchema, tn as ResyncResultSchema, tr as GrantCreateInput, tt as BrandingSchema, u as DoctorEndpoint, ui as EntitlementValue, un as ERROR_CODES, ur as PORTAL_SESSION_ERRORS, ut as SettingsLocale, v as DoctorReport, vi as ExternalRefSchema, vn as AccountUpsertResponseSchema, vr as CheckoutConsentInputSchema, vt as BillingPathSchema, w as DoctorUnsellablePrice, wn as GrantCreateResponseSchema, wr as CheckoutSession, wt as EmailRelevanceFacts, x as DoctorSettingsSchema, xi as IntervalSchema, xn as CheckoutSessionResponse, xr as CheckoutPrefillSchema, xt as EMAIL_TEMPLATE_BY_EVENT, y as DoctorReportSchema, yi as IdSchema, yn as CancelSubscriptionResponse, yr as CheckoutError, yt as EMAIL_LOCALES, z as WebhookEndpointCreateInput, zn as InvoiceLine, zr as AccountsRefreshResult, zt as emailRecipients } from "./_chunks/index.js";
|
|
2
|
-
import { A as
|
|
3
|
-
import { n as isValidTckn, r as isValidVkn, t as isE164 } from "./_chunks/validators.js";
|
|
4
|
-
export { ACCOUNT_INCLUDES, API_VERSION, AccessState, AccessStateSchema, Account, AccountDeleteResponse, AccountDeleteResponseSchema, AccountDetail, AccountDetailSchema, AccountDunningState, AccountDunningStateSchema, AccountInclude, AccountLocaleSchema, AccountOpenCheckout, AccountOpenCheckoutSchema, AccountProfileState, AccountProfileStateSchema, AccountScheduledChange, AccountScheduledChangeSchema, AccountSchema, AccountState, AccountStateChangeCause, AccountStateSchema, AccountSubscriptionState, AccountSubscriptionStateSchema, AccountUpsertInput, AccountUpsertInputSchema, AccountUpsertResponse, AccountUpsertResponseSchema, AccountsRefreshResult, AccountsRefreshResultSchema, ActorRefSchema, AmountMinorSchema, AnyBillingEvent, AnyBillingEventSchema, ApiVersionSchema, BILLING_PATH_PLACEHOLDERS, BillingEvent, BillingEventOf, BillingEventSchema, BillingPathSchema, BillingProfile, BillingProfileInput, BillingProfileKindSchema, BillingProfileSchema, Branding, BrandingPatchSchema, BrandingSchema, CHECKOUT_ERRORS, CancelSubscriptionInput, CancelSubscriptionInputSchema, CancelSubscriptionResponse, CancelSubscriptionResponseSchema, Catalog, CatalogSchema, CatalogSyncInput, CatalogSyncInputSchema, CatalogSyncResult, CatalogSyncResultSchema, CheckoutConsentInput, CheckoutConsentInputSchema, CheckoutError, CheckoutPrefill, CheckoutPrefillSchema, CheckoutRedirectTarget, CheckoutReturnStatus, CheckoutSession, CheckoutSessionCreateInput, CheckoutSessionCreateInputSchema, CheckoutSessionCreateParsed, CheckoutSessionCreated, CheckoutSessionCreatedSchema, CheckoutSessionResponse, CheckoutSessionResponseSchema, CheckoutSessionSchema, CheckoutStatus, CheckoutStatusSchema, CodeSchema, Consent, ConsentSchema, Currency, CurrencySchema, DEFAULT_CHECKOUT_TTL_MINUTES, DEFAULT_ENDPOINT_EVENT_TYPES, DEFAULT_PORTAL_TTL_MINUTES, DOCTOR_PENDING_BACKLOG_MS, DOCTOR_PROVIDER_ENVIRONMENTS, DOCTOR_REQUIRED_BRANDING, DOCTOR_REQUIRED_LEGAL_LINKS, DOCTOR_SEVERITIES, DateTimeSchema, DoctorCatalog, DoctorCatalogSchema, DoctorEmails, DoctorEmailsSchema, DoctorEndpoint, DoctorEndpointDiagnosis, DoctorEndpointSchema, DoctorFacts, DoctorHosted, DoctorHostedSchema, DoctorProvider, DoctorProviderSchema, DoctorReport, DoctorReportSchema, DoctorSettings, DoctorSettingsSchema, DoctorSeverity, DoctorSeveritySchema, DoctorUnsellablePrice, DoctorUnsellablePriceSchema, DoctorUnsellableReason, DoctorWarning, DoctorWarningCode, DoctorWarningSchema, EMAIL_LOCALES, EMAIL_TEMPLATES, EMAIL_TEMPLATE_BY_EVENT, ERROR_CATEGORIES, ERROR_CODES, EVENT_DETAIL_SCHEMAS, EVENT_TYPES, EmailExtraTextSchema, EmailLocale, EmailRelevanceFacts, EmailSenderSchema, EmailSettings, EmailSettingsPatch, EmailSettingsPatchSchema, EmailSettingsSchema, EmailTemplate, EmailTemplateSchema, EmailTemplateSettings, EmailTemplateSettingsSchema, EntitlementRulesCatalog, EntitlementRulesGrant, EntitlementSnapshot, EntitlementSnapshotSchema, EntitlementValue, EntitlementValueSchema, Entitlements, EntitlementsSchema, ErrorCategory, ErrorCategorySchema, ErrorCode, ErrorCodeSpec, ErrorResponse, ErrorResponseSchema, EventDetail, EventIdSchema, EventType, EventTypeSchema, ExternalRefSchema, FeatureDef, FeatureDefSchema, FeatureTypeSchema, Grant, GrantCreateInput, GrantCreateInputSchema, GrantCreateResponse, GrantCreateResponseSchema, GrantSchema, HEADER_ACTOR_REF, HEADER_API_VERSION, HEADER_IDEMPOTENCY_KEY, HEADER_REQUEST_ID, HEADER_SDK, IdSchema, Interval, IntervalSchema, Invoice, InvoiceIssueInput, InvoiceIssueInputSchema, InvoiceIssueResponse, InvoiceIssueResponseSchema, InvoiceLine, InvoiceLineSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceVoidInput, InvoiceVoidInputSchema, InvoiceVoidResponse, InvoiceVoidResponseSchema, LEGACY_EVENT_TYPES, LIVE_SUBSCRIPTION_STATUSES, LegacyEventType, MANUAL_INVOICE_MAX_AMOUNT_MINOR, MAX_CHECKOUT_CONSENT_DOCS, MAX_NOTIFICATION_EMAILS, ManualInvoiceInput, ManualInvoiceInputSchema, ManualInvoiceLineInput, ManualInvoiceLineInputSchema, ManualInvoiceResponse, ManualInvoiceResponseSchema, MetadataSchema, NotificationEmailsSchema, PING_EVENT_TYPE, PLAN_SET_MODES, PORTAL_SESSION_ERRORS, Payment, PaymentSchema, Ping, PingSchema, PlanDef, PlanDefSchema, PlanSetInput, PlanSetInputSchema, PlanSetMode, PlanSetModeSchema, PlanSetResponse, PlanSetResponseSchema, PlanSetWarning, PlanSetWarningCode, PlanSetWarningSchema, PortalSession, PortalSessionCreateInput, PortalSessionCreateInputSchema, PortalSessionError, PortalSessionSchema, Price, PriceDef, PriceDefSchema, PriceSchema, ProductSettings, ProductSettingsPatch, ProductSettingsPatchSchema, ProductSettingsSchema, ProviderPayload, ProviderPayloadSchema, ResolveEntitlementsInput, ResolvedEntitlements, ResyncResult, ResyncResultSchema, ReturnOriginSchema, SETTINGS_LOCALES, SettingsLocale, SettingsLocaleSchema, Stats, StatsSchema, Subscription, SubscriptionSchema, SubscriptionStatus, SubscriptionStatusSchema, SubscriptionSummary, SubscriptionSummarySchema, TtlMinutesSchema, WEBHOOK_ENDPOINT_STATUSES, WEBHOOK_SECRET_PREFIX, WebUrlSchema, WebhookEndpoint, WebhookEndpointCreateInput, WebhookEndpointCreateInputSchema, WebhookEndpointList, WebhookEndpointListSchema, WebhookEndpointRotateInput, WebhookEndpointRotateInputSchema, WebhookEndpointSchema, WebhookEndpointStatus, WebhookEndpointStatusSchema, WebhookLastDelivery, WebhookLastDeliverySchema, WebhookSecretSchema, applyEmailSettingsPatch, applySettingsPatch, billingPageUrl, buildDoctorReport, checkoutRedirectUrl, emailLocaleOf, emailReadinessOf, emailRecipients, emailTemplateOf, emailTemplateSettings, endpointDiagnosisOf, errorCodeSpec, generateWebhookSecret, hostedReadinessOf, isE164, isEmailRelevant, isEventType, isGrantActive, isKnownErrorCode, isLiveSubscriptionStatus, isReturnUrlAllowed, isValidTckn, isValidVkn, manualInvoiceTotals, resolveEntitlements, returnOriginsOf, splitInclusiveTax, uniqueEmails, webhookEndpointUrlProblem };
|
|
1
|
+
import { $ as WebhookEndpointStatus, $a as Consent, $i as InvoiceStatusSchema, $n as MeterCreditsOptions, $o as MeterCreditBenefitDefSchema, $r as ResolvedBenefits, $s as MeterLowAtSchema, $t as BankTransferInstructionsEmail, A as DoctorSeveritySchema, Aa as PortalSessionError, Ac as ErrorResponseSchema, Ai as InvoiceIssueResponseSchema, An as emailLocaleOf, Ao as PriceDef, Ar as EventsIngestInput, As as MeterChargeListSchema, At as MeterChargeMode, B as hostedReadinessOf, Ba as CheckoutPrefill, Bc as InvoicePaymentStatusSchema, Bi as StewardCapability, Bn as PlanSetMode, Bo as BenefitFeatureType, Br as IngestRejectionSchema, Bs as MeterDef, Bt as ReturnOriginSchema, C as DoctorProvider, Ca as SubscriptionChangeInput, Cc as EntitlementValue, Ci as GrantCreateResponseSchema, Cn as NotificationEmailsSchema, Co as MAX_CATALOG_METERED_PRICES, Cr as EventExternalIdSchema, Cs as MeterAggregation, Ct as DEFAULT_PORTAL_TTL_MINUTES, D as DoctorSettings, Da as PortalSession, Dc as ErrorCategory, Di as HEADER_REQUEST_ID, Dn as PriceChangeNoticeMeteredRateSchema, Do as PlanDef, Dr as EventMetadataValue, Ds as MeterChargeLine, Dt as EventsSettingsSchema, E as DoctorReportSchema, Ea as PORTAL_SESSION_ERRORS, Ec as EntitlementsSchema, Ei as HEADER_IDEMPOTENCY_KEY, En as PriceChangeNoticeMeteredRate, Eo as METERED_PRICE_TAX_MISMATCH, Er as EventMetadataSchema, Es as MeterCharge, Et as EventsSettingsPatchSchema, F as DoctorWarningCode, Fa as BankTransferRecordedSchema, Fc as Interval, Fi as ManualInvoiceResponse, Fn as liveSubscriptionOf, Fo as BENEFIT_TYPES, Fr as IngestEvent, Fs as MeterCreditEntryKind, Ft as PaymentDueDaysSchema, G as WebhookEndpoint, Ga as CheckoutSessionCreateInput, Gi as InvoiceIssueInputSchema, Gn as PlanSetWarningCode, Go as CatalogBenefitSchema, Gr as EntitlementRulesCatalog, Gs as MeterFilterCondition, Gt as WebUrlSchema, H as EventTypeSchema, Ha as CheckoutRedirectTarget, Hi as UncancelSubscriptionResponseSchema, Hn as PlanSetResponse, Ho as BenefitType, Hr as isEventTimestampInRange, Hs as MeterDefSchema, Ht as SettingsLocale, I as DoctorWarningSchema, Ia as CHECKOUT_ERRORS, Ic as IntervalSchema, Ii as ManualInvoiceResponseSchema, In as uniqueEmails, Io as BenefitDef, Ir as IngestEventSchema, Is as MeterCreditEntryKindSchema, It as ProductSettings, J as WebhookEndpointList, Ja as CheckoutSessionCreated, Ji as InvoicePaymentSession, Jn as ResyncResultSchema, Jo as FeatureFlagBenefitDefSchema, Jr as LIVE_SUBSCRIPTION_STATUSES, Js as MeterFilterOperator, Jt as eventsSettingsOf, K as WebhookEndpointCreateInput, Ka as CheckoutSessionCreateInputSchema, Ki as InvoiceLine, Kn as PlanSetWarningSchema, Ko as FeatureFlagAccountBenefit, Kr as EntitlementRulesGrant, Ks as MeterFilterGroup, Kt as applySettingsPatch, L as buildDoctorReport, La as CheckoutConsentInput, Lc as InvoiceBillingReason, Li as MeResponse, Ln as PLAN_SET_MODES, Lo as BenefitDefSchema, Lr as IngestRejectCode, Ls as MeterCreditEntrySchema, Lt as ProductSettingsPatch, M as DoctorUnsellablePriceSchema, Ma as BankTransferRecordInput, Mc as INVOICE_BILLING_REASONS, Mi as InvoiceVoidResponseSchema, Mn as emailTemplateOf, Mo as PriceSchema, Mr as EventsIngestResult, Ms as MeterChargeStatus, Mt as MeteringSettings, N as DoctorUnsellableReason, Na as BankTransferRecordInputSchema, Nc as INVOICE_PAYMENT_STATUSES, Ni as InvoiceWaiveResponse, Nn as emailTemplateSettings, No as AccountBenefit, Nr as EventsIngestResultSchema, Ns as MeterChargeStatusSchema, Nt as MeteringSettingsPatchSchema, O as DoctorSettingsSchema, Oa as PortalSessionCreateInput, Oc as ErrorCategorySchema, Oi as HEADER_SDK, On as applyEmailSettingsPatch, Oo as PlanDefSchema, Or as EventMetadataValueSchema, Os as MeterChargeLineSchema, Ot as LateGraceMinutesSchema, P as DoctorWarning, Pa as BankTransferRecorded, Pc as IdSchema, Pi as InvoiceWaiveResponseSchema, Pn as isEmailRelevant, Po as AccountBenefitSchema, Pr as INGEST_REJECT_CODES, Ps as MeterCreditEntry, Pt as MeteringSettingsSchema, Q as WebhookEndpointSchema, Qa as CheckoutStatusSchema, Qi as InvoiceSchema, Qn as MeterCreditBenefit, Qo as MeterCreditBenefitDef, Qr as ResolvedBenefit, Qs as MeterLabelSchema, Qt as BILLING_PATH_PLACEHOLDERS, R as emailReadinessOf, Ra as CheckoutConsentInputSchema, Rc as InvoiceBillingReasonSchema, Ri as MeResponseSchema, Rn as PlanSetInput, Ro as BenefitDescription, Rr as IngestRejectCodeSchema, Rs as MeterCreditProperties, Rt as ProductSettingsPatchSchema, S as DoctorOverageSchema, Sa as Subscription, Sc as ERROR_CATEGORIES, Si as GrantCreateResponse, Sn as NoticedMeteredRateSchema, So as MAX_CATALOG_BENEFITS, Sr as EVENT_TIMESTAMP_MAX_SKEW_MINUTES, Ss as METER_STANDINGS, St as DEFAULT_PAYMENT_DUE_DAYS, T as DoctorReport, Ta as SubscriptionSchema, Tc as Entitlements, Ti as HEADER_API_VERSION, Tn as PriceChangeNoticeEmailSchema, To as MAX_PLAN_BENEFITS, Tr as EventMetadataKeySchema, Ts as MeterAggregationSchema, Tt as EventsSettings, U as WEBHOOK_ENDPOINT_STATUSES, Ua as CheckoutReturnStatus, Ui as Invoice, Un as PlanSetResponseSchema, Uo as BenefitTypeSchema, Ur as BenefitRulesDefinition, Us as MeterFilter, Ut as SettingsLocaleSchema, V as DEFAULT_ENDPOINT_EVENT_TYPES, Va as CheckoutPrefillSchema, Vc as MetadataSchema, Vi as UncancelSubscriptionResponse, Vn as PlanSetModeSchema, Vo as BenefitSourceSchema, Vr as hasControlCharacters, Vs as MeterDefInput, Vt as SETTINGS_LOCALES, W as WEBHOOK_SECRET_PREFIX, Wa as CheckoutSession, Wi as InvoiceIssueInput, Wn as PlanSetWarning, Wo as CatalogBenefit, Wr as BenefitRulesSubscription, Ws as MeterFilterClause, Wt as TtlMinutesSchema, X as WebhookEndpointRotateInput, Xa as CheckoutSessionSchema, Xi as InvoicePaymentSessionCreateInputSchema, Xn as MeterChargeTotalsLine, Xo as FeatureFlagPropertiesSchema, Xr as ResolveBenefitsInput, Xs as MeterFilterValue, Xt as meteringSettingsOf, Y as WebhookEndpointListSchema, Ya as CheckoutSessionCreatedSchema, Yi as InvoicePaymentSessionCreateInput, Yn as GrantedMeterCredit, Yo as FeatureFlagProperties, Yr as OVERRIDE_BENEFIT_SOURCE, Ys as MeterFilterSchema, Yt as isReturnUrlAllowed, Z as WebhookEndpointRotateInputSchema, Za as CheckoutStatus, Zi as InvoicePaymentSessionSchema, Zn as MeterContribution, Zo as MeterCreditAccountBenefit, Zr as ResolveEntitlementsInput, Zs as MeterLabel, Zt as returnOriginsOf, _ as DoctorEventsSchema, _a as MAX_GRANT_BENEFITS, _c as AmountMinorSchema, _i as ChangeSubscriptionResponseSchema, _n as EmailTemplateSettingsSchema, _o as CatalogSyncResult, _r as EVENT_METADATA_KEY_MAX_LENGTH, _s as METER_CREDIT_ENTRY_KINDS, _t as DEFAULT_CHECKOUT_TTL_MINUTES, a as DOCTOR_ROLLUP_LAG_WARN_SECONDS, aa as ManualInvoiceInput, ac as MeterPeriodStatusSchema, ai as ERROR_CODES, an as EMAIL_TEMPLATE_BY_EVENT, ao as PaymentMethodSchema, ar as contributionOf, as as AccountMeters, at as webhookEndpointUrlProblem, b as DoctorHostedSchema, ba as Stats, bc as CurrencySchema, bi as CreditGrantResponse, bn as MAX_NOTIFICATION_EMAILS, bo as FeatureDefSchema, br as EVENT_NAME_MAX_LENGTH, bs as METER_FILTER_OPERATORS, bt as DEFAULT_METER_CHARGE_MODE, c as DoctorBillingSchema, ca as ManualInvoiceLineInputSchema, cc as MeterUnitsSchema, ci as errorCodeSpec, cn as EmailRelevanceFacts, co as checkoutRedirectUrl, cr as meterCreditsOf, cs as CatalogMeterSchema, ct as BankTransferSettingsPatchSchema, d as DoctorEmails, da as CancelSubscriptionInput, dc as MeteredPriceDefSchema, di as AccountDetailSchema, dn as EmailSettingsPatch, do as Catalog, dr as periodBoundsOf, ds as DEFAULT_METER_LOW_AT, dt as BillingSettingsPatchSchema, ea as InvoiceVoidInput, ec as MeterPeriod, ei as ResolvedEntitlements, en as BankTransferInstructionsEmailSchema, eo as ConsentSchema, er as MeterRulesEvent, es as featureValueMatchesType, et as WebhookEndpointStatusSchema, f as DoctorEmailsSchema, fa as CancelSubscriptionInputSchema, fc as MeteredPriceSchema, fi as AccountUpsertResponse, fn as EmailSettingsPatchSchema, fo as CatalogPlan, fr as rateOverage, fs as DecimalUnitsStringSchema, ft as BillingSettingsSchema, g as DoctorEvents, ga as GrantSchema, gc as ActorRefSchema, gi as ChangeSubscriptionResponse, gn as EmailTemplateSettings, go as CatalogSyncInputSchema, gr as EVENTS_INGEST_MAX_EVENTS, gs as METER_CHARGE_STATUSES, gt as DEFAULT_BANK_TRANSFER_PAYMENT_DAYS, h as DoctorEndpointSchema, ha as GrantCreateInputSchema, hc as API_VERSION, hi as CancelSubscriptionResponseSchema, hn as EmailTemplateSchema, ho as CatalogSyncInput, hr as EVENTS_INGEST_MAX_BYTES, hs as METER_AGGREGATION_KINDS, ht as BrandingSchema, i as DOCTOR_REQUIRED_LEGAL_LINKS, ia as MANUAL_INVOICE_MAX_AMOUNT_MINOR, ic as MeterPeriodStatus, ii as resolveEntitlements, in as EMAIL_TEMPLATES, io as PaymentMethod, ir as consumptionOf, is as AccountMeterSchema, it as generateWebhookSecret, j as DoctorUnsellablePrice, ja as PortalSessionSchema, jc as ExternalRefSchema, ji as InvoiceVoidResponse, jn as emailRecipients, jo as PriceDefSchema, jr as EventsIngestInputSchema, js as MeterChargeSchema, jt as MeterChargeModeSchema, k as DoctorSeverity, ka as PortalSessionCreateInputSchema, kc as ErrorResponse, ki as InvoiceIssueResponse, kn as billingPageUrl, ko as Price, kr as EventNameSchema, ks as MeterChargeList, kt as METER_CHARGE_MODES, l as DoctorCatalog, la as manualInvoiceTotals, lc as MeteredPrice, li as isKnownErrorCode, ln as EmailSenderSchema, lo as AccountsRefreshResult, lr as overageCapReached, ls as CreditGrantInput, lt as BankTransferSettingsSchema, m as DoctorEndpointDiagnosis, ma as GrantCreateInput, mc as meterFilterClauseOf, mi as CancelSubscriptionResponse, mn as EmailTemplate, mo as CatalogSchema, mr as standingOf, ms as MAX_METER_UNITS, mt as BrandingPatchSchema, n as DOCTOR_PROVIDER_ENVIRONMENTS, na as InvoiceWaiveInput, nc as MeterPeriodListSchema, ni as isLiveSubscriptionStatus, nn as EMAIL_LOCALES, no as MAX_CHECKOUT_CONSENT_DOCS, nr as OverageRateInput, ns as isMeterCreditBenefit, nt as WebhookLastDeliverySchema, o as DOCTOR_SEVERITIES, oa as ManualInvoiceInputSchema, oc as MeterStanding, oi as ErrorCode, on as EmailExtraTextSchema, oo as ProviderPayload, or as matchesFilter, os as AccountMetersSchema, ot as BankTransferPaymentDaysSchema, p as DoctorEndpoint, pa as Grant, pc as canonicalMeterFilter, pi as AccountUpsertResponseSchema, pn as EmailSettingsSchema, po as CatalogPlanSchema, pr as rolloverOf, ps as MAX_METERED_PRICE_PER_UNITS, pt as Branding, q as WebhookEndpointCreateInputSchema, qa as CheckoutSessionCreateParsed, qi as InvoiceLineSchema, qn as ResyncResult, qo as FeatureFlagBenefitDef, qr as FEATURE_FLAG_BENEFIT_TYPE, qs as MeterFilterOperand, qt as billingSettingsOf, r as DOCTOR_REQUIRED_BRANDING, ra as InvoiceWaiveInputSchema, rc as MeterPeriodSchema, ri as resolveBenefits, rn as EMAIL_PAYLOAD_SCHEMAS, ro as PAYMENT_METHODS, rr as addUtcMonths, rs as AccountMeter, rt as WebhookSecretSchema, s as DoctorBilling, sa as ManualInvoiceLineInput, sc as MeterStandingSchema, si as ErrorCodeSpec, sn as EmailLocale, so as ProviderPayloadSchema, sr as meterChargeTotals, ss as CatalogMeter, st as BankTransferSettings, t as DOCTOR_PENDING_BACKLOG_MS, ta as InvoiceVoidInputSchema, tc as MeterPeriodList, ti as isGrantActive, tn as BillingPathSchema, to as INDIVIDUAL_IDENTITY_PLACEHOLDER, tr as MeterRulesMeter, ts as isFeatureFlagBenefit, tt as WebhookLastDelivery, u as DoctorCatalogSchema, ua as splitInclusiveTax, uc as MeteredPriceDef, ui as AccountDetail, un as EmailSettings, uo as AccountsRefreshResultSchema, ur as overageOf, us as CreditGrantInputSchema, ut as BillingSettings, v as DoctorFacts, va as Payment, vc as CodeSchema, vi as CheckoutSessionResponse, vn as InvoicePaymentDueEmail, vo as CatalogSyncResultSchema, vr as EVENT_METADATA_MAX_PAIRS, vs as METER_FILTER_MAX_CONDITIONS, vt as DEFAULT_EVENT_RETENTION_DAYS, w as DoctorProviderSchema, wa as SubscriptionChangeInputSchema, wc as EntitlementValueSchema, wi as HEADER_ACTOR_REF, wn as PriceChangeNoticeEmail, wo as MAX_CATALOG_METERS, wr as EventMetadata, ws as MeterAggregationKind, wt as EventRetentionDaysSchema, x as DoctorOverage, xa as StatsSchema, xc as DateTimeSchema, xi as CreditGrantResponseSchema, xn as NoticedMeteredRate, xo as FeatureTypeSchema, xr as EVENT_TIMESTAMP_MAX_AGE_DAYS, xs as METER_PERIOD_STATUSES, xt as DEFAULT_MIN_INVOICE_MINOR, y as DoctorHosted, ya as PaymentSchema, yc as Currency, yi as CheckoutSessionResponseSchema, yn as InvoicePaymentDueEmailSchema, yo as FeatureDef, yr as EVENT_METADATA_STRING_MAX_LENGTH, ys as METER_FILTER_MAX_DEPTH, yt as DEFAULT_LATE_GRACE_MINUTES, z as endpointDiagnosisOf, za as CheckoutError, zc as InvoicePaymentStatus, zi as STEWARD_CAPABILITIES, zn as PlanSetInputSchema, zo as BenefitDescriptionSchema, zr as IngestRejection, zs as MeterCreditPropertiesSchema, zt as ProductSettingsSchema } from "./_chunks/index.js";
|
|
2
|
+
import { $ as EntitlementSnapshot, A as AccountMeterState, B as AccountScheduledChange, C as Account, D as AccountDunningStateSchema, E as AccountDunningState, F as AccountOpenCheckoutSchema, G as AccountSubscriptionState, H as AccountSchema, I as AccountOpenInvoice, J as AccountUpsertInputSchema, K as AccountSubscriptionStateSchema, L as AccountOpenInvoiceSchema, M as AccountMetersState, N as AccountMetersStateSchema, O as AccountInclude, P as AccountOpenCheckout, Q as BillingProfileSchema, R as AccountProfileState, S as AccessStateSchema, T as AccountDeleteResponseSchema, U as AccountState, V as AccountScheduledChangeSchema, W as AccountStateSchema, X as BillingProfileInput, Y as BillingProfile, Z as BillingProfileKindSchema, _ as Ping, a as BillingEvent, b as ACCOUNT_INCLUDES, c as EVENT_DETAIL_SCHEMAS, d as EventIdSchema, et as EntitlementSnapshotSchema, f as EventType, g as PING_EVENT_TYPE, h as LegacyEventType, i as ApiVersionSchema, it as SubscriptionSummarySchema, j as AccountMeterStateSchema, k as AccountLocaleSchema, l as EVENT_TYPES, m as LEGACY_EVENT_TYPES, n as AnyBillingEvent, nt as SubscriptionStatusSchema, o as BillingEventOf, p as FULL_STATE_EVENT_TYPES, q as AccountUpsertInput, r as AnyBillingEventSchema, rt as SubscriptionSummary, s as BillingEventSchema, t as AccountStateChangeCause, tt as SubscriptionStatus, u as EventDetail, v as PingSchema, w as AccountDeleteResponse, x as AccessState, y as isEventType, z as AccountProfileStateSchema } from "./_chunks/events.js";
|
|
3
|
+
import { a as MICRO_UNITS_PER_UNIT, c as isMicroPrecise, d as plainDecimalOf, f as toMicroUnits, i as InvalidUnitValueError, l as microToDecimalString, n as isValidTckn, o as UNIT_DECIMALS, r as isValidVkn, s as fromMicroUnits, t as isE164, u as parseMicroUnits } from "./_chunks/validators.js";
|
|
4
|
+
export { ACCOUNT_INCLUDES, API_VERSION, AccessState, AccessStateSchema, Account, AccountBenefit, AccountBenefitSchema, AccountDeleteResponse, AccountDeleteResponseSchema, AccountDetail, AccountDetailSchema, AccountDunningState, AccountDunningStateSchema, AccountInclude, AccountLocaleSchema, AccountMeter, AccountMeterSchema, AccountMeterState, AccountMeterStateSchema, AccountMeters, AccountMetersSchema, AccountMetersState, AccountMetersStateSchema, AccountOpenCheckout, AccountOpenCheckoutSchema, AccountOpenInvoice, AccountOpenInvoiceSchema, AccountProfileState, AccountProfileStateSchema, AccountScheduledChange, AccountScheduledChangeSchema, AccountSchema, AccountState, AccountStateChangeCause, AccountStateSchema, AccountSubscriptionState, AccountSubscriptionStateSchema, AccountUpsertInput, AccountUpsertInputSchema, AccountUpsertResponse, AccountUpsertResponseSchema, AccountsRefreshResult, AccountsRefreshResultSchema, ActorRefSchema, AmountMinorSchema, AnyBillingEvent, AnyBillingEventSchema, ApiVersionSchema, BENEFIT_TYPES, BILLING_PATH_PLACEHOLDERS, BankTransferInstructionsEmail, BankTransferInstructionsEmailSchema, BankTransferPaymentDaysSchema, BankTransferRecordInput, BankTransferRecordInputSchema, BankTransferRecorded, BankTransferRecordedSchema, BankTransferSettings, BankTransferSettingsPatchSchema, BankTransferSettingsSchema, BenefitDef, BenefitDefSchema, BenefitDescription, BenefitDescriptionSchema, BenefitFeatureType, BenefitRulesDefinition, BenefitRulesSubscription, BenefitSourceSchema, BenefitType, BenefitTypeSchema, BillingEvent, BillingEventOf, BillingEventSchema, BillingPathSchema, BillingProfile, BillingProfileInput, BillingProfileKindSchema, BillingProfileSchema, BillingSettings, BillingSettingsPatchSchema, BillingSettingsSchema, Branding, BrandingPatchSchema, BrandingSchema, CHECKOUT_ERRORS, CancelSubscriptionInput, CancelSubscriptionInputSchema, CancelSubscriptionResponse, CancelSubscriptionResponseSchema, Catalog, CatalogBenefit, CatalogBenefitSchema, CatalogMeter, CatalogMeterSchema, CatalogPlan, CatalogPlanSchema, CatalogSchema, CatalogSyncInput, CatalogSyncInputSchema, CatalogSyncResult, CatalogSyncResultSchema, ChangeSubscriptionResponse, ChangeSubscriptionResponseSchema, CheckoutConsentInput, CheckoutConsentInputSchema, CheckoutError, CheckoutPrefill, CheckoutPrefillSchema, CheckoutRedirectTarget, CheckoutReturnStatus, CheckoutSession, CheckoutSessionCreateInput, CheckoutSessionCreateInputSchema, CheckoutSessionCreateParsed, CheckoutSessionCreated, CheckoutSessionCreatedSchema, CheckoutSessionResponse, CheckoutSessionResponseSchema, CheckoutSessionSchema, CheckoutStatus, CheckoutStatusSchema, CodeSchema, Consent, ConsentSchema, CreditGrantInput, CreditGrantInputSchema, CreditGrantResponse, CreditGrantResponseSchema, Currency, CurrencySchema, DEFAULT_BANK_TRANSFER_PAYMENT_DAYS, DEFAULT_CHECKOUT_TTL_MINUTES, DEFAULT_ENDPOINT_EVENT_TYPES, DEFAULT_EVENT_RETENTION_DAYS, DEFAULT_LATE_GRACE_MINUTES, DEFAULT_METER_CHARGE_MODE, DEFAULT_METER_LOW_AT, DEFAULT_MIN_INVOICE_MINOR, DEFAULT_PAYMENT_DUE_DAYS, DEFAULT_PORTAL_TTL_MINUTES, DOCTOR_PENDING_BACKLOG_MS, DOCTOR_PROVIDER_ENVIRONMENTS, DOCTOR_REQUIRED_BRANDING, DOCTOR_REQUIRED_LEGAL_LINKS, DOCTOR_ROLLUP_LAG_WARN_SECONDS, DOCTOR_SEVERITIES, DateTimeSchema, DecimalUnitsStringSchema, DoctorBilling, DoctorBillingSchema, DoctorCatalog, DoctorCatalogSchema, DoctorEmails, DoctorEmailsSchema, DoctorEndpoint, DoctorEndpointDiagnosis, DoctorEndpointSchema, DoctorEvents, DoctorEventsSchema, DoctorFacts, DoctorHosted, DoctorHostedSchema, DoctorOverage, DoctorOverageSchema, DoctorProvider, DoctorProviderSchema, DoctorReport, DoctorReportSchema, DoctorSettings, DoctorSettingsSchema, DoctorSeverity, DoctorSeveritySchema, DoctorUnsellablePrice, DoctorUnsellablePriceSchema, DoctorUnsellableReason, DoctorWarning, DoctorWarningCode, DoctorWarningSchema, EMAIL_LOCALES, EMAIL_PAYLOAD_SCHEMAS, EMAIL_TEMPLATES, EMAIL_TEMPLATE_BY_EVENT, ERROR_CATEGORIES, ERROR_CODES, EVENTS_INGEST_MAX_BYTES, EVENTS_INGEST_MAX_EVENTS, EVENT_DETAIL_SCHEMAS, EVENT_METADATA_KEY_MAX_LENGTH, EVENT_METADATA_MAX_PAIRS, EVENT_METADATA_STRING_MAX_LENGTH, EVENT_NAME_MAX_LENGTH, EVENT_TIMESTAMP_MAX_AGE_DAYS, EVENT_TIMESTAMP_MAX_SKEW_MINUTES, EVENT_TYPES, EmailExtraTextSchema, EmailLocale, EmailRelevanceFacts, EmailSenderSchema, EmailSettings, EmailSettingsPatch, EmailSettingsPatchSchema, EmailSettingsSchema, EmailTemplate, EmailTemplateSchema, EmailTemplateSettings, EmailTemplateSettingsSchema, EntitlementRulesCatalog, EntitlementRulesGrant, EntitlementSnapshot, EntitlementSnapshotSchema, EntitlementValue, EntitlementValueSchema, Entitlements, EntitlementsSchema, ErrorCategory, ErrorCategorySchema, ErrorCode, ErrorCodeSpec, ErrorResponse, ErrorResponseSchema, EventDetail, EventExternalIdSchema, EventIdSchema, EventMetadata, EventMetadataKeySchema, EventMetadataSchema, EventMetadataValue, EventMetadataValueSchema, EventNameSchema, EventRetentionDaysSchema, EventType, EventTypeSchema, EventsIngestInput, EventsIngestInputSchema, EventsIngestResult, EventsIngestResultSchema, EventsSettings, EventsSettingsPatchSchema, EventsSettingsSchema, ExternalRefSchema, FEATURE_FLAG_BENEFIT_TYPE, FULL_STATE_EVENT_TYPES, FeatureDef, FeatureDefSchema, FeatureFlagAccountBenefit, FeatureFlagBenefitDef, FeatureFlagBenefitDefSchema, FeatureFlagProperties, FeatureFlagPropertiesSchema, FeatureTypeSchema, Grant, GrantCreateInput, GrantCreateInputSchema, GrantCreateResponse, GrantCreateResponseSchema, GrantSchema, GrantedMeterCredit, HEADER_ACTOR_REF, HEADER_API_VERSION, HEADER_IDEMPOTENCY_KEY, HEADER_REQUEST_ID, HEADER_SDK, INDIVIDUAL_IDENTITY_PLACEHOLDER, INGEST_REJECT_CODES, INVOICE_BILLING_REASONS, INVOICE_PAYMENT_STATUSES, IdSchema, IngestEvent, IngestEventSchema, IngestRejectCode, IngestRejectCodeSchema, IngestRejection, IngestRejectionSchema, Interval, IntervalSchema, InvalidUnitValueError, Invoice, InvoiceBillingReason, InvoiceBillingReasonSchema, InvoiceIssueInput, InvoiceIssueInputSchema, InvoiceIssueResponse, InvoiceIssueResponseSchema, InvoiceLine, InvoiceLineSchema, InvoicePaymentDueEmail, InvoicePaymentDueEmailSchema, InvoicePaymentSession, InvoicePaymentSessionCreateInput, InvoicePaymentSessionCreateInputSchema, InvoicePaymentSessionSchema, InvoicePaymentStatus, InvoicePaymentStatusSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceVoidInput, InvoiceVoidInputSchema, InvoiceVoidResponse, InvoiceVoidResponseSchema, InvoiceWaiveInput, InvoiceWaiveInputSchema, InvoiceWaiveResponse, InvoiceWaiveResponseSchema, LEGACY_EVENT_TYPES, LIVE_SUBSCRIPTION_STATUSES, LateGraceMinutesSchema, LegacyEventType, MANUAL_INVOICE_MAX_AMOUNT_MINOR, MAX_CATALOG_BENEFITS, MAX_CATALOG_METERED_PRICES, MAX_CATALOG_METERS, MAX_CHECKOUT_CONSENT_DOCS, MAX_GRANT_BENEFITS, MAX_METERED_PRICE_PER_UNITS, MAX_METER_UNITS, MAX_NOTIFICATION_EMAILS, MAX_PLAN_BENEFITS, METERED_PRICE_TAX_MISMATCH, METER_AGGREGATION_KINDS, METER_CHARGE_MODES, METER_CHARGE_STATUSES, METER_CREDIT_ENTRY_KINDS, METER_FILTER_MAX_CONDITIONS, METER_FILTER_MAX_DEPTH, METER_FILTER_OPERATORS, METER_PERIOD_STATUSES, METER_STANDINGS, MICRO_UNITS_PER_UNIT, ManualInvoiceInput, ManualInvoiceInputSchema, ManualInvoiceLineInput, ManualInvoiceLineInputSchema, ManualInvoiceResponse, ManualInvoiceResponseSchema, MeResponse, MeResponseSchema, MetadataSchema, MeterAggregation, MeterAggregationKind, MeterAggregationSchema, MeterCharge, MeterChargeLine, MeterChargeLineSchema, MeterChargeList, MeterChargeListSchema, MeterChargeMode, MeterChargeModeSchema, MeterChargeSchema, MeterChargeStatus, MeterChargeStatusSchema, MeterChargeTotalsLine, MeterContribution, MeterCreditAccountBenefit, MeterCreditBenefit, MeterCreditBenefitDef, MeterCreditBenefitDefSchema, MeterCreditEntry, MeterCreditEntryKind, MeterCreditEntryKindSchema, MeterCreditEntrySchema, MeterCreditProperties, MeterCreditPropertiesSchema, MeterCreditsOptions, MeterDef, MeterDefInput, MeterDefSchema, MeterFilter, MeterFilterClause, MeterFilterCondition, MeterFilterGroup, MeterFilterOperand, MeterFilterOperator, MeterFilterSchema, MeterFilterValue, MeterLabel, MeterLabelSchema, MeterLowAtSchema, MeterPeriod, MeterPeriodList, MeterPeriodListSchema, MeterPeriodSchema, MeterPeriodStatus, MeterPeriodStatusSchema, MeterRulesEvent, MeterRulesMeter, MeterStanding, MeterStandingSchema, MeterUnitsSchema, MeteredPrice, MeteredPriceDef, MeteredPriceDefSchema, MeteredPriceSchema, MeteringSettings, MeteringSettingsPatchSchema, MeteringSettingsSchema, NoticedMeteredRate, NoticedMeteredRateSchema, NotificationEmailsSchema, OVERRIDE_BENEFIT_SOURCE, OverageRateInput, PAYMENT_METHODS, PING_EVENT_TYPE, PLAN_SET_MODES, PORTAL_SESSION_ERRORS, Payment, PaymentDueDaysSchema, PaymentMethod, PaymentMethodSchema, PaymentSchema, Ping, PingSchema, PlanDef, PlanDefSchema, PlanSetInput, PlanSetInputSchema, PlanSetMode, PlanSetModeSchema, PlanSetResponse, PlanSetResponseSchema, PlanSetWarning, PlanSetWarningCode, PlanSetWarningSchema, PortalSession, PortalSessionCreateInput, PortalSessionCreateInputSchema, PortalSessionError, PortalSessionSchema, Price, PriceChangeNoticeEmail, PriceChangeNoticeEmailSchema, PriceChangeNoticeMeteredRate, PriceChangeNoticeMeteredRateSchema, PriceDef, PriceDefSchema, PriceSchema, ProductSettings, ProductSettingsPatch, ProductSettingsPatchSchema, ProductSettingsSchema, ProviderPayload, ProviderPayloadSchema, ResolveBenefitsInput, ResolveEntitlementsInput, ResolvedBenefit, ResolvedBenefits, ResolvedEntitlements, ResyncResult, ResyncResultSchema, ReturnOriginSchema, SETTINGS_LOCALES, STEWARD_CAPABILITIES, SettingsLocale, SettingsLocaleSchema, Stats, StatsSchema, StewardCapability, Subscription, SubscriptionChangeInput, SubscriptionChangeInputSchema, SubscriptionSchema, SubscriptionStatus, SubscriptionStatusSchema, SubscriptionSummary, SubscriptionSummarySchema, TtlMinutesSchema, UNIT_DECIMALS, UncancelSubscriptionResponse, UncancelSubscriptionResponseSchema, WEBHOOK_ENDPOINT_STATUSES, WEBHOOK_SECRET_PREFIX, WebUrlSchema, WebhookEndpoint, WebhookEndpointCreateInput, WebhookEndpointCreateInputSchema, WebhookEndpointList, WebhookEndpointListSchema, WebhookEndpointRotateInput, WebhookEndpointRotateInputSchema, WebhookEndpointSchema, WebhookEndpointStatus, WebhookEndpointStatusSchema, WebhookLastDelivery, WebhookLastDeliverySchema, WebhookSecretSchema, addUtcMonths, applyEmailSettingsPatch, applySettingsPatch, billingPageUrl, billingSettingsOf, buildDoctorReport, canonicalMeterFilter, checkoutRedirectUrl, consumptionOf, contributionOf, emailLocaleOf, emailReadinessOf, emailRecipients, emailTemplateOf, emailTemplateSettings, endpointDiagnosisOf, errorCodeSpec, eventsSettingsOf, featureValueMatchesType, fromMicroUnits, generateWebhookSecret, hasControlCharacters, hostedReadinessOf, isE164, isEmailRelevant, isEventTimestampInRange, isEventType, isFeatureFlagBenefit, isGrantActive, isKnownErrorCode, isLiveSubscriptionStatus, isMeterCreditBenefit, isMicroPrecise, isReturnUrlAllowed, isValidTckn, isValidVkn, liveSubscriptionOf, manualInvoiceTotals, matchesFilter, meterChargeTotals, meterCreditsOf, meterFilterClauseOf, meteringSettingsOf, microToDecimalString, overageCapReached, overageOf, parseMicroUnits, periodBoundsOf, plainDecimalOf, rateOverage, resolveBenefits, resolveEntitlements, returnOriginsOf, rolloverOf, splitInclusiveTax, standingOf, toMicroUnits, uniqueEmails, webhookEndpointUrlProblem };
|
package/dist/contract.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { $ as
|
|
3
|
-
import { a as
|
|
4
|
-
export { ACCOUNT_INCLUDES, API_VERSION, AccessStateSchema, AccountDeleteResponseSchema, AccountDetailSchema, AccountDunningStateSchema, AccountLocaleSchema, AccountOpenCheckoutSchema, AccountProfileStateSchema, AccountScheduledChangeSchema, AccountSchema, AccountStateSchema, AccountSubscriptionStateSchema, AccountUpsertInputSchema, AccountUpsertResponseSchema, AccountsRefreshResultSchema, ActorRefSchema, AmountMinorSchema, AnyBillingEventSchema, ApiVersionSchema, BILLING_PATH_PLACEHOLDERS, BillingEventSchema, BillingPathSchema, BillingProfileKindSchema, BillingProfileSchema, BrandingPatchSchema, BrandingSchema, CHECKOUT_ERRORS, CancelSubscriptionInputSchema, CancelSubscriptionResponseSchema, CatalogSchema, CatalogSyncInputSchema, CatalogSyncResultSchema, CheckoutConsentInputSchema, CheckoutPrefillSchema, CheckoutSessionCreateInputSchema, CheckoutSessionCreatedSchema, CheckoutSessionResponseSchema, CheckoutSessionSchema, CheckoutStatusSchema, CodeSchema, ConsentSchema, CurrencySchema, DEFAULT_CHECKOUT_TTL_MINUTES, DEFAULT_ENDPOINT_EVENT_TYPES, DEFAULT_PORTAL_TTL_MINUTES, DOCTOR_PENDING_BACKLOG_MS, DOCTOR_PROVIDER_ENVIRONMENTS, DOCTOR_REQUIRED_BRANDING, DOCTOR_REQUIRED_LEGAL_LINKS, DOCTOR_SEVERITIES, DateTimeSchema, DoctorCatalogSchema, DoctorEmailsSchema, DoctorEndpointSchema, DoctorHostedSchema, DoctorProviderSchema, DoctorReportSchema, DoctorSettingsSchema, DoctorSeveritySchema, DoctorUnsellablePriceSchema, DoctorWarningSchema, EMAIL_LOCALES, EMAIL_TEMPLATES, EMAIL_TEMPLATE_BY_EVENT, ERROR_CATEGORIES, ERROR_CODES, EVENT_DETAIL_SCHEMAS, EVENT_TYPES, EmailExtraTextSchema, EmailSenderSchema, EmailSettingsPatchSchema, EmailSettingsSchema, EmailTemplateSchema, EmailTemplateSettingsSchema, EntitlementSnapshotSchema, EntitlementValueSchema, EntitlementsSchema, ErrorCategorySchema, ErrorResponseSchema, EventIdSchema, EventTypeSchema, ExternalRefSchema, FeatureDefSchema, FeatureTypeSchema, GrantCreateInputSchema, GrantCreateResponseSchema, GrantSchema, HEADER_ACTOR_REF, HEADER_API_VERSION, HEADER_IDEMPOTENCY_KEY, HEADER_REQUEST_ID, HEADER_SDK, IdSchema, IntervalSchema, InvoiceIssueInputSchema, InvoiceIssueResponseSchema, InvoiceLineSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceVoidInputSchema, InvoiceVoidResponseSchema, LEGACY_EVENT_TYPES, LIVE_SUBSCRIPTION_STATUSES, MANUAL_INVOICE_MAX_AMOUNT_MINOR, MAX_CHECKOUT_CONSENT_DOCS, MAX_NOTIFICATION_EMAILS, ManualInvoiceInputSchema, ManualInvoiceLineInputSchema, ManualInvoiceResponseSchema, MetadataSchema, NotificationEmailsSchema, PING_EVENT_TYPE, PLAN_SET_MODES, PORTAL_SESSION_ERRORS, PaymentSchema, PingSchema, PlanDefSchema, PlanSetInputSchema, PlanSetModeSchema, PlanSetResponseSchema, PlanSetWarningSchema, PortalSessionCreateInputSchema, PortalSessionSchema, PriceDefSchema, PriceSchema, ProductSettingsPatchSchema, ProductSettingsSchema, ProviderPayloadSchema, ResyncResultSchema, ReturnOriginSchema, SETTINGS_LOCALES, SettingsLocaleSchema, StatsSchema, SubscriptionSchema, SubscriptionStatusSchema, SubscriptionSummarySchema, TtlMinutesSchema, WEBHOOK_ENDPOINT_STATUSES, WEBHOOK_SECRET_PREFIX, WebUrlSchema, WebhookEndpointCreateInputSchema, WebhookEndpointListSchema, WebhookEndpointRotateInputSchema, WebhookEndpointSchema, WebhookEndpointStatusSchema, WebhookLastDeliverySchema, WebhookSecretSchema, applyEmailSettingsPatch, applySettingsPatch, billingPageUrl, buildDoctorReport, checkoutRedirectUrl, emailLocaleOf, emailReadinessOf, emailRecipients, emailTemplateOf, emailTemplateSettings, endpointDiagnosisOf, errorCodeSpec, generateWebhookSecret, hostedReadinessOf, isE164, isEmailRelevant, isEventType, isGrantActive, isKnownErrorCode, isLiveSubscriptionStatus, isReturnUrlAllowed, isValidTckn, isValidVkn, manualInvoiceTotals, resolveEntitlements, returnOriginsOf, splitInclusiveTax, uniqueEmails, webhookEndpointUrlProblem };
|
|
1
|
+
import { $ as emailLocaleOf, $t as MeteredPriceSchema, A as SubscriptionStatusSchema, An as hasControlCharacters, At as METER_FILTER_MAX_CONDITIONS, B as EmailSenderSchema, Bn as EntitlementsSchema, Bt as MeterCreditEntryKindSchema, C as AccountSchema, Cn as EventNameSchema, Ct as DEFAULT_METER_LOW_AT, D as BillingProfileKindSchema, Dn as IngestEventSchema, Dt as METER_AGGREGATION_KINDS, E as AccountUpsertInputSchema, En as INGEST_REJECT_CODES, Et as MAX_METER_UNITS, F as EMAIL_LOCALES, Fn as CodeSchema, Ft as MeterAggregationSchema, G as InvoicePaymentDueEmailSchema, Gn as INVOICE_PAYMENT_STATUSES, Gt as MeterLabelSchema, H as EmailSettingsSchema, Hn as ErrorResponseSchema, Ht as MeterCreditPropertiesSchema, I as EMAIL_PAYLOAD_SCHEMAS, In as CurrencySchema, It as MeterChargeLineSchema, J as NotificationEmailsSchema, Jn as InvoiceBillingReasonSchema, Jt as MeterPeriodSchema, K as MAX_NOTIFICATION_EMAILS, Kn as IdSchema, Kt as MeterLowAtSchema, L as EMAIL_TEMPLATES, Ln as DateTimeSchema, Lt as MeterChargeListSchema, M as BILLING_PATH_PLACEHOLDERS, Mn as API_VERSION, Mt as METER_FILTER_OPERATORS, N as BankTransferInstructionsEmailSchema, Nn as ActorRefSchema, Nt as METER_PERIOD_STATUSES, O as BillingProfileSchema, On as IngestRejectCodeSchema, Ot as METER_CHARGE_STATUSES, P as BillingPathSchema, Pn as AmountMinorSchema, Pt as METER_STANDINGS, Q as billingPageUrl, Qt as MeteredPriceDefSchema, R as EMAIL_TEMPLATE_BY_EVENT, Rn as ERROR_CATEGORIES, Rt as MeterChargeSchema, S as AccountScheduledChangeSchema, Sn as EventMetadataValueSchema, St as CreditGrantInputSchema, T as AccountSubscriptionStateSchema, Tn as EventsIngestResultSchema, Tt as MAX_METERED_PRICE_PER_UNITS, U as EmailTemplateSchema, Un as ExternalRefSchema, Ut as MeterDefSchema, V as EmailSettingsPatchSchema, Vn as ErrorCategorySchema, Vt as MeterCreditEntrySchema, W as EmailTemplateSettingsSchema, Wn as INVOICE_BILLING_REASONS, Wt as MeterFilterSchema, X as PriceChangeNoticeMeteredRateSchema, Xn as MetadataSchema, Xt as MeterStandingSchema, Y as PriceChangeNoticeEmailSchema, Yn as InvoicePaymentStatusSchema, Yt as MeterPeriodStatusSchema, Z as applyEmailSettingsPatch, Zt as MeterUnitsSchema, _ as AccountMeterStateSchema, _n as EVENT_TIMESTAMP_MAX_AGE_DAYS, _t as isFeatureFlagBenefit, a as EVENT_TYPES, an as fromMicroUnits, at as uniqueEmails, b as AccountOpenInvoiceSchema, bn as EventMetadataKeySchema, bt as AccountMetersSchema, c as LEGACY_EVENT_TYPES, cn as parseMicroUnits, ct as BenefitDefSchema, d as isEventType, dn as EVENTS_INGEST_MAX_BYTES, dt as BenefitTypeSchema, en as canonicalMeterFilter, et as emailRecipients, f as ACCOUNT_INCLUDES, fn as EVENTS_INGEST_MAX_EVENTS, ft as CatalogBenefitSchema, g as AccountLocaleSchema, gn as EVENT_NAME_MAX_LENGTH, gt as featureValueMatchesType, h as AccountDunningStateSchema, hn as EVENT_METADATA_STRING_MAX_LENGTH, ht as MeterCreditBenefitDefSchema, i as EVENT_DETAIL_SCHEMAS, in as UNIT_DECIMALS, it as liveSubscriptionOf, j as SubscriptionSummarySchema, jn as isEventTimestampInRange, jt as METER_FILTER_MAX_DEPTH, k as EntitlementSnapshotSchema, kn as IngestRejectionSchema, kt as METER_CREDIT_ENTRY_KINDS, l as PING_EVENT_TYPE, ln as plainDecimalOf, lt as BenefitDescriptionSchema, m as AccountDeleteResponseSchema, mn as EVENT_METADATA_MAX_PAIRS, mt as FeatureFlagPropertiesSchema, n as ApiVersionSchema, nn as InvalidUnitValueError, nt as emailTemplateSettings, o as EventIdSchema, on as isMicroPrecise, ot as AccountBenefitSchema, p as AccessStateSchema, pn as EVENT_METADATA_KEY_MAX_LENGTH, pt as FeatureFlagBenefitDefSchema, q as NoticedMeteredRateSchema, qn as IntervalSchema, qt as MeterPeriodListSchema, r as BillingEventSchema, rn as MICRO_UNITS_PER_UNIT, rt as isEmailRelevant, s as FULL_STATE_EVENT_TYPES, sn as microToDecimalString, st as BENEFIT_TYPES, t as AnyBillingEventSchema, tn as meterFilterClauseOf, tt as emailTemplateOf, u as PingSchema, un as toMicroUnits, ut as BenefitSourceSchema, v as AccountMetersStateSchema, vn as EVENT_TIMESTAMP_MAX_SKEW_MINUTES, vt as isMeterCreditBenefit, w as AccountStateSchema, wn as EventsIngestInputSchema, wt as DecimalUnitsStringSchema, x as AccountProfileStateSchema, xn as EventMetadataSchema, xt as CatalogMeterSchema, y as AccountOpenCheckoutSchema, yn as EventExternalIdSchema, yt as AccountMeterSchema, z as EmailExtraTextSchema, zn as EntitlementValueSchema, zt as MeterChargeStatusSchema } from "./_chunks/events.js";
|
|
2
|
+
import { $ as rolloverOf, $n as MAX_CATALOG_BENEFITS, $t as CheckoutSessionCreatedSchema, A as WebhookEndpointRotateInputSchema, An as MeteringSettingsPatchSchema, At as InvoiceWaiveInputSchema, B as PlanSetResponseSchema, Bn as applySettingsPatch, Bt as PaymentSchema, C as hostedReadinessOf, Cn as DEFAULT_PORTAL_TTL_MINUTES, Ct as InvoiceIssueInputSchema, D as WEBHOOK_SECRET_PREFIX, Dn as LateGraceMinutesSchema, Dt as InvoiceSchema, E as WEBHOOK_ENDPOINT_STATUSES, En as EventsSettingsSchema, Et as InvoicePaymentSessionSchema, F as generateWebhookSecret, Fn as ReturnOriginSchema, Ft as splitInclusiveTax, G as contributionOf, Gn as returnOriginsOf, Gt as PortalSessionCreateInputSchema, H as ResyncResultSchema, Hn as eventsSettingsOf, Ht as SubscriptionChangeInputSchema, I as webhookEndpointUrlProblem, In as SETTINGS_LOCALES, It as CancelSubscriptionInputSchema, J as meterCreditsOf, Jn as CatalogSchema, Jt as BankTransferRecordedSchema, K as matchesFilter, Kn as AccountsRefreshResultSchema, Kt as PortalSessionSchema, L as PLAN_SET_MODES, Ln as SettingsLocaleSchema, Lt as GrantCreateInputSchema, M as WebhookEndpointStatusSchema, Mn as PaymentDueDaysSchema, Mt as ManualInvoiceInputSchema, N as WebhookLastDeliverySchema, Nn as ProductSettingsPatchSchema, Nt as ManualInvoiceLineInputSchema, O as WebhookEndpointCreateInputSchema, On as METER_CHARGE_MODES, Ot as InvoiceStatusSchema, P as WebhookSecretSchema, Pn as ProductSettingsSchema, Pt as manualInvoiceTotals, Q as rateOverage, Qn as FeatureTypeSchema, Qt as CheckoutSessionCreateInputSchema, R as PlanSetInputSchema, Rn as TtlMinutesSchema, Rt as GrantSchema, S as endpointDiagnosisOf, Sn as DEFAULT_PAYMENT_DUE_DAYS, St as UncancelSubscriptionResponseSchema, T as EventTypeSchema, Tn as EventsSettingsPatchSchema, Tt as InvoicePaymentSessionCreateInputSchema, U as addUtcMonths, Un as isReturnUrlAllowed, Ut as SubscriptionSchema, V as PlanSetWarningSchema, Vn as billingSettingsOf, Vt as StatsSchema, W as consumptionOf, Wn as meteringSettingsOf, Wt as PORTAL_SESSION_ERRORS, X as overageOf, Xn as CatalogSyncResultSchema, Xt as CheckoutConsentInputSchema, Y as overageCapReached, Yn as CatalogSyncInputSchema, Yt as CHECKOUT_ERRORS, Z as periodBoundsOf, Zn as FeatureDefSchema, Zt as CheckoutPrefillSchema, _ as DoctorSeveritySchema, _n as DEFAULT_CHECKOUT_TTL_MINUTES, _t as InvoiceVoidResponseSchema, a as DOCTOR_ROLLUP_LAG_WARN_SECONDS, an as PAYMENT_METHODS, ar as PriceDefSchema, at as AccountUpsertResponseSchema, b as buildDoctorReport, bn as DEFAULT_METER_CHARGE_MODE, bt as MeResponseSchema, c as DoctorCatalogSchema, cn as checkoutRedirectUrl, ct as CheckoutSessionResponseSchema, d as DoctorEventsSchema, dn as BankTransferSettingsSchema, dt as HEADER_ACTOR_REF, en as CheckoutSessionSchema, er as MAX_CATALOG_METERED_PRICES, et as standingOf, f as DoctorHostedSchema, fn as BillingSettingsPatchSchema, ft as HEADER_API_VERSION, g as DoctorSettingsSchema, gn as DEFAULT_BANK_TRANSFER_PAYMENT_DAYS, gt as InvoiceIssueResponseSchema, h as DoctorReportSchema, hn as BrandingSchema, ht as HEADER_SDK, i as DOCTOR_REQUIRED_LEGAL_LINKS, in as MAX_CHECKOUT_CONSENT_DOCS, ir as PlanDefSchema, it as AccountDetailSchema, j as WebhookEndpointSchema, jn as MeteringSettingsSchema, jt as MANUAL_INVOICE_MAX_AMOUNT_MINOR, k as WebhookEndpointListSchema, kn as MeterChargeModeSchema, kt as InvoiceVoidInputSchema, l as DoctorEmailsSchema, ln as BankTransferPaymentDaysSchema, lt as CreditGrantResponseSchema, m as DoctorProviderSchema, mn as BrandingPatchSchema, mt as HEADER_REQUEST_ID, n as DOCTOR_PROVIDER_ENVIRONMENTS, nn as ConsentSchema, nr as MAX_PLAN_BENEFITS, nt as errorCodeSpec, o as DOCTOR_SEVERITIES, on as PaymentMethodSchema, or as PriceSchema, ot as CancelSubscriptionResponseSchema, p as DoctorOverageSchema, pn as BillingSettingsSchema, pt as HEADER_IDEMPOTENCY_KEY, q as meterChargeTotals, qn as CatalogPlanSchema, qt as BankTransferRecordInputSchema, r as DOCTOR_REQUIRED_BRANDING, rn as INDIVIDUAL_IDENTITY_PLACEHOLDER, rr as METERED_PRICE_TAX_MISMATCH, rt as isKnownErrorCode, s as DoctorBillingSchema, sn as ProviderPayloadSchema, st as ChangeSubscriptionResponseSchema, t as DOCTOR_PENDING_BACKLOG_MS, tn as CheckoutStatusSchema, tr as MAX_CATALOG_METERS, tt as ERROR_CODES, u as DoctorEndpointSchema, un as BankTransferSettingsPatchSchema, ut as GrantCreateResponseSchema, v as DoctorUnsellablePriceSchema, vn as DEFAULT_EVENT_RETENTION_DAYS, vt as InvoiceWaiveResponseSchema, w as DEFAULT_ENDPOINT_EVENT_TYPES, wn as EventRetentionDaysSchema, wt as InvoiceLineSchema, x as emailReadinessOf, xn as DEFAULT_MIN_INVOICE_MINOR, xt as STEWARD_CAPABILITIES, y as DoctorWarningSchema, yn as DEFAULT_LATE_GRACE_MINUTES, yt as ManualInvoiceResponseSchema, z as PlanSetModeSchema, zn as WebUrlSchema, zt as MAX_GRANT_BENEFITS } from "./_chunks/src.js";
|
|
3
|
+
import { a as LIVE_SUBSCRIPTION_STATUSES, c as isLiveSubscriptionStatus, i as FEATURE_FLAG_BENEFIT_TYPE, l as resolveBenefits, n as isValidTckn, o as OVERRIDE_BENEFIT_SOURCE, r as isValidVkn, s as isGrantActive, t as isE164, u as resolveEntitlements } from "./_chunks/validators.js";
|
|
4
|
+
export { ACCOUNT_INCLUDES, API_VERSION, AccessStateSchema, AccountBenefitSchema, AccountDeleteResponseSchema, AccountDetailSchema, AccountDunningStateSchema, AccountLocaleSchema, AccountMeterSchema, AccountMeterStateSchema, AccountMetersSchema, AccountMetersStateSchema, AccountOpenCheckoutSchema, AccountOpenInvoiceSchema, AccountProfileStateSchema, AccountScheduledChangeSchema, AccountSchema, AccountStateSchema, AccountSubscriptionStateSchema, AccountUpsertInputSchema, AccountUpsertResponseSchema, AccountsRefreshResultSchema, ActorRefSchema, AmountMinorSchema, AnyBillingEventSchema, ApiVersionSchema, BENEFIT_TYPES, BILLING_PATH_PLACEHOLDERS, BankTransferInstructionsEmailSchema, BankTransferPaymentDaysSchema, BankTransferRecordInputSchema, BankTransferRecordedSchema, BankTransferSettingsPatchSchema, BankTransferSettingsSchema, BenefitDefSchema, BenefitDescriptionSchema, BenefitSourceSchema, BenefitTypeSchema, BillingEventSchema, BillingPathSchema, BillingProfileKindSchema, BillingProfileSchema, BillingSettingsPatchSchema, BillingSettingsSchema, BrandingPatchSchema, BrandingSchema, CHECKOUT_ERRORS, CancelSubscriptionInputSchema, CancelSubscriptionResponseSchema, CatalogBenefitSchema, CatalogMeterSchema, CatalogPlanSchema, CatalogSchema, CatalogSyncInputSchema, CatalogSyncResultSchema, ChangeSubscriptionResponseSchema, CheckoutConsentInputSchema, CheckoutPrefillSchema, CheckoutSessionCreateInputSchema, CheckoutSessionCreatedSchema, CheckoutSessionResponseSchema, CheckoutSessionSchema, CheckoutStatusSchema, CodeSchema, ConsentSchema, CreditGrantInputSchema, CreditGrantResponseSchema, CurrencySchema, DEFAULT_BANK_TRANSFER_PAYMENT_DAYS, DEFAULT_CHECKOUT_TTL_MINUTES, DEFAULT_ENDPOINT_EVENT_TYPES, DEFAULT_EVENT_RETENTION_DAYS, DEFAULT_LATE_GRACE_MINUTES, DEFAULT_METER_CHARGE_MODE, DEFAULT_METER_LOW_AT, DEFAULT_MIN_INVOICE_MINOR, DEFAULT_PAYMENT_DUE_DAYS, DEFAULT_PORTAL_TTL_MINUTES, DOCTOR_PENDING_BACKLOG_MS, DOCTOR_PROVIDER_ENVIRONMENTS, DOCTOR_REQUIRED_BRANDING, DOCTOR_REQUIRED_LEGAL_LINKS, DOCTOR_ROLLUP_LAG_WARN_SECONDS, DOCTOR_SEVERITIES, DateTimeSchema, DecimalUnitsStringSchema, DoctorBillingSchema, DoctorCatalogSchema, DoctorEmailsSchema, DoctorEndpointSchema, DoctorEventsSchema, DoctorHostedSchema, DoctorOverageSchema, DoctorProviderSchema, DoctorReportSchema, DoctorSettingsSchema, DoctorSeveritySchema, DoctorUnsellablePriceSchema, DoctorWarningSchema, EMAIL_LOCALES, EMAIL_PAYLOAD_SCHEMAS, EMAIL_TEMPLATES, EMAIL_TEMPLATE_BY_EVENT, ERROR_CATEGORIES, ERROR_CODES, EVENTS_INGEST_MAX_BYTES, EVENTS_INGEST_MAX_EVENTS, EVENT_DETAIL_SCHEMAS, EVENT_METADATA_KEY_MAX_LENGTH, EVENT_METADATA_MAX_PAIRS, EVENT_METADATA_STRING_MAX_LENGTH, EVENT_NAME_MAX_LENGTH, EVENT_TIMESTAMP_MAX_AGE_DAYS, EVENT_TIMESTAMP_MAX_SKEW_MINUTES, EVENT_TYPES, EmailExtraTextSchema, EmailSenderSchema, EmailSettingsPatchSchema, EmailSettingsSchema, EmailTemplateSchema, EmailTemplateSettingsSchema, EntitlementSnapshotSchema, EntitlementValueSchema, EntitlementsSchema, ErrorCategorySchema, ErrorResponseSchema, EventExternalIdSchema, EventIdSchema, EventMetadataKeySchema, EventMetadataSchema, EventMetadataValueSchema, EventNameSchema, EventRetentionDaysSchema, EventTypeSchema, EventsIngestInputSchema, EventsIngestResultSchema, EventsSettingsPatchSchema, EventsSettingsSchema, ExternalRefSchema, FEATURE_FLAG_BENEFIT_TYPE, FULL_STATE_EVENT_TYPES, FeatureDefSchema, FeatureFlagBenefitDefSchema, FeatureFlagPropertiesSchema, FeatureTypeSchema, GrantCreateInputSchema, GrantCreateResponseSchema, GrantSchema, HEADER_ACTOR_REF, HEADER_API_VERSION, HEADER_IDEMPOTENCY_KEY, HEADER_REQUEST_ID, HEADER_SDK, INDIVIDUAL_IDENTITY_PLACEHOLDER, INGEST_REJECT_CODES, INVOICE_BILLING_REASONS, INVOICE_PAYMENT_STATUSES, IdSchema, IngestEventSchema, IngestRejectCodeSchema, IngestRejectionSchema, IntervalSchema, InvalidUnitValueError, InvoiceBillingReasonSchema, InvoiceIssueInputSchema, InvoiceIssueResponseSchema, InvoiceLineSchema, InvoicePaymentDueEmailSchema, InvoicePaymentSessionCreateInputSchema, InvoicePaymentSessionSchema, InvoicePaymentStatusSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceVoidInputSchema, InvoiceVoidResponseSchema, InvoiceWaiveInputSchema, InvoiceWaiveResponseSchema, LEGACY_EVENT_TYPES, LIVE_SUBSCRIPTION_STATUSES, LateGraceMinutesSchema, MANUAL_INVOICE_MAX_AMOUNT_MINOR, MAX_CATALOG_BENEFITS, MAX_CATALOG_METERED_PRICES, MAX_CATALOG_METERS, MAX_CHECKOUT_CONSENT_DOCS, MAX_GRANT_BENEFITS, MAX_METERED_PRICE_PER_UNITS, MAX_METER_UNITS, MAX_NOTIFICATION_EMAILS, MAX_PLAN_BENEFITS, METERED_PRICE_TAX_MISMATCH, METER_AGGREGATION_KINDS, METER_CHARGE_MODES, METER_CHARGE_STATUSES, METER_CREDIT_ENTRY_KINDS, METER_FILTER_MAX_CONDITIONS, METER_FILTER_MAX_DEPTH, METER_FILTER_OPERATORS, METER_PERIOD_STATUSES, METER_STANDINGS, MICRO_UNITS_PER_UNIT, ManualInvoiceInputSchema, ManualInvoiceLineInputSchema, ManualInvoiceResponseSchema, MeResponseSchema, MetadataSchema, MeterAggregationSchema, MeterChargeLineSchema, MeterChargeListSchema, MeterChargeModeSchema, MeterChargeSchema, MeterChargeStatusSchema, MeterCreditBenefitDefSchema, MeterCreditEntryKindSchema, MeterCreditEntrySchema, MeterCreditPropertiesSchema, MeterDefSchema, MeterFilterSchema, MeterLabelSchema, MeterLowAtSchema, MeterPeriodListSchema, MeterPeriodSchema, MeterPeriodStatusSchema, MeterStandingSchema, MeterUnitsSchema, MeteredPriceDefSchema, MeteredPriceSchema, MeteringSettingsPatchSchema, MeteringSettingsSchema, NoticedMeteredRateSchema, NotificationEmailsSchema, OVERRIDE_BENEFIT_SOURCE, PAYMENT_METHODS, PING_EVENT_TYPE, PLAN_SET_MODES, PORTAL_SESSION_ERRORS, PaymentDueDaysSchema, PaymentMethodSchema, PaymentSchema, PingSchema, PlanDefSchema, PlanSetInputSchema, PlanSetModeSchema, PlanSetResponseSchema, PlanSetWarningSchema, PortalSessionCreateInputSchema, PortalSessionSchema, PriceChangeNoticeEmailSchema, PriceChangeNoticeMeteredRateSchema, PriceDefSchema, PriceSchema, ProductSettingsPatchSchema, ProductSettingsSchema, ProviderPayloadSchema, ResyncResultSchema, ReturnOriginSchema, SETTINGS_LOCALES, STEWARD_CAPABILITIES, SettingsLocaleSchema, StatsSchema, SubscriptionChangeInputSchema, SubscriptionSchema, SubscriptionStatusSchema, SubscriptionSummarySchema, TtlMinutesSchema, UNIT_DECIMALS, UncancelSubscriptionResponseSchema, WEBHOOK_ENDPOINT_STATUSES, WEBHOOK_SECRET_PREFIX, WebUrlSchema, WebhookEndpointCreateInputSchema, WebhookEndpointListSchema, WebhookEndpointRotateInputSchema, WebhookEndpointSchema, WebhookEndpointStatusSchema, WebhookLastDeliverySchema, WebhookSecretSchema, addUtcMonths, applyEmailSettingsPatch, applySettingsPatch, billingPageUrl, billingSettingsOf, buildDoctorReport, canonicalMeterFilter, checkoutRedirectUrl, consumptionOf, contributionOf, emailLocaleOf, emailReadinessOf, emailRecipients, emailTemplateOf, emailTemplateSettings, endpointDiagnosisOf, errorCodeSpec, eventsSettingsOf, featureValueMatchesType, fromMicroUnits, generateWebhookSecret, hasControlCharacters, hostedReadinessOf, isE164, isEmailRelevant, isEventTimestampInRange, isEventType, isFeatureFlagBenefit, isGrantActive, isKnownErrorCode, isLiveSubscriptionStatus, isMeterCreditBenefit, isMicroPrecise, isReturnUrlAllowed, isValidTckn, isValidVkn, liveSubscriptionOf, manualInvoiceTotals, matchesFilter, meterChargeTotals, meterCreditsOf, meterFilterClauseOf, meteringSettingsOf, microToDecimalString, overageCapReached, overageOf, parseMicroUnits, periodBoundsOf, plainDecimalOf, rateOverage, resolveBenefits, resolveEntitlements, returnOriginsOf, rolloverOf, splitInclusiveTax, standingOf, toMicroUnits, uniqueEmails, webhookEndpointUrlProblem };
|