@stewardhq/sdk 0.5.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.
@@ -31,13 +31,13 @@ declare const MetadataSchema: z.ZodRecord<z.ZodString, z.ZodString>;
31
31
  * `subscription_cycle` renewal (phase 2 adds overage lines to it), `subscription_update` plan
32
32
  * change, `purchase` reserved (one-off purchases are deferred), `manual` staff-written.
33
33
  */
34
- declare const INVOICE_BILLING_REASONS: readonly ["subscription_create", "subscription_cycle", "subscription_update", "purchase", "manual"];
34
+ declare const INVOICE_BILLING_REASONS: readonly ['subscription_create', 'subscription_cycle', 'subscription_update', 'purchase', 'manual'];
35
35
  declare const InvoiceBillingReasonSchema: z.ZodEnum<{
36
+ manual: "manual";
37
+ purchase: "purchase";
36
38
  subscription_create: "subscription_create";
37
39
  subscription_cycle: "subscription_cycle";
38
40
  subscription_update: "subscription_update";
39
- purchase: "purchase";
40
- manual: "manual";
41
41
  }>;
42
42
  type InvoiceBillingReason = z.infer<typeof InvoiceBillingReasonSchema>;
43
43
  /**
@@ -45,22 +45,22 @@ type InvoiceBillingReason = z.infer<typeof InvoiceBillingReasonSchema>;
45
45
  * `uncollectible` (given up after dunning), `waived` (operator forgave it). Invoices written the
46
46
  * pre-billing-core way (after a payment, manual invoices) carry no payment status.
47
47
  */
48
- declare const INVOICE_PAYMENT_STATUSES: readonly ["unpaid", "paid", "uncollectible", "waived"];
48
+ declare const INVOICE_PAYMENT_STATUSES: readonly ['unpaid', 'paid', 'uncollectible', 'waived'];
49
49
  declare const InvoicePaymentStatusSchema: z.ZodEnum<{
50
- unpaid: "unpaid";
51
50
  paid: "paid";
52
51
  uncollectible: "uncollectible";
52
+ unpaid: "unpaid";
53
53
  waived: "waived";
54
54
  }>;
55
55
  type InvoicePaymentStatus = z.infer<typeof InvoicePaymentStatusSchema>;
56
- declare const ERROR_CATEGORIES: readonly ["validation", "not_found", "conflict", "config", "provider", "unavailable"];
56
+ declare const ERROR_CATEGORIES: readonly ['validation', 'not_found', 'conflict', 'config', 'provider', 'unavailable'];
57
57
  declare const ErrorCategorySchema: z.ZodEnum<{
58
- validation: "validation";
59
- not_found: "not_found";
60
- conflict: "conflict";
61
58
  config: "config";
59
+ conflict: "conflict";
60
+ not_found: "not_found";
62
61
  provider: "provider";
63
62
  unavailable: "unavailable";
63
+ validation: "validation";
64
64
  }>;
65
65
  type ErrorCategory = z.infer<typeof ErrorCategorySchema>;
66
66
  /**
@@ -73,12 +73,12 @@ declare const ErrorResponseSchema: z.ZodObject<{
73
73
  error: z.ZodString;
74
74
  message: z.ZodOptional<z.ZodString>;
75
75
  category: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
76
- validation: "validation";
77
- not_found: "not_found";
78
- conflict: "conflict";
79
76
  config: "config";
77
+ conflict: "conflict";
78
+ not_found: "not_found";
80
79
  provider: "provider";
81
80
  unavailable: "unavailable";
81
+ validation: "validation";
82
82
  }>>>;
83
83
  retryable: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
84
84
  requestId: z.ZodCatch<z.ZodOptional<z.ZodString>>;
@@ -86,7 +86,7 @@ declare const ErrorResponseSchema: z.ZodObject<{
86
86
  type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
87
87
  //#endregion
88
88
  //#region ../contract/src/meters.d.ts
89
- declare const METER_FILTER_OPERATORS: readonly ["eq", "ne", "gt", "gte", "lt", "lte", "like", "not_like"];
89
+ declare const METER_FILTER_OPERATORS: readonly ['eq', 'ne', 'gt', 'gte', 'lt', 'lte', 'like', 'not_like'];
90
90
  type MeterFilterOperator = (typeof METER_FILTER_OPERATORS)[number];
91
91
  /** Deepest nesting of `and`/`or` groups. */
92
92
  declare const METER_FILTER_MAX_DEPTH = 3;
@@ -145,7 +145,7 @@ declare function canonicalMeterFilter(filter: MeterFilter): MeterFilter;
145
145
  * allowed); `unique` count of distinct values at `metadata.<key>`. An event without a usable
146
146
  * value adds nothing to that meter (`invalid_value`, shown by doctor).
147
147
  */
148
- declare const METER_AGGREGATION_KINDS: readonly ["count", "sum", "max", "unique"];
148
+ declare const METER_AGGREGATION_KINDS: readonly ['count', 'sum', 'max', 'unique'];
149
149
  type MeterAggregationKind = (typeof METER_AGGREGATION_KINDS)[number];
150
150
  declare const MeterAggregationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
151
151
  kind: z.ZodLiteral<"count">;
@@ -222,14 +222,16 @@ declare const MeterDefSchema: z.ZodPipe<z.ZodObject<{
222
222
  tr: string;
223
223
  en: string;
224
224
  };
225
- lowAt: number | null;
226
225
  unitLabel?: {
227
226
  tr: string;
228
227
  en: string;
229
228
  } | undefined;
230
229
  displayPer?: number | undefined;
230
+ lowAt: number | null;
231
231
  filter: MeterFilter;
232
232
  }, {
233
+ event?: string | undefined;
234
+ filter?: MeterFilter | undefined;
233
235
  aggregation: {
234
236
  kind: "count";
235
237
  } | {
@@ -246,14 +248,12 @@ declare const MeterDefSchema: z.ZodPipe<z.ZodObject<{
246
248
  tr: string;
247
249
  en: string;
248
250
  };
249
- lowAt: number | null;
250
- event?: string | undefined;
251
- filter?: MeterFilter | undefined;
252
251
  unitLabel?: {
253
252
  tr: string;
254
253
  en: string;
255
254
  } | undefined;
256
255
  displayPer?: number | undefined;
256
+ lowAt: number | null;
257
257
  }>>;
258
258
  type MeterDef = z.output<typeof MeterDefSchema>;
259
259
  type MeterDefInput = z.input<typeof MeterDefSchema>;
@@ -333,11 +333,11 @@ type MeteredPrice = z.infer<typeof MeteredPriceSchema>;
333
333
  * `exhausted` once the balance is ≤ 0; a meter without credit is always `ok`. Standing describes
334
334
  * the credit only: a billable meter (metered price) keeps working past `exhausted` (M15).
335
335
  */
336
- declare const METER_STANDINGS: readonly ["ok", "low", "exhausted"];
336
+ declare const METER_STANDINGS: readonly ['ok', 'low', 'exhausted'];
337
337
  declare const MeterStandingSchema: z.ZodEnum<{
338
- ok: "ok";
339
- low: "low";
340
338
  exhausted: "exhausted";
339
+ low: "low";
340
+ ok: "ok";
341
341
  }>;
342
342
  type MeterStanding = z.infer<typeof MeterStandingSchema>;
343
343
  /**
@@ -355,9 +355,9 @@ declare const AccountMeterSchema: z.ZodObject<{
355
355
  balance: z.ZodNumber;
356
356
  overageUnits: z.ZodNumber;
357
357
  standing: z.ZodEnum<{
358
- ok: "ok";
359
- low: "low";
360
358
  exhausted: "exhausted";
359
+ low: "low";
360
+ ok: "ok";
361
361
  }>;
362
362
  billable: z.ZodBoolean;
363
363
  amountDueMinor: z.ZodNullable<z.ZodNumber>;
@@ -383,9 +383,9 @@ declare const AccountMetersSchema: z.ZodObject<{
383
383
  balance: z.ZodNumber;
384
384
  overageUnits: z.ZodNumber;
385
385
  standing: z.ZodEnum<{
386
- ok: "ok";
387
- low: "low";
388
386
  exhausted: "exhausted";
387
+ low: "low";
388
+ ok: "ok";
389
389
  }>;
390
390
  billable: z.ZodBoolean;
391
391
  amountDueMinor: z.ZodNullable<z.ZodNumber>;
@@ -394,11 +394,11 @@ declare const AccountMetersSchema: z.ZodObject<{
394
394
  }, z.core.$strip>>;
395
395
  }, z.core.$strip>;
396
396
  type AccountMeters = z.infer<typeof AccountMetersSchema>;
397
- declare const METER_PERIOD_STATUSES: readonly ["open", "closing", "closed"];
397
+ declare const METER_PERIOD_STATUSES: readonly ['open', 'closing', 'closed'];
398
398
  declare const MeterPeriodStatusSchema: z.ZodEnum<{
399
- open: "open";
400
- closing: "closing";
401
399
  closed: "closed";
400
+ closing: "closing";
401
+ open: "open";
402
402
  }>;
403
403
  type MeterPeriodStatus = z.infer<typeof MeterPeriodStatusSchema>;
404
404
  /** A meter period (`GET /v1/accounts/:ref/meters/periods`; closed periods, newest first). */
@@ -407,9 +407,9 @@ declare const MeterPeriodSchema: z.ZodObject<{
407
407
  periodStart: z.ZodISODateTime;
408
408
  periodEnd: z.ZodISODateTime;
409
409
  status: z.ZodEnum<{
410
- open: "open";
411
- closing: "closing";
412
410
  closed: "closed";
411
+ closing: "closing";
412
+ open: "open";
413
413
  }>;
414
414
  subscriptionId: z.ZodNullable<z.ZodUUID>;
415
415
  consumedUnits: z.ZodNumber;
@@ -425,9 +425,9 @@ declare const MeterPeriodListSchema: z.ZodObject<{
425
425
  periodStart: z.ZodISODateTime;
426
426
  periodEnd: z.ZodISODateTime;
427
427
  status: z.ZodEnum<{
428
- open: "open";
429
- closing: "closing";
430
428
  closed: "closed";
429
+ closing: "closing";
430
+ open: "open";
431
431
  }>;
432
432
  subscriptionId: z.ZodNullable<z.ZodUUID>;
433
433
  consumedUnits: z.ZodNumber;
@@ -449,24 +449,24 @@ declare const CreditGrantInputSchema: z.ZodObject<{
449
449
  }, z.core.$strip>;
450
450
  type CreditGrantInput = z.input<typeof CreditGrantInputSchema>;
451
451
  /** Credit ledger entry kinds (M5). Entries are never rewritten. */
452
- declare const METER_CREDIT_ENTRY_KINDS: readonly ["cycle_grant", "rollover", "plan_change", "manual_grant", "adjustment"];
452
+ declare const METER_CREDIT_ENTRY_KINDS: readonly ['cycle_grant', 'rollover', 'plan_change', 'manual_grant', 'adjustment'];
453
453
  declare const MeterCreditEntryKindSchema: z.ZodEnum<{
454
+ adjustment: "adjustment";
454
455
  cycle_grant: "cycle_grant";
455
- rollover: "rollover";
456
- plan_change: "plan_change";
457
456
  manual_grant: "manual_grant";
458
- adjustment: "adjustment";
457
+ plan_change: "plan_change";
458
+ rollover: "rollover";
459
459
  }>;
460
460
  type MeterCreditEntryKind = z.infer<typeof MeterCreditEntryKindSchema>;
461
461
  declare const MeterCreditEntrySchema: z.ZodObject<{
462
462
  id: z.ZodUUID;
463
463
  meter: z.ZodString;
464
464
  kind: z.ZodEnum<{
465
+ adjustment: "adjustment";
465
466
  cycle_grant: "cycle_grant";
466
- rollover: "rollover";
467
- plan_change: "plan_change";
468
467
  manual_grant: "manual_grant";
469
- adjustment: "adjustment";
468
+ plan_change: "plan_change";
469
+ rollover: "rollover";
470
470
  }>;
471
471
  units: z.ZodNumber;
472
472
  periodStart: z.ZodISODateTime;
@@ -475,10 +475,10 @@ declare const MeterCreditEntrySchema: z.ZodObject<{
475
475
  createdAt: z.ZodISODateTime;
476
476
  }, z.core.$strip>;
477
477
  type MeterCreditEntry = z.infer<typeof MeterCreditEntrySchema>;
478
- declare const METER_CHARGE_STATUSES: readonly ["dry_run", "carried", "invoiced"];
478
+ declare const METER_CHARGE_STATUSES: readonly ['dry_run', 'carried', 'invoiced'];
479
479
  declare const MeterChargeStatusSchema: z.ZodEnum<{
480
- dry_run: "dry_run";
481
480
  carried: "carried";
481
+ dry_run: "dry_run";
482
482
  invoiced: "invoiced";
483
483
  }>;
484
484
  type MeterChargeStatus = z.infer<typeof MeterChargeStatusSchema>;
@@ -524,8 +524,8 @@ declare const MeterChargeSchema: z.ZodObject<{
524
524
  totalMinor: z.ZodNumber;
525
525
  carriedInMinor: z.ZodNumber;
526
526
  status: z.ZodEnum<{
527
- dry_run: "dry_run";
528
527
  carried: "carried";
528
+ dry_run: "dry_run";
529
529
  invoiced: "invoiced";
530
530
  }>;
531
531
  invoiceId: z.ZodNullable<z.ZodUUID>;
@@ -558,8 +558,8 @@ declare const MeterChargeListSchema: z.ZodObject<{
558
558
  totalMinor: z.ZodNumber;
559
559
  carriedInMinor: z.ZodNumber;
560
560
  status: z.ZodEnum<{
561
- dry_run: "dry_run";
562
561
  carried: "carried";
562
+ dry_run: "dry_run";
563
563
  invoiced: "invoiced";
564
564
  }>;
565
565
  invoiceId: z.ZodNullable<z.ZodUUID>;
@@ -570,7 +570,7 @@ type MeterChargeList = z.infer<typeof MeterChargeListSchema>;
570
570
  //#endregion
571
571
  //#region ../contract/src/benefits.d.ts
572
572
  /** Benefit types this contract version defines. */
573
- declare const BENEFIT_TYPES: readonly ["feature_flag", "meter_credit"];
573
+ declare const BENEFIT_TYPES: readonly ['feature_flag', 'meter_credit'];
574
574
  declare const BenefitTypeSchema: z.ZodEnum<{
575
575
  feature_flag: "feature_flag";
576
576
  meter_credit: "meter_credit";
@@ -662,19 +662,19 @@ declare const AccountBenefitSchema: z.ZodObject<{
662
662
  }, z.core.$strip>;
663
663
  type AccountBenefit = z.infer<typeof AccountBenefitSchema>;
664
664
  type FeatureFlagAccountBenefit = AccountBenefit & {
665
- type: "feature_flag";
665
+ type: 'feature_flag';
666
666
  properties: FeatureFlagProperties;
667
667
  };
668
668
  /** Narrows a granted benefit to `feature_flag` (type and property values checked). */
669
669
  declare function isFeatureFlagBenefit(benefit: AccountBenefit): benefit is FeatureFlagAccountBenefit;
670
670
  type MeterCreditAccountBenefit = AccountBenefit & {
671
- type: "meter_credit";
671
+ type: 'meter_credit';
672
672
  properties: MeterCreditProperties;
673
673
  };
674
674
  /** Narrows a granted benefit to `meter_credit` (type and properties checked). */
675
675
  declare function isMeterCreditBenefit(benefit: AccountBenefit): benefit is MeterCreditAccountBenefit;
676
676
  /** Feature types (same values as `FeatureTypeSchema` in `catalog.ts`). */
677
- type BenefitFeatureType = "limit" | "boolean" | "string";
677
+ type BenefitFeatureType = 'limit' | 'boolean' | 'string';
678
678
  /**
679
679
  * Whether a value fits a feature type (K4): `limit` → integer ≥ 0 or `null` (unlimited),
680
680
  * `boolean` → boolean, `string` → string. `null` is only valid for `limit`.
@@ -683,16 +683,16 @@ declare function featureValueMatchesType(type: BenefitFeatureType, value: Entitl
683
683
  //#endregion
684
684
  //#region ../contract/src/catalog.d.ts
685
685
  declare const FeatureTypeSchema: z.ZodEnum<{
686
- string: "string";
687
686
  boolean: "boolean";
688
687
  limit: "limit";
688
+ string: "string";
689
689
  }>;
690
690
  declare const FeatureDefSchema: z.ZodObject<{
691
691
  key: z.ZodString;
692
692
  type: z.ZodEnum<{
693
- string: "string";
694
693
  boolean: "boolean";
695
694
  limit: "limit";
695
+ string: "string";
696
696
  }>;
697
697
  description: z.ZodOptional<z.ZodString>;
698
698
  }, z.core.$strip>;
@@ -745,9 +745,9 @@ declare const CatalogSyncInputSchema: z.ZodObject<{
745
745
  features: z.ZodArray<z.ZodObject<{
746
746
  key: z.ZodString;
747
747
  type: z.ZodEnum<{
748
- string: "string";
749
748
  boolean: "boolean";
750
749
  limit: "limit";
750
+ string: "string";
751
751
  }>;
752
752
  description: z.ZodOptional<z.ZodString>;
753
753
  }, z.core.$strip>>;
@@ -832,14 +832,16 @@ declare const CatalogSyncInputSchema: z.ZodObject<{
832
832
  tr: string;
833
833
  en: string;
834
834
  };
835
- lowAt: number | null;
836
835
  unitLabel?: {
837
836
  tr: string;
838
837
  en: string;
839
838
  } | undefined;
840
839
  displayPer?: number | undefined;
840
+ lowAt: number | null;
841
841
  filter: MeterFilter;
842
842
  }, {
843
+ event?: string | undefined;
844
+ filter?: MeterFilter | undefined;
843
845
  aggregation: {
844
846
  kind: "count";
845
847
  } | {
@@ -856,14 +858,12 @@ declare const CatalogSyncInputSchema: z.ZodObject<{
856
858
  tr: string;
857
859
  en: string;
858
860
  };
859
- lowAt: number | null;
860
- event?: string | undefined;
861
- filter?: MeterFilter | undefined;
862
861
  unitLabel?: {
863
862
  tr: string;
864
863
  en: string;
865
864
  } | undefined;
866
865
  displayPer?: number | undefined;
866
+ lowAt: number | null;
867
867
  }>>>>;
868
868
  meteredPrices: z.ZodDefault<z.ZodArray<z.ZodObject<{
869
869
  planCode: z.ZodString;
@@ -899,9 +899,9 @@ declare const CatalogSchema: z.ZodObject<{
899
899
  features: z.ZodArray<z.ZodObject<{
900
900
  key: z.ZodString;
901
901
  type: z.ZodEnum<{
902
- string: "string";
903
902
  boolean: "boolean";
904
903
  limit: "limit";
904
+ string: "string";
905
905
  }>;
906
906
  description: z.ZodOptional<z.ZodString>;
907
907
  }, z.core.$strip>>;
@@ -1028,8 +1028,8 @@ declare const CheckoutPrefillSchema: z.ZodObject<{
1028
1028
  email: z.ZodOptional<z.ZodEmail>;
1029
1029
  name: z.ZodOptional<z.ZodString>;
1030
1030
  kind: z.ZodOptional<z.ZodEnum<{
1031
- individual: "individual";
1032
1031
  company: "company";
1032
+ individual: "individual";
1033
1033
  }>>;
1034
1034
  }, z.core.$strip>;
1035
1035
  type CheckoutPrefill = z.infer<typeof CheckoutPrefillSchema>;
@@ -1043,8 +1043,8 @@ declare const CheckoutSessionCreateInputSchema: z.ZodObject<{
1043
1043
  }>;
1044
1044
  currency: z.ZodOptional<z.ZodString>;
1045
1045
  locale: z.ZodOptional<z.ZodEnum<{
1046
- tr: "tr";
1047
1046
  en: "en";
1047
+ tr: "tr";
1048
1048
  }>>;
1049
1049
  successUrl: z.ZodURL;
1050
1050
  cancelUrl: z.ZodOptional<z.ZodURL>;
@@ -1053,8 +1053,8 @@ declare const CheckoutSessionCreateInputSchema: z.ZodObject<{
1053
1053
  email: z.ZodOptional<z.ZodEmail>;
1054
1054
  name: z.ZodOptional<z.ZodString>;
1055
1055
  kind: z.ZodOptional<z.ZodEnum<{
1056
- individual: "individual";
1057
1056
  company: "company";
1057
+ individual: "individual";
1058
1058
  }>>;
1059
1059
  }, z.core.$strip>>;
1060
1060
  consents: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1062,6 +1062,7 @@ declare const CheckoutSessionCreateInputSchema: z.ZodObject<{
1062
1062
  version: z.ZodString;
1063
1063
  url: z.ZodURL;
1064
1064
  }, z.core.$strip>>>;
1065
+ replacesSubscriptionId: z.ZodOptional<z.ZodUUID>;
1065
1066
  }, z.core.$strip>;
1066
1067
  type CheckoutSessionCreateInput = z.input<typeof CheckoutSessionCreateInputSchema>;
1067
1068
  type CheckoutSessionCreateParsed = z.output<typeof CheckoutSessionCreateInputSchema>;
@@ -1071,13 +1072,28 @@ type CheckoutSessionCreateParsed = z.output<typeof CheckoutSessionCreateInputSch
1071
1072
  */
1072
1073
  declare const CheckoutStatusSchema: z.ZodEnum<{
1073
1074
  canceled: "canceled";
1074
- expired: "expired";
1075
- open: "open";
1076
1075
  completed: "completed";
1076
+ expired: "expired";
1077
1077
  failed: "failed";
1078
+ open: "open";
1078
1079
  }>;
1079
1080
  type CheckoutStatus = z.infer<typeof CheckoutStatusSchema>;
1080
- /** Provider form shown on steward's hosted checkout page (never returned to the product). */
1081
+ /**
1082
+ * How the customer chose to pay on the hosted page (bank transfer plan H5): `card` (the provider's
1083
+ * form) or `bank_transfer` (the session stays `open` until an operator records the transfer).
1084
+ * Absent/null: not chosen yet. The session status set does not change for it.
1085
+ */
1086
+ declare const PAYMENT_METHODS: readonly ['card', 'bank_transfer'];
1087
+ declare const PaymentMethodSchema: z.ZodEnum<{
1088
+ bank_transfer: "bank_transfer";
1089
+ card: "card";
1090
+ }>;
1091
+ type PaymentMethod = z.infer<typeof PaymentMethodSchema>;
1092
+ /**
1093
+ * Provider form shown on steward's hosted checkout page (never returned to the product).
1094
+ * @deprecated Ürün yüzeyinde kullanılmıyor; yalnızca servis içi. Bir sonraki minor sürümde paketin
1095
+ * dış yüzeyinden çıkarılacak (temizlik planı C9).
1096
+ */
1081
1097
  declare const ProviderPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1082
1098
  type: z.ZodLiteral<"html_snippet">;
1083
1099
  html: z.ZodString;
@@ -1091,10 +1107,10 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1091
1107
  accountRef: z.ZodString;
1092
1108
  status: z.ZodEnum<{
1093
1109
  canceled: "canceled";
1094
- expired: "expired";
1095
- open: "open";
1096
1110
  completed: "completed";
1111
+ expired: "expired";
1097
1112
  failed: "failed";
1113
+ open: "open";
1098
1114
  }>;
1099
1115
  planCode: z.ZodString;
1100
1116
  interval: z.ZodEnum<{
@@ -1119,6 +1135,11 @@ declare const CheckoutSessionSchema: z.ZodObject<{
1119
1135
  expiresAt: z.ZodISODateTime;
1120
1136
  createdAt: z.ZodISODateTime;
1121
1137
  completedAt: z.ZodNullable<z.ZodISODateTime>;
1138
+ paymentMethod: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1139
+ bank_transfer: "bank_transfer";
1140
+ card: "card";
1141
+ }>>>;
1142
+ replacesSubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1122
1143
  }, z.core.$strip>;
1123
1144
  type CheckoutSession = z.infer<typeof CheckoutSessionSchema>;
1124
1145
  /**
@@ -1131,10 +1152,10 @@ declare const CheckoutSessionCreatedSchema: z.ZodObject<{
1131
1152
  accountRef: z.ZodString;
1132
1153
  status: z.ZodEnum<{
1133
1154
  canceled: "canceled";
1134
- expired: "expired";
1135
- open: "open";
1136
1155
  completed: "completed";
1156
+ expired: "expired";
1137
1157
  failed: "failed";
1158
+ open: "open";
1138
1159
  }>;
1139
1160
  planCode: z.ZodString;
1140
1161
  interval: z.ZodEnum<{
@@ -1159,6 +1180,11 @@ declare const CheckoutSessionCreatedSchema: z.ZodObject<{
1159
1180
  expiresAt: z.ZodISODateTime;
1160
1181
  createdAt: z.ZodISODateTime;
1161
1182
  completedAt: z.ZodNullable<z.ZodISODateTime>;
1183
+ paymentMethod: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1184
+ bank_transfer: "bank_transfer";
1185
+ card: "card";
1186
+ }>>>;
1187
+ replacesSubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1162
1188
  url: z.ZodString;
1163
1189
  account: z.ZodOptional<z.ZodObject<{
1164
1190
  version: z.ZodNumber;
@@ -1176,10 +1202,10 @@ declare const CheckoutSessionCreatedSchema: z.ZodObject<{
1176
1202
  id: z.ZodUUID;
1177
1203
  status: z.ZodEnum<{
1178
1204
  active: "active";
1179
- suspended: "suspended";
1180
- past_due: "past_due";
1181
1205
  canceled: "canceled";
1182
1206
  expired: "expired";
1207
+ past_due: "past_due";
1208
+ suspended: "suspended";
1183
1209
  }>;
1184
1210
  planCode: z.ZodString;
1185
1211
  interval: z.ZodEnum<{
@@ -1218,22 +1244,26 @@ declare const CheckoutSessionCreatedSchema: z.ZodObject<{
1218
1244
  currency: z.ZodString;
1219
1245
  amountMinor: z.ZodNumber;
1220
1246
  expiresAt: z.ZodISODateTime;
1247
+ paymentMethod: z.ZodOptional<z.ZodEnum<{
1248
+ bank_transfer: "bank_transfer";
1249
+ card: "card";
1250
+ }>>;
1221
1251
  }, z.core.$strip>>;
1222
1252
  profile: z.ZodObject<{
1223
1253
  present: z.ZodBoolean;
1224
1254
  kind: z.ZodNullable<z.ZodEnum<{
1225
- individual: "individual";
1226
1255
  company: "company";
1256
+ individual: "individual";
1227
1257
  }>>;
1228
1258
  }, z.core.$strip>;
1229
1259
  subscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1230
1260
  id: z.ZodUUID;
1231
1261
  status: z.ZodEnum<{
1232
1262
  active: "active";
1233
- suspended: "suspended";
1234
- past_due: "past_due";
1235
1263
  canceled: "canceled";
1236
1264
  expired: "expired";
1265
+ past_due: "past_due";
1266
+ suspended: "suspended";
1237
1267
  }>;
1238
1268
  planCode: z.ZodString;
1239
1269
  interval: z.ZodEnum<{
@@ -1265,11 +1295,11 @@ declare const CheckoutSessionCreatedSchema: z.ZodObject<{
1265
1295
  id: z.ZodUUID;
1266
1296
  subscriptionId: z.ZodNullable<z.ZodUUID>;
1267
1297
  billingReason: z.ZodEnum<{
1298
+ manual: "manual";
1299
+ purchase: "purchase";
1268
1300
  subscription_create: "subscription_create";
1269
1301
  subscription_cycle: "subscription_cycle";
1270
1302
  subscription_update: "subscription_update";
1271
- purchase: "purchase";
1272
- manual: "manual";
1273
1303
  }>;
1274
1304
  totalMinor: z.ZodNumber;
1275
1305
  currency: z.ZodString;
@@ -1286,16 +1316,17 @@ declare const CheckoutSessionCreatedSchema: z.ZodObject<{
1286
1316
  includedUnits: z.ZodNullable<z.ZodNumber>;
1287
1317
  billable: z.ZodBoolean;
1288
1318
  standing: z.ZodEnum<{
1289
- ok: "ok";
1290
- low: "low";
1291
1319
  exhausted: "exhausted";
1320
+ low: "low";
1321
+ ok: "ok";
1292
1322
  }>;
1293
1323
  }, z.core.$strip>>>;
1324
+ bankTransferCode: z.ZodOptional<z.ZodString>;
1294
1325
  }, z.core.$strip>>;
1295
1326
  }, z.core.$strip>;
1296
1327
  type CheckoutSessionCreated = z.infer<typeof CheckoutSessionCreatedSchema>;
1297
1328
  /** `STATUS` value of the outcome redirect (`{STATUS}` placeholder in `successUrl`). */
1298
- type CheckoutReturnStatus = "success" | "failed" | "pending";
1329
+ type CheckoutReturnStatus = 'success' | 'failed' | 'pending';
1299
1330
  /** Redirect input: the stored session fields (service row). */
1300
1331
  type CheckoutRedirectTarget = {
1301
1332
  id: string;
@@ -1311,141 +1342,316 @@ type CheckoutRedirectTarget = {
1311
1342
  * would change the URL is returned unfilled.
1312
1343
  */
1313
1344
  declare function checkoutRedirectUrl(target: CheckoutRedirectTarget, status: CheckoutReturnStatus): string;
1314
- declare const CHECKOUT_ERRORS: readonly ["account_not_found", "already_subscribed", "plan_not_sellable", "return_url_not_allowed", "provider_not_configured", "provider_error", "account_deleted", "meter_already_billed"];
1315
- type CheckoutError = (typeof CHECKOUT_ERRORS)[number];
1316
- //#endregion
1317
- //#region ../contract/src/portal.d.ts
1318
- declare const PortalSessionCreateInputSchema: z.ZodObject<{
1319
- locale: z.ZodOptional<z.ZodEnum<{
1320
- tr: "tr";
1321
- en: "en";
1322
- }>>;
1323
- returnUrl: z.ZodOptional<z.ZodURL>;
1324
- }, z.core.$strip>;
1325
- type PortalSessionCreateInput = z.input<typeof PortalSessionCreateInputSchema>;
1326
- /** `POST /v1/accounts/{ref}/portal-sessions` yanıtı (201). */
1327
- declare const PortalSessionSchema: z.ZodObject<{
1328
- id: z.ZodUUID;
1329
- url: z.ZodString;
1330
- expiresAt: z.ZodISODateTime;
1331
- }, z.core.$strip>;
1332
- type PortalSession = z.infer<typeof PortalSessionSchema>;
1333
- declare const PORTAL_SESSION_ERRORS: readonly ["account_not_found", "return_url_not_allowed"];
1334
- type PortalSessionError = (typeof PORTAL_SESSION_ERRORS)[number];
1335
- //#endregion
1336
- //#region ../contract/src/subscriptions.d.ts
1337
- declare const SubscriptionSchema: z.ZodObject<{
1338
- id: z.ZodUUID;
1339
- accountRef: z.ZodString;
1340
- status: z.ZodEnum<{
1341
- active: "active";
1342
- suspended: "suspended";
1343
- past_due: "past_due";
1344
- canceled: "canceled";
1345
- expired: "expired";
1346
- }>;
1347
- planCode: z.ZodString;
1348
- priceId: z.ZodUUID;
1349
- interval: z.ZodEnum<{
1350
- month: "month";
1351
- year: "year";
1352
- }>;
1353
- amountMinor: z.ZodNumber;
1354
- currency: z.ZodString;
1355
- provider: z.ZodString;
1356
- providerSubscriptionRef: z.ZodString;
1357
- cancelAtPeriodEnd: z.ZodBoolean;
1358
- cancelAt: z.ZodNullable<z.ZodISODateTime>;
1359
- cancelReason: z.ZodNullable<z.ZodString>;
1360
- canceledAt: z.ZodNullable<z.ZodISODateTime>;
1361
- startedAt: z.ZodISODateTime;
1362
- currentPeriodStart: z.ZodNullable<z.ZodISODateTime>;
1363
- currentPeriodEnd: z.ZodNullable<z.ZodISODateTime>;
1364
- dunningStartedAt: z.ZodNullable<z.ZodISODateTime>;
1365
- }, z.core.$strip>;
1366
- type Subscription = z.infer<typeof SubscriptionSchema>;
1367
- declare const CancelSubscriptionInputSchema: z.ZodObject<{
1368
- mode: z.ZodEnum<{
1369
- at_period_end: "at_period_end";
1370
- immediate: "immediate";
1371
- }>;
1372
- reason: z.ZodString;
1373
- skipProvider: z.ZodDefault<z.ZodBoolean>;
1374
- }, z.core.$strip>;
1375
- type CancelSubscriptionInput = z.input<typeof CancelSubscriptionInputSchema>;
1345
+ declare const CHECKOUT_ERRORS: readonly ['account_not_found',
1346
+ /** Canlı abonelik var (dönem sonunda iptali planlanmış olan dahil). */
1347
+ 'already_subscribed', 'plan_not_sellable', 'return_url_not_allowed', 'provider_not_configured', 'provider_error',
1348
+ /** The account was deleted (F4e): `displayName` does not reopen it. */
1349
+ 'account_deleted',
1376
1350
  /**
1377
- * `POST /v1/subscriptions/{id}/change` (billing core MF9): schedule a change for the next period
1378
- * boundary (`AccountState.subscription.scheduledChange`); the next renewal invoice is written from
1379
- * the new terms. `planCode` / `interval` pick another price of the subscription's currency;
1380
- * `price: "current"` re-locks the current amount of the (possibly updated) price and the plan's
1381
- * current metered rates — a metered price added later is attached only this way (M20, M36). At
1382
- * least one of the three. `when` is required so other timings can be added later. A second change
1383
- * replaces the first; asking for the current plan and interval while a change is pending takes it
1384
- * back ("keep my plan"; a move to the current price the operator announced stays).
1385
- * Errors: 404 `subscription_not_found`; 409 `already_subscribed` (another live subscription of the
1386
- * account holds the target plan or is moving to it), `meter_already_billed` (the target prices a
1387
- * meter another live subscription bills; for `price: "current"` only when that is the only
1388
- * difference); 422 `plan_not_found`, `plan_not_sellable`, `subscription_change_invalid` (no such
1389
- * price, nothing changes, the subscription is not live, has a cancellation scheduled or is a legacy
1390
- * provider subscription).
1351
+ * 409 (metering, M20/M34): the plan has a metered price for a meter another live subscription of
1352
+ * the account already bills (one billing subscription per meter). Checked when the session is
1353
+ * opened and again before the payment form; a payment that still races past it is recorded for a
1354
+ * refund (`checkout.duplicate_payment`).
1391
1355
  */
1392
- declare const SubscriptionChangeInputSchema: z.ZodObject<{
1393
- planCode: z.ZodOptional<z.ZodString>;
1394
- interval: z.ZodOptional<z.ZodEnum<{
1395
- month: "month";
1396
- year: "year";
1397
- }>>;
1398
- price: z.ZodOptional<z.ZodLiteral<"current">>;
1399
- when: z.ZodLiteral<"next_period">;
1400
- }, z.core.$strip>;
1401
- type SubscriptionChangeInput = z.input<typeof SubscriptionChangeInputSchema>;
1402
- declare const PaymentSchema: z.ZodObject<{
1403
- id: z.ZodUUID;
1404
- subscriptionId: z.ZodUUID;
1405
- providerOrderRef: z.ZodString;
1406
- status: z.ZodEnum<{
1407
- failed: "failed";
1408
- succeeded: "succeeded";
1409
- }>;
1356
+ 'meter_already_billed',
1357
+ /** 422 (H16): `replacesSubscriptionId` is not a live subscription of the account. */
1358
+ 'replaces_subscription_invalid'];
1359
+ type CheckoutError = (typeof CHECKOUT_ERRORS)[number];
1360
+ //#endregion
1361
+ //#region ../contract/src/bank-transfers.d.ts
1362
+ declare const BankTransferRecordInputSchema: z.ZodObject<{
1363
+ code: z.ZodString;
1410
1364
  amountMinor: z.ZodNumber;
1411
1365
  currency: z.ZodString;
1412
- periodStart: z.ZodNullable<z.ZodISODateTime>;
1413
- periodEnd: z.ZodNullable<z.ZodISODateTime>;
1414
- occurredAt: z.ZodISODateTime;
1415
- }, z.core.$strip>;
1416
- type Payment = z.infer<typeof PaymentSchema>;
1417
- /** Upper bound of named benefits in one grant. */
1418
- declare const MAX_GRANT_BENEFITS = 100;
1419
- declare const GrantCreateInputSchema: z.ZodObject<{
1420
- planCode: z.ZodOptional<z.ZodString>;
1421
- overrides: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>>;
1422
- benefitCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1423
- reason: z.ZodString;
1424
- startsAt: z.ZodOptional<z.ZodISODateTime>;
1425
- endsAt: z.ZodOptional<z.ZodISODateTime>;
1426
- }, z.core.$strip>;
1427
- type GrantCreateInput = z.input<typeof GrantCreateInputSchema>;
1428
- declare const GrantSchema: z.ZodObject<{
1429
- id: z.ZodUUID;
1366
+ receivedAt: z.ZodISODateTime;
1367
+ bankRef: z.ZodString;
1368
+ checkoutSessionId: z.ZodOptional<z.ZodUUID>;
1369
+ invoiceId: z.ZodOptional<z.ZodUUID>;
1370
+ acceptExpired: z.ZodOptional<z.ZodBoolean>;
1371
+ }, z.core.$strict>;
1372
+ type BankTransferRecordInput = z.input<typeof BankTransferRecordInputSchema>;
1373
+ declare const BankTransferRecordedSchema: z.ZodObject<{
1430
1374
  accountRef: z.ZodString;
1431
- planCode: z.ZodNullable<z.ZodString>;
1432
- overrides: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
1433
- benefitCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1434
- reason: z.ZodString;
1435
- actorRef: z.ZodNullable<z.ZodString>;
1436
- startsAt: z.ZodISODateTime;
1437
- endsAt: z.ZodNullable<z.ZodISODateTime>;
1438
- revokedAt: z.ZodNullable<z.ZodISODateTime>;
1439
- createdAt: z.ZodISODateTime;
1440
- }, z.core.$strip>;
1441
- type Grant = z.infer<typeof GrantSchema>;
1442
- declare const StatsSchema: z.ZodObject<{
1443
- subscriptions: z.ZodRecord<z.ZodEnum<{
1444
- active: "active";
1445
- suspended: "suspended";
1375
+ code: z.ZodString;
1376
+ checkoutSessionId: z.ZodNullable<z.ZodUUID>;
1377
+ invoiceId: z.ZodNullable<z.ZodUUID>;
1378
+ subscriptionId: z.ZodUUID;
1379
+ paymentId: z.ZodUUID;
1380
+ replacedSubscriptionId: z.ZodNullable<z.ZodUUID>;
1381
+ acceptedAfterExpiry: z.ZodBoolean;
1382
+ paidAfterWriteoff: z.ZodBoolean;
1383
+ account: z.ZodOptional<z.ZodObject<{
1384
+ version: z.ZodNumber;
1385
+ planCode: z.ZodString;
1386
+ accessState: z.ZodEnum<{
1387
+ active: "active";
1388
+ suspended: "suspended";
1389
+ }>;
1390
+ entitlements: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
1391
+ ref: z.ZodString;
1392
+ displayName: z.ZodString;
1393
+ updatedAt: z.ZodISODateTime;
1394
+ catalogVersion: z.ZodNullable<z.ZodString>;
1395
+ subscription: z.ZodNullable<z.ZodObject<{
1396
+ id: z.ZodUUID;
1397
+ status: z.ZodEnum<{
1398
+ active: "active";
1399
+ canceled: "canceled";
1400
+ expired: "expired";
1401
+ past_due: "past_due";
1402
+ suspended: "suspended";
1403
+ }>;
1404
+ planCode: z.ZodString;
1405
+ interval: z.ZodEnum<{
1406
+ month: "month";
1407
+ year: "year";
1408
+ }>;
1409
+ amountMinor: z.ZodNumber;
1410
+ currency: z.ZodString;
1411
+ currentPeriodEnd: z.ZodNullable<z.ZodISODateTime>;
1412
+ cancelAt: z.ZodNullable<z.ZodISODateTime>;
1413
+ cancelAtPeriodEnd: z.ZodBoolean;
1414
+ pastDueSince: z.ZodNullable<z.ZodISODateTime>;
1415
+ currentPeriodStart: z.ZodNullable<z.ZodISODateTime>;
1416
+ dunning: z.ZodNullable<z.ZodObject<{
1417
+ step: z.ZodNumber;
1418
+ nextActionAt: z.ZodNullable<z.ZodISODateTime>;
1419
+ }, z.core.$strip>>;
1420
+ scheduledChange: z.ZodNullable<z.ZodObject<{
1421
+ planCode: z.ZodString;
1422
+ interval: z.ZodEnum<{
1423
+ month: "month";
1424
+ year: "year";
1425
+ }>;
1426
+ effectiveAt: z.ZodISODateTime;
1427
+ amountMinor: z.ZodOptional<z.ZodNumber>;
1428
+ }, z.core.$strip>>;
1429
+ }, z.core.$strip>>;
1430
+ openCheckout: z.ZodNullable<z.ZodObject<{
1431
+ id: z.ZodUUID;
1432
+ planCode: z.ZodString;
1433
+ interval: z.ZodEnum<{
1434
+ month: "month";
1435
+ year: "year";
1436
+ }>;
1437
+ intervalCount: z.ZodNumber;
1438
+ currency: z.ZodString;
1439
+ amountMinor: z.ZodNumber;
1440
+ expiresAt: z.ZodISODateTime;
1441
+ paymentMethod: z.ZodOptional<z.ZodEnum<{
1442
+ bank_transfer: "bank_transfer";
1443
+ card: "card";
1444
+ }>>;
1445
+ }, z.core.$strip>>;
1446
+ profile: z.ZodObject<{
1447
+ present: z.ZodBoolean;
1448
+ kind: z.ZodNullable<z.ZodEnum<{
1449
+ company: "company";
1450
+ individual: "individual";
1451
+ }>>;
1452
+ }, z.core.$strip>;
1453
+ subscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1454
+ id: z.ZodUUID;
1455
+ status: z.ZodEnum<{
1456
+ active: "active";
1457
+ canceled: "canceled";
1458
+ expired: "expired";
1459
+ past_due: "past_due";
1460
+ suspended: "suspended";
1461
+ }>;
1462
+ planCode: z.ZodString;
1463
+ interval: z.ZodEnum<{
1464
+ month: "month";
1465
+ year: "year";
1466
+ }>;
1467
+ amountMinor: z.ZodNumber;
1468
+ currency: z.ZodString;
1469
+ currentPeriodEnd: z.ZodNullable<z.ZodISODateTime>;
1470
+ cancelAt: z.ZodNullable<z.ZodISODateTime>;
1471
+ cancelAtPeriodEnd: z.ZodBoolean;
1472
+ pastDueSince: z.ZodNullable<z.ZodISODateTime>;
1473
+ currentPeriodStart: z.ZodNullable<z.ZodISODateTime>;
1474
+ dunning: z.ZodNullable<z.ZodObject<{
1475
+ step: z.ZodNumber;
1476
+ nextActionAt: z.ZodNullable<z.ZodISODateTime>;
1477
+ }, z.core.$strip>>;
1478
+ scheduledChange: z.ZodNullable<z.ZodObject<{
1479
+ planCode: z.ZodString;
1480
+ interval: z.ZodEnum<{
1481
+ month: "month";
1482
+ year: "year";
1483
+ }>;
1484
+ effectiveAt: z.ZodISODateTime;
1485
+ amountMinor: z.ZodOptional<z.ZodNumber>;
1486
+ }, z.core.$strip>>;
1487
+ }, z.core.$strip>>>;
1488
+ openInvoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1489
+ id: z.ZodUUID;
1490
+ subscriptionId: z.ZodNullable<z.ZodUUID>;
1491
+ billingReason: z.ZodEnum<{
1492
+ manual: "manual";
1493
+ purchase: "purchase";
1494
+ subscription_create: "subscription_create";
1495
+ subscription_cycle: "subscription_cycle";
1496
+ subscription_update: "subscription_update";
1497
+ }>;
1498
+ totalMinor: z.ZodNumber;
1499
+ currency: z.ZodString;
1500
+ dueAt: z.ZodISODateTime;
1501
+ }, z.core.$strip>>>;
1502
+ benefits: z.ZodOptional<z.ZodArray<z.ZodObject<{
1503
+ code: z.ZodNullable<z.ZodString>;
1504
+ type: z.ZodString;
1505
+ properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1506
+ source: z.ZodString;
1507
+ grantedAt: z.ZodISODateTime;
1508
+ }, z.core.$strip>>>;
1509
+ meters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1510
+ includedUnits: z.ZodNullable<z.ZodNumber>;
1511
+ billable: z.ZodBoolean;
1512
+ standing: z.ZodEnum<{
1513
+ exhausted: "exhausted";
1514
+ low: "low";
1515
+ ok: "ok";
1516
+ }>;
1517
+ }, z.core.$strip>>>;
1518
+ bankTransferCode: z.ZodOptional<z.ZodString>;
1519
+ }, z.core.$strip>>;
1520
+ }, z.core.$strip>;
1521
+ type BankTransferRecorded = z.infer<typeof BankTransferRecordedSchema>;
1522
+ //#endregion
1523
+ //#region ../contract/src/portal.d.ts
1524
+ declare const PortalSessionCreateInputSchema: z.ZodObject<{
1525
+ locale: z.ZodOptional<z.ZodEnum<{
1526
+ en: "en";
1527
+ tr: "tr";
1528
+ }>>;
1529
+ returnUrl: z.ZodOptional<z.ZodURL>;
1530
+ }, z.core.$strip>;
1531
+ type PortalSessionCreateInput = z.input<typeof PortalSessionCreateInputSchema>;
1532
+ /** `POST /v1/accounts/{ref}/portal-sessions` yanıtı (201). */
1533
+ declare const PortalSessionSchema: z.ZodObject<{
1534
+ id: z.ZodUUID;
1535
+ url: z.ZodString;
1536
+ expiresAt: z.ZodISODateTime;
1537
+ }, z.core.$strip>;
1538
+ type PortalSession = z.infer<typeof PortalSessionSchema>;
1539
+ declare const PORTAL_SESSION_ERRORS: readonly ['account_not_found', 'return_url_not_allowed'];
1540
+ type PortalSessionError = (typeof PORTAL_SESSION_ERRORS)[number];
1541
+ //#endregion
1542
+ //#region ../contract/src/subscriptions.d.ts
1543
+ declare const SubscriptionSchema: z.ZodObject<{
1544
+ id: z.ZodUUID;
1545
+ accountRef: z.ZodString;
1546
+ status: z.ZodEnum<{
1547
+ active: "active";
1548
+ canceled: "canceled";
1549
+ expired: "expired";
1446
1550
  past_due: "past_due";
1551
+ suspended: "suspended";
1552
+ }>;
1553
+ planCode: z.ZodString;
1554
+ priceId: z.ZodUUID;
1555
+ interval: z.ZodEnum<{
1556
+ month: "month";
1557
+ year: "year";
1558
+ }>;
1559
+ amountMinor: z.ZodNumber;
1560
+ currency: z.ZodString;
1561
+ provider: z.ZodString;
1562
+ providerSubscriptionRef: z.ZodString;
1563
+ cancelAtPeriodEnd: z.ZodBoolean;
1564
+ cancelAt: z.ZodNullable<z.ZodISODateTime>;
1565
+ cancelReason: z.ZodNullable<z.ZodString>;
1566
+ canceledAt: z.ZodNullable<z.ZodISODateTime>;
1567
+ startedAt: z.ZodISODateTime;
1568
+ currentPeriodStart: z.ZodNullable<z.ZodISODateTime>;
1569
+ currentPeriodEnd: z.ZodNullable<z.ZodISODateTime>;
1570
+ dunningStartedAt: z.ZodNullable<z.ZodISODateTime>;
1571
+ }, z.core.$strip>;
1572
+ type Subscription = z.infer<typeof SubscriptionSchema>;
1573
+ declare const CancelSubscriptionInputSchema: z.ZodObject<{
1574
+ mode: z.ZodEnum<{
1575
+ at_period_end: "at_period_end";
1576
+ immediate: "immediate";
1577
+ }>;
1578
+ reason: z.ZodString;
1579
+ skipProvider: z.ZodDefault<z.ZodBoolean>;
1580
+ }, z.core.$strip>;
1581
+ type CancelSubscriptionInput = z.input<typeof CancelSubscriptionInputSchema>;
1582
+ /**
1583
+ * `POST /v1/subscriptions/{id}/change` (billing core MF9): schedule a change for the next period
1584
+ * boundary (`AccountState.subscription.scheduledChange`); the next renewal invoice is written from
1585
+ * the new terms. `planCode` / `interval` pick another price of the subscription's currency;
1586
+ * `price: "current"` re-locks the current amount of the (possibly updated) price and the plan's
1587
+ * current metered rates — a metered price added later is attached only this way (M20, M36). At
1588
+ * least one of the three. `when` is required so other timings can be added later. A second change
1589
+ * replaces the first; asking for the current plan and interval while a change is pending takes it
1590
+ * back ("keep my plan"; a move to the current price the operator announced stays).
1591
+ * Errors: 404 `subscription_not_found`; 409 `already_subscribed` (another live subscription of the
1592
+ * account holds the target plan or is moving to it), `meter_already_billed` (the target prices a
1593
+ * meter another live subscription bills; for `price: "current"` only when that is the only
1594
+ * difference); 422 `plan_not_found`, `plan_not_sellable`, `subscription_change_invalid` (no such
1595
+ * price, nothing changes, the subscription is not live, has a cancellation scheduled or is a legacy
1596
+ * provider subscription).
1597
+ */
1598
+ declare const SubscriptionChangeInputSchema: z.ZodObject<{
1599
+ planCode: z.ZodOptional<z.ZodString>;
1600
+ interval: z.ZodOptional<z.ZodEnum<{
1601
+ month: "month";
1602
+ year: "year";
1603
+ }>>;
1604
+ price: z.ZodOptional<z.ZodLiteral<"current">>;
1605
+ when: z.ZodLiteral<"next_period">;
1606
+ }, z.core.$strip>;
1607
+ type SubscriptionChangeInput = z.input<typeof SubscriptionChangeInputSchema>;
1608
+ declare const PaymentSchema: z.ZodObject<{
1609
+ id: z.ZodUUID;
1610
+ subscriptionId: z.ZodUUID;
1611
+ providerOrderRef: z.ZodString;
1612
+ status: z.ZodEnum<{
1613
+ failed: "failed";
1614
+ succeeded: "succeeded";
1615
+ }>;
1616
+ amountMinor: z.ZodNumber;
1617
+ currency: z.ZodString;
1618
+ periodStart: z.ZodNullable<z.ZodISODateTime>;
1619
+ periodEnd: z.ZodNullable<z.ZodISODateTime>;
1620
+ occurredAt: z.ZodISODateTime;
1621
+ }, z.core.$strip>;
1622
+ type Payment = z.infer<typeof PaymentSchema>;
1623
+ /** Upper bound of named benefits in one grant. */
1624
+ declare const MAX_GRANT_BENEFITS = 100;
1625
+ declare const GrantCreateInputSchema: z.ZodObject<{
1626
+ planCode: z.ZodOptional<z.ZodString>;
1627
+ overrides: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>>;
1628
+ benefitCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1629
+ reason: z.ZodString;
1630
+ startsAt: z.ZodOptional<z.ZodISODateTime>;
1631
+ endsAt: z.ZodOptional<z.ZodISODateTime>;
1632
+ }, z.core.$strip>;
1633
+ type GrantCreateInput = z.input<typeof GrantCreateInputSchema>;
1634
+ declare const GrantSchema: z.ZodObject<{
1635
+ id: z.ZodUUID;
1636
+ accountRef: z.ZodString;
1637
+ planCode: z.ZodNullable<z.ZodString>;
1638
+ overrides: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
1639
+ benefitCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1640
+ reason: z.ZodString;
1641
+ actorRef: z.ZodNullable<z.ZodString>;
1642
+ startsAt: z.ZodISODateTime;
1643
+ endsAt: z.ZodNullable<z.ZodISODateTime>;
1644
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
1645
+ createdAt: z.ZodISODateTime;
1646
+ }, z.core.$strip>;
1647
+ type Grant = z.infer<typeof GrantSchema>;
1648
+ declare const StatsSchema: z.ZodObject<{
1649
+ subscriptions: z.ZodRecord<z.ZodEnum<{
1650
+ active: "active";
1447
1651
  canceled: "canceled";
1448
1652
  expired: "expired";
1653
+ past_due: "past_due";
1654
+ suspended: "suspended";
1449
1655
  }>, z.ZodNumber>;
1450
1656
  mrrMinor: z.ZodRecord<z.ZodString, z.ZodNumber>;
1451
1657
  accounts: z.ZodNumber;
@@ -1454,9 +1660,9 @@ type Stats = z.infer<typeof StatsSchema>;
1454
1660
  //#endregion
1455
1661
  //#region ../contract/src/invoices.d.ts
1456
1662
  declare const InvoiceStatusSchema: z.ZodEnum<{
1457
- void: "void";
1458
1663
  draft: "draft";
1459
1664
  issued: "issued";
1665
+ void: "void";
1460
1666
  }>;
1461
1667
  declare const InvoiceLineSchema: z.ZodObject<{
1462
1668
  description: z.ZodString;
@@ -1475,9 +1681,9 @@ declare const InvoiceSchema: z.ZodObject<{
1475
1681
  subscriptionId: z.ZodNullable<z.ZodUUID>;
1476
1682
  paymentId: z.ZodNullable<z.ZodUUID>;
1477
1683
  status: z.ZodEnum<{
1478
- void: "void";
1479
1684
  draft: "draft";
1480
1685
  issued: "issued";
1686
+ void: "void";
1481
1687
  }>;
1482
1688
  number: z.ZodNullable<z.ZodString>;
1483
1689
  currency: z.ZodString;
@@ -1487,8 +1693,8 @@ declare const InvoiceSchema: z.ZodObject<{
1487
1693
  taxRateBps: z.ZodNumber;
1488
1694
  buyer: z.ZodObject<{
1489
1695
  kind: z.ZodEnum<{
1490
- individual: "individual";
1491
1696
  company: "company";
1697
+ individual: "individual";
1492
1698
  }>;
1493
1699
  contactName: z.ZodString;
1494
1700
  companyName: z.ZodOptional<z.ZodString>;
@@ -1520,16 +1726,16 @@ declare const InvoiceSchema: z.ZodObject<{
1520
1726
  voidedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
1521
1727
  voidReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1522
1728
  billingReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1729
+ manual: "manual";
1730
+ purchase: "purchase";
1523
1731
  subscription_create: "subscription_create";
1524
1732
  subscription_cycle: "subscription_cycle";
1525
1733
  subscription_update: "subscription_update";
1526
- purchase: "purchase";
1527
- manual: "manual";
1528
1734
  }>>>;
1529
1735
  paymentStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1530
- unpaid: "unpaid";
1531
1736
  paid: "paid";
1532
1737
  uncollectible: "uncollectible";
1738
+ unpaid: "unpaid";
1533
1739
  waived: "waived";
1534
1740
  }>>>;
1535
1741
  periodStart: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
@@ -1582,8 +1788,8 @@ type InvoiceVoidInput = z.input<typeof InvoiceVoidInputSchema>;
1582
1788
  */
1583
1789
  declare const InvoicePaymentSessionCreateInputSchema: z.ZodObject<{
1584
1790
  locale: z.ZodOptional<z.ZodEnum<{
1585
- tr: "tr";
1586
1791
  en: "en";
1792
+ tr: "tr";
1587
1793
  }>>;
1588
1794
  returnUrl: z.ZodOptional<z.ZodURL>;
1589
1795
  }, z.core.$strip>;
@@ -1655,10 +1861,10 @@ declare const AccountDetailSchema: z.ZodObject<{
1655
1861
  id: z.ZodUUID;
1656
1862
  status: z.ZodEnum<{
1657
1863
  active: "active";
1658
- suspended: "suspended";
1659
- past_due: "past_due";
1660
1864
  canceled: "canceled";
1661
1865
  expired: "expired";
1866
+ past_due: "past_due";
1867
+ suspended: "suspended";
1662
1868
  }>;
1663
1869
  planCode: z.ZodString;
1664
1870
  interval: z.ZodEnum<{
@@ -1673,13 +1879,13 @@ declare const AccountDetailSchema: z.ZodObject<{
1673
1879
  }, z.core.$strip>;
1674
1880
  notificationEmails: z.ZodDefault<z.ZodArray<z.ZodString>>;
1675
1881
  locale: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1676
- tr: "tr";
1677
1882
  en: "en";
1883
+ tr: "tr";
1678
1884
  }>>>;
1679
1885
  profile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1680
1886
  kind: z.ZodEnum<{
1681
- individual: "individual";
1682
1887
  company: "company";
1888
+ individual: "individual";
1683
1889
  }>;
1684
1890
  contactName: z.ZodString;
1685
1891
  companyName: z.ZodOptional<z.ZodString>;
@@ -1696,10 +1902,10 @@ declare const AccountDetailSchema: z.ZodObject<{
1696
1902
  accountRef: z.ZodString;
1697
1903
  status: z.ZodEnum<{
1698
1904
  active: "active";
1699
- suspended: "suspended";
1700
- past_due: "past_due";
1701
1905
  canceled: "canceled";
1702
1906
  expired: "expired";
1907
+ past_due: "past_due";
1908
+ suspended: "suspended";
1703
1909
  }>;
1704
1910
  planCode: z.ZodString;
1705
1911
  priceId: z.ZodUUID;
@@ -1725,10 +1931,10 @@ declare const AccountDetailSchema: z.ZodObject<{
1725
1931
  accountRef: z.ZodString;
1726
1932
  status: z.ZodEnum<{
1727
1933
  canceled: "canceled";
1728
- expired: "expired";
1729
- open: "open";
1730
1934
  completed: "completed";
1935
+ expired: "expired";
1731
1936
  failed: "failed";
1937
+ open: "open";
1732
1938
  }>;
1733
1939
  planCode: z.ZodString;
1734
1940
  interval: z.ZodEnum<{
@@ -1753,6 +1959,11 @@ declare const AccountDetailSchema: z.ZodObject<{
1753
1959
  expiresAt: z.ZodISODateTime;
1754
1960
  createdAt: z.ZodISODateTime;
1755
1961
  completedAt: z.ZodNullable<z.ZodISODateTime>;
1962
+ paymentMethod: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1963
+ bank_transfer: "bank_transfer";
1964
+ card: "card";
1965
+ }>>>;
1966
+ replacesSubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1756
1967
  }, z.core.$strip>>>;
1757
1968
  payments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1758
1969
  id: z.ZodUUID;
@@ -1774,9 +1985,9 @@ declare const AccountDetailSchema: z.ZodObject<{
1774
1985
  subscriptionId: z.ZodNullable<z.ZodUUID>;
1775
1986
  paymentId: z.ZodNullable<z.ZodUUID>;
1776
1987
  status: z.ZodEnum<{
1777
- void: "void";
1778
1988
  draft: "draft";
1779
1989
  issued: "issued";
1990
+ void: "void";
1780
1991
  }>;
1781
1992
  number: z.ZodNullable<z.ZodString>;
1782
1993
  currency: z.ZodString;
@@ -1786,8 +1997,8 @@ declare const AccountDetailSchema: z.ZodObject<{
1786
1997
  taxRateBps: z.ZodNumber;
1787
1998
  buyer: z.ZodObject<{
1788
1999
  kind: z.ZodEnum<{
1789
- individual: "individual";
1790
2000
  company: "company";
2001
+ individual: "individual";
1791
2002
  }>;
1792
2003
  contactName: z.ZodString;
1793
2004
  companyName: z.ZodOptional<z.ZodString>;
@@ -1819,16 +2030,16 @@ declare const AccountDetailSchema: z.ZodObject<{
1819
2030
  voidedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
1820
2031
  voidReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1821
2032
  billingReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2033
+ manual: "manual";
2034
+ purchase: "purchase";
1822
2035
  subscription_create: "subscription_create";
1823
2036
  subscription_cycle: "subscription_cycle";
1824
2037
  subscription_update: "subscription_update";
1825
- purchase: "purchase";
1826
- manual: "manual";
1827
2038
  }>>>;
1828
2039
  paymentStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1829
- unpaid: "unpaid";
1830
2040
  paid: "paid";
1831
2041
  uncollectible: "uncollectible";
2042
+ unpaid: "unpaid";
1832
2043
  waived: "waived";
1833
2044
  }>>>;
1834
2045
  periodStart: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
@@ -1867,10 +2078,10 @@ declare const AccountUpsertResponseSchema: z.ZodObject<{
1867
2078
  id: z.ZodUUID;
1868
2079
  status: z.ZodEnum<{
1869
2080
  active: "active";
1870
- suspended: "suspended";
1871
- past_due: "past_due";
1872
2081
  canceled: "canceled";
1873
2082
  expired: "expired";
2083
+ past_due: "past_due";
2084
+ suspended: "suspended";
1874
2085
  }>;
1875
2086
  planCode: z.ZodString;
1876
2087
  interval: z.ZodEnum<{
@@ -1885,8 +2096,8 @@ declare const AccountUpsertResponseSchema: z.ZodObject<{
1885
2096
  }, z.core.$strip>;
1886
2097
  notificationEmails: z.ZodDefault<z.ZodArray<z.ZodString>>;
1887
2098
  locale: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1888
- tr: "tr";
1889
2099
  en: "en";
2100
+ tr: "tr";
1890
2101
  }>>>;
1891
2102
  account: z.ZodOptional<z.ZodObject<{
1892
2103
  version: z.ZodNumber;
@@ -1904,10 +2115,10 @@ declare const AccountUpsertResponseSchema: z.ZodObject<{
1904
2115
  id: z.ZodUUID;
1905
2116
  status: z.ZodEnum<{
1906
2117
  active: "active";
1907
- suspended: "suspended";
1908
- past_due: "past_due";
1909
2118
  canceled: "canceled";
1910
2119
  expired: "expired";
2120
+ past_due: "past_due";
2121
+ suspended: "suspended";
1911
2122
  }>;
1912
2123
  planCode: z.ZodString;
1913
2124
  interval: z.ZodEnum<{
@@ -1946,22 +2157,26 @@ declare const AccountUpsertResponseSchema: z.ZodObject<{
1946
2157
  currency: z.ZodString;
1947
2158
  amountMinor: z.ZodNumber;
1948
2159
  expiresAt: z.ZodISODateTime;
2160
+ paymentMethod: z.ZodOptional<z.ZodEnum<{
2161
+ bank_transfer: "bank_transfer";
2162
+ card: "card";
2163
+ }>>;
1949
2164
  }, z.core.$strip>>;
1950
2165
  profile: z.ZodObject<{
1951
2166
  present: z.ZodBoolean;
1952
2167
  kind: z.ZodNullable<z.ZodEnum<{
1953
- individual: "individual";
1954
2168
  company: "company";
2169
+ individual: "individual";
1955
2170
  }>>;
1956
2171
  }, z.core.$strip>;
1957
2172
  subscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1958
2173
  id: z.ZodUUID;
1959
2174
  status: z.ZodEnum<{
1960
2175
  active: "active";
1961
- suspended: "suspended";
1962
- past_due: "past_due";
1963
2176
  canceled: "canceled";
1964
2177
  expired: "expired";
2178
+ past_due: "past_due";
2179
+ suspended: "suspended";
1965
2180
  }>;
1966
2181
  planCode: z.ZodString;
1967
2182
  interval: z.ZodEnum<{
@@ -1993,11 +2208,11 @@ declare const AccountUpsertResponseSchema: z.ZodObject<{
1993
2208
  id: z.ZodUUID;
1994
2209
  subscriptionId: z.ZodNullable<z.ZodUUID>;
1995
2210
  billingReason: z.ZodEnum<{
2211
+ manual: "manual";
2212
+ purchase: "purchase";
1996
2213
  subscription_create: "subscription_create";
1997
2214
  subscription_cycle: "subscription_cycle";
1998
2215
  subscription_update: "subscription_update";
1999
- purchase: "purchase";
2000
- manual: "manual";
2001
2216
  }>;
2002
2217
  totalMinor: z.ZodNumber;
2003
2218
  currency: z.ZodString;
@@ -2014,11 +2229,12 @@ declare const AccountUpsertResponseSchema: z.ZodObject<{
2014
2229
  includedUnits: z.ZodNullable<z.ZodNumber>;
2015
2230
  billable: z.ZodBoolean;
2016
2231
  standing: z.ZodEnum<{
2017
- ok: "ok";
2018
- low: "low";
2019
2232
  exhausted: "exhausted";
2233
+ low: "low";
2234
+ ok: "ok";
2020
2235
  }>;
2021
2236
  }, z.core.$strip>>>;
2237
+ bankTransferCode: z.ZodOptional<z.ZodString>;
2022
2238
  }, z.core.$strip>>;
2023
2239
  }, z.core.$strip>;
2024
2240
  type AccountUpsertResponse = z.infer<typeof AccountUpsertResponseSchema>;
@@ -2051,10 +2267,10 @@ declare const GrantCreateResponseSchema: z.ZodObject<{
2051
2267
  id: z.ZodUUID;
2052
2268
  status: z.ZodEnum<{
2053
2269
  active: "active";
2054
- suspended: "suspended";
2055
- past_due: "past_due";
2056
2270
  canceled: "canceled";
2057
2271
  expired: "expired";
2272
+ past_due: "past_due";
2273
+ suspended: "suspended";
2058
2274
  }>;
2059
2275
  planCode: z.ZodString;
2060
2276
  interval: z.ZodEnum<{
@@ -2093,22 +2309,26 @@ declare const GrantCreateResponseSchema: z.ZodObject<{
2093
2309
  currency: z.ZodString;
2094
2310
  amountMinor: z.ZodNumber;
2095
2311
  expiresAt: z.ZodISODateTime;
2312
+ paymentMethod: z.ZodOptional<z.ZodEnum<{
2313
+ bank_transfer: "bank_transfer";
2314
+ card: "card";
2315
+ }>>;
2096
2316
  }, z.core.$strip>>;
2097
2317
  profile: z.ZodObject<{
2098
2318
  present: z.ZodBoolean;
2099
2319
  kind: z.ZodNullable<z.ZodEnum<{
2100
- individual: "individual";
2101
2320
  company: "company";
2321
+ individual: "individual";
2102
2322
  }>>;
2103
2323
  }, z.core.$strip>;
2104
2324
  subscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2105
2325
  id: z.ZodUUID;
2106
2326
  status: z.ZodEnum<{
2107
2327
  active: "active";
2108
- suspended: "suspended";
2109
- past_due: "past_due";
2110
2328
  canceled: "canceled";
2111
2329
  expired: "expired";
2330
+ past_due: "past_due";
2331
+ suspended: "suspended";
2112
2332
  }>;
2113
2333
  planCode: z.ZodString;
2114
2334
  interval: z.ZodEnum<{
@@ -2140,11 +2360,11 @@ declare const GrantCreateResponseSchema: z.ZodObject<{
2140
2360
  id: z.ZodUUID;
2141
2361
  subscriptionId: z.ZodNullable<z.ZodUUID>;
2142
2362
  billingReason: z.ZodEnum<{
2363
+ manual: "manual";
2364
+ purchase: "purchase";
2143
2365
  subscription_create: "subscription_create";
2144
2366
  subscription_cycle: "subscription_cycle";
2145
2367
  subscription_update: "subscription_update";
2146
- purchase: "purchase";
2147
- manual: "manual";
2148
2368
  }>;
2149
2369
  totalMinor: z.ZodNumber;
2150
2370
  currency: z.ZodString;
@@ -2161,11 +2381,12 @@ declare const GrantCreateResponseSchema: z.ZodObject<{
2161
2381
  includedUnits: z.ZodNullable<z.ZodNumber>;
2162
2382
  billable: z.ZodBoolean;
2163
2383
  standing: z.ZodEnum<{
2164
- ok: "ok";
2165
- low: "low";
2166
2384
  exhausted: "exhausted";
2385
+ low: "low";
2386
+ ok: "ok";
2167
2387
  }>;
2168
2388
  }, z.core.$strip>>>;
2389
+ bankTransferCode: z.ZodOptional<z.ZodString>;
2169
2390
  }, z.core.$strip>>;
2170
2391
  }, z.core.$strip>;
2171
2392
  type GrantCreateResponse = z.infer<typeof GrantCreateResponseSchema>;
@@ -2175,10 +2396,10 @@ declare const CancelSubscriptionResponseSchema: z.ZodObject<{
2175
2396
  accountRef: z.ZodString;
2176
2397
  status: z.ZodEnum<{
2177
2398
  active: "active";
2178
- suspended: "suspended";
2179
- past_due: "past_due";
2180
2399
  canceled: "canceled";
2181
2400
  expired: "expired";
2401
+ past_due: "past_due";
2402
+ suspended: "suspended";
2182
2403
  }>;
2183
2404
  planCode: z.ZodString;
2184
2405
  priceId: z.ZodUUID;
@@ -2214,10 +2435,10 @@ declare const CancelSubscriptionResponseSchema: z.ZodObject<{
2214
2435
  id: z.ZodUUID;
2215
2436
  status: z.ZodEnum<{
2216
2437
  active: "active";
2217
- suspended: "suspended";
2218
- past_due: "past_due";
2219
2438
  canceled: "canceled";
2220
2439
  expired: "expired";
2440
+ past_due: "past_due";
2441
+ suspended: "suspended";
2221
2442
  }>;
2222
2443
  planCode: z.ZodString;
2223
2444
  interval: z.ZodEnum<{
@@ -2256,22 +2477,26 @@ declare const CancelSubscriptionResponseSchema: z.ZodObject<{
2256
2477
  currency: z.ZodString;
2257
2478
  amountMinor: z.ZodNumber;
2258
2479
  expiresAt: z.ZodISODateTime;
2480
+ paymentMethod: z.ZodOptional<z.ZodEnum<{
2481
+ bank_transfer: "bank_transfer";
2482
+ card: "card";
2483
+ }>>;
2259
2484
  }, z.core.$strip>>;
2260
2485
  profile: z.ZodObject<{
2261
2486
  present: z.ZodBoolean;
2262
2487
  kind: z.ZodNullable<z.ZodEnum<{
2263
- individual: "individual";
2264
2488
  company: "company";
2489
+ individual: "individual";
2265
2490
  }>>;
2266
2491
  }, z.core.$strip>;
2267
2492
  subscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2268
2493
  id: z.ZodUUID;
2269
2494
  status: z.ZodEnum<{
2270
2495
  active: "active";
2271
- suspended: "suspended";
2272
- past_due: "past_due";
2273
2496
  canceled: "canceled";
2274
2497
  expired: "expired";
2498
+ past_due: "past_due";
2499
+ suspended: "suspended";
2275
2500
  }>;
2276
2501
  planCode: z.ZodString;
2277
2502
  interval: z.ZodEnum<{
@@ -2303,11 +2528,11 @@ declare const CancelSubscriptionResponseSchema: z.ZodObject<{
2303
2528
  id: z.ZodUUID;
2304
2529
  subscriptionId: z.ZodNullable<z.ZodUUID>;
2305
2530
  billingReason: z.ZodEnum<{
2531
+ manual: "manual";
2532
+ purchase: "purchase";
2306
2533
  subscription_create: "subscription_create";
2307
2534
  subscription_cycle: "subscription_cycle";
2308
2535
  subscription_update: "subscription_update";
2309
- purchase: "purchase";
2310
- manual: "manual";
2311
2536
  }>;
2312
2537
  totalMinor: z.ZodNumber;
2313
2538
  currency: z.ZodString;
@@ -2324,11 +2549,12 @@ declare const CancelSubscriptionResponseSchema: z.ZodObject<{
2324
2549
  includedUnits: z.ZodNullable<z.ZodNumber>;
2325
2550
  billable: z.ZodBoolean;
2326
2551
  standing: z.ZodEnum<{
2327
- ok: "ok";
2328
- low: "low";
2329
2552
  exhausted: "exhausted";
2553
+ low: "low";
2554
+ ok: "ok";
2330
2555
  }>;
2331
2556
  }, z.core.$strip>>>;
2557
+ bankTransferCode: z.ZodOptional<z.ZodString>;
2332
2558
  }, z.core.$strip>>;
2333
2559
  }, z.core.$strip>;
2334
2560
  type CancelSubscriptionResponse = z.infer<typeof CancelSubscriptionResponseSchema>;
@@ -2339,9 +2565,9 @@ declare const InvoiceIssueResponseSchema: z.ZodObject<{
2339
2565
  subscriptionId: z.ZodNullable<z.ZodUUID>;
2340
2566
  paymentId: z.ZodNullable<z.ZodUUID>;
2341
2567
  status: z.ZodEnum<{
2342
- void: "void";
2343
2568
  draft: "draft";
2344
2569
  issued: "issued";
2570
+ void: "void";
2345
2571
  }>;
2346
2572
  number: z.ZodNullable<z.ZodString>;
2347
2573
  currency: z.ZodString;
@@ -2351,8 +2577,8 @@ declare const InvoiceIssueResponseSchema: z.ZodObject<{
2351
2577
  taxRateBps: z.ZodNumber;
2352
2578
  buyer: z.ZodObject<{
2353
2579
  kind: z.ZodEnum<{
2354
- individual: "individual";
2355
2580
  company: "company";
2581
+ individual: "individual";
2356
2582
  }>;
2357
2583
  contactName: z.ZodString;
2358
2584
  companyName: z.ZodOptional<z.ZodString>;
@@ -2384,16 +2610,16 @@ declare const InvoiceIssueResponseSchema: z.ZodObject<{
2384
2610
  voidedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
2385
2611
  voidReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2386
2612
  billingReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2613
+ manual: "manual";
2614
+ purchase: "purchase";
2387
2615
  subscription_create: "subscription_create";
2388
2616
  subscription_cycle: "subscription_cycle";
2389
2617
  subscription_update: "subscription_update";
2390
- purchase: "purchase";
2391
- manual: "manual";
2392
2618
  }>>>;
2393
2619
  paymentStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2394
- unpaid: "unpaid";
2395
2620
  paid: "paid";
2396
2621
  uncollectible: "uncollectible";
2622
+ unpaid: "unpaid";
2397
2623
  waived: "waived";
2398
2624
  }>>>;
2399
2625
  periodStart: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
@@ -2414,10 +2640,10 @@ declare const InvoiceIssueResponseSchema: z.ZodObject<{
2414
2640
  id: z.ZodUUID;
2415
2641
  status: z.ZodEnum<{
2416
2642
  active: "active";
2417
- suspended: "suspended";
2418
- past_due: "past_due";
2419
2643
  canceled: "canceled";
2420
2644
  expired: "expired";
2645
+ past_due: "past_due";
2646
+ suspended: "suspended";
2421
2647
  }>;
2422
2648
  planCode: z.ZodString;
2423
2649
  interval: z.ZodEnum<{
@@ -2456,22 +2682,26 @@ declare const InvoiceIssueResponseSchema: z.ZodObject<{
2456
2682
  currency: z.ZodString;
2457
2683
  amountMinor: z.ZodNumber;
2458
2684
  expiresAt: z.ZodISODateTime;
2685
+ paymentMethod: z.ZodOptional<z.ZodEnum<{
2686
+ bank_transfer: "bank_transfer";
2687
+ card: "card";
2688
+ }>>;
2459
2689
  }, z.core.$strip>>;
2460
2690
  profile: z.ZodObject<{
2461
2691
  present: z.ZodBoolean;
2462
2692
  kind: z.ZodNullable<z.ZodEnum<{
2463
- individual: "individual";
2464
2693
  company: "company";
2694
+ individual: "individual";
2465
2695
  }>>;
2466
2696
  }, z.core.$strip>;
2467
2697
  subscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2468
2698
  id: z.ZodUUID;
2469
2699
  status: z.ZodEnum<{
2470
2700
  active: "active";
2471
- suspended: "suspended";
2472
- past_due: "past_due";
2473
2701
  canceled: "canceled";
2474
2702
  expired: "expired";
2703
+ past_due: "past_due";
2704
+ suspended: "suspended";
2475
2705
  }>;
2476
2706
  planCode: z.ZodString;
2477
2707
  interval: z.ZodEnum<{
@@ -2503,11 +2733,11 @@ declare const InvoiceIssueResponseSchema: z.ZodObject<{
2503
2733
  id: z.ZodUUID;
2504
2734
  subscriptionId: z.ZodNullable<z.ZodUUID>;
2505
2735
  billingReason: z.ZodEnum<{
2736
+ manual: "manual";
2737
+ purchase: "purchase";
2506
2738
  subscription_create: "subscription_create";
2507
2739
  subscription_cycle: "subscription_cycle";
2508
2740
  subscription_update: "subscription_update";
2509
- purchase: "purchase";
2510
- manual: "manual";
2511
2741
  }>;
2512
2742
  totalMinor: z.ZodNumber;
2513
2743
  currency: z.ZodString;
@@ -2524,11 +2754,12 @@ declare const InvoiceIssueResponseSchema: z.ZodObject<{
2524
2754
  includedUnits: z.ZodNullable<z.ZodNumber>;
2525
2755
  billable: z.ZodBoolean;
2526
2756
  standing: z.ZodEnum<{
2527
- ok: "ok";
2528
- low: "low";
2529
2757
  exhausted: "exhausted";
2758
+ low: "low";
2759
+ ok: "ok";
2530
2760
  }>;
2531
2761
  }, z.core.$strip>>>;
2762
+ bankTransferCode: z.ZodOptional<z.ZodString>;
2532
2763
  }, z.core.$strip>>;
2533
2764
  }, z.core.$strip>;
2534
2765
  type InvoiceIssueResponse = z.infer<typeof InvoiceIssueResponseSchema>;
@@ -2539,9 +2770,9 @@ declare const ManualInvoiceResponseSchema: z.ZodObject<{
2539
2770
  subscriptionId: z.ZodNullable<z.ZodUUID>;
2540
2771
  paymentId: z.ZodNullable<z.ZodUUID>;
2541
2772
  status: z.ZodEnum<{
2542
- void: "void";
2543
2773
  draft: "draft";
2544
2774
  issued: "issued";
2775
+ void: "void";
2545
2776
  }>;
2546
2777
  number: z.ZodNullable<z.ZodString>;
2547
2778
  currency: z.ZodString;
@@ -2551,8 +2782,8 @@ declare const ManualInvoiceResponseSchema: z.ZodObject<{
2551
2782
  taxRateBps: z.ZodNumber;
2552
2783
  buyer: z.ZodObject<{
2553
2784
  kind: z.ZodEnum<{
2554
- individual: "individual";
2555
2785
  company: "company";
2786
+ individual: "individual";
2556
2787
  }>;
2557
2788
  contactName: z.ZodString;
2558
2789
  companyName: z.ZodOptional<z.ZodString>;
@@ -2584,16 +2815,16 @@ declare const ManualInvoiceResponseSchema: z.ZodObject<{
2584
2815
  voidedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
2585
2816
  voidReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2586
2817
  billingReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2818
+ manual: "manual";
2819
+ purchase: "purchase";
2587
2820
  subscription_create: "subscription_create";
2588
2821
  subscription_cycle: "subscription_cycle";
2589
2822
  subscription_update: "subscription_update";
2590
- purchase: "purchase";
2591
- manual: "manual";
2592
2823
  }>>>;
2593
2824
  paymentStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2594
- unpaid: "unpaid";
2595
2825
  paid: "paid";
2596
2826
  uncollectible: "uncollectible";
2827
+ unpaid: "unpaid";
2597
2828
  waived: "waived";
2598
2829
  }>>>;
2599
2830
  periodStart: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
@@ -2614,10 +2845,10 @@ declare const ManualInvoiceResponseSchema: z.ZodObject<{
2614
2845
  id: z.ZodUUID;
2615
2846
  status: z.ZodEnum<{
2616
2847
  active: "active";
2617
- suspended: "suspended";
2618
- past_due: "past_due";
2619
2848
  canceled: "canceled";
2620
2849
  expired: "expired";
2850
+ past_due: "past_due";
2851
+ suspended: "suspended";
2621
2852
  }>;
2622
2853
  planCode: z.ZodString;
2623
2854
  interval: z.ZodEnum<{
@@ -2656,22 +2887,26 @@ declare const ManualInvoiceResponseSchema: z.ZodObject<{
2656
2887
  currency: z.ZodString;
2657
2888
  amountMinor: z.ZodNumber;
2658
2889
  expiresAt: z.ZodISODateTime;
2890
+ paymentMethod: z.ZodOptional<z.ZodEnum<{
2891
+ bank_transfer: "bank_transfer";
2892
+ card: "card";
2893
+ }>>;
2659
2894
  }, z.core.$strip>>;
2660
2895
  profile: z.ZodObject<{
2661
2896
  present: z.ZodBoolean;
2662
2897
  kind: z.ZodNullable<z.ZodEnum<{
2663
- individual: "individual";
2664
2898
  company: "company";
2899
+ individual: "individual";
2665
2900
  }>>;
2666
2901
  }, z.core.$strip>;
2667
2902
  subscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2668
2903
  id: z.ZodUUID;
2669
2904
  status: z.ZodEnum<{
2670
2905
  active: "active";
2671
- suspended: "suspended";
2672
- past_due: "past_due";
2673
2906
  canceled: "canceled";
2674
2907
  expired: "expired";
2908
+ past_due: "past_due";
2909
+ suspended: "suspended";
2675
2910
  }>;
2676
2911
  planCode: z.ZodString;
2677
2912
  interval: z.ZodEnum<{
@@ -2703,11 +2938,11 @@ declare const ManualInvoiceResponseSchema: z.ZodObject<{
2703
2938
  id: z.ZodUUID;
2704
2939
  subscriptionId: z.ZodNullable<z.ZodUUID>;
2705
2940
  billingReason: z.ZodEnum<{
2941
+ manual: "manual";
2942
+ purchase: "purchase";
2706
2943
  subscription_create: "subscription_create";
2707
2944
  subscription_cycle: "subscription_cycle";
2708
2945
  subscription_update: "subscription_update";
2709
- purchase: "purchase";
2710
- manual: "manual";
2711
2946
  }>;
2712
2947
  totalMinor: z.ZodNumber;
2713
2948
  currency: z.ZodString;
@@ -2724,11 +2959,12 @@ declare const ManualInvoiceResponseSchema: z.ZodObject<{
2724
2959
  includedUnits: z.ZodNullable<z.ZodNumber>;
2725
2960
  billable: z.ZodBoolean;
2726
2961
  standing: z.ZodEnum<{
2727
- ok: "ok";
2728
- low: "low";
2729
2962
  exhausted: "exhausted";
2963
+ low: "low";
2964
+ ok: "ok";
2730
2965
  }>;
2731
2966
  }, z.core.$strip>>>;
2967
+ bankTransferCode: z.ZodOptional<z.ZodString>;
2732
2968
  }, z.core.$strip>>;
2733
2969
  }, z.core.$strip>;
2734
2970
  type ManualInvoiceResponse = z.infer<typeof ManualInvoiceResponseSchema>;
@@ -2739,9 +2975,9 @@ declare const InvoiceVoidResponseSchema: z.ZodObject<{
2739
2975
  subscriptionId: z.ZodNullable<z.ZodUUID>;
2740
2976
  paymentId: z.ZodNullable<z.ZodUUID>;
2741
2977
  status: z.ZodEnum<{
2742
- void: "void";
2743
2978
  draft: "draft";
2744
2979
  issued: "issued";
2980
+ void: "void";
2745
2981
  }>;
2746
2982
  number: z.ZodNullable<z.ZodString>;
2747
2983
  currency: z.ZodString;
@@ -2751,8 +2987,8 @@ declare const InvoiceVoidResponseSchema: z.ZodObject<{
2751
2987
  taxRateBps: z.ZodNumber;
2752
2988
  buyer: z.ZodObject<{
2753
2989
  kind: z.ZodEnum<{
2754
- individual: "individual";
2755
2990
  company: "company";
2991
+ individual: "individual";
2756
2992
  }>;
2757
2993
  contactName: z.ZodString;
2758
2994
  companyName: z.ZodOptional<z.ZodString>;
@@ -2784,16 +3020,16 @@ declare const InvoiceVoidResponseSchema: z.ZodObject<{
2784
3020
  voidedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
2785
3021
  voidReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2786
3022
  billingReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3023
+ manual: "manual";
3024
+ purchase: "purchase";
2787
3025
  subscription_create: "subscription_create";
2788
3026
  subscription_cycle: "subscription_cycle";
2789
3027
  subscription_update: "subscription_update";
2790
- purchase: "purchase";
2791
- manual: "manual";
2792
3028
  }>>>;
2793
3029
  paymentStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2794
- unpaid: "unpaid";
2795
3030
  paid: "paid";
2796
3031
  uncollectible: "uncollectible";
3032
+ unpaid: "unpaid";
2797
3033
  waived: "waived";
2798
3034
  }>>>;
2799
3035
  periodStart: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
@@ -2814,10 +3050,10 @@ declare const InvoiceVoidResponseSchema: z.ZodObject<{
2814
3050
  id: z.ZodUUID;
2815
3051
  status: z.ZodEnum<{
2816
3052
  active: "active";
2817
- suspended: "suspended";
2818
- past_due: "past_due";
2819
3053
  canceled: "canceled";
2820
3054
  expired: "expired";
3055
+ past_due: "past_due";
3056
+ suspended: "suspended";
2821
3057
  }>;
2822
3058
  planCode: z.ZodString;
2823
3059
  interval: z.ZodEnum<{
@@ -2856,22 +3092,26 @@ declare const InvoiceVoidResponseSchema: z.ZodObject<{
2856
3092
  currency: z.ZodString;
2857
3093
  amountMinor: z.ZodNumber;
2858
3094
  expiresAt: z.ZodISODateTime;
3095
+ paymentMethod: z.ZodOptional<z.ZodEnum<{
3096
+ bank_transfer: "bank_transfer";
3097
+ card: "card";
3098
+ }>>;
2859
3099
  }, z.core.$strip>>;
2860
3100
  profile: z.ZodObject<{
2861
3101
  present: z.ZodBoolean;
2862
3102
  kind: z.ZodNullable<z.ZodEnum<{
2863
- individual: "individual";
2864
3103
  company: "company";
3104
+ individual: "individual";
2865
3105
  }>>;
2866
3106
  }, z.core.$strip>;
2867
3107
  subscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2868
3108
  id: z.ZodUUID;
2869
3109
  status: z.ZodEnum<{
2870
3110
  active: "active";
2871
- suspended: "suspended";
2872
- past_due: "past_due";
2873
3111
  canceled: "canceled";
2874
3112
  expired: "expired";
3113
+ past_due: "past_due";
3114
+ suspended: "suspended";
2875
3115
  }>;
2876
3116
  planCode: z.ZodString;
2877
3117
  interval: z.ZodEnum<{
@@ -2903,11 +3143,11 @@ declare const InvoiceVoidResponseSchema: z.ZodObject<{
2903
3143
  id: z.ZodUUID;
2904
3144
  subscriptionId: z.ZodNullable<z.ZodUUID>;
2905
3145
  billingReason: z.ZodEnum<{
3146
+ manual: "manual";
3147
+ purchase: "purchase";
2906
3148
  subscription_create: "subscription_create";
2907
3149
  subscription_cycle: "subscription_cycle";
2908
3150
  subscription_update: "subscription_update";
2909
- purchase: "purchase";
2910
- manual: "manual";
2911
3151
  }>;
2912
3152
  totalMinor: z.ZodNumber;
2913
3153
  currency: z.ZodString;
@@ -2924,11 +3164,12 @@ declare const InvoiceVoidResponseSchema: z.ZodObject<{
2924
3164
  includedUnits: z.ZodNullable<z.ZodNumber>;
2925
3165
  billable: z.ZodBoolean;
2926
3166
  standing: z.ZodEnum<{
2927
- ok: "ok";
2928
- low: "low";
2929
3167
  exhausted: "exhausted";
3168
+ low: "low";
3169
+ ok: "ok";
2930
3170
  }>;
2931
3171
  }, z.core.$strip>>>;
3172
+ bankTransferCode: z.ZodOptional<z.ZodString>;
2932
3173
  }, z.core.$strip>>;
2933
3174
  }, z.core.$strip>;
2934
3175
  type InvoiceVoidResponse = z.infer<typeof InvoiceVoidResponseSchema>;
@@ -2938,10 +3179,10 @@ declare const CheckoutSessionResponseSchema: z.ZodObject<{
2938
3179
  accountRef: z.ZodString;
2939
3180
  status: z.ZodEnum<{
2940
3181
  canceled: "canceled";
2941
- expired: "expired";
2942
- open: "open";
2943
3182
  completed: "completed";
3183
+ expired: "expired";
2944
3184
  failed: "failed";
3185
+ open: "open";
2945
3186
  }>;
2946
3187
  planCode: z.ZodString;
2947
3188
  interval: z.ZodEnum<{
@@ -2966,6 +3207,11 @@ declare const CheckoutSessionResponseSchema: z.ZodObject<{
2966
3207
  expiresAt: z.ZodISODateTime;
2967
3208
  createdAt: z.ZodISODateTime;
2968
3209
  completedAt: z.ZodNullable<z.ZodISODateTime>;
3210
+ paymentMethod: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3211
+ bank_transfer: "bank_transfer";
3212
+ card: "card";
3213
+ }>>>;
3214
+ replacesSubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
2969
3215
  account: z.ZodOptional<z.ZodObject<{
2970
3216
  version: z.ZodNumber;
2971
3217
  planCode: z.ZodString;
@@ -2982,10 +3228,10 @@ declare const CheckoutSessionResponseSchema: z.ZodObject<{
2982
3228
  id: z.ZodUUID;
2983
3229
  status: z.ZodEnum<{
2984
3230
  active: "active";
2985
- suspended: "suspended";
2986
- past_due: "past_due";
2987
3231
  canceled: "canceled";
2988
3232
  expired: "expired";
3233
+ past_due: "past_due";
3234
+ suspended: "suspended";
2989
3235
  }>;
2990
3236
  planCode: z.ZodString;
2991
3237
  interval: z.ZodEnum<{
@@ -3024,22 +3270,26 @@ declare const CheckoutSessionResponseSchema: z.ZodObject<{
3024
3270
  currency: z.ZodString;
3025
3271
  amountMinor: z.ZodNumber;
3026
3272
  expiresAt: z.ZodISODateTime;
3273
+ paymentMethod: z.ZodOptional<z.ZodEnum<{
3274
+ bank_transfer: "bank_transfer";
3275
+ card: "card";
3276
+ }>>;
3027
3277
  }, z.core.$strip>>;
3028
3278
  profile: z.ZodObject<{
3029
3279
  present: z.ZodBoolean;
3030
3280
  kind: z.ZodNullable<z.ZodEnum<{
3031
- individual: "individual";
3032
3281
  company: "company";
3282
+ individual: "individual";
3033
3283
  }>>;
3034
3284
  }, z.core.$strip>;
3035
3285
  subscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3036
3286
  id: z.ZodUUID;
3037
3287
  status: z.ZodEnum<{
3038
3288
  active: "active";
3039
- suspended: "suspended";
3040
- past_due: "past_due";
3041
3289
  canceled: "canceled";
3042
3290
  expired: "expired";
3291
+ past_due: "past_due";
3292
+ suspended: "suspended";
3043
3293
  }>;
3044
3294
  planCode: z.ZodString;
3045
3295
  interval: z.ZodEnum<{
@@ -3071,11 +3321,11 @@ declare const CheckoutSessionResponseSchema: z.ZodObject<{
3071
3321
  id: z.ZodUUID;
3072
3322
  subscriptionId: z.ZodNullable<z.ZodUUID>;
3073
3323
  billingReason: z.ZodEnum<{
3324
+ manual: "manual";
3325
+ purchase: "purchase";
3074
3326
  subscription_create: "subscription_create";
3075
3327
  subscription_cycle: "subscription_cycle";
3076
3328
  subscription_update: "subscription_update";
3077
- purchase: "purchase";
3078
- manual: "manual";
3079
3329
  }>;
3080
3330
  totalMinor: z.ZodNumber;
3081
3331
  currency: z.ZodString;
@@ -3092,11 +3342,12 @@ declare const CheckoutSessionResponseSchema: z.ZodObject<{
3092
3342
  includedUnits: z.ZodNullable<z.ZodNumber>;
3093
3343
  billable: z.ZodBoolean;
3094
3344
  standing: z.ZodEnum<{
3095
- ok: "ok";
3096
- low: "low";
3097
3345
  exhausted: "exhausted";
3346
+ low: "low";
3347
+ ok: "ok";
3098
3348
  }>;
3099
3349
  }, z.core.$strip>>>;
3350
+ bankTransferCode: z.ZodOptional<z.ZodString>;
3100
3351
  }, z.core.$strip>>;
3101
3352
  }, z.core.$strip>;
3102
3353
  type CheckoutSessionResponse = z.infer<typeof CheckoutSessionResponseSchema>;
@@ -3107,9 +3358,9 @@ declare const InvoiceWaiveResponseSchema: z.ZodObject<{
3107
3358
  subscriptionId: z.ZodNullable<z.ZodUUID>;
3108
3359
  paymentId: z.ZodNullable<z.ZodUUID>;
3109
3360
  status: z.ZodEnum<{
3110
- void: "void";
3111
3361
  draft: "draft";
3112
3362
  issued: "issued";
3363
+ void: "void";
3113
3364
  }>;
3114
3365
  number: z.ZodNullable<z.ZodString>;
3115
3366
  currency: z.ZodString;
@@ -3119,8 +3370,8 @@ declare const InvoiceWaiveResponseSchema: z.ZodObject<{
3119
3370
  taxRateBps: z.ZodNumber;
3120
3371
  buyer: z.ZodObject<{
3121
3372
  kind: z.ZodEnum<{
3122
- individual: "individual";
3123
3373
  company: "company";
3374
+ individual: "individual";
3124
3375
  }>;
3125
3376
  contactName: z.ZodString;
3126
3377
  companyName: z.ZodOptional<z.ZodString>;
@@ -3152,16 +3403,16 @@ declare const InvoiceWaiveResponseSchema: z.ZodObject<{
3152
3403
  voidedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
3153
3404
  voidReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3154
3405
  billingReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3406
+ manual: "manual";
3407
+ purchase: "purchase";
3155
3408
  subscription_create: "subscription_create";
3156
3409
  subscription_cycle: "subscription_cycle";
3157
3410
  subscription_update: "subscription_update";
3158
- purchase: "purchase";
3159
- manual: "manual";
3160
3411
  }>>>;
3161
3412
  paymentStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3162
- unpaid: "unpaid";
3163
3413
  paid: "paid";
3164
3414
  uncollectible: "uncollectible";
3415
+ unpaid: "unpaid";
3165
3416
  waived: "waived";
3166
3417
  }>>>;
3167
3418
  periodStart: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
@@ -3181,11 +3432,11 @@ declare const InvoiceWaiveResponseSchema: z.ZodObject<{
3181
3432
  subscription: z.ZodNullable<z.ZodObject<{
3182
3433
  id: z.ZodUUID;
3183
3434
  status: z.ZodEnum<{
3184
- active: "active";
3185
- suspended: "suspended";
3186
- past_due: "past_due";
3435
+ active: "active";
3187
3436
  canceled: "canceled";
3188
3437
  expired: "expired";
3438
+ past_due: "past_due";
3439
+ suspended: "suspended";
3189
3440
  }>;
3190
3441
  planCode: z.ZodString;
3191
3442
  interval: z.ZodEnum<{
@@ -3224,22 +3475,26 @@ declare const InvoiceWaiveResponseSchema: z.ZodObject<{
3224
3475
  currency: z.ZodString;
3225
3476
  amountMinor: z.ZodNumber;
3226
3477
  expiresAt: z.ZodISODateTime;
3478
+ paymentMethod: z.ZodOptional<z.ZodEnum<{
3479
+ bank_transfer: "bank_transfer";
3480
+ card: "card";
3481
+ }>>;
3227
3482
  }, z.core.$strip>>;
3228
3483
  profile: z.ZodObject<{
3229
3484
  present: z.ZodBoolean;
3230
3485
  kind: z.ZodNullable<z.ZodEnum<{
3231
- individual: "individual";
3232
3486
  company: "company";
3487
+ individual: "individual";
3233
3488
  }>>;
3234
3489
  }, z.core.$strip>;
3235
3490
  subscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3236
3491
  id: z.ZodUUID;
3237
3492
  status: z.ZodEnum<{
3238
3493
  active: "active";
3239
- suspended: "suspended";
3240
- past_due: "past_due";
3241
3494
  canceled: "canceled";
3242
3495
  expired: "expired";
3496
+ past_due: "past_due";
3497
+ suspended: "suspended";
3243
3498
  }>;
3244
3499
  planCode: z.ZodString;
3245
3500
  interval: z.ZodEnum<{
@@ -3271,11 +3526,11 @@ declare const InvoiceWaiveResponseSchema: z.ZodObject<{
3271
3526
  id: z.ZodUUID;
3272
3527
  subscriptionId: z.ZodNullable<z.ZodUUID>;
3273
3528
  billingReason: z.ZodEnum<{
3529
+ manual: "manual";
3530
+ purchase: "purchase";
3274
3531
  subscription_create: "subscription_create";
3275
3532
  subscription_cycle: "subscription_cycle";
3276
3533
  subscription_update: "subscription_update";
3277
- purchase: "purchase";
3278
- manual: "manual";
3279
3534
  }>;
3280
3535
  totalMinor: z.ZodNumber;
3281
3536
  currency: z.ZodString;
@@ -3292,11 +3547,12 @@ declare const InvoiceWaiveResponseSchema: z.ZodObject<{
3292
3547
  includedUnits: z.ZodNullable<z.ZodNumber>;
3293
3548
  billable: z.ZodBoolean;
3294
3549
  standing: z.ZodEnum<{
3295
- ok: "ok";
3296
- low: "low";
3297
3550
  exhausted: "exhausted";
3551
+ low: "low";
3552
+ ok: "ok";
3298
3553
  }>;
3299
3554
  }, z.core.$strip>>>;
3555
+ bankTransferCode: z.ZodOptional<z.ZodString>;
3300
3556
  }, z.core.$strip>>;
3301
3557
  }, z.core.$strip>;
3302
3558
  type InvoiceWaiveResponse = z.infer<typeof InvoiceWaiveResponseSchema>;
@@ -3306,10 +3562,10 @@ declare const ChangeSubscriptionResponseSchema: z.ZodObject<{
3306
3562
  accountRef: z.ZodString;
3307
3563
  status: z.ZodEnum<{
3308
3564
  active: "active";
3309
- suspended: "suspended";
3310
- past_due: "past_due";
3311
3565
  canceled: "canceled";
3312
3566
  expired: "expired";
3567
+ past_due: "past_due";
3568
+ suspended: "suspended";
3313
3569
  }>;
3314
3570
  planCode: z.ZodString;
3315
3571
  priceId: z.ZodUUID;
@@ -3345,10 +3601,10 @@ declare const ChangeSubscriptionResponseSchema: z.ZodObject<{
3345
3601
  id: z.ZodUUID;
3346
3602
  status: z.ZodEnum<{
3347
3603
  active: "active";
3348
- suspended: "suspended";
3349
- past_due: "past_due";
3350
3604
  canceled: "canceled";
3351
3605
  expired: "expired";
3606
+ past_due: "past_due";
3607
+ suspended: "suspended";
3352
3608
  }>;
3353
3609
  planCode: z.ZodString;
3354
3610
  interval: z.ZodEnum<{
@@ -3387,22 +3643,26 @@ declare const ChangeSubscriptionResponseSchema: z.ZodObject<{
3387
3643
  currency: z.ZodString;
3388
3644
  amountMinor: z.ZodNumber;
3389
3645
  expiresAt: z.ZodISODateTime;
3646
+ paymentMethod: z.ZodOptional<z.ZodEnum<{
3647
+ bank_transfer: "bank_transfer";
3648
+ card: "card";
3649
+ }>>;
3390
3650
  }, z.core.$strip>>;
3391
3651
  profile: z.ZodObject<{
3392
3652
  present: z.ZodBoolean;
3393
3653
  kind: z.ZodNullable<z.ZodEnum<{
3394
- individual: "individual";
3395
3654
  company: "company";
3655
+ individual: "individual";
3396
3656
  }>>;
3397
3657
  }, z.core.$strip>;
3398
3658
  subscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3399
3659
  id: z.ZodUUID;
3400
3660
  status: z.ZodEnum<{
3401
3661
  active: "active";
3402
- suspended: "suspended";
3403
- past_due: "past_due";
3404
3662
  canceled: "canceled";
3405
3663
  expired: "expired";
3664
+ past_due: "past_due";
3665
+ suspended: "suspended";
3406
3666
  }>;
3407
3667
  planCode: z.ZodString;
3408
3668
  interval: z.ZodEnum<{
@@ -3434,11 +3694,11 @@ declare const ChangeSubscriptionResponseSchema: z.ZodObject<{
3434
3694
  id: z.ZodUUID;
3435
3695
  subscriptionId: z.ZodNullable<z.ZodUUID>;
3436
3696
  billingReason: z.ZodEnum<{
3697
+ manual: "manual";
3698
+ purchase: "purchase";
3437
3699
  subscription_create: "subscription_create";
3438
3700
  subscription_cycle: "subscription_cycle";
3439
3701
  subscription_update: "subscription_update";
3440
- purchase: "purchase";
3441
- manual: "manual";
3442
3702
  }>;
3443
3703
  totalMinor: z.ZodNumber;
3444
3704
  currency: z.ZodString;
@@ -3455,11 +3715,12 @@ declare const ChangeSubscriptionResponseSchema: z.ZodObject<{
3455
3715
  includedUnits: z.ZodNullable<z.ZodNumber>;
3456
3716
  billable: z.ZodBoolean;
3457
3717
  standing: z.ZodEnum<{
3458
- ok: "ok";
3459
- low: "low";
3460
3718
  exhausted: "exhausted";
3719
+ low: "low";
3720
+ ok: "ok";
3461
3721
  }>;
3462
3722
  }, z.core.$strip>>>;
3723
+ bankTransferCode: z.ZodOptional<z.ZodString>;
3463
3724
  }, z.core.$strip>>;
3464
3725
  }, z.core.$strip>;
3465
3726
  type ChangeSubscriptionResponse = z.infer<typeof ChangeSubscriptionResponseSchema>;
@@ -3469,10 +3730,10 @@ declare const UncancelSubscriptionResponseSchema: z.ZodObject<{
3469
3730
  accountRef: z.ZodString;
3470
3731
  status: z.ZodEnum<{
3471
3732
  active: "active";
3472
- suspended: "suspended";
3473
- past_due: "past_due";
3474
3733
  canceled: "canceled";
3475
3734
  expired: "expired";
3735
+ past_due: "past_due";
3736
+ suspended: "suspended";
3476
3737
  }>;
3477
3738
  planCode: z.ZodString;
3478
3739
  priceId: z.ZodUUID;
@@ -3508,10 +3769,10 @@ declare const UncancelSubscriptionResponseSchema: z.ZodObject<{
3508
3769
  id: z.ZodUUID;
3509
3770
  status: z.ZodEnum<{
3510
3771
  active: "active";
3511
- suspended: "suspended";
3512
- past_due: "past_due";
3513
3772
  canceled: "canceled";
3514
3773
  expired: "expired";
3774
+ past_due: "past_due";
3775
+ suspended: "suspended";
3515
3776
  }>;
3516
3777
  planCode: z.ZodString;
3517
3778
  interval: z.ZodEnum<{
@@ -3550,22 +3811,26 @@ declare const UncancelSubscriptionResponseSchema: z.ZodObject<{
3550
3811
  currency: z.ZodString;
3551
3812
  amountMinor: z.ZodNumber;
3552
3813
  expiresAt: z.ZodISODateTime;
3814
+ paymentMethod: z.ZodOptional<z.ZodEnum<{
3815
+ bank_transfer: "bank_transfer";
3816
+ card: "card";
3817
+ }>>;
3553
3818
  }, z.core.$strip>>;
3554
3819
  profile: z.ZodObject<{
3555
3820
  present: z.ZodBoolean;
3556
3821
  kind: z.ZodNullable<z.ZodEnum<{
3557
- individual: "individual";
3558
3822
  company: "company";
3823
+ individual: "individual";
3559
3824
  }>>;
3560
3825
  }, z.core.$strip>;
3561
3826
  subscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3562
3827
  id: z.ZodUUID;
3563
3828
  status: z.ZodEnum<{
3564
3829
  active: "active";
3565
- suspended: "suspended";
3566
- past_due: "past_due";
3567
3830
  canceled: "canceled";
3568
3831
  expired: "expired";
3832
+ past_due: "past_due";
3833
+ suspended: "suspended";
3569
3834
  }>;
3570
3835
  planCode: z.ZodString;
3571
3836
  interval: z.ZodEnum<{
@@ -3597,11 +3862,11 @@ declare const UncancelSubscriptionResponseSchema: z.ZodObject<{
3597
3862
  id: z.ZodUUID;
3598
3863
  subscriptionId: z.ZodNullable<z.ZodUUID>;
3599
3864
  billingReason: z.ZodEnum<{
3865
+ manual: "manual";
3866
+ purchase: "purchase";
3600
3867
  subscription_create: "subscription_create";
3601
3868
  subscription_cycle: "subscription_cycle";
3602
3869
  subscription_update: "subscription_update";
3603
- purchase: "purchase";
3604
- manual: "manual";
3605
3870
  }>;
3606
3871
  totalMinor: z.ZodNumber;
3607
3872
  currency: z.ZodString;
@@ -3618,11 +3883,12 @@ declare const UncancelSubscriptionResponseSchema: z.ZodObject<{
3618
3883
  includedUnits: z.ZodNullable<z.ZodNumber>;
3619
3884
  billable: z.ZodBoolean;
3620
3885
  standing: z.ZodEnum<{
3621
- ok: "ok";
3622
- low: "low";
3623
3886
  exhausted: "exhausted";
3887
+ low: "low";
3888
+ ok: "ok";
3624
3889
  }>;
3625
3890
  }, z.core.$strip>>>;
3891
+ bankTransferCode: z.ZodOptional<z.ZodString>;
3626
3892
  }, z.core.$strip>>;
3627
3893
  }, z.core.$strip>;
3628
3894
  type UncancelSubscriptionResponse = z.infer<typeof UncancelSubscriptionResponseSchema>;
@@ -3647,10 +3913,10 @@ declare const CreditGrantResponseSchema: z.ZodObject<{
3647
3913
  id: z.ZodUUID;
3648
3914
  status: z.ZodEnum<{
3649
3915
  active: "active";
3650
- suspended: "suspended";
3651
- past_due: "past_due";
3652
3916
  canceled: "canceled";
3653
3917
  expired: "expired";
3918
+ past_due: "past_due";
3919
+ suspended: "suspended";
3654
3920
  }>;
3655
3921
  planCode: z.ZodString;
3656
3922
  interval: z.ZodEnum<{
@@ -3689,22 +3955,26 @@ declare const CreditGrantResponseSchema: z.ZodObject<{
3689
3955
  currency: z.ZodString;
3690
3956
  amountMinor: z.ZodNumber;
3691
3957
  expiresAt: z.ZodISODateTime;
3958
+ paymentMethod: z.ZodOptional<z.ZodEnum<{
3959
+ bank_transfer: "bank_transfer";
3960
+ card: "card";
3961
+ }>>;
3692
3962
  }, z.core.$strip>>;
3693
3963
  profile: z.ZodObject<{
3694
3964
  present: z.ZodBoolean;
3695
3965
  kind: z.ZodNullable<z.ZodEnum<{
3696
- individual: "individual";
3697
3966
  company: "company";
3967
+ individual: "individual";
3698
3968
  }>>;
3699
3969
  }, z.core.$strip>;
3700
3970
  subscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3701
3971
  id: z.ZodUUID;
3702
3972
  status: z.ZodEnum<{
3703
3973
  active: "active";
3704
- suspended: "suspended";
3705
- past_due: "past_due";
3706
3974
  canceled: "canceled";
3707
3975
  expired: "expired";
3976
+ past_due: "past_due";
3977
+ suspended: "suspended";
3708
3978
  }>;
3709
3979
  planCode: z.ZodString;
3710
3980
  interval: z.ZodEnum<{
@@ -3736,11 +4006,11 @@ declare const CreditGrantResponseSchema: z.ZodObject<{
3736
4006
  id: z.ZodUUID;
3737
4007
  subscriptionId: z.ZodNullable<z.ZodUUID>;
3738
4008
  billingReason: z.ZodEnum<{
4009
+ manual: "manual";
4010
+ purchase: "purchase";
3739
4011
  subscription_create: "subscription_create";
3740
4012
  subscription_cycle: "subscription_cycle";
3741
4013
  subscription_update: "subscription_update";
3742
- purchase: "purchase";
3743
- manual: "manual";
3744
4014
  }>;
3745
4015
  totalMinor: z.ZodNumber;
3746
4016
  currency: z.ZodString;
@@ -3757,21 +4027,22 @@ declare const CreditGrantResponseSchema: z.ZodObject<{
3757
4027
  includedUnits: z.ZodNullable<z.ZodNumber>;
3758
4028
  billable: z.ZodBoolean;
3759
4029
  standing: z.ZodEnum<{
3760
- ok: "ok";
3761
- low: "low";
3762
4030
  exhausted: "exhausted";
4031
+ low: "low";
4032
+ ok: "ok";
3763
4033
  }>;
3764
4034
  }, z.core.$strip>>>;
4035
+ bankTransferCode: z.ZodOptional<z.ZodString>;
3765
4036
  }, z.core.$strip>>;
3766
4037
  entry: z.ZodObject<{
3767
4038
  id: z.ZodUUID;
3768
4039
  meter: z.ZodString;
3769
4040
  kind: z.ZodEnum<{
4041
+ adjustment: "adjustment";
3770
4042
  cycle_grant: "cycle_grant";
3771
- rollover: "rollover";
3772
- plan_change: "plan_change";
3773
4043
  manual_grant: "manual_grant";
3774
- adjustment: "adjustment";
4044
+ plan_change: "plan_change";
4045
+ rollover: "rollover";
3775
4046
  }>;
3776
4047
  units: z.ZodNumber;
3777
4048
  periodStart: z.ZodISODateTime;
@@ -3792,9 +4063,9 @@ declare const CreditGrantResponseSchema: z.ZodObject<{
3792
4063
  balance: z.ZodNumber;
3793
4064
  overageUnits: z.ZodNumber;
3794
4065
  standing: z.ZodEnum<{
3795
- ok: "ok";
3796
- low: "low";
3797
4066
  exhausted: "exhausted";
4067
+ low: "low";
4068
+ ok: "ok";
3798
4069
  }>;
3799
4070
  billable: z.ZodBoolean;
3800
4071
  amountDueMinor: z.ZodNullable<z.ZodNumber>;
@@ -3811,16 +4082,16 @@ type CreditGrantResponse = z.infer<typeof CreditGrantResponseSchema>;
3811
4082
  * (catalog `meters`, `meter_credit` benefits, `GET …/meters`, credits) and `overage` (metered
3812
4083
  * prices, meter charges). A steward lists a capability only once it implements it. Open set.
3813
4084
  */
3814
- declare const STEWARD_CAPABILITIES: readonly ["benefits", "events", "meters", "overage"];
4085
+ declare const STEWARD_CAPABILITIES: readonly ['benefits', 'events', 'meters', 'overage'];
3815
4086
  type StewardCapability = (typeof STEWARD_CAPABILITIES)[number];
3816
4087
  /** `GET /v1/me`: the key's product and scope (setup check). `capabilities` absent from older steward. */
3817
4088
  declare const MeResponseSchema: z.ZodObject<{
3818
4089
  product: z.ZodString;
3819
4090
  keyName: z.ZodString;
3820
4091
  scope: z.ZodEnum<{
3821
- product: "product";
3822
4092
  admin: "admin";
3823
4093
  checkout: "checkout";
4094
+ product: "product";
3824
4095
  }>;
3825
4096
  capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
3826
4097
  }, z.core.$strip>;
@@ -3878,12 +4149,14 @@ declare const ERROR_CODES: Readonly<{
3878
4149
  already_subscribed: ErrorCodeSpec;
3879
4150
  already_canceled: ErrorCodeSpec;
3880
4151
  /**
3881
- * LEGACY — no longer produced (billing core, M35: no plan rank). Steward before the billing core
4152
+ * @deprecated LEGACY — no longer produced (billing core, M35: no plan rank). Steward before the billing core
3882
4153
  * answered `PUT …/plan` `mode: "strict"` with it when a live subscription's plan outranked the
3883
4154
  * target. Kept so clients that handle it keep compiling.
3884
4155
  */
3885
4156
  subscription_plan_higher: ErrorCodeSpec;
3886
4157
  plan_not_sellable: ErrorCodeSpec;
4158
+ /** Checkout `replacesSubscriptionId` (bank transfer plan H16): not a live subscription of the account. */
4159
+ replaces_subscription_invalid: ErrorCodeSpec;
3887
4160
  /**
3888
4161
  * F4e: hesap silinmiş (anonimleştirilmiş). `/v1/accounts/:ref` altındaki her uç (tekrar
3889
4162
  * `DELETE` ve aynı ref'le `PUT` dahil) 410 döner; hesap geri açılmaz.
@@ -3891,13 +4164,26 @@ declare const ERROR_CODES: Readonly<{
3891
4164
  account_deleted: ErrorCodeSpec;
3892
4165
  /** `DELETE /v1/accounts/:ref`: canlı abonelik (dönem sonunda iptali planlı dahil) var; önce hemen iptal. */
3893
4166
  subscription_active: ErrorCodeSpec;
3894
- /** `DELETE /v1/accounts/:ref`: sağlayıcı formu açık checkout oturumu var; süresi dolup kapanınca tekrar dene. */
4167
+ /**
4168
+ * `DELETE /v1/accounts/:ref`: sağlayıcı formu açık ya da havale bekleyen (bank transfer plan H5) checkout
4169
+ * oturumu var; kapanınca (süre dolumu, ödeme kaydı) tekrar dene.
4170
+ */
3895
4171
  checkout_in_progress: ErrorCodeSpec;
3896
4172
  /** `successUrl`, `cancelUrl` or portal `returnUrl` is not in the product's allowed origins: product misconfiguration. */
3897
4173
  return_url_not_allowed: ErrorCodeSpec;
3898
4174
  /** Bu deployment'ta sağlayıcı yapılandırılmamış (503 ama beklemekle düzelmez). */
3899
4175
  provider_not_configured: ErrorCodeSpec;
3900
4176
  provider_error: ErrorCodeSpec;
4177
+ /** Not an order code, or its check symbol does not match (a typo in the transfer description). */
4178
+ bank_transfer_code_invalid: ErrorCodeSpec;
4179
+ /** No account of the product has this order code. */
4180
+ bank_transfer_code_not_found: ErrorCodeSpec;
4181
+ /** This bank reference is already recorded. */
4182
+ bank_transfer_duplicate: ErrorCodeSpec;
4183
+ /** Nothing of the account waits for exactly this amount, or several items do (name one), or the named checkout is not one. */
4184
+ bank_transfer_unmatched: ErrorCodeSpec;
4185
+ /** The checkout expired (only `acceptExpired` settles it), is closed or cannot be completed: refund the transfer. */
4186
+ bank_transfer_rejected: ErrorCodeSpec;
3901
4187
  already_issued: ErrorCodeSpec;
3902
4188
  number_taken: ErrorCodeSpec;
3903
4189
  invalid_document: ErrorCodeSpec;
@@ -3939,14 +4225,21 @@ declare const ERROR_CODES: Readonly<{
3939
4225
  internal_error: ErrorCodeSpec;
3940
4226
  /** `/health`: veritabanına ulaşılamıyor. */
3941
4227
  database_unavailable: ErrorCodeSpec;
3942
- /** F2c (K26): anahtar prefix'i başına bütçe aşıldı; `Retry-After` başlığı taşır. */
4228
+ /**
4229
+ * Bugün yalnızca hosted sayfalar üretir (yanlış sayfa anahtarı / aksiyon sınırı; `hosted/routes.ts`,
4230
+ * `hosted/portal-routes.ts`); `Retry-After` başlığı taşır. `/v1` için anahtar başına bütçe (F2c, K26)
4231
+ * ertelendi — geldiğinde aynı kod kullanılır.
4232
+ */
3943
4233
  rate_limited: ErrorCodeSpec;
3944
4234
  unknown_provider: ErrorCodeSpec;
3945
4235
  bad_signature: ErrorCodeSpec;
3946
4236
  invalid_payload: ErrorCodeSpec;
3947
4237
  stale_event: ErrorCodeSpec;
3948
4238
  not_configured: ErrorCodeSpec;
3949
- /** Yalnızca sahte sağlayıcı (yerel/test). */
4239
+ /**
4240
+ * @deprecated Üretilmiyor: sağlayıcı abonelik yolu silindi (M30) ve sahte sağlayıcı da bu kodu
4241
+ * döndürmüyor. Eski istemciler derlensin diye duruyor; bir sonraki minor sürümde kaldırılacak.
4242
+ */
3950
4243
  unknown_subscription: ErrorCodeSpec;
3951
4244
  }>;
3952
4245
  type ErrorCode = keyof typeof ERROR_CODES;
@@ -3956,7 +4249,7 @@ declare function errorCodeSpec(code: string): ErrorCodeSpec | null;
3956
4249
  //#endregion
3957
4250
  //#region ../contract/src/rules.d.ts
3958
4251
  /** Live subscription statuses. An account may hold several live subscriptions (billing core, M34). */
3959
- declare const LIVE_SUBSCRIPTION_STATUSES: readonly ["active", "past_due", "suspended"];
4252
+ declare const LIVE_SUBSCRIPTION_STATUSES: readonly ['active', 'past_due', 'suspended'];
3960
4253
  declare function isLiveSubscriptionStatus(status: SubscriptionStatus): boolean;
3961
4254
  type Instant = string | Date;
3962
4255
  /** Catalog benefit definition as the rule reads it (catalog input and `GET /v1/catalog` both fit). */
@@ -4040,7 +4333,7 @@ type ResolvedBenefit = {
4040
4333
  /** `plan:<code>`, `grant:<id>` or `override`. */
4041
4334
  source: string;
4042
4335
  };
4043
- type ResolvedEntitlements = Pick<EntitlementSnapshot, "planCode" | "accessState" | "entitlements">;
4336
+ type ResolvedEntitlements = Pick<EntitlementSnapshot, 'planCode' | 'accessState' | 'entitlements'>;
4044
4337
  type ResolvedBenefits = ResolvedEntitlements & {
4045
4338
  /** Granted benefits in layer order; the `override` benefit (if any) is last. */
4046
4339
  benefits: ResolvedBenefit[];
@@ -4109,17 +4402,17 @@ declare const EventsIngestInputSchema: z.ZodObject<{
4109
4402
  }, z.core.$strip>;
4110
4403
  type EventsIngestInput = z.infer<typeof EventsIngestInputSchema>;
4111
4404
  /** Per-event rejection codes this version knows (M12). The result schema accepts others too. */
4112
- declare const INGEST_REJECT_CODES: readonly ["account_not_found", "account_deleted", "timestamp_out_of_range"];
4405
+ declare const INGEST_REJECT_CODES: readonly ['account_not_found', 'account_deleted', 'timestamp_out_of_range'];
4113
4406
  declare const IngestRejectCodeSchema: z.ZodEnum<{
4114
- account_not_found: "account_not_found";
4115
4407
  account_deleted: "account_deleted";
4408
+ account_not_found: "account_not_found";
4116
4409
  timestamp_out_of_range: "timestamp_out_of_range";
4117
4410
  }>;
4118
4411
  type IngestRejectCode = z.infer<typeof IngestRejectCodeSchema>;
4119
4412
  declare const IngestRejectionSchema: z.ZodObject<{
4120
4413
  index: z.ZodNumber;
4121
4414
  externalId: z.ZodString;
4122
- code: z.ZodType<"account_not_found" | "account_deleted" | "timestamp_out_of_range" | (string & Record<never, never>), string, z.core.$ZodTypeInternals<"account_not_found" | "account_deleted" | "timestamp_out_of_range" | (string & Record<never, never>), string>>;
4415
+ code: z.ZodType<"account_deleted" | "account_not_found" | "timestamp_out_of_range" | (string & Record<never, never>), string, z.core.$ZodTypeInternals<"account_deleted" | "account_not_found" | "timestamp_out_of_range" | (string & Record<never, never>), string>>;
4123
4416
  }, z.core.$strip>;
4124
4417
  type IngestRejection = z.infer<typeof IngestRejectionSchema>;
4125
4418
  /**
@@ -4132,7 +4425,7 @@ declare const EventsIngestResultSchema: z.ZodObject<{
4132
4425
  rejected: z.ZodArray<z.ZodObject<{
4133
4426
  index: z.ZodNumber;
4134
4427
  externalId: z.ZodString;
4135
- code: z.ZodType<"account_not_found" | "account_deleted" | "timestamp_out_of_range" | (string & Record<never, never>), string, z.core.$ZodTypeInternals<"account_not_found" | "account_deleted" | "timestamp_out_of_range" | (string & Record<never, never>), string>>;
4428
+ code: z.ZodType<"account_deleted" | "account_not_found" | "timestamp_out_of_range" | (string & Record<never, never>), string, z.core.$ZodTypeInternals<"account_deleted" | "account_not_found" | "timestamp_out_of_range" | (string & Record<never, never>), string>>;
4136
4429
  }, z.core.$strip>>;
4137
4430
  }, z.core.$strip>;
4138
4431
  type EventsIngestResult = z.infer<typeof EventsIngestResultSchema>;
@@ -4170,15 +4463,15 @@ declare function matchesFilter(event: MeterRulesEvent, filter: MeterFilter): boo
4170
4463
  * non-negative number — a numeric string does not count. The event adds nothing to that meter.
4171
4464
  */
4172
4465
  type MeterContribution = {
4173
- kind: "count";
4466
+ kind: 'count';
4174
4467
  } | {
4175
- kind: "sum" | "max";
4468
+ kind: 'sum' | 'max';
4176
4469
  micro: bigint;
4177
4470
  } | {
4178
- kind: "unique";
4471
+ kind: 'unique';
4179
4472
  value: string;
4180
4473
  } | {
4181
- kind: "invalid_value";
4474
+ kind: 'invalid_value';
4182
4475
  };
4183
4476
  declare function contributionOf(event: MeterRulesEvent, aggregation: MeterAggregation): MeterContribution;
4184
4477
  /**
@@ -4334,7 +4627,7 @@ declare function meterChargeTotals(lines: readonly MeterChargeTotalsLine[], term
4334
4627
  };
4335
4628
  //#endregion
4336
4629
  //#region ../contract/src/plan.d.ts
4337
- declare const PLAN_SET_MODES: readonly ["ensure", "strict"];
4630
+ declare const PLAN_SET_MODES: readonly ['ensure', 'strict'];
4338
4631
  declare const PlanSetModeSchema: z.ZodEnum<{
4339
4632
  ensure: "ensure";
4340
4633
  strict: "strict";
@@ -4352,7 +4645,7 @@ declare const PlanSetInputSchema: z.ZodObject<{
4352
4645
  }, z.core.$strip>;
4353
4646
  type PlanSetInput = z.input<typeof PlanSetInputSchema>;
4354
4647
  /** `warnings[].code` — open set. None is produced since the billing core; `subscription_plan_higher` is legacy. */
4355
- type PlanSetWarningCode = "subscription_plan_higher" | (string & Record<never, never>);
4648
+ type PlanSetWarningCode = 'subscription_plan_higher' | (string & Record<never, never>);
4356
4649
  declare const PlanSetWarningSchema: z.ZodObject<{
4357
4650
  code: z.ZodString;
4358
4651
  message: z.ZodString;
@@ -4389,10 +4682,10 @@ declare const PlanSetResponseSchema: z.ZodObject<{
4389
4682
  id: z.ZodUUID;
4390
4683
  status: z.ZodEnum<{
4391
4684
  active: "active";
4392
- suspended: "suspended";
4393
- past_due: "past_due";
4394
4685
  canceled: "canceled";
4395
4686
  expired: "expired";
4687
+ past_due: "past_due";
4688
+ suspended: "suspended";
4396
4689
  }>;
4397
4690
  planCode: z.ZodString;
4398
4691
  interval: z.ZodEnum<{
@@ -4431,22 +4724,26 @@ declare const PlanSetResponseSchema: z.ZodObject<{
4431
4724
  currency: z.ZodString;
4432
4725
  amountMinor: z.ZodNumber;
4433
4726
  expiresAt: z.ZodISODateTime;
4727
+ paymentMethod: z.ZodOptional<z.ZodEnum<{
4728
+ bank_transfer: "bank_transfer";
4729
+ card: "card";
4730
+ }>>;
4434
4731
  }, z.core.$strip>>;
4435
4732
  profile: z.ZodObject<{
4436
4733
  present: z.ZodBoolean;
4437
4734
  kind: z.ZodNullable<z.ZodEnum<{
4438
- individual: "individual";
4439
4735
  company: "company";
4736
+ individual: "individual";
4440
4737
  }>>;
4441
4738
  }, z.core.$strip>;
4442
4739
  subscriptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4443
4740
  id: z.ZodUUID;
4444
4741
  status: z.ZodEnum<{
4445
4742
  active: "active";
4446
- suspended: "suspended";
4447
- past_due: "past_due";
4448
4743
  canceled: "canceled";
4449
4744
  expired: "expired";
4745
+ past_due: "past_due";
4746
+ suspended: "suspended";
4450
4747
  }>;
4451
4748
  planCode: z.ZodString;
4452
4749
  interval: z.ZodEnum<{
@@ -4478,11 +4775,11 @@ declare const PlanSetResponseSchema: z.ZodObject<{
4478
4775
  id: z.ZodUUID;
4479
4776
  subscriptionId: z.ZodNullable<z.ZodUUID>;
4480
4777
  billingReason: z.ZodEnum<{
4778
+ manual: "manual";
4779
+ purchase: "purchase";
4481
4780
  subscription_create: "subscription_create";
4482
4781
  subscription_cycle: "subscription_cycle";
4483
4782
  subscription_update: "subscription_update";
4484
- purchase: "purchase";
4485
- manual: "manual";
4486
4783
  }>;
4487
4784
  totalMinor: z.ZodNumber;
4488
4785
  currency: z.ZodString;
@@ -4499,11 +4796,12 @@ declare const PlanSetResponseSchema: z.ZodObject<{
4499
4796
  includedUnits: z.ZodNullable<z.ZodNumber>;
4500
4797
  billable: z.ZodBoolean;
4501
4798
  standing: z.ZodEnum<{
4502
- ok: "ok";
4503
- low: "low";
4504
4799
  exhausted: "exhausted";
4800
+ low: "low";
4801
+ ok: "ok";
4505
4802
  }>;
4506
4803
  }, z.core.$strip>>>;
4804
+ bankTransferCode: z.ZodOptional<z.ZodString>;
4507
4805
  }, z.core.$strip>;
4508
4806
  warnings: z.ZodArray<z.ZodObject<{
4509
4807
  code: z.ZodString;
@@ -4518,18 +4816,19 @@ declare const ResyncResultSchema: z.ZodObject<{
4518
4816
  type ResyncResult = z.infer<typeof ResyncResultSchema>;
4519
4817
  //#endregion
4520
4818
  //#region ../contract/src/emails.d.ts
4521
- declare const EMAIL_TEMPLATES: readonly ["subscription_started", "payment_receipt", "payment_failed", "cancel_scheduled", "subscription_ended", "access_suspended", "subscription_terminated", "invoice_issued", "invoice_payment_due", "price_change_notice"];
4819
+ declare const EMAIL_TEMPLATES: readonly ['subscription_started', 'payment_receipt', 'payment_failed', 'cancel_scheduled', 'subscription_ended', 'access_suspended', 'subscription_terminated', 'invoice_issued', 'invoice_payment_due', 'price_change_notice', 'bank_transfer_instructions'];
4522
4820
  declare const EmailTemplateSchema: z.ZodEnum<{
4523
- subscription_started: "subscription_started";
4524
- payment_receipt: "payment_receipt";
4525
- payment_failed: "payment_failed";
4526
- cancel_scheduled: "cancel_scheduled";
4527
- subscription_ended: "subscription_ended";
4528
4821
  access_suspended: "access_suspended";
4529
- subscription_terminated: "subscription_terminated";
4822
+ bank_transfer_instructions: "bank_transfer_instructions";
4823
+ cancel_scheduled: "cancel_scheduled";
4530
4824
  invoice_issued: "invoice_issued";
4531
4825
  invoice_payment_due: "invoice_payment_due";
4826
+ payment_failed: "payment_failed";
4827
+ payment_receipt: "payment_receipt";
4532
4828
  price_change_notice: "price_change_notice";
4829
+ subscription_ended: "subscription_ended";
4830
+ subscription_started: "subscription_started";
4831
+ subscription_terminated: "subscription_terminated";
4533
4832
  }>;
4534
4833
  type EmailTemplate = z.infer<typeof EmailTemplateSchema>;
4535
4834
  /** `invoice_payment_due`: summary of an unpaid invoice, its due date and the hosted pay page link. */
@@ -4537,11 +4836,11 @@ declare const InvoicePaymentDueEmailSchema: z.ZodObject<{
4537
4836
  invoiceId: z.ZodUUID;
4538
4837
  number: z.ZodNullable<z.ZodString>;
4539
4838
  billingReason: z.ZodEnum<{
4839
+ manual: "manual";
4840
+ purchase: "purchase";
4540
4841
  subscription_create: "subscription_create";
4541
4842
  subscription_cycle: "subscription_cycle";
4542
4843
  subscription_update: "subscription_update";
4543
- purchase: "purchase";
4544
- manual: "manual";
4545
4844
  }>;
4546
4845
  planName: z.ZodNullable<z.ZodString>;
4547
4846
  totalMinor: z.ZodNumber;
@@ -4630,17 +4929,47 @@ declare const PriceChangeNoticeEmailSchema: z.ZodObject<{
4630
4929
  }, z.core.$strip>>>;
4631
4930
  }, z.core.$strip>;
4632
4931
  type PriceChangeNoticeEmail = z.infer<typeof PriceChangeNoticeEmailSchema>;
4932
+ /**
4933
+ * `bank_transfer_instructions` (bank transfer plan H12): how to pay a checkout by bank transfer —
4934
+ * the deployment's bank account for the currency, the exact amount, the account's order code to
4935
+ * write in the description and the deadline. `reminder`: sent the day before the deadline.
4936
+ */
4937
+ declare const BankTransferInstructionsEmailSchema: z.ZodObject<{
4938
+ checkoutSessionId: z.ZodUUID;
4939
+ planName: z.ZodString;
4940
+ totalMinor: z.ZodNumber;
4941
+ currency: z.ZodString;
4942
+ beneficiary: z.ZodString;
4943
+ bank: z.ZodNullable<z.ZodString>;
4944
+ iban: z.ZodString;
4945
+ code: z.ZodString;
4946
+ deadline: z.ZodISODateTime;
4947
+ reminder: z.ZodBoolean;
4948
+ }, z.core.$strip>;
4949
+ type BankTransferInstructionsEmail = z.infer<typeof BankTransferInstructionsEmailSchema>;
4633
4950
  /** Payload schema per billing core template. */
4634
4951
  declare const EMAIL_PAYLOAD_SCHEMAS: Readonly<{
4952
+ readonly bank_transfer_instructions: z.ZodObject<{
4953
+ checkoutSessionId: z.ZodUUID;
4954
+ planName: z.ZodString;
4955
+ totalMinor: z.ZodNumber;
4956
+ currency: z.ZodString;
4957
+ beneficiary: z.ZodString;
4958
+ bank: z.ZodNullable<z.ZodString>;
4959
+ iban: z.ZodString;
4960
+ code: z.ZodString;
4961
+ deadline: z.ZodISODateTime;
4962
+ reminder: z.ZodBoolean;
4963
+ }, z.core.$strip>;
4635
4964
  readonly invoice_payment_due: z.ZodObject<{
4636
4965
  invoiceId: z.ZodUUID;
4637
4966
  number: z.ZodNullable<z.ZodString>;
4638
4967
  billingReason: z.ZodEnum<{
4968
+ manual: "manual";
4969
+ purchase: "purchase";
4639
4970
  subscription_create: "subscription_create";
4640
4971
  subscription_cycle: "subscription_cycle";
4641
4972
  subscription_update: "subscription_update";
4642
- purchase: "purchase";
4643
- manual: "manual";
4644
4973
  }>;
4645
4974
  planName: z.ZodNullable<z.ZodString>;
4646
4975
  totalMinor: z.ZodNumber;
@@ -4694,7 +5023,7 @@ declare const EMAIL_PAYLOAD_SCHEMAS: Readonly<{
4694
5023
  */
4695
5024
  declare const EMAIL_TEMPLATE_BY_EVENT: Readonly<Partial<Record<EventType, EmailTemplate>>>;
4696
5025
  declare function emailTemplateOf(type: string): EmailTemplate | null;
4697
- declare const EMAIL_LOCALES: readonly ["tr", "en"];
5026
+ declare const EMAIL_LOCALES: readonly ['tr', 'en'];
4698
5027
  type EmailLocale = (typeof EMAIL_LOCALES)[number];
4699
5028
  /** Upper bound of product-provided recipients per account. */
4700
5029
  declare const MAX_NOTIFICATION_EMAILS = 10;
@@ -4721,7 +5050,7 @@ declare const EmailSenderSchema: z.ZodObject<{
4721
5050
  address: z.ZodOptional<z.ZodEmail>;
4722
5051
  }, z.core.$strip>;
4723
5052
  /** Placeholders a billing path may use. */
4724
- declare const BILLING_PATH_PLACEHOLDERS: readonly ["{LOCALE}", "{ACCOUNT_REF}"];
5053
+ declare const BILLING_PATH_PLACEHOLDERS: readonly ['{LOCALE}', '{ACCOUNT_REF}'];
4725
5054
  declare const BillingPathSchema: z.ZodString;
4726
5055
  declare const EmailSettingsSchema: z.ZodObject<{
4727
5056
  from: z.ZodOptional<z.ZodObject<{
@@ -4731,70 +5060,77 @@ declare const EmailSettingsSchema: z.ZodObject<{
4731
5060
  replyTo: z.ZodOptional<z.ZodEmail>;
4732
5061
  billingPath: z.ZodOptional<z.ZodString>;
4733
5062
  templates: z.ZodDefault<z.ZodObject<{
4734
- subscription_started: z.ZodOptional<z.ZodObject<{
5063
+ access_suspended: z.ZodOptional<z.ZodObject<{
4735
5064
  enabled: z.ZodDefault<z.ZodBoolean>;
4736
5065
  extraText: z.ZodOptional<z.ZodObject<{
4737
5066
  tr: z.ZodOptional<z.ZodString>;
4738
5067
  en: z.ZodOptional<z.ZodString>;
4739
5068
  }, z.core.$strip>>;
4740
5069
  }, z.core.$strip>>;
4741
- payment_receipt: z.ZodOptional<z.ZodObject<{
5070
+ bank_transfer_instructions: z.ZodOptional<z.ZodObject<{
4742
5071
  enabled: z.ZodDefault<z.ZodBoolean>;
4743
5072
  extraText: z.ZodOptional<z.ZodObject<{
4744
5073
  tr: z.ZodOptional<z.ZodString>;
4745
5074
  en: z.ZodOptional<z.ZodString>;
4746
5075
  }, z.core.$strip>>;
4747
5076
  }, z.core.$strip>>;
4748
- payment_failed: z.ZodOptional<z.ZodObject<{
5077
+ cancel_scheduled: z.ZodOptional<z.ZodObject<{
4749
5078
  enabled: z.ZodDefault<z.ZodBoolean>;
4750
5079
  extraText: z.ZodOptional<z.ZodObject<{
4751
5080
  tr: z.ZodOptional<z.ZodString>;
4752
5081
  en: z.ZodOptional<z.ZodString>;
4753
5082
  }, z.core.$strip>>;
4754
5083
  }, z.core.$strip>>;
4755
- cancel_scheduled: z.ZodOptional<z.ZodObject<{
5084
+ invoice_issued: z.ZodOptional<z.ZodObject<{
4756
5085
  enabled: z.ZodDefault<z.ZodBoolean>;
4757
5086
  extraText: z.ZodOptional<z.ZodObject<{
4758
5087
  tr: z.ZodOptional<z.ZodString>;
4759
5088
  en: z.ZodOptional<z.ZodString>;
4760
5089
  }, z.core.$strip>>;
4761
5090
  }, z.core.$strip>>;
4762
- subscription_ended: z.ZodOptional<z.ZodObject<{
5091
+ invoice_payment_due: z.ZodOptional<z.ZodObject<{
4763
5092
  enabled: z.ZodDefault<z.ZodBoolean>;
4764
5093
  extraText: z.ZodOptional<z.ZodObject<{
4765
5094
  tr: z.ZodOptional<z.ZodString>;
4766
5095
  en: z.ZodOptional<z.ZodString>;
4767
5096
  }, z.core.$strip>>;
4768
5097
  }, z.core.$strip>>;
4769
- access_suspended: z.ZodOptional<z.ZodObject<{
5098
+ payment_failed: z.ZodOptional<z.ZodObject<{
4770
5099
  enabled: z.ZodDefault<z.ZodBoolean>;
4771
5100
  extraText: z.ZodOptional<z.ZodObject<{
4772
5101
  tr: z.ZodOptional<z.ZodString>;
4773
5102
  en: z.ZodOptional<z.ZodString>;
4774
5103
  }, z.core.$strip>>;
4775
5104
  }, z.core.$strip>>;
4776
- subscription_terminated: z.ZodOptional<z.ZodObject<{
5105
+ payment_receipt: z.ZodOptional<z.ZodObject<{
4777
5106
  enabled: z.ZodDefault<z.ZodBoolean>;
4778
5107
  extraText: z.ZodOptional<z.ZodObject<{
4779
5108
  tr: z.ZodOptional<z.ZodString>;
4780
5109
  en: z.ZodOptional<z.ZodString>;
4781
5110
  }, z.core.$strip>>;
4782
5111
  }, z.core.$strip>>;
4783
- invoice_issued: z.ZodOptional<z.ZodObject<{
5112
+ price_change_notice: z.ZodOptional<z.ZodObject<{
4784
5113
  enabled: z.ZodDefault<z.ZodBoolean>;
4785
5114
  extraText: z.ZodOptional<z.ZodObject<{
4786
5115
  tr: z.ZodOptional<z.ZodString>;
4787
5116
  en: z.ZodOptional<z.ZodString>;
4788
5117
  }, z.core.$strip>>;
4789
5118
  }, z.core.$strip>>;
4790
- invoice_payment_due: z.ZodOptional<z.ZodObject<{
5119
+ subscription_ended: z.ZodOptional<z.ZodObject<{
4791
5120
  enabled: z.ZodDefault<z.ZodBoolean>;
4792
5121
  extraText: z.ZodOptional<z.ZodObject<{
4793
5122
  tr: z.ZodOptional<z.ZodString>;
4794
5123
  en: z.ZodOptional<z.ZodString>;
4795
5124
  }, z.core.$strip>>;
4796
5125
  }, z.core.$strip>>;
4797
- price_change_notice: z.ZodOptional<z.ZodObject<{
5126
+ subscription_started: z.ZodOptional<z.ZodObject<{
5127
+ enabled: z.ZodDefault<z.ZodBoolean>;
5128
+ extraText: z.ZodOptional<z.ZodObject<{
5129
+ tr: z.ZodOptional<z.ZodString>;
5130
+ en: z.ZodOptional<z.ZodString>;
5131
+ }, z.core.$strip>>;
5132
+ }, z.core.$strip>>;
5133
+ subscription_terminated: z.ZodOptional<z.ZodObject<{
4798
5134
  enabled: z.ZodDefault<z.ZodBoolean>;
4799
5135
  extraText: z.ZodOptional<z.ZodObject<{
4800
5136
  tr: z.ZodOptional<z.ZodString>;
@@ -4812,43 +5148,47 @@ declare const EmailSettingsPatchSchema: z.ZodObject<{
4812
5148
  replyTo: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
4813
5149
  billingPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4814
5150
  templates: z.ZodOptional<z.ZodObject<{
4815
- subscription_started: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5151
+ access_suspended: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4816
5152
  enabled: z.ZodOptional<z.ZodBoolean>;
4817
5153
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
4818
5154
  }, z.core.$strict>>>;
4819
- payment_receipt: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5155
+ bank_transfer_instructions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4820
5156
  enabled: z.ZodOptional<z.ZodBoolean>;
4821
5157
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
4822
5158
  }, z.core.$strict>>>;
4823
- payment_failed: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5159
+ cancel_scheduled: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4824
5160
  enabled: z.ZodOptional<z.ZodBoolean>;
4825
5161
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
4826
5162
  }, z.core.$strict>>>;
4827
- cancel_scheduled: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5163
+ invoice_issued: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4828
5164
  enabled: z.ZodOptional<z.ZodBoolean>;
4829
5165
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
4830
5166
  }, z.core.$strict>>>;
4831
- subscription_ended: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5167
+ invoice_payment_due: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4832
5168
  enabled: z.ZodOptional<z.ZodBoolean>;
4833
5169
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
4834
5170
  }, z.core.$strict>>>;
4835
- access_suspended: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5171
+ payment_failed: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4836
5172
  enabled: z.ZodOptional<z.ZodBoolean>;
4837
5173
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
4838
5174
  }, z.core.$strict>>>;
4839
- subscription_terminated: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5175
+ payment_receipt: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4840
5176
  enabled: z.ZodOptional<z.ZodBoolean>;
4841
5177
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
4842
5178
  }, z.core.$strict>>>;
4843
- invoice_issued: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5179
+ price_change_notice: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4844
5180
  enabled: z.ZodOptional<z.ZodBoolean>;
4845
5181
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
4846
5182
  }, z.core.$strict>>>;
4847
- invoice_payment_due: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5183
+ subscription_ended: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4848
5184
  enabled: z.ZodOptional<z.ZodBoolean>;
4849
5185
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
4850
5186
  }, z.core.$strict>>>;
4851
- price_change_notice: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5187
+ subscription_started: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5188
+ enabled: z.ZodOptional<z.ZodBoolean>;
5189
+ extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
5190
+ }, z.core.$strict>>>;
5191
+ subscription_terminated: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4852
5192
  enabled: z.ZodOptional<z.ZodBoolean>;
4853
5193
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
4854
5194
  }, z.core.$strict>>>;
@@ -4872,6 +5212,8 @@ type EmailRelevanceFacts = {
4872
5212
  invoiceStatus?: string | null;
4873
5213
  /** Current payment status of the invoice (`invoice_payment_due`). */
4874
5214
  invoicePaymentStatus?: string | null;
5215
+ /** The checkout session still waits for a bank transfer (`bank_transfer_instructions`). */
5216
+ transferPending?: boolean;
4875
5217
  };
4876
5218
  /**
4877
5219
  * The event's subscription among the account's live subscriptions at send time, or null when it
@@ -4879,7 +5221,7 @@ type EmailRelevanceFacts = {
4879
5221
  * only the primary one); a state without that list (older steward) has only the primary
4880
5222
  * `subscription`.
4881
5223
  */
4882
- declare function liveSubscriptionOf(state: AccountState, subscriptionId: string | null): AccountState["subscription"];
5224
+ declare function liveSubscriptionOf(state: AccountState, subscriptionId: string | null): AccountState['subscription'];
4883
5225
  /**
4884
5226
  * Whether the email still describes the account at send time. Receipts, the welcome email
4885
5227
  * (legal confirmation) and the final termination notice always go; the others only while
@@ -4893,10 +5235,10 @@ declare function isEmailRelevant(template: EmailTemplate, facts: EmailRelevanceF
4893
5235
  declare const WebUrlSchema: z.ZodURL;
4894
5236
  /** http(s) adresinin origin'i (ör. `https://app.example.com`). */
4895
5237
  declare const ReturnOriginSchema: z.ZodPipe<z.ZodURL, z.ZodTransform<string, string>>;
4896
- declare const SETTINGS_LOCALES: readonly ["tr", "en"];
5238
+ declare const SETTINGS_LOCALES: readonly ['tr', 'en'];
4897
5239
  declare const SettingsLocaleSchema: z.ZodEnum<{
4898
- tr: "tr";
4899
5240
  en: "en";
5241
+ tr: "tr";
4900
5242
  }>;
4901
5243
  type SettingsLocale = z.infer<typeof SettingsLocaleSchema>;
4902
5244
  declare const TtlMinutesSchema: z.ZodNumber;
@@ -4911,26 +5253,46 @@ declare const BrandingSchema: z.ZodObject<{
4911
5253
  type Branding = z.infer<typeof BrandingSchema>;
4912
5254
  declare const DEFAULT_PAYMENT_DUE_DAYS = 7;
4913
5255
  declare const DEFAULT_MIN_INVOICE_MINOR = 1000;
5256
+ declare const DEFAULT_BANK_TRANSFER_PAYMENT_DAYS = 5;
4914
5257
  declare const PaymentDueDaysSchema: z.ZodNumber;
5258
+ declare const BankTransferPaymentDaysSchema: z.ZodNumber;
5259
+ declare const BankTransferSettingsSchema: z.ZodObject<{
5260
+ enabled: z.ZodDefault<z.ZodBoolean>;
5261
+ paymentDays: z.ZodDefault<z.ZodNumber>;
5262
+ }, z.core.$strip>;
5263
+ type BankTransferSettings = z.output<typeof BankTransferSettingsSchema>;
4915
5264
  declare const BillingSettingsSchema: z.ZodObject<{
4916
5265
  paymentDueDays: z.ZodDefault<z.ZodNumber>;
4917
5266
  minInvoiceMinor: z.ZodDefault<z.ZodNumber>;
4918
5267
  allowMultipleSubscriptions: z.ZodDefault<z.ZodBoolean>;
5268
+ bankTransfer: z.ZodDefault<z.ZodObject<{
5269
+ enabled: z.ZodDefault<z.ZodBoolean>;
5270
+ paymentDays: z.ZodDefault<z.ZodNumber>;
5271
+ }, z.core.$strip>>;
4919
5272
  }, z.core.$strip>;
4920
5273
  type BillingSettings = z.output<typeof BillingSettingsSchema>;
5274
+ /** Patch of `settings.billing.bankTransfer`: an omitted field is unchanged, `null` restores its default. */
5275
+ declare const BankTransferSettingsPatchSchema: z.ZodObject<{
5276
+ enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5277
+ paymentDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5278
+ }, z.core.$strict>;
4921
5279
  /** Patch of `settings.billing`: an omitted field is unchanged, `null` restores its default. */
4922
5280
  declare const BillingSettingsPatchSchema: z.ZodObject<{
4923
5281
  paymentDueDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4924
5282
  minInvoiceMinor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4925
5283
  allowMultipleSubscriptions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5284
+ bankTransfer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5285
+ enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5286
+ paymentDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5287
+ }, z.core.$strict>>>;
4926
5288
  }, z.core.$strict>;
4927
5289
  declare const DEFAULT_EVENT_RETENTION_DAYS = 120;
4928
5290
  declare const DEFAULT_LATE_GRACE_MINUTES = 60;
4929
- declare const METER_CHARGE_MODES: readonly ["off", "dry_run", "live"];
5291
+ declare const METER_CHARGE_MODES: readonly ['off', 'dry_run', 'live'];
4930
5292
  declare const MeterChargeModeSchema: z.ZodEnum<{
4931
- off: "off";
4932
5293
  dry_run: "dry_run";
4933
5294
  live: "live";
5295
+ off: "off";
4934
5296
  }>;
4935
5297
  type MeterChargeMode = z.infer<typeof MeterChargeModeSchema>;
4936
5298
  declare const DEFAULT_METER_CHARGE_MODE: MeterChargeMode;
@@ -4943,9 +5305,9 @@ type EventsSettings = z.output<typeof EventsSettingsSchema>;
4943
5305
  declare const MeteringSettingsSchema: z.ZodObject<{
4944
5306
  lateGraceMinutes: z.ZodDefault<z.ZodNumber>;
4945
5307
  chargeMode: z.ZodDefault<z.ZodEnum<{
4946
- off: "off";
4947
5308
  dry_run: "dry_run";
4948
5309
  live: "live";
5310
+ off: "off";
4949
5311
  }>>;
4950
5312
  }, z.core.$strip>;
4951
5313
  type MeteringSettings = z.output<typeof MeteringSettingsSchema>;
@@ -4957,9 +5319,9 @@ declare const EventsSettingsPatchSchema: z.ZodObject<{
4957
5319
  declare const MeteringSettingsPatchSchema: z.ZodObject<{
4958
5320
  lateGraceMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4959
5321
  chargeMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4960
- off: "off";
4961
5322
  dry_run: "dry_run";
4962
5323
  live: "live";
5324
+ off: "off";
4963
5325
  }>>>;
4964
5326
  }, z.core.$strict>;
4965
5327
  declare const ProductSettingsSchema: z.ZodObject<{
@@ -4967,8 +5329,8 @@ declare const ProductSettingsSchema: z.ZodObject<{
4967
5329
  appUrl: z.ZodOptional<z.ZodURL>;
4968
5330
  defaultCurrency: z.ZodDefault<z.ZodString>;
4969
5331
  defaultLocale: z.ZodDefault<z.ZodEnum<{
4970
- tr: "tr";
4971
5332
  en: "en";
5333
+ tr: "tr";
4972
5334
  }>>;
4973
5335
  extraReturnOrigins: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodURL, z.ZodTransform<string, string>>>, z.ZodTransform<string[], string[]>>>;
4974
5336
  privacyUrl: z.ZodOptional<z.ZodURL>;
@@ -4989,70 +5351,77 @@ declare const ProductSettingsSchema: z.ZodObject<{
4989
5351
  replyTo: z.ZodOptional<z.ZodEmail>;
4990
5352
  billingPath: z.ZodOptional<z.ZodString>;
4991
5353
  templates: z.ZodDefault<z.ZodObject<{
4992
- subscription_started: z.ZodOptional<z.ZodObject<{
5354
+ access_suspended: z.ZodOptional<z.ZodObject<{
4993
5355
  enabled: z.ZodDefault<z.ZodBoolean>;
4994
5356
  extraText: z.ZodOptional<z.ZodObject<{
4995
5357
  tr: z.ZodOptional<z.ZodString>;
4996
5358
  en: z.ZodOptional<z.ZodString>;
4997
5359
  }, z.core.$strip>>;
4998
5360
  }, z.core.$strip>>;
4999
- payment_receipt: z.ZodOptional<z.ZodObject<{
5361
+ bank_transfer_instructions: z.ZodOptional<z.ZodObject<{
5000
5362
  enabled: z.ZodDefault<z.ZodBoolean>;
5001
5363
  extraText: z.ZodOptional<z.ZodObject<{
5002
5364
  tr: z.ZodOptional<z.ZodString>;
5003
5365
  en: z.ZodOptional<z.ZodString>;
5004
5366
  }, z.core.$strip>>;
5005
5367
  }, z.core.$strip>>;
5006
- payment_failed: z.ZodOptional<z.ZodObject<{
5368
+ cancel_scheduled: z.ZodOptional<z.ZodObject<{
5007
5369
  enabled: z.ZodDefault<z.ZodBoolean>;
5008
5370
  extraText: z.ZodOptional<z.ZodObject<{
5009
5371
  tr: z.ZodOptional<z.ZodString>;
5010
5372
  en: z.ZodOptional<z.ZodString>;
5011
5373
  }, z.core.$strip>>;
5012
5374
  }, z.core.$strip>>;
5013
- cancel_scheduled: z.ZodOptional<z.ZodObject<{
5375
+ invoice_issued: z.ZodOptional<z.ZodObject<{
5014
5376
  enabled: z.ZodDefault<z.ZodBoolean>;
5015
5377
  extraText: z.ZodOptional<z.ZodObject<{
5016
5378
  tr: z.ZodOptional<z.ZodString>;
5017
5379
  en: z.ZodOptional<z.ZodString>;
5018
5380
  }, z.core.$strip>>;
5019
5381
  }, z.core.$strip>>;
5020
- subscription_ended: z.ZodOptional<z.ZodObject<{
5382
+ invoice_payment_due: z.ZodOptional<z.ZodObject<{
5021
5383
  enabled: z.ZodDefault<z.ZodBoolean>;
5022
5384
  extraText: z.ZodOptional<z.ZodObject<{
5023
5385
  tr: z.ZodOptional<z.ZodString>;
5024
5386
  en: z.ZodOptional<z.ZodString>;
5025
5387
  }, z.core.$strip>>;
5026
5388
  }, z.core.$strip>>;
5027
- access_suspended: z.ZodOptional<z.ZodObject<{
5389
+ payment_failed: z.ZodOptional<z.ZodObject<{
5028
5390
  enabled: z.ZodDefault<z.ZodBoolean>;
5029
5391
  extraText: z.ZodOptional<z.ZodObject<{
5030
5392
  tr: z.ZodOptional<z.ZodString>;
5031
5393
  en: z.ZodOptional<z.ZodString>;
5032
5394
  }, z.core.$strip>>;
5033
5395
  }, z.core.$strip>>;
5034
- subscription_terminated: z.ZodOptional<z.ZodObject<{
5396
+ payment_receipt: z.ZodOptional<z.ZodObject<{
5035
5397
  enabled: z.ZodDefault<z.ZodBoolean>;
5036
5398
  extraText: z.ZodOptional<z.ZodObject<{
5037
5399
  tr: z.ZodOptional<z.ZodString>;
5038
5400
  en: z.ZodOptional<z.ZodString>;
5039
5401
  }, z.core.$strip>>;
5040
5402
  }, z.core.$strip>>;
5041
- invoice_issued: z.ZodOptional<z.ZodObject<{
5403
+ price_change_notice: z.ZodOptional<z.ZodObject<{
5042
5404
  enabled: z.ZodDefault<z.ZodBoolean>;
5043
5405
  extraText: z.ZodOptional<z.ZodObject<{
5044
5406
  tr: z.ZodOptional<z.ZodString>;
5045
5407
  en: z.ZodOptional<z.ZodString>;
5046
5408
  }, z.core.$strip>>;
5047
5409
  }, z.core.$strip>>;
5048
- invoice_payment_due: z.ZodOptional<z.ZodObject<{
5410
+ subscription_ended: z.ZodOptional<z.ZodObject<{
5049
5411
  enabled: z.ZodDefault<z.ZodBoolean>;
5050
5412
  extraText: z.ZodOptional<z.ZodObject<{
5051
5413
  tr: z.ZodOptional<z.ZodString>;
5052
5414
  en: z.ZodOptional<z.ZodString>;
5053
5415
  }, z.core.$strip>>;
5054
5416
  }, z.core.$strip>>;
5055
- price_change_notice: z.ZodOptional<z.ZodObject<{
5417
+ subscription_started: z.ZodOptional<z.ZodObject<{
5418
+ enabled: z.ZodDefault<z.ZodBoolean>;
5419
+ extraText: z.ZodOptional<z.ZodObject<{
5420
+ tr: z.ZodOptional<z.ZodString>;
5421
+ en: z.ZodOptional<z.ZodString>;
5422
+ }, z.core.$strip>>;
5423
+ }, z.core.$strip>>;
5424
+ subscription_terminated: z.ZodOptional<z.ZodObject<{
5056
5425
  enabled: z.ZodDefault<z.ZodBoolean>;
5057
5426
  extraText: z.ZodOptional<z.ZodObject<{
5058
5427
  tr: z.ZodOptional<z.ZodString>;
@@ -5065,6 +5434,10 @@ declare const ProductSettingsSchema: z.ZodObject<{
5065
5434
  paymentDueDays: z.ZodDefault<z.ZodNumber>;
5066
5435
  minInvoiceMinor: z.ZodDefault<z.ZodNumber>;
5067
5436
  allowMultipleSubscriptions: z.ZodDefault<z.ZodBoolean>;
5437
+ bankTransfer: z.ZodDefault<z.ZodObject<{
5438
+ enabled: z.ZodDefault<z.ZodBoolean>;
5439
+ paymentDays: z.ZodDefault<z.ZodNumber>;
5440
+ }, z.core.$strip>>;
5068
5441
  }, z.core.$strip>>;
5069
5442
  events: z.ZodOptional<z.ZodObject<{
5070
5443
  retentionDays: z.ZodDefault<z.ZodNumber>;
@@ -5072,19 +5445,19 @@ declare const ProductSettingsSchema: z.ZodObject<{
5072
5445
  metering: z.ZodOptional<z.ZodObject<{
5073
5446
  lateGraceMinutes: z.ZodDefault<z.ZodNumber>;
5074
5447
  chargeMode: z.ZodDefault<z.ZodEnum<{
5075
- off: "off";
5076
5448
  dry_run: "dry_run";
5077
5449
  live: "live";
5450
+ off: "off";
5078
5451
  }>>;
5079
5452
  }, z.core.$strip>>;
5080
5453
  }, z.core.$strip>;
5081
5454
  type ProductSettings = z.output<typeof ProductSettingsSchema>;
5082
5455
  /** `settings.billing` with defaults filled in. */
5083
- declare function billingSettingsOf(settings: Pick<ProductSettings, "billing">): BillingSettings;
5456
+ declare function billingSettingsOf(settings: Pick<ProductSettings, 'billing'>): BillingSettings;
5084
5457
  /** `settings.events` with defaults filled in. */
5085
- declare function eventsSettingsOf(settings: Pick<ProductSettings, "events">): EventsSettings;
5458
+ declare function eventsSettingsOf(settings: Pick<ProductSettings, 'events'>): EventsSettings;
5086
5459
  /** `settings.metering` with defaults filled in. */
5087
- declare function meteringSettingsOf(settings: Pick<ProductSettings, "metering">): MeteringSettings;
5460
+ declare function meteringSettingsOf(settings: Pick<ProductSettings, 'metering'>): MeteringSettings;
5088
5461
  declare const BrandingPatchSchema: z.ZodObject<{
5089
5462
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5090
5463
  logoUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
@@ -5096,8 +5469,8 @@ declare const ProductSettingsPatchSchema: z.ZodObject<{
5096
5469
  appUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
5097
5470
  defaultCurrency: z.ZodOptional<z.ZodString>;
5098
5471
  defaultLocale: z.ZodOptional<z.ZodEnum<{
5099
- tr: "tr";
5100
5472
  en: "en";
5473
+ tr: "tr";
5101
5474
  }>>;
5102
5475
  extraReturnOrigins: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodURL, z.ZodTransform<string, string>>>, z.ZodTransform<string[], string[]>>>;
5103
5476
  privacyUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
@@ -5118,43 +5491,47 @@ declare const ProductSettingsPatchSchema: z.ZodObject<{
5118
5491
  replyTo: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
5119
5492
  billingPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5120
5493
  templates: z.ZodOptional<z.ZodObject<{
5121
- subscription_started: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5494
+ access_suspended: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5495
+ enabled: z.ZodOptional<z.ZodBoolean>;
5496
+ extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
5497
+ }, z.core.$strict>>>;
5498
+ bank_transfer_instructions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5122
5499
  enabled: z.ZodOptional<z.ZodBoolean>;
5123
5500
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
5124
5501
  }, z.core.$strict>>>;
5125
- payment_receipt: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5502
+ cancel_scheduled: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5126
5503
  enabled: z.ZodOptional<z.ZodBoolean>;
5127
5504
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
5128
5505
  }, z.core.$strict>>>;
5129
- payment_failed: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5506
+ invoice_issued: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5130
5507
  enabled: z.ZodOptional<z.ZodBoolean>;
5131
5508
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
5132
5509
  }, z.core.$strict>>>;
5133
- cancel_scheduled: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5510
+ invoice_payment_due: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5134
5511
  enabled: z.ZodOptional<z.ZodBoolean>;
5135
5512
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
5136
5513
  }, z.core.$strict>>>;
5137
- subscription_ended: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5514
+ payment_failed: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5138
5515
  enabled: z.ZodOptional<z.ZodBoolean>;
5139
5516
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
5140
5517
  }, z.core.$strict>>>;
5141
- access_suspended: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5518
+ payment_receipt: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5142
5519
  enabled: z.ZodOptional<z.ZodBoolean>;
5143
5520
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
5144
5521
  }, z.core.$strict>>>;
5145
- subscription_terminated: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5522
+ price_change_notice: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5146
5523
  enabled: z.ZodOptional<z.ZodBoolean>;
5147
5524
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
5148
5525
  }, z.core.$strict>>>;
5149
- invoice_issued: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5526
+ subscription_ended: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5150
5527
  enabled: z.ZodOptional<z.ZodBoolean>;
5151
5528
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
5152
5529
  }, z.core.$strict>>>;
5153
- invoice_payment_due: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5530
+ subscription_started: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5154
5531
  enabled: z.ZodOptional<z.ZodBoolean>;
5155
5532
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
5156
5533
  }, z.core.$strict>>>;
5157
- price_change_notice: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5534
+ subscription_terminated: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5158
5535
  enabled: z.ZodOptional<z.ZodBoolean>;
5159
5536
  extraText: z.ZodOptional<typeof EmailExtraTextSchema>;
5160
5537
  }, z.core.$strict>>>;
@@ -5164,6 +5541,10 @@ declare const ProductSettingsPatchSchema: z.ZodObject<{
5164
5541
  paymentDueDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5165
5542
  minInvoiceMinor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5166
5543
  allowMultipleSubscriptions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5544
+ bankTransfer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5545
+ enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5546
+ paymentDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5547
+ }, z.core.$strict>>>;
5167
5548
  }, z.core.$strict>>>;
5168
5549
  events: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5169
5550
  retentionDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -5171,9 +5552,9 @@ declare const ProductSettingsPatchSchema: z.ZodObject<{
5171
5552
  metering: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5172
5553
  lateGraceMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5173
5554
  chargeMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
5174
- off: "off";
5175
5555
  dry_run: "dry_run";
5176
5556
  live: "live";
5557
+ off: "off";
5177
5558
  }>>>;
5178
5559
  }, z.core.$strict>>>;
5179
5560
  }, z.core.$strict>;
@@ -5186,9 +5567,9 @@ declare function applySettingsPatch(current: ProductSettings, patch: z.output<ty
5186
5567
  readonly provider?: string | undefined;
5187
5568
  }): ProductSettings;
5188
5569
  /** Checkout dönüşüne izinli origin'ler: `appUrl`'in origin'i + `extraReturnOrigins`. */
5189
- declare function returnOriginsOf(settings: Pick<ProductSettings, "appUrl" | "extraReturnOrigins">): string[];
5570
+ declare function returnOriginsOf(settings: Pick<ProductSettings, 'appUrl' | 'extraReturnOrigins'>): string[];
5190
5571
  /** `returnUrl`'in origin'i izinli mi (geçersiz adres: hayır). */
5191
- declare function isReturnUrlAllowed(settings: Pick<ProductSettings, "appUrl" | "extraReturnOrigins">, returnUrl: string): boolean;
5572
+ declare function isReturnUrlAllowed(settings: Pick<ProductSettings, 'appUrl' | 'extraReturnOrigins'>, returnUrl: string): boolean;
5192
5573
  //#endregion
5193
5574
  //#region ../contract/src/webhook-endpoints.d.ts
5194
5575
  declare const WEBHOOK_SECRET_PREFIX = "whsec_";
@@ -5199,37 +5580,37 @@ declare const WEBHOOK_SECRET_PREFIX = "whsec_";
5199
5580
  */
5200
5581
  declare const WebhookSecretSchema: z.ZodString;
5201
5582
  declare const EventTypeSchema: z.ZodEnum<{
5583
+ "account.deleted": "account.deleted";
5584
+ "account.state_changed": "account.state_changed";
5202
5585
  "account.updated": "account.updated";
5586
+ "benefit_grant.created": "benefit_grant.created";
5587
+ "benefit_grant.cycled": "benefit_grant.cycled";
5588
+ "benefit_grant.revoked": "benefit_grant.revoked";
5589
+ "benefit_grant.updated": "benefit_grant.updated";
5203
5590
  "checkout.completed": "checkout.completed";
5204
- "checkout.failed": "checkout.failed";
5205
5591
  "checkout.expired": "checkout.expired";
5592
+ "checkout.failed": "checkout.failed";
5593
+ "invoice.created": "invoice.created";
5594
+ "invoice.issued": "invoice.issued";
5595
+ "invoice.paid": "invoice.paid";
5596
+ "invoice.voided": "invoice.voided";
5597
+ "meter.period_closed": "meter.period_closed";
5598
+ "meter.threshold_crossed": "meter.threshold_crossed";
5206
5599
  "subscription.activated": "subscription.activated";
5207
- "subscription.renewed": "subscription.renewed";
5208
- "subscription.payment_failed": "subscription.payment_failed";
5209
- "subscription.suspended": "subscription.suspended";
5210
- "subscription.reactivated": "subscription.reactivated";
5211
5600
  "subscription.cancel_scheduled": "subscription.cancel_scheduled";
5212
5601
  "subscription.canceled": "subscription.canceled";
5213
5602
  "subscription.expired": "subscription.expired";
5603
+ "subscription.payment_failed": "subscription.payment_failed";
5604
+ "subscription.reactivated": "subscription.reactivated";
5605
+ "subscription.renewed": "subscription.renewed";
5606
+ "subscription.suspended": "subscription.suspended";
5214
5607
  "subscription.terminated": "subscription.terminated";
5215
- "invoice.created": "invoice.created";
5216
- "invoice.issued": "invoice.issued";
5217
- "invoice.voided": "invoice.voided";
5218
- "account.state_changed": "account.state_changed";
5219
- "account.deleted": "account.deleted";
5220
- "invoice.paid": "invoice.paid";
5221
- "benefit_grant.created": "benefit_grant.created";
5222
- "benefit_grant.updated": "benefit_grant.updated";
5223
- "benefit_grant.revoked": "benefit_grant.revoked";
5224
- "benefit_grant.cycled": "benefit_grant.cycled";
5225
- "meter.threshold_crossed": "meter.threshold_crossed";
5226
- "meter.period_closed": "meter.period_closed";
5227
5608
  }>;
5228
- declare const WEBHOOK_ENDPOINT_STATUSES: readonly ["active", "paused", "inactive"];
5609
+ declare const WEBHOOK_ENDPOINT_STATUSES: readonly ['active', 'paused', 'inactive'];
5229
5610
  declare const WebhookEndpointStatusSchema: z.ZodEnum<{
5230
5611
  active: "active";
5231
- paused: "paused";
5232
5612
  inactive: "inactive";
5613
+ paused: "paused";
5233
5614
  }>;
5234
5615
  type WebhookEndpointStatus = z.infer<typeof WebhookEndpointStatusSchema>;
5235
5616
  /**
@@ -5245,32 +5626,32 @@ declare const WebhookEndpointCreateInputSchema: z.ZodObject<{
5245
5626
  url: z.ZodURL;
5246
5627
  secret: z.ZodString;
5247
5628
  eventTypes: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodEnum<{
5629
+ "account.deleted": "account.deleted";
5630
+ "account.state_changed": "account.state_changed";
5248
5631
  "account.updated": "account.updated";
5632
+ "benefit_grant.created": "benefit_grant.created";
5633
+ "benefit_grant.cycled": "benefit_grant.cycled";
5634
+ "benefit_grant.revoked": "benefit_grant.revoked";
5635
+ "benefit_grant.updated": "benefit_grant.updated";
5249
5636
  "checkout.completed": "checkout.completed";
5250
- "checkout.failed": "checkout.failed";
5251
5637
  "checkout.expired": "checkout.expired";
5638
+ "checkout.failed": "checkout.failed";
5639
+ "invoice.created": "invoice.created";
5640
+ "invoice.issued": "invoice.issued";
5641
+ "invoice.paid": "invoice.paid";
5642
+ "invoice.voided": "invoice.voided";
5643
+ "meter.period_closed": "meter.period_closed";
5644
+ "meter.threshold_crossed": "meter.threshold_crossed";
5252
5645
  "subscription.activated": "subscription.activated";
5253
- "subscription.renewed": "subscription.renewed";
5254
- "subscription.payment_failed": "subscription.payment_failed";
5255
- "subscription.suspended": "subscription.suspended";
5256
- "subscription.reactivated": "subscription.reactivated";
5257
5646
  "subscription.cancel_scheduled": "subscription.cancel_scheduled";
5258
5647
  "subscription.canceled": "subscription.canceled";
5259
5648
  "subscription.expired": "subscription.expired";
5649
+ "subscription.payment_failed": "subscription.payment_failed";
5650
+ "subscription.reactivated": "subscription.reactivated";
5651
+ "subscription.renewed": "subscription.renewed";
5652
+ "subscription.suspended": "subscription.suspended";
5260
5653
  "subscription.terminated": "subscription.terminated";
5261
- "invoice.created": "invoice.created";
5262
- "invoice.issued": "invoice.issued";
5263
- "invoice.voided": "invoice.voided";
5264
- "account.state_changed": "account.state_changed";
5265
- "account.deleted": "account.deleted";
5266
- "invoice.paid": "invoice.paid";
5267
- "benefit_grant.created": "benefit_grant.created";
5268
- "benefit_grant.updated": "benefit_grant.updated";
5269
- "benefit_grant.revoked": "benefit_grant.revoked";
5270
- "benefit_grant.cycled": "benefit_grant.cycled";
5271
- "meter.threshold_crossed": "meter.threshold_crossed";
5272
- "meter.period_closed": "meter.period_closed";
5273
- }>>, z.ZodTransform<("account.updated" | "checkout.completed" | "checkout.failed" | "checkout.expired" | "subscription.activated" | "subscription.renewed" | "subscription.payment_failed" | "subscription.suspended" | "subscription.reactivated" | "subscription.cancel_scheduled" | "subscription.canceled" | "subscription.expired" | "subscription.terminated" | "invoice.created" | "invoice.issued" | "invoice.voided" | "account.state_changed" | "account.deleted" | "invoice.paid" | "benefit_grant.created" | "benefit_grant.updated" | "benefit_grant.revoked" | "benefit_grant.cycled" | "meter.threshold_crossed" | "meter.period_closed")[], ("account.updated" | "checkout.completed" | "checkout.failed" | "checkout.expired" | "subscription.activated" | "subscription.renewed" | "subscription.payment_failed" | "subscription.suspended" | "subscription.reactivated" | "subscription.cancel_scheduled" | "subscription.canceled" | "subscription.expired" | "subscription.terminated" | "invoice.created" | "invoice.issued" | "invoice.voided" | "account.state_changed" | "account.deleted" | "invoice.paid" | "benefit_grant.created" | "benefit_grant.updated" | "benefit_grant.revoked" | "benefit_grant.cycled" | "meter.threshold_crossed" | "meter.period_closed")[]>>>;
5654
+ }>>, z.ZodTransform<("account.deleted" | "account.state_changed" | "account.updated" | "benefit_grant.created" | "benefit_grant.cycled" | "benefit_grant.revoked" | "benefit_grant.updated" | "checkout.completed" | "checkout.expired" | "checkout.failed" | "invoice.created" | "invoice.issued" | "invoice.paid" | "invoice.voided" | "meter.period_closed" | "meter.threshold_crossed" | "subscription.activated" | "subscription.cancel_scheduled" | "subscription.canceled" | "subscription.expired" | "subscription.payment_failed" | "subscription.reactivated" | "subscription.renewed" | "subscription.suspended" | "subscription.terminated")[], ("account.deleted" | "account.state_changed" | "account.updated" | "benefit_grant.created" | "benefit_grant.cycled" | "benefit_grant.revoked" | "benefit_grant.updated" | "checkout.completed" | "checkout.expired" | "checkout.failed" | "invoice.created" | "invoice.issued" | "invoice.paid" | "invoice.voided" | "meter.period_closed" | "meter.threshold_crossed" | "subscription.activated" | "subscription.cancel_scheduled" | "subscription.canceled" | "subscription.expired" | "subscription.payment_failed" | "subscription.reactivated" | "subscription.renewed" | "subscription.suspended" | "subscription.terminated")[]>>>;
5274
5655
  description: z.ZodOptional<z.ZodString>;
5275
5656
  }, z.core.$strict>;
5276
5657
  type WebhookEndpointCreateInput = z.input<typeof WebhookEndpointCreateInputSchema>;
@@ -5287,9 +5668,9 @@ type WebhookEndpointRotateInput = z.input<typeof WebhookEndpointRotateInputSchem
5287
5668
  */
5288
5669
  declare const WebhookLastDeliverySchema: z.ZodObject<{
5289
5670
  status: z.ZodEnum<{
5290
- pending: "pending";
5291
5671
  dead: "dead";
5292
5672
  delivered: "delivered";
5673
+ pending: "pending";
5293
5674
  }>;
5294
5675
  httpStatus: z.ZodNullable<z.ZodNumber>;
5295
5676
  error: z.ZodNullable<z.ZodString>;
@@ -5303,44 +5684,44 @@ declare const WebhookEndpointSchema: z.ZodObject<{
5303
5684
  url: z.ZodString;
5304
5685
  status: z.ZodEnum<{
5305
5686
  active: "active";
5306
- paused: "paused";
5307
5687
  inactive: "inactive";
5688
+ paused: "paused";
5308
5689
  }>;
5309
5690
  eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
5691
+ "account.deleted": "account.deleted";
5692
+ "account.state_changed": "account.state_changed";
5310
5693
  "account.updated": "account.updated";
5694
+ "benefit_grant.created": "benefit_grant.created";
5695
+ "benefit_grant.cycled": "benefit_grant.cycled";
5696
+ "benefit_grant.revoked": "benefit_grant.revoked";
5697
+ "benefit_grant.updated": "benefit_grant.updated";
5311
5698
  "checkout.completed": "checkout.completed";
5312
- "checkout.failed": "checkout.failed";
5313
5699
  "checkout.expired": "checkout.expired";
5700
+ "checkout.failed": "checkout.failed";
5701
+ "invoice.created": "invoice.created";
5702
+ "invoice.issued": "invoice.issued";
5703
+ "invoice.paid": "invoice.paid";
5704
+ "invoice.voided": "invoice.voided";
5705
+ "meter.period_closed": "meter.period_closed";
5706
+ "meter.threshold_crossed": "meter.threshold_crossed";
5314
5707
  "subscription.activated": "subscription.activated";
5315
- "subscription.renewed": "subscription.renewed";
5316
- "subscription.payment_failed": "subscription.payment_failed";
5317
- "subscription.suspended": "subscription.suspended";
5318
- "subscription.reactivated": "subscription.reactivated";
5319
5708
  "subscription.cancel_scheduled": "subscription.cancel_scheduled";
5320
5709
  "subscription.canceled": "subscription.canceled";
5321
5710
  "subscription.expired": "subscription.expired";
5711
+ "subscription.payment_failed": "subscription.payment_failed";
5712
+ "subscription.reactivated": "subscription.reactivated";
5713
+ "subscription.renewed": "subscription.renewed";
5714
+ "subscription.suspended": "subscription.suspended";
5322
5715
  "subscription.terminated": "subscription.terminated";
5323
- "invoice.created": "invoice.created";
5324
- "invoice.issued": "invoice.issued";
5325
- "invoice.voided": "invoice.voided";
5326
- "account.state_changed": "account.state_changed";
5327
- "account.deleted": "account.deleted";
5328
- "invoice.paid": "invoice.paid";
5329
- "benefit_grant.created": "benefit_grant.created";
5330
- "benefit_grant.updated": "benefit_grant.updated";
5331
- "benefit_grant.revoked": "benefit_grant.revoked";
5332
- "benefit_grant.cycled": "benefit_grant.cycled";
5333
- "meter.threshold_crossed": "meter.threshold_crossed";
5334
- "meter.period_closed": "meter.period_closed";
5335
5716
  }>>>;
5336
5717
  description: z.ZodNullable<z.ZodString>;
5337
5718
  createdAt: z.ZodISODateTime;
5338
5719
  rotatedAt: z.ZodNullable<z.ZodISODateTime>;
5339
5720
  lastDelivery: z.ZodNullable<z.ZodObject<{
5340
5721
  status: z.ZodEnum<{
5341
- pending: "pending";
5342
5722
  dead: "dead";
5343
5723
  delivered: "delivered";
5724
+ pending: "pending";
5344
5725
  }>;
5345
5726
  httpStatus: z.ZodNullable<z.ZodNumber>;
5346
5727
  error: z.ZodNullable<z.ZodString>;
@@ -5356,44 +5737,44 @@ declare const WebhookEndpointListSchema: z.ZodObject<{
5356
5737
  url: z.ZodString;
5357
5738
  status: z.ZodEnum<{
5358
5739
  active: "active";
5359
- paused: "paused";
5360
5740
  inactive: "inactive";
5741
+ paused: "paused";
5361
5742
  }>;
5362
5743
  eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
5744
+ "account.deleted": "account.deleted";
5745
+ "account.state_changed": "account.state_changed";
5363
5746
  "account.updated": "account.updated";
5747
+ "benefit_grant.created": "benefit_grant.created";
5748
+ "benefit_grant.cycled": "benefit_grant.cycled";
5749
+ "benefit_grant.revoked": "benefit_grant.revoked";
5750
+ "benefit_grant.updated": "benefit_grant.updated";
5364
5751
  "checkout.completed": "checkout.completed";
5365
- "checkout.failed": "checkout.failed";
5366
5752
  "checkout.expired": "checkout.expired";
5753
+ "checkout.failed": "checkout.failed";
5754
+ "invoice.created": "invoice.created";
5755
+ "invoice.issued": "invoice.issued";
5756
+ "invoice.paid": "invoice.paid";
5757
+ "invoice.voided": "invoice.voided";
5758
+ "meter.period_closed": "meter.period_closed";
5759
+ "meter.threshold_crossed": "meter.threshold_crossed";
5367
5760
  "subscription.activated": "subscription.activated";
5368
- "subscription.renewed": "subscription.renewed";
5369
- "subscription.payment_failed": "subscription.payment_failed";
5370
- "subscription.suspended": "subscription.suspended";
5371
- "subscription.reactivated": "subscription.reactivated";
5372
5761
  "subscription.cancel_scheduled": "subscription.cancel_scheduled";
5373
5762
  "subscription.canceled": "subscription.canceled";
5374
5763
  "subscription.expired": "subscription.expired";
5764
+ "subscription.payment_failed": "subscription.payment_failed";
5765
+ "subscription.reactivated": "subscription.reactivated";
5766
+ "subscription.renewed": "subscription.renewed";
5767
+ "subscription.suspended": "subscription.suspended";
5375
5768
  "subscription.terminated": "subscription.terminated";
5376
- "invoice.created": "invoice.created";
5377
- "invoice.issued": "invoice.issued";
5378
- "invoice.voided": "invoice.voided";
5379
- "account.state_changed": "account.state_changed";
5380
- "account.deleted": "account.deleted";
5381
- "invoice.paid": "invoice.paid";
5382
- "benefit_grant.created": "benefit_grant.created";
5383
- "benefit_grant.updated": "benefit_grant.updated";
5384
- "benefit_grant.revoked": "benefit_grant.revoked";
5385
- "benefit_grant.cycled": "benefit_grant.cycled";
5386
- "meter.threshold_crossed": "meter.threshold_crossed";
5387
- "meter.period_closed": "meter.period_closed";
5388
5769
  }>>>;
5389
5770
  description: z.ZodNullable<z.ZodString>;
5390
5771
  createdAt: z.ZodISODateTime;
5391
5772
  rotatedAt: z.ZodNullable<z.ZodISODateTime>;
5392
5773
  lastDelivery: z.ZodNullable<z.ZodObject<{
5393
5774
  status: z.ZodEnum<{
5394
- pending: "pending";
5395
5775
  dead: "dead";
5396
5776
  delivered: "delivered";
5777
+ pending: "pending";
5397
5778
  }>;
5398
5779
  httpStatus: z.ZodNullable<z.ZodNumber>;
5399
5780
  error: z.ZodNullable<z.ZodString>;
@@ -5407,21 +5788,21 @@ type WebhookEndpointList = z.infer<typeof WebhookEndpointListSchema>;
5407
5788
  declare function generateWebhookSecret(): string;
5408
5789
  //#endregion
5409
5790
  //#region ../contract/src/doctor.d.ts
5410
- declare const DOCTOR_SEVERITIES: readonly ["error", "warning", "info"];
5791
+ declare const DOCTOR_SEVERITIES: readonly ['error', 'warning', 'info'];
5411
5792
  declare const DoctorSeveritySchema: z.ZodEnum<{
5412
5793
  error: "error";
5413
- warning: "warning";
5414
5794
  info: "info";
5795
+ warning: "warning";
5415
5796
  }>;
5416
5797
  type DoctorSeverity = z.infer<typeof DoctorSeveritySchema>;
5417
5798
  /** `warnings[].code` — bu sürümün ürettiği kodlar; küme açık. */
5418
- type DoctorWarningCode = "catalog_not_synced" | "price_unsellable" | "price_drift" | "legacy_provider_subscription" | "provider_not_configured" | "provider_unhealthy" | "no_return_origin" | "app_url_missing" | "branding_incomplete" | "legal_links_missing" | "no_active_endpoint" | "no_state_changed_endpoint" | "endpoint_wrong_secret" | "endpoint_old_contract" | "endpoint_unreachable" | "endpoint_failing" | "endpoint_dead_deliveries" | "endpoint_pending_backlog" | "dunning_dry_run" | "email_not_configured" | "email_sender_missing" | "email_billing_link_missing" | "events_backlog" | "meter_rollup_lag" | "events_invalid_value" | "meter_without_events" | "events_unmatched" | "overage_charge_mode_off" | "overage_dry_run" | "overage_unrated_subscriptions" | (string & Record<never, never>);
5799
+ type DoctorWarningCode = 'catalog_not_synced' | 'price_unsellable' | 'price_drift' | 'legacy_provider_subscription' | 'provider_not_configured' | 'provider_unhealthy' | 'no_return_origin' | 'app_url_missing' | 'branding_incomplete' | 'legal_links_missing' | 'no_active_endpoint' | 'no_state_changed_endpoint' | 'endpoint_wrong_secret' | 'endpoint_old_contract' | 'endpoint_unreachable' | 'endpoint_failing' | 'endpoint_dead_deliveries' | 'endpoint_pending_backlog' | 'dunning_dry_run' | 'email_not_configured' | 'email_sender_missing' | 'email_billing_link_missing' | 'events_backlog' | 'meter_rollup_lag' | 'events_invalid_value' | 'meter_without_events' | 'events_unmatched' | 'overage_charge_mode_off' | 'overage_dry_run' | 'overage_unrated_subscriptions' | (string & Record<never, never>);
5419
5800
  declare const DoctorWarningSchema: z.ZodObject<{
5420
5801
  code: z.ZodString;
5421
5802
  severity: z.ZodEnum<{
5422
5803
  error: "error";
5423
- warning: "warning";
5424
5804
  info: "info";
5805
+ warning: "warning";
5425
5806
  }>;
5426
5807
  message: z.ZodString;
5427
5808
  endpointId: z.ZodOptional<z.ZodUUID>;
@@ -5430,10 +5811,10 @@ type DoctorWarning = z.infer<typeof DoctorWarningSchema>;
5430
5811
  /**
5431
5812
  * Why an active price cannot be sold — open set: `provider_not_configured`,
5432
5813
  * `unsupported_currency`, `interval_count_unsupported` (checkout sells `intervalCount: 1` only).
5433
- * `provider_price_missing` (no provider plan for the price) is produced only by steward before the
5434
- * billing core: prices live only in steward now (M30).
5814
+ * `provider_price_missing` (no provider plan for the price) is **no longer produced** (@deprecated):
5815
+ * prices live only in steward since the billing core (M30); it is removed in the next minor.
5435
5816
  */
5436
- type DoctorUnsellableReason = "provider_price_missing" | "provider_not_configured" | "unsupported_currency" | "interval_count_unsupported" | (string & Record<never, never>);
5817
+ type DoctorUnsellableReason = 'provider_price_missing' | 'provider_not_configured' | 'unsupported_currency' | 'interval_count_unsupported' | (string & Record<never, never>);
5437
5818
  declare const DoctorUnsellablePriceSchema: z.ZodObject<{
5438
5819
  priceId: z.ZodUUID;
5439
5820
  planCode: z.ZodString;
@@ -5505,14 +5886,14 @@ declare const DoctorOverageSchema: z.ZodObject<{
5505
5886
  carriedCharges: z.ZodNumber;
5506
5887
  }, z.core.$strip>;
5507
5888
  type DoctorOverage = z.infer<typeof DoctorOverageSchema>;
5508
- declare const DOCTOR_PROVIDER_ENVIRONMENTS: readonly ["sandbox", "live", "fake"];
5889
+ declare const DOCTOR_PROVIDER_ENVIRONMENTS: readonly ['sandbox', 'live', 'fake'];
5509
5890
  declare const DoctorProviderSchema: z.ZodObject<{
5510
5891
  id: z.ZodString;
5511
5892
  configured: z.ZodBoolean;
5512
5893
  environment: z.ZodNullable<z.ZodEnum<{
5894
+ fake: "fake";
5513
5895
  live: "live";
5514
5896
  sandbox: "sandbox";
5515
- fake: "fake";
5516
5897
  }>>;
5517
5898
  merchantId: z.ZodNullable<z.ZodString>;
5518
5899
  healthy: z.ZodNullable<z.ZodBoolean>;
@@ -5529,9 +5910,9 @@ declare const DoctorSettingsSchema: z.ZodObject<{
5529
5910
  }, z.core.$strip>;
5530
5911
  type DoctorSettings = z.infer<typeof DoctorSettingsSchema>;
5531
5912
  /** Hosted sayfanın (F2b checkout, F3a portal) zorunlu saydığı marka alanları; logo ve renk nötr varsayılana düşer. */
5532
- declare const DOCTOR_REQUIRED_BRANDING: readonly ["name", "supportEmail"];
5913
+ declare const DOCTOR_REQUIRED_BRANDING: readonly ['name', 'supportEmail'];
5533
5914
  /** KVKK/mesafeli satış bağları. */
5534
- declare const DOCTOR_REQUIRED_LEGAL_LINKS: readonly ["privacyUrl", "termsUrl"];
5915
+ declare const DOCTOR_REQUIRED_LEGAL_LINKS: readonly ['privacyUrl', 'termsUrl'];
5535
5916
  declare const DoctorHostedSchema: z.ZodObject<{
5536
5917
  branding: z.ZodObject<{
5537
5918
  missing: z.ZodArray<z.ZodString>;
@@ -5549,50 +5930,50 @@ type DoctorHosted = z.infer<typeof DoctorHostedSchema>;
5549
5930
  * `unreachable` zaman aşımı/ağ hatası; `failing` diğer yanıtlar (5xx, 404…);
5550
5931
  * `in_progress` ilk deneme sürüyor; `no_deliveries` henüz denenmiş teslimat yok.
5551
5932
  */
5552
- type DoctorEndpointDiagnosis = "ok" | "wrong_secret" | "old_contract" | "unreachable" | "failing" | "in_progress" | "no_deliveries" | (string & Record<never, never>);
5933
+ type DoctorEndpointDiagnosis = 'ok' | 'wrong_secret' | 'old_contract' | 'unreachable' | 'failing' | 'in_progress' | 'no_deliveries' | (string & Record<never, never>);
5553
5934
  declare const DoctorEndpointSchema: z.ZodObject<{
5554
5935
  id: z.ZodUUID;
5555
5936
  url: z.ZodString;
5556
5937
  status: z.ZodEnum<{
5557
5938
  active: "active";
5558
- paused: "paused";
5559
5939
  inactive: "inactive";
5940
+ paused: "paused";
5560
5941
  }>;
5561
5942
  eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
5943
+ "account.deleted": "account.deleted";
5944
+ "account.state_changed": "account.state_changed";
5562
5945
  "account.updated": "account.updated";
5946
+ "benefit_grant.created": "benefit_grant.created";
5947
+ "benefit_grant.cycled": "benefit_grant.cycled";
5948
+ "benefit_grant.revoked": "benefit_grant.revoked";
5949
+ "benefit_grant.updated": "benefit_grant.updated";
5563
5950
  "checkout.completed": "checkout.completed";
5564
- "checkout.failed": "checkout.failed";
5565
5951
  "checkout.expired": "checkout.expired";
5952
+ "checkout.failed": "checkout.failed";
5953
+ "invoice.created": "invoice.created";
5954
+ "invoice.issued": "invoice.issued";
5955
+ "invoice.paid": "invoice.paid";
5956
+ "invoice.voided": "invoice.voided";
5957
+ "meter.period_closed": "meter.period_closed";
5958
+ "meter.threshold_crossed": "meter.threshold_crossed";
5566
5959
  "subscription.activated": "subscription.activated";
5567
- "subscription.renewed": "subscription.renewed";
5568
- "subscription.payment_failed": "subscription.payment_failed";
5569
- "subscription.suspended": "subscription.suspended";
5570
- "subscription.reactivated": "subscription.reactivated";
5571
5960
  "subscription.cancel_scheduled": "subscription.cancel_scheduled";
5572
5961
  "subscription.canceled": "subscription.canceled";
5573
5962
  "subscription.expired": "subscription.expired";
5963
+ "subscription.payment_failed": "subscription.payment_failed";
5964
+ "subscription.reactivated": "subscription.reactivated";
5965
+ "subscription.renewed": "subscription.renewed";
5966
+ "subscription.suspended": "subscription.suspended";
5574
5967
  "subscription.terminated": "subscription.terminated";
5575
- "invoice.created": "invoice.created";
5576
- "invoice.issued": "invoice.issued";
5577
- "invoice.voided": "invoice.voided";
5578
- "account.state_changed": "account.state_changed";
5579
- "account.deleted": "account.deleted";
5580
- "invoice.paid": "invoice.paid";
5581
- "benefit_grant.created": "benefit_grant.created";
5582
- "benefit_grant.updated": "benefit_grant.updated";
5583
- "benefit_grant.revoked": "benefit_grant.revoked";
5584
- "benefit_grant.cycled": "benefit_grant.cycled";
5585
- "meter.threshold_crossed": "meter.threshold_crossed";
5586
- "meter.period_closed": "meter.period_closed";
5587
5968
  }>>>;
5588
5969
  pending: z.ZodNumber;
5589
5970
  dead: z.ZodNumber;
5590
5971
  oldestPendingAt: z.ZodNullable<z.ZodISODateTime>;
5591
5972
  lastDelivery: z.ZodNullable<z.ZodObject<{
5592
5973
  status: z.ZodEnum<{
5593
- pending: "pending";
5594
5974
  dead: "dead";
5595
5975
  delivered: "delivered";
5976
+ pending: "pending";
5596
5977
  }>;
5597
5978
  httpStatus: z.ZodNullable<z.ZodNumber>;
5598
5979
  error: z.ZodNullable<z.ZodString>;
@@ -5639,9 +6020,9 @@ declare const DoctorReportSchema: z.ZodObject<{
5639
6020
  id: z.ZodString;
5640
6021
  configured: z.ZodBoolean;
5641
6022
  environment: z.ZodNullable<z.ZodEnum<{
6023
+ fake: "fake";
5642
6024
  live: "live";
5643
6025
  sandbox: "sandbox";
5644
- fake: "fake";
5645
6026
  }>>;
5646
6027
  merchantId: z.ZodNullable<z.ZodString>;
5647
6028
  healthy: z.ZodNullable<z.ZodBoolean>;
@@ -5669,44 +6050,44 @@ declare const DoctorReportSchema: z.ZodObject<{
5669
6050
  url: z.ZodString;
5670
6051
  status: z.ZodEnum<{
5671
6052
  active: "active";
5672
- paused: "paused";
5673
6053
  inactive: "inactive";
6054
+ paused: "paused";
5674
6055
  }>;
5675
6056
  eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
6057
+ "account.deleted": "account.deleted";
6058
+ "account.state_changed": "account.state_changed";
5676
6059
  "account.updated": "account.updated";
6060
+ "benefit_grant.created": "benefit_grant.created";
6061
+ "benefit_grant.cycled": "benefit_grant.cycled";
6062
+ "benefit_grant.revoked": "benefit_grant.revoked";
6063
+ "benefit_grant.updated": "benefit_grant.updated";
5677
6064
  "checkout.completed": "checkout.completed";
5678
- "checkout.failed": "checkout.failed";
5679
6065
  "checkout.expired": "checkout.expired";
6066
+ "checkout.failed": "checkout.failed";
6067
+ "invoice.created": "invoice.created";
6068
+ "invoice.issued": "invoice.issued";
6069
+ "invoice.paid": "invoice.paid";
6070
+ "invoice.voided": "invoice.voided";
6071
+ "meter.period_closed": "meter.period_closed";
6072
+ "meter.threshold_crossed": "meter.threshold_crossed";
5680
6073
  "subscription.activated": "subscription.activated";
5681
- "subscription.renewed": "subscription.renewed";
5682
- "subscription.payment_failed": "subscription.payment_failed";
5683
- "subscription.suspended": "subscription.suspended";
5684
- "subscription.reactivated": "subscription.reactivated";
5685
6074
  "subscription.cancel_scheduled": "subscription.cancel_scheduled";
5686
6075
  "subscription.canceled": "subscription.canceled";
5687
6076
  "subscription.expired": "subscription.expired";
6077
+ "subscription.payment_failed": "subscription.payment_failed";
6078
+ "subscription.reactivated": "subscription.reactivated";
6079
+ "subscription.renewed": "subscription.renewed";
6080
+ "subscription.suspended": "subscription.suspended";
5688
6081
  "subscription.terminated": "subscription.terminated";
5689
- "invoice.created": "invoice.created";
5690
- "invoice.issued": "invoice.issued";
5691
- "invoice.voided": "invoice.voided";
5692
- "account.state_changed": "account.state_changed";
5693
- "account.deleted": "account.deleted";
5694
- "invoice.paid": "invoice.paid";
5695
- "benefit_grant.created": "benefit_grant.created";
5696
- "benefit_grant.updated": "benefit_grant.updated";
5697
- "benefit_grant.revoked": "benefit_grant.revoked";
5698
- "benefit_grant.cycled": "benefit_grant.cycled";
5699
- "meter.threshold_crossed": "meter.threshold_crossed";
5700
- "meter.period_closed": "meter.period_closed";
5701
6082
  }>>>;
5702
6083
  pending: z.ZodNumber;
5703
6084
  dead: z.ZodNumber;
5704
6085
  oldestPendingAt: z.ZodNullable<z.ZodISODateTime>;
5705
6086
  lastDelivery: z.ZodNullable<z.ZodObject<{
5706
6087
  status: z.ZodEnum<{
5707
- pending: "pending";
5708
6088
  dead: "dead";
5709
6089
  delivered: "delivered";
6090
+ pending: "pending";
5710
6091
  }>;
5711
6092
  httpStatus: z.ZodNullable<z.ZodNumber>;
5712
6093
  error: z.ZodNullable<z.ZodString>;
@@ -5754,8 +6135,8 @@ declare const DoctorReportSchema: z.ZodObject<{
5754
6135
  code: z.ZodString;
5755
6136
  severity: z.ZodEnum<{
5756
6137
  error: "error";
5757
- warning: "warning";
5758
6138
  info: "info";
6139
+ warning: "warning";
5759
6140
  }>;
5760
6141
  message: z.ZodString;
5761
6142
  endpointId: z.ZodOptional<z.ZodUUID>;
@@ -5765,12 +6146,12 @@ type DoctorReport = z.infer<typeof DoctorReportSchema>;
5765
6146
  /** Toplanan olgular: teşhis, hosted hazırlığı, uyarılar ve `ok` `buildDoctorReport`'ta türetilir. */
5766
6147
  type DoctorFacts = {
5767
6148
  checkedAt: Date;
5768
- product: DoctorReport["product"];
6149
+ product: DoctorReport['product'];
5769
6150
  catalog: DoctorCatalog;
5770
6151
  provider: DoctorProvider;
5771
- settings: Pick<ProductSettings, "appUrl" | "extraReturnOrigins" | "privacyUrl" | "termsUrl" | "branding"> & Partial<Pick<ProductSettings, "emails">>;
5772
- endpoints: Omit<DoctorEndpoint, "diagnosis">[];
5773
- dunning: DoctorReport["dunning"];
6152
+ settings: Pick<ProductSettings, 'appUrl' | 'extraReturnOrigins' | 'privacyUrl' | 'termsUrl' | 'branding'> & Partial<Pick<ProductSettings, 'emails'>>;
6153
+ endpoints: Omit<DoctorEndpoint, 'diagnosis'>[];
6154
+ dunning: DoctorReport['dunning'];
5774
6155
  /** Deployment email transport facts; omitted: no email section in the report. */
5775
6156
  emailTransport?: {
5776
6157
  configured: boolean;
@@ -5784,14 +6165,14 @@ type DoctorFacts = {
5784
6165
  overage?: DoctorOverage;
5785
6166
  };
5786
6167
  /** Email readiness from settings and the deployment's transport (pure). */
5787
- declare function emailReadinessOf(settings: DoctorFacts["settings"], transport: NonNullable<DoctorFacts["emailTransport"]>): DoctorEmails;
6168
+ declare function emailReadinessOf(settings: DoctorFacts['settings'], transport: NonNullable<DoctorFacts['emailTransport']>): DoctorEmails;
5788
6169
  /** Bekleyen en eski teslimat bundan eskiyse `endpoint_pending_backlog` (K23 alarmıyla aynı eşik). */
5789
6170
  declare const DOCTOR_PENDING_BACKLOG_MS: number;
5790
6171
  /** Son denenmiş teslimattan endpoint teşhisi (saf). */
5791
6172
  declare function endpointDiagnosisOf(last: WebhookLastDelivery | null): DoctorEndpointDiagnosis;
5792
6173
  /** Hosted sayfa hazırlığı: eksik zorunlu marka alanları ve yasal bağlar (saf). */
5793
- declare function hostedReadinessOf(settings: DoctorFacts["settings"]): DoctorHosted;
6174
+ declare function hostedReadinessOf(settings: DoctorFacts['settings']): DoctorHosted;
5794
6175
  /** Olgulardan raporu türetir (saf): endpoint teşhisleri, hosted hazırlığı, uyarılar ve `ok`. */
5795
6176
  declare function buildDoctorReport(facts: DoctorFacts): DoctorReport;
5796
6177
  //#endregion
5797
- export { WebhookEndpointStatus as $, CatalogPlanSchema as $a, ManualInvoiceInputSchema as $i, matchesFilter as $n, MAX_METERED_PRICE_PER_UNITS as $o, ErrorCode as $r, canonicalMeterFilter as $s, EmailExtraTextSchema as $t, DoctorSeveritySchema as A, CheckoutPrefillSchema as Aa, MeResponse as Ai, PLAN_SET_MODES as An, CatalogBenefit as Ao, IngestRejectCode as Ar, MeterFilterClause as As, PaymentDueDaysSchema as At, hostedReadinessOf as B, CheckoutStatus as Ba, InvoiceLineSchema as Bi, ResyncResult as Bn, featureValueMatchesType as Bo, FEATURE_FLAG_BENEFIT_TYPE as Br, MeterPeriod as Bs, WebUrlSchema as Bt, DoctorProvider as C, PortalSessionError as Ca, InvoiceBillingReason as Cc, InvoiceIssueResponseSchema as Ci, emailLocaleOf as Cn, BenefitDefSchema as Co, EventsIngestInput as Cr, MeterCreditEntrySchema as Cs, LateGraceMinutesSchema as Ct, DoctorSettings as D, CheckoutConsentInputSchema as Da, MetadataSchema as Dc, InvoiceWaiveResponseSchema as Di, isEmailRelevant as Dn, BenefitSourceSchema as Do, INGEST_REJECT_CODES as Dr, MeterDefInput as Ds, MeteringSettings as Dt, DoctorReportSchema as E, CheckoutConsentInput as Ea, InvoicePaymentStatusSchema as Ec, InvoiceWaiveResponse as Ei, emailTemplateSettings as En, BenefitFeatureType as Eo, EventsIngestResultSchema as Er, MeterDef as Es, MeterChargeModeSchema as Et, DoctorWarningCode as F, CheckoutSessionCreateInputSchema as Fa, UncancelSubscriptionResponseSchema as Fi, PlanSetResponse as Fn, FeatureFlagProperties as Fo, isEventTimestampInRange as Fr, MeterFilterSchema as Fs, ReturnOriginSchema as Ft, WebhookEndpoint as G, MAX_CHECKOUT_CONSENT_DOCS as Ga, InvoiceSchema as Gi, MeterCreditBenefit as Gn, AccountMeters as Go, ResolvedBenefit as Gr, MeterPeriodStatusSchema as Gs, meteringSettingsOf as Gt, EventTypeSchema as H, Consent as Ha, InvoicePaymentSessionCreateInput as Hi, GrantedMeterCredit as Hn, isMeterCreditBenefit as Ho, OVERRIDE_BENEFIT_SOURCE as Hr, MeterPeriodListSchema as Hs, billingSettingsOf as Ht, DoctorWarningSchema as I, CheckoutSessionCreateParsed as Ia, Invoice as Ii, PlanSetResponseSchema as In, FeatureFlagPropertiesSchema as Io, BenefitRulesDefinition as Ir, MeterFilterValue as Is, SETTINGS_LOCALES as It, WebhookEndpointList as J, checkoutRedirectUrl as Ja, InvoiceVoidInputSchema as Ji, MeterRulesMeter as Jn, CatalogMeterSchema as Jo, isGrantActive as Jr, MeterUnitsSchema as Js, BillingPathSchema as Jt, WebhookEndpointCreateInput as K, ProviderPayload as Ka, InvoiceStatusSchema as Ki, MeterCreditsOptions as Kn, AccountMetersSchema as Ko, ResolvedBenefits as Kr, MeterStanding as Ks, returnOriginsOf as Kt, buildDoctorReport as L, CheckoutSessionCreated as La, InvoiceIssueInput as Li, PlanSetWarning as Ln, MeterCreditAccountBenefit as Lo, BenefitRulesSubscription as Lr, MeterLabel as Ls, SettingsLocale as Lt, DoctorUnsellablePriceSchema as M, CheckoutReturnStatus as Ma, STEWARD_CAPABILITIES as Mi, PlanSetInputSchema as Mn, FeatureFlagAccountBenefit as Mo, IngestRejection as Mr, MeterFilterGroup as Ms, ProductSettingsPatch as Mt, DoctorUnsellableReason as N, CheckoutSession as Na, StewardCapability as Ni, PlanSetMode as Nn, FeatureFlagBenefitDef as No, IngestRejectionSchema as Nr, MeterFilterOperand as Ns, ProductSettingsPatchSchema as Nt, DoctorSettingsSchema as O, CheckoutError as Oa, ManualInvoiceResponse as Oi, liveSubscriptionOf as On, BenefitType as Oo, IngestEvent as Or, MeterDefSchema as Os, MeteringSettingsPatchSchema as Ot, DoctorWarning as P, CheckoutSessionCreateInput as Pa, UncancelSubscriptionResponse as Pi, PlanSetModeSchema as Pn, FeatureFlagBenefitDefSchema as Po, hasControlCharacters as Pr, MeterFilterOperator as Ps, ProductSettingsSchema as Pt, WebhookEndpointSchema as Q, CatalogPlan as Qa, ManualInvoiceInput as Qi, contributionOf as Qn, DecimalUnitsStringSchema as Qo, ERROR_CODES as Qr, MeteredPriceSchema as Qs, EMAIL_TEMPLATE_BY_EVENT as Qt, emailReadinessOf as R, CheckoutSessionCreatedSchema as Ra, InvoiceIssueInputSchema as Ri, PlanSetWarningCode as Rn, MeterCreditBenefitDef as Ro, EntitlementRulesCatalog as Rr, MeterLabelSchema as Rs, SettingsLocaleSchema as Rt, DoctorOverageSchema as S, PortalSessionCreateInputSchema as Sa, IntervalSchema as Sc, InvoiceIssueResponse as Si, billingPageUrl as Sn, BenefitDef as So, EventNameSchema as Sr, MeterCreditEntryKindSchema as Ss, EventsSettingsSchema as St, DoctorReport as T, CHECKOUT_ERRORS as Ta, InvoicePaymentStatus as Tc, InvoiceVoidResponseSchema as Ti, emailTemplateOf as Tn, BenefitDescriptionSchema as To, EventsIngestResult as Tr, MeterCreditPropertiesSchema as Ts, MeterChargeMode as Tt, WEBHOOK_ENDPOINT_STATUSES as U, ConsentSchema as Ua, InvoicePaymentSessionCreateInputSchema as Ui, MeterChargeTotalsLine as Un, AccountMeter as Uo, ResolveBenefitsInput as Ur, MeterPeriodSchema as Us, eventsSettingsOf as Ut, DEFAULT_ENDPOINT_EVENT_TYPES as V, CheckoutStatusSchema as Va, InvoicePaymentSession as Vi, ResyncResultSchema as Vn, isFeatureFlagBenefit as Vo, LIVE_SUBSCRIPTION_STATUSES as Vr, MeterPeriodList as Vs, applySettingsPatch as Vt, WEBHOOK_SECRET_PREFIX as W, INDIVIDUAL_IDENTITY_PLACEHOLDER as Wa, InvoicePaymentSessionSchema as Wi, MeterContribution as Wn, AccountMeterSchema as Wo, ResolveEntitlementsInput as Wr, MeterPeriodStatus as Ws, isReturnUrlAllowed as Wt, WebhookEndpointRotateInput as X, AccountsRefreshResultSchema as Xa, InvoiceWaiveInputSchema as Xi, addUtcMonths as Xn, CreditGrantInputSchema as Xo, resolveBenefits as Xr, MeteredPriceDef as Xs, EMAIL_PAYLOAD_SCHEMAS as Xt, WebhookEndpointListSchema as Y, AccountsRefreshResult as Ya, InvoiceWaiveInput as Yi, OverageRateInput as Yn, CreditGrantInput as Yo, isLiveSubscriptionStatus as Yr, MeteredPrice as Ys, EMAIL_LOCALES as Yt, WebhookEndpointRotateInputSchema as Z, Catalog as Za, MANUAL_INVOICE_MAX_AMOUNT_MINOR as Zi, consumptionOf as Zn, DEFAULT_METER_LOW_AT as Zo, resolveEntitlements as Zr, MeteredPriceDefSchema as Zs, EMAIL_TEMPLATES as Zt, DoctorEventsSchema as _, SubscriptionChangeInputSchema as _a, ExternalRefSchema as _c, HEADER_ACTOR_REF as _i, PriceChangeNoticeEmail as _n, PriceDefSchema as _o, EventMetadata as _r, MeterChargeSchema as _s, DEFAULT_PAYMENT_DUE_DAYS as _t, DOCTOR_ROLLUP_LAG_WARN_SECONDS as a, CancelSubscriptionInputSchema as aa, Currency as ac, AccountUpsertResponse as ai, EmailSettingsPatchSchema as an, FeatureDef as ao, rateOverage as ar, METER_FILTER_MAX_DEPTH as as, webhookEndpointUrlProblem as at, DoctorHostedSchema as b, PortalSession as ba, IdSchema as bc, HEADER_REQUEST_ID as bi, PriceChangeNoticeMeteredRateSchema as bn, AccountBenefitSchema as bo, EventMetadataValue as br, MeterCreditEntry as bs, EventsSettings as bt, DoctorBillingSchema as c, GrantCreateInputSchema as ca, ERROR_CATEGORIES as cc, CancelSubscriptionResponseSchema as ci, EmailTemplateSchema as cn, MAX_CATALOG_BENEFITS as co, EVENTS_INGEST_MAX_BYTES as cr, METER_STANDINGS as cs, BillingSettingsSchema as ct, DoctorEmails as d, Payment as da, Entitlements as dc, CheckoutSessionResponse as di, InvoicePaymentDueEmail as dn, MAX_PLAN_BENEFITS as do, EVENT_METADATA_MAX_PAIRS as dr, MeterAggregationSchema as ds, BrandingSchema as dt, ManualInvoiceLineInput as ea, meterFilterClauseOf as ec, ErrorCodeSpec as ei, EmailLocale as en, CatalogSchema as eo, meterChargeTotals as er, MAX_METER_UNITS as es, WebhookEndpointStatusSchema as et, DoctorEmailsSchema as f, PaymentSchema as fa, EntitlementsSchema as fc, CheckoutSessionResponseSchema as fi, InvoicePaymentDueEmailSchema as fn, METERED_PRICE_TAX_MISMATCH as fo, EVENT_METADATA_STRING_MAX_LENGTH as fr, MeterCharge as fs, DEFAULT_CHECKOUT_TTL_MINUTES as ft, DoctorEvents as g, SubscriptionChangeInput as ga, ErrorResponseSchema as gc, GrantCreateResponseSchema as gi, NotificationEmailsSchema as gn, PriceDef as go, EventExternalIdSchema as gr, MeterChargeListSchema as gs, DEFAULT_MIN_INVOICE_MINOR as gt, DoctorEndpointSchema as h, Subscription as ha, ErrorResponse as hc, GrantCreateResponse as hi, NoticedMeteredRateSchema as hn, Price as ho, EVENT_TIMESTAMP_MAX_SKEW_MINUTES as hr, MeterChargeList as hs, DEFAULT_METER_CHARGE_MODE as ht, DOCTOR_REQUIRED_LEGAL_LINKS as i, CancelSubscriptionInput as ia, CodeSchema as ic, AccountDetailSchema as ii, EmailSettingsPatch as in, CatalogSyncResultSchema as io, periodBoundsOf as ir, METER_FILTER_MAX_CONDITIONS as is, generateWebhookSecret as it, DoctorUnsellablePrice as j, CheckoutRedirectTarget as ja, MeResponseSchema as ji, PlanSetInput as jn, CatalogBenefitSchema as jo, IngestRejectCodeSchema as jr, MeterFilterCondition as js, ProductSettings as jt, DoctorSeverity as k, CheckoutPrefill as ka, ManualInvoiceResponseSchema as ki, uniqueEmails as kn, BenefitTypeSchema as ko, IngestEventSchema as kr, MeterFilter as ks, MeteringSettingsSchema as kt, DoctorCatalog as l, GrantSchema as la, EntitlementValue as lc, ChangeSubscriptionResponse as li, EmailTemplateSettings as ln, MAX_CATALOG_METERED_PRICES as lo, EVENTS_INGEST_MAX_EVENTS as lr, MeterAggregation as ls, Branding as lt, DoctorEndpointDiagnosis as m, StatsSchema as ma, ErrorCategorySchema as mc, CreditGrantResponseSchema as mi, NoticedMeteredRate as mn, PlanDefSchema as mo, EVENT_TIMESTAMP_MAX_AGE_DAYS as mr, MeterChargeLineSchema as ms, DEFAULT_LATE_GRACE_MINUTES as mt, DOCTOR_PROVIDER_ENVIRONMENTS as n, manualInvoiceTotals as na, ActorRefSchema as nc, isKnownErrorCode as ni, EmailSenderSchema as nn, CatalogSyncInputSchema as no, overageCapReached as nr, METER_CHARGE_STATUSES as ns, WebhookLastDeliverySchema as nt, DOCTOR_SEVERITIES as o, Grant as oa, CurrencySchema as oc, AccountUpsertResponseSchema as oi, EmailSettingsSchema as on, FeatureDefSchema as oo, rolloverOf as or, METER_FILTER_OPERATORS as os, BillingSettings as ot, DoctorEndpoint as p, Stats as pa, ErrorCategory as pc, CreditGrantResponse as pi, MAX_NOTIFICATION_EMAILS as pn, PlanDef as po, EVENT_NAME_MAX_LENGTH as pr, MeterChargeLine as ps, DEFAULT_EVENT_RETENTION_DAYS as pt, WebhookEndpointCreateInputSchema as q, ProviderPayloadSchema as qa, InvoiceVoidInput as qi, MeterRulesEvent as qn, CatalogMeter as qo, ResolvedEntitlements as qr, MeterStandingSchema as qs, BILLING_PATH_PLACEHOLDERS as qt, DOCTOR_REQUIRED_BRANDING as r, splitInclusiveTax as ra, AmountMinorSchema as rc, AccountDetail as ri, EmailSettings as rn, CatalogSyncResult as ro, overageOf as rr, METER_CREDIT_ENTRY_KINDS as rs, WebhookSecretSchema as rt, DoctorBilling as s, GrantCreateInput as sa, DateTimeSchema as sc, CancelSubscriptionResponse as si, EmailTemplate as sn, FeatureTypeSchema as so, standingOf as sr, METER_PERIOD_STATUSES as ss, BillingSettingsPatchSchema as st, DOCTOR_PENDING_BACKLOG_MS as t, ManualInvoiceLineInputSchema as ta, API_VERSION as tc, errorCodeSpec as ti, EmailRelevanceFacts as tn, CatalogSyncInput as to, meterCreditsOf as tr, METER_AGGREGATION_KINDS as ts, WebhookLastDelivery as tt, DoctorCatalogSchema as u, MAX_GRANT_BENEFITS as ua, EntitlementValueSchema as uc, ChangeSubscriptionResponseSchema as ui, EmailTemplateSettingsSchema as un, MAX_CATALOG_METERS as uo, EVENT_METADATA_KEY_MAX_LENGTH as ur, MeterAggregationKind as us, BrandingPatchSchema as ut, DoctorFacts as v, SubscriptionSchema as va, INVOICE_BILLING_REASONS as vc, HEADER_API_VERSION as vi, PriceChangeNoticeEmailSchema as vn, PriceSchema as vo, EventMetadataKeySchema as vr, MeterChargeStatus as vs, DEFAULT_PORTAL_TTL_MINUTES as vt, DoctorProviderSchema as w, PortalSessionSchema as wa, InvoiceBillingReasonSchema as wc, InvoiceVoidResponse as wi, emailRecipients as wn, BenefitDescription as wo, EventsIngestInputSchema as wr, MeterCreditProperties as ws, METER_CHARGE_MODES as wt, DoctorOverage as x, PortalSessionCreateInput as xa, Interval as xc, HEADER_SDK as xi, applyEmailSettingsPatch as xn, BENEFIT_TYPES as xo, EventMetadataValueSchema as xr, MeterCreditEntryKind as xs, EventsSettingsPatchSchema as xt, DoctorHosted as y, PORTAL_SESSION_ERRORS as ya, INVOICE_PAYMENT_STATUSES as yc, HEADER_IDEMPOTENCY_KEY as yi, PriceChangeNoticeMeteredRate as yn, AccountBenefit as yo, EventMetadataSchema as yr, MeterChargeStatusSchema as ys, EventRetentionDaysSchema as yt, endpointDiagnosisOf as z, CheckoutSessionSchema as za, InvoiceLine as zi, PlanSetWarningSchema as zn, MeterCreditBenefitDefSchema as zo, EntitlementRulesGrant as zr, MeterLowAtSchema as zs, TtlMinutesSchema as zt };
6178
+ export { WebhookEndpointStatus as $, Consent as $a, InvoiceStatusSchema as $i, MeterCreditsOptions as $n, MeterCreditBenefitDefSchema as $o, ResolvedBenefits as $r, MeterLowAtSchema as $s, BankTransferInstructionsEmail as $t, DoctorSeveritySchema as A, PortalSessionError as Aa, ErrorResponseSchema as Ac, InvoiceIssueResponseSchema as Ai, emailLocaleOf as An, PriceDef as Ao, EventsIngestInput as Ar, MeterChargeListSchema as As, MeterChargeMode as At, hostedReadinessOf as B, CheckoutPrefill as Ba, InvoicePaymentStatusSchema as Bc, StewardCapability as Bi, PlanSetMode as Bn, BenefitFeatureType as Bo, IngestRejectionSchema as Br, MeterDef as Bs, ReturnOriginSchema as Bt, DoctorProvider as C, SubscriptionChangeInput as Ca, EntitlementValue as Cc, GrantCreateResponseSchema as Ci, NotificationEmailsSchema as Cn, MAX_CATALOG_METERED_PRICES as Co, EventExternalIdSchema as Cr, MeterAggregation as Cs, DEFAULT_PORTAL_TTL_MINUTES as Ct, DoctorSettings as D, PortalSession as Da, ErrorCategory as Dc, HEADER_REQUEST_ID as Di, PriceChangeNoticeMeteredRateSchema as Dn, PlanDef as Do, EventMetadataValue as Dr, MeterChargeLine as Ds, EventsSettingsSchema as Dt, DoctorReportSchema as E, PORTAL_SESSION_ERRORS as Ea, EntitlementsSchema as Ec, HEADER_IDEMPOTENCY_KEY as Ei, PriceChangeNoticeMeteredRate as En, METERED_PRICE_TAX_MISMATCH as Eo, EventMetadataSchema as Er, MeterCharge as Es, EventsSettingsPatchSchema as Et, DoctorWarningCode as F, BankTransferRecordedSchema as Fa, Interval as Fc, ManualInvoiceResponse as Fi, liveSubscriptionOf as Fn, BENEFIT_TYPES as Fo, IngestEvent as Fr, MeterCreditEntryKind as Fs, PaymentDueDaysSchema as Ft, WebhookEndpoint as G, CheckoutSessionCreateInput as Ga, InvoiceIssueInputSchema as Gi, PlanSetWarningCode as Gn, CatalogBenefitSchema as Go, EntitlementRulesCatalog as Gr, MeterFilterCondition as Gs, WebUrlSchema as Gt, EventTypeSchema as H, CheckoutRedirectTarget as Ha, UncancelSubscriptionResponseSchema as Hi, PlanSetResponse as Hn, BenefitType as Ho, isEventTimestampInRange as Hr, MeterDefSchema as Hs, SettingsLocale as Ht, DoctorWarningSchema as I, CHECKOUT_ERRORS as Ia, IntervalSchema as Ic, ManualInvoiceResponseSchema as Ii, uniqueEmails as In, BenefitDef as Io, IngestEventSchema as Ir, MeterCreditEntryKindSchema as Is, ProductSettings as It, WebhookEndpointList as J, CheckoutSessionCreated as Ja, InvoicePaymentSession as Ji, ResyncResultSchema as Jn, FeatureFlagBenefitDefSchema as Jo, LIVE_SUBSCRIPTION_STATUSES as Jr, MeterFilterOperator as Js, eventsSettingsOf as Jt, WebhookEndpointCreateInput as K, CheckoutSessionCreateInputSchema as Ka, InvoiceLine as Ki, PlanSetWarningSchema as Kn, FeatureFlagAccountBenefit as Ko, EntitlementRulesGrant as Kr, MeterFilterGroup as Ks, applySettingsPatch as Kt, buildDoctorReport as L, CheckoutConsentInput as La, InvoiceBillingReason as Lc, MeResponse as Li, PLAN_SET_MODES as Ln, BenefitDefSchema as Lo, IngestRejectCode as Lr, MeterCreditEntrySchema as Ls, ProductSettingsPatch as Lt, DoctorUnsellablePriceSchema as M, BankTransferRecordInput as Ma, INVOICE_BILLING_REASONS as Mc, InvoiceVoidResponseSchema as Mi, emailTemplateOf as Mn, PriceSchema as Mo, EventsIngestResult as Mr, MeterChargeStatus as Ms, MeteringSettings as Mt, DoctorUnsellableReason as N, BankTransferRecordInputSchema as Na, INVOICE_PAYMENT_STATUSES as Nc, InvoiceWaiveResponse as Ni, emailTemplateSettings as Nn, AccountBenefit as No, EventsIngestResultSchema as Nr, MeterChargeStatusSchema as Ns, MeteringSettingsPatchSchema as Nt, DoctorSettingsSchema as O, PortalSessionCreateInput as Oa, ErrorCategorySchema as Oc, HEADER_SDK as Oi, applyEmailSettingsPatch as On, PlanDefSchema as Oo, EventMetadataValueSchema as Or, MeterChargeLineSchema as Os, LateGraceMinutesSchema as Ot, DoctorWarning as P, BankTransferRecorded as Pa, IdSchema as Pc, InvoiceWaiveResponseSchema as Pi, isEmailRelevant as Pn, AccountBenefitSchema as Po, INGEST_REJECT_CODES as Pr, MeterCreditEntry as Ps, MeteringSettingsSchema as Pt, WebhookEndpointSchema as Q, CheckoutStatusSchema as Qa, InvoiceSchema as Qi, MeterCreditBenefit as Qn, MeterCreditBenefitDef as Qo, ResolvedBenefit as Qr, MeterLabelSchema as Qs, BILLING_PATH_PLACEHOLDERS as Qt, emailReadinessOf as R, CheckoutConsentInputSchema as Ra, InvoiceBillingReasonSchema as Rc, MeResponseSchema as Ri, PlanSetInput as Rn, BenefitDescription as Ro, IngestRejectCodeSchema as Rr, MeterCreditProperties as Rs, ProductSettingsPatchSchema as Rt, DoctorOverageSchema as S, Subscription as Sa, ERROR_CATEGORIES as Sc, GrantCreateResponse as Si, NoticedMeteredRateSchema as Sn, MAX_CATALOG_BENEFITS as So, EVENT_TIMESTAMP_MAX_SKEW_MINUTES as Sr, METER_STANDINGS as Ss, DEFAULT_PAYMENT_DUE_DAYS as St, DoctorReport as T, SubscriptionSchema as Ta, Entitlements as Tc, HEADER_API_VERSION as Ti, PriceChangeNoticeEmailSchema as Tn, MAX_PLAN_BENEFITS as To, EventMetadataKeySchema as Tr, MeterAggregationSchema as Ts, EventsSettings as Tt, WEBHOOK_ENDPOINT_STATUSES as U, CheckoutReturnStatus as Ua, Invoice as Ui, PlanSetResponseSchema as Un, BenefitTypeSchema as Uo, BenefitRulesDefinition as Ur, MeterFilter as Us, SettingsLocaleSchema as Ut, DEFAULT_ENDPOINT_EVENT_TYPES as V, CheckoutPrefillSchema as Va, MetadataSchema as Vc, UncancelSubscriptionResponse as Vi, PlanSetModeSchema as Vn, BenefitSourceSchema as Vo, hasControlCharacters as Vr, MeterDefInput as Vs, SETTINGS_LOCALES as Vt, WEBHOOK_SECRET_PREFIX as W, CheckoutSession as Wa, InvoiceIssueInput as Wi, PlanSetWarning as Wn, CatalogBenefit as Wo, BenefitRulesSubscription as Wr, MeterFilterClause as Ws, TtlMinutesSchema as Wt, WebhookEndpointRotateInput as X, CheckoutSessionSchema as Xa, InvoicePaymentSessionCreateInputSchema as Xi, MeterChargeTotalsLine as Xn, FeatureFlagPropertiesSchema as Xo, ResolveBenefitsInput as Xr, MeterFilterValue as Xs, meteringSettingsOf as Xt, WebhookEndpointListSchema as Y, CheckoutSessionCreatedSchema as Ya, InvoicePaymentSessionCreateInput as Yi, GrantedMeterCredit as Yn, FeatureFlagProperties as Yo, OVERRIDE_BENEFIT_SOURCE as Yr, MeterFilterSchema as Ys, isReturnUrlAllowed as Yt, WebhookEndpointRotateInputSchema as Z, CheckoutStatus as Za, InvoicePaymentSessionSchema as Zi, MeterContribution as Zn, MeterCreditAccountBenefit as Zo, ResolveEntitlementsInput as Zr, MeterLabel as Zs, returnOriginsOf as Zt, DoctorEventsSchema as _, MAX_GRANT_BENEFITS as _a, AmountMinorSchema as _c, ChangeSubscriptionResponseSchema as _i, EmailTemplateSettingsSchema as _n, CatalogSyncResult as _o, EVENT_METADATA_KEY_MAX_LENGTH as _r, METER_CREDIT_ENTRY_KINDS as _s, DEFAULT_CHECKOUT_TTL_MINUTES as _t, DOCTOR_ROLLUP_LAG_WARN_SECONDS as a, ManualInvoiceInput as aa, MeterPeriodStatusSchema as ac, ERROR_CODES as ai, EMAIL_TEMPLATE_BY_EVENT as an, PaymentMethodSchema as ao, contributionOf as ar, AccountMeters as as, webhookEndpointUrlProblem as at, DoctorHostedSchema as b, Stats as ba, CurrencySchema as bc, CreditGrantResponse as bi, MAX_NOTIFICATION_EMAILS as bn, FeatureDefSchema as bo, EVENT_NAME_MAX_LENGTH as br, METER_FILTER_OPERATORS as bs, DEFAULT_METER_CHARGE_MODE as bt, DoctorBillingSchema as c, ManualInvoiceLineInputSchema as ca, MeterUnitsSchema as cc, errorCodeSpec as ci, EmailRelevanceFacts as cn, checkoutRedirectUrl as co, meterCreditsOf as cr, CatalogMeterSchema as cs, BankTransferSettingsPatchSchema as ct, DoctorEmails as d, CancelSubscriptionInput as da, MeteredPriceDefSchema as dc, AccountDetailSchema as di, EmailSettingsPatch as dn, Catalog as do, periodBoundsOf as dr, DEFAULT_METER_LOW_AT as ds, BillingSettingsPatchSchema as dt, InvoiceVoidInput as ea, MeterPeriod as ec, ResolvedEntitlements as ei, BankTransferInstructionsEmailSchema as en, ConsentSchema as eo, MeterRulesEvent as er, featureValueMatchesType as es, WebhookEndpointStatusSchema as et, DoctorEmailsSchema as f, CancelSubscriptionInputSchema as fa, MeteredPriceSchema as fc, AccountUpsertResponse as fi, EmailSettingsPatchSchema as fn, CatalogPlan as fo, rateOverage as fr, DecimalUnitsStringSchema as fs, BillingSettingsSchema as ft, DoctorEvents as g, GrantSchema as ga, ActorRefSchema as gc, ChangeSubscriptionResponse as gi, EmailTemplateSettings as gn, CatalogSyncInputSchema as go, EVENTS_INGEST_MAX_EVENTS as gr, METER_CHARGE_STATUSES as gs, DEFAULT_BANK_TRANSFER_PAYMENT_DAYS as gt, DoctorEndpointSchema as h, GrantCreateInputSchema as ha, API_VERSION as hc, CancelSubscriptionResponseSchema as hi, EmailTemplateSchema as hn, CatalogSyncInput as ho, EVENTS_INGEST_MAX_BYTES as hr, METER_AGGREGATION_KINDS as hs, BrandingSchema as ht, DOCTOR_REQUIRED_LEGAL_LINKS as i, MANUAL_INVOICE_MAX_AMOUNT_MINOR as ia, MeterPeriodStatus as ic, resolveEntitlements as ii, EMAIL_TEMPLATES as in, PaymentMethod as io, consumptionOf as ir, AccountMeterSchema as is, generateWebhookSecret as it, DoctorUnsellablePrice as j, PortalSessionSchema as ja, ExternalRefSchema as jc, InvoiceVoidResponse as ji, emailRecipients as jn, PriceDefSchema as jo, EventsIngestInputSchema as jr, MeterChargeSchema as js, MeterChargeModeSchema as jt, DoctorSeverity as k, PortalSessionCreateInputSchema as ka, ErrorResponse as kc, InvoiceIssueResponse as ki, billingPageUrl as kn, Price as ko, EventNameSchema as kr, MeterChargeList as ks, METER_CHARGE_MODES as kt, DoctorCatalog as l, manualInvoiceTotals as la, MeteredPrice as lc, isKnownErrorCode as li, EmailSenderSchema as ln, AccountsRefreshResult as lo, overageCapReached as lr, CreditGrantInput as ls, BankTransferSettingsSchema as lt, DoctorEndpointDiagnosis as m, GrantCreateInput as ma, meterFilterClauseOf as mc, CancelSubscriptionResponse as mi, EmailTemplate as mn, CatalogSchema as mo, standingOf as mr, MAX_METER_UNITS as ms, BrandingPatchSchema as mt, DOCTOR_PROVIDER_ENVIRONMENTS as n, InvoiceWaiveInput as na, MeterPeriodListSchema as nc, isLiveSubscriptionStatus as ni, EMAIL_LOCALES as nn, MAX_CHECKOUT_CONSENT_DOCS as no, OverageRateInput as nr, isMeterCreditBenefit as ns, WebhookLastDeliverySchema as nt, DOCTOR_SEVERITIES as o, ManualInvoiceInputSchema as oa, MeterStanding as oc, ErrorCode as oi, EmailExtraTextSchema as on, ProviderPayload as oo, matchesFilter as or, AccountMetersSchema as os, BankTransferPaymentDaysSchema as ot, DoctorEndpoint as p, Grant as pa, canonicalMeterFilter as pc, AccountUpsertResponseSchema as pi, EmailSettingsSchema as pn, CatalogPlanSchema as po, rolloverOf as pr, MAX_METERED_PRICE_PER_UNITS as ps, Branding as pt, WebhookEndpointCreateInputSchema as q, CheckoutSessionCreateParsed as qa, InvoiceLineSchema as qi, ResyncResult as qn, FeatureFlagBenefitDef as qo, FEATURE_FLAG_BENEFIT_TYPE as qr, MeterFilterOperand as qs, billingSettingsOf as qt, DOCTOR_REQUIRED_BRANDING as r, InvoiceWaiveInputSchema as ra, MeterPeriodSchema as rc, resolveBenefits as ri, EMAIL_PAYLOAD_SCHEMAS as rn, PAYMENT_METHODS as ro, addUtcMonths as rr, AccountMeter as rs, WebhookSecretSchema as rt, DoctorBilling as s, ManualInvoiceLineInput as sa, MeterStandingSchema as sc, ErrorCodeSpec as si, EmailLocale as sn, ProviderPayloadSchema as so, meterChargeTotals as sr, CatalogMeter as ss, BankTransferSettings as st, DOCTOR_PENDING_BACKLOG_MS as t, InvoiceVoidInputSchema as ta, MeterPeriodList as tc, isGrantActive as ti, BillingPathSchema as tn, INDIVIDUAL_IDENTITY_PLACEHOLDER as to, MeterRulesMeter as tr, isFeatureFlagBenefit as ts, WebhookLastDelivery as tt, DoctorCatalogSchema as u, splitInclusiveTax as ua, MeteredPriceDef as uc, AccountDetail as ui, EmailSettings as un, AccountsRefreshResultSchema as uo, overageOf as ur, CreditGrantInputSchema as us, BillingSettings as ut, DoctorFacts as v, Payment as va, CodeSchema as vc, CheckoutSessionResponse as vi, InvoicePaymentDueEmail as vn, CatalogSyncResultSchema as vo, EVENT_METADATA_MAX_PAIRS as vr, METER_FILTER_MAX_CONDITIONS as vs, DEFAULT_EVENT_RETENTION_DAYS as vt, DoctorProviderSchema as w, SubscriptionChangeInputSchema as wa, EntitlementValueSchema as wc, HEADER_ACTOR_REF as wi, PriceChangeNoticeEmail as wn, MAX_CATALOG_METERS as wo, EventMetadata as wr, MeterAggregationKind as ws, EventRetentionDaysSchema as wt, DoctorOverage as x, StatsSchema as xa, DateTimeSchema as xc, CreditGrantResponseSchema as xi, NoticedMeteredRate as xn, FeatureTypeSchema as xo, EVENT_TIMESTAMP_MAX_AGE_DAYS as xr, METER_PERIOD_STATUSES as xs, DEFAULT_MIN_INVOICE_MINOR as xt, DoctorHosted as y, PaymentSchema as ya, Currency as yc, CheckoutSessionResponseSchema as yi, InvoicePaymentDueEmailSchema as yn, FeatureDef as yo, EVENT_METADATA_STRING_MAX_LENGTH as yr, METER_FILTER_MAX_DEPTH as ys, DEFAULT_LATE_GRACE_MINUTES as yt, endpointDiagnosisOf as z, CheckoutError as za, InvoicePaymentStatus as zc, STEWARD_CAPABILITIES as zi, PlanSetInputSchema as zn, BenefitDescriptionSchema as zo, IngestRejection as zr, MeterCreditPropertiesSchema as zs, ProductSettingsSchema as zt };