@wildo-ai/external-connectors-models 1.1.4 → 1.1.6

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.
Files changed (100) hide show
  1. package/dist/esm/companion-exports.d.ts.map +1 -1
  2. package/dist/esm/core/commons.external-connectors-models.schemas.d.ts +23 -132
  3. package/dist/esm/core/commons.external-connectors-models.schemas.d.ts.map +1 -1
  4. package/dist/esm/core/commons.external-connectors-models.schemas.js +23 -31
  5. package/dist/esm/core/commons.external-connectors-models.schemas.js.map +1 -1
  6. package/dist/esm/core/operation-classification.external-connectors-models.schemas.d.ts.map +1 -1
  7. package/dist/esm/core/operation-classification.external-connectors-models.schemas.js.map +1 -1
  8. package/dist/esm/core/security.external-connectors-models.schemas.d.ts +40 -8
  9. package/dist/esm/core/security.external-connectors-models.schemas.d.ts.map +1 -1
  10. package/dist/esm/core/security.external-connectors-models.schemas.js +61 -14
  11. package/dist/esm/core/security.external-connectors-models.schemas.js.map +1 -1
  12. package/dist/esm/index.d.ts +5 -2
  13. package/dist/esm/index.d.ts.map +1 -1
  14. package/dist/esm/index.js +5 -2
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.d.ts +78 -163
  17. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.d.ts.map +1 -1
  18. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.js +78 -93
  19. package/dist/esm/protocols/agent-client-protocol.external-connectors-models.schemas.js.map +1 -1
  20. package/dist/esm/protocols/billing.standard-interface.schemas.d.ts +258 -13
  21. package/dist/esm/protocols/billing.standard-interface.schemas.d.ts.map +1 -1
  22. package/dist/esm/protocols/billing.standard-interface.schemas.js +41 -0
  23. package/dist/esm/protocols/billing.standard-interface.schemas.js.map +1 -1
  24. package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.d.ts +57 -17
  25. package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.d.ts.map +1 -1
  26. package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.js +26 -7
  27. package/dist/esm/protocols/document-extraction.external-connectors-models.schemas.js.map +1 -1
  28. package/dist/esm/protocols/email-inbound.standard-interface.schemas.d.ts +229 -0
  29. package/dist/esm/protocols/email-inbound.standard-interface.schemas.d.ts.map +1 -0
  30. package/dist/esm/protocols/email-inbound.standard-interface.schemas.js +160 -0
  31. package/dist/esm/protocols/email-inbound.standard-interface.schemas.js.map +1 -0
  32. package/dist/esm/protocols/email.external-connectors-models.schemas.d.ts +1 -56
  33. package/dist/esm/protocols/email.external-connectors-models.schemas.d.ts.map +1 -1
  34. package/dist/esm/protocols/email.external-connectors-models.schemas.js +0 -20
  35. package/dist/esm/protocols/email.external-connectors-models.schemas.js.map +1 -1
  36. package/dist/esm/protocols/email.standard-interface.schemas.d.ts +4 -4
  37. package/dist/esm/protocols/email.standard-interface.schemas.d.ts.map +1 -1
  38. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.d.ts +1 -16
  39. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.d.ts.map +1 -1
  40. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.js +4 -9
  41. package/dist/esm/protocols/embeddings.external-connectors-models.schemas.js.map +1 -1
  42. package/dist/esm/protocols/file-storage.standard-interface.d.ts +179 -0
  43. package/dist/esm/protocols/file-storage.standard-interface.d.ts.map +1 -0
  44. package/dist/esm/protocols/file-storage.standard-interface.js +79 -0
  45. package/dist/esm/protocols/file-storage.standard-interface.js.map +1 -0
  46. package/dist/esm/protocols/frontend.external-connectors-models.schemas.d.ts +6 -13
  47. package/dist/esm/protocols/frontend.external-connectors-models.schemas.d.ts.map +1 -1
  48. package/dist/esm/protocols/frontend.external-connectors-models.schemas.js +0 -9
  49. package/dist/esm/protocols/frontend.external-connectors-models.schemas.js.map +1 -1
  50. package/dist/esm/protocols/hooks-capability.external-connectors-models.schemas.d.ts.map +1 -1
  51. package/dist/esm/protocols/hooks-capability.external-connectors-models.schemas.js.map +1 -1
  52. package/dist/esm/protocols/hooks.external-connectors-models.schemas.d.ts +20 -16
  53. package/dist/esm/protocols/hooks.external-connectors-models.schemas.d.ts.map +1 -1
  54. package/dist/esm/protocols/hooks.external-connectors-models.schemas.js +12 -9
  55. package/dist/esm/protocols/hooks.external-connectors-models.schemas.js.map +1 -1
  56. package/dist/esm/protocols/image.external-connectors-models.schemas.d.ts +1 -18
  57. package/dist/esm/protocols/image.external-connectors-models.schemas.d.ts.map +1 -1
  58. package/dist/esm/protocols/image.external-connectors-models.schemas.js +1 -7
  59. package/dist/esm/protocols/image.external-connectors-models.schemas.js.map +1 -1
  60. package/dist/esm/protocols/llm.external-connectors-models.schemas.d.ts +100 -40
  61. package/dist/esm/protocols/llm.external-connectors-models.schemas.d.ts.map +1 -1
  62. package/dist/esm/protocols/llm.external-connectors-models.schemas.js +164 -41
  63. package/dist/esm/protocols/llm.external-connectors-models.schemas.js.map +1 -1
  64. package/dist/esm/protocols/oauth2-provider-assurance.definitions.d.ts +7 -0
  65. package/dist/esm/protocols/oauth2-provider-assurance.definitions.d.ts.map +1 -0
  66. package/dist/esm/protocols/oauth2-provider-assurance.definitions.js +36 -0
  67. package/dist/esm/protocols/oauth2-provider-assurance.definitions.js.map +1 -0
  68. package/dist/esm/protocols/oauth2-provider-assurance.schemas.d.ts +23 -0
  69. package/dist/esm/protocols/oauth2-provider-assurance.schemas.d.ts.map +1 -0
  70. package/dist/esm/protocols/oauth2-provider-assurance.schemas.js +25 -0
  71. package/dist/esm/protocols/oauth2-provider-assurance.schemas.js.map +1 -0
  72. package/dist/esm/protocols/oauth2.external-connectors-models.schemas.d.ts +0 -148
  73. package/dist/esm/protocols/oauth2.external-connectors-models.schemas.d.ts.map +1 -1
  74. package/dist/esm/protocols/oauth2.external-connectors-models.schemas.js +1 -40
  75. package/dist/esm/protocols/oauth2.external-connectors-models.schemas.js.map +1 -1
  76. package/dist/esm/protocols/provider-oauth2-token-endpoint-hosts.external-connectors-models.d.ts +39 -0
  77. package/dist/esm/protocols/provider-oauth2-token-endpoint-hosts.external-connectors-models.d.ts.map +1 -0
  78. package/dist/esm/protocols/provider-oauth2-token-endpoint-hosts.external-connectors-models.js +66 -0
  79. package/dist/esm/protocols/provider-oauth2-token-endpoint-hosts.external-connectors-models.js.map +1 -0
  80. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.d.ts +863 -16
  81. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.d.ts.map +1 -1
  82. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.js +703 -0
  83. package/dist/esm/protocols/rest-operations.external-connectors-models.schemas.js.map +1 -1
  84. package/dist/esm/protocols/sms.external-connectors-models.schemas.d.ts +0 -39
  85. package/dist/esm/protocols/sms.external-connectors-models.schemas.d.ts.map +1 -1
  86. package/dist/esm/protocols/sms.external-connectors-models.schemas.js +0 -13
  87. package/dist/esm/protocols/sms.external-connectors-models.schemas.js.map +1 -1
  88. package/dist/esm/protocols/sms.standard-interface.schemas.d.ts +1 -1
  89. package/dist/esm/protocols/sms.standard-interface.schemas.d.ts.map +1 -1
  90. package/dist/esm/protocols/sms.standard-interface.schemas.js.map +1 -1
  91. package/dist/tsconfig.build.tsbuildinfo +1 -1
  92. package/package.json +2 -3
  93. package/dist/esm/core/protocols.external-connectors-models.schemas.d.ts +0 -74
  94. package/dist/esm/core/protocols.external-connectors-models.schemas.d.ts.map +0 -1
  95. package/dist/esm/core/protocols.external-connectors-models.schemas.js +0 -1
  96. package/dist/esm/core/protocols.external-connectors-models.schemas.js.map +0 -1
  97. package/dist/esm/protocols/rest-api.external-connectors-models.schemas.d.ts +0 -37
  98. package/dist/esm/protocols/rest-api.external-connectors-models.schemas.d.ts.map +0 -1
  99. package/dist/esm/protocols/rest-api.external-connectors-models.schemas.js +0 -10
  100. package/dist/esm/protocols/rest-api.external-connectors-models.schemas.js.map +0 -1
@@ -62,6 +62,45 @@ export declare enum ProrationBehavior {
62
62
  /** Prorate and invoice the difference IMMEDIATELY rather than at the next cycle. */
63
63
  ALWAYS_INVOICE = "always_invoice"
64
64
  }
65
+ /**
66
+ * How the provider treats a subscription change whose resulting payment does not succeed (#535, decision D6).
67
+ *
68
+ * Wildo applies a confirmed plan change IMMEDIATELY: entitlements move at local completion, and a failed proration
69
+ * payment moves the subscription to `past_due` through the webhook projection, where dunning owns what happens next.
70
+ * The value is DECLARED on every engine-issued change rather than left to the provider's default, so a change of that
71
+ * default can never silently change the semantics.
72
+ *
73
+ * Deliberately a one-member vocabulary. `pending_if_incomplete` (apply only after payment, expire after 23 h) was
74
+ * weighed and rejected in #535; add a member only with a decision that changes D6.
75
+ *
76
+ * spec-cite: https://docs.stripe.com/api/subscriptions/update — `payment_behavior`; the value equals Stripe's wire value,
77
+ * so the Stripe adapter passes it untranslated, as it does `ProrationBehavior`.
78
+ */
79
+ export declare enum StandardBilling_SubscriptionPaymentBehavior {
80
+ /** Apply the change now; an unpaid resulting invoice leaves the subscription `past_due`. */
81
+ ALLOW_INCOMPLETE = "allow_incomplete"
82
+ }
83
+ /**
84
+ * What a FAILED provider mutation tells the caller about whether the change took effect (#535, decision D3).
85
+ *
86
+ * The distinction that matters is not the HTTP status but what may be recorded next: a conclusive refusal and a request
87
+ * that never executed may both be recorded as "no effect", while an indeterminate outcome must NEVER be — the provider
88
+ * may have applied it, or may still apply it. Only the adapter can read its vendor's error shape, so each adapter
89
+ * classifies (`StandardBilling_Interface.classifyMutationError`) and the engine decides on the class alone.
90
+ *
91
+ * spec-cite: https://docs.stripe.com/error-low-level — "Network errors", "Server errors", "Content errors" (the
92
+ * source of the classes for the Stripe adapter; other adapters map their own vendor's equivalents).
93
+ */
94
+ export declare enum StandardBilling_MutationErrorClass {
95
+ /** The provider evaluated the request and refused it (e.g. a declined card, a missing object). No effect. */
96
+ CONCLUSIVE_REJECTION = "conclusive_rejection",
97
+ /** Refused before execution (rate limit, authentication). No effect; a later attempt must use a NEW idempotency key. */
98
+ NOT_EXECUTED = "not_executed",
99
+ /** Another request with the same idempotency key is still being processed. The outcome is not known yet. */
100
+ IN_FLIGHT_CONFLICT = "in_flight_conflict",
101
+ /** Timeout, connection loss, server error, or a failure after the provider answered. The change may have applied. */
102
+ INDETERMINATE = "indeterminate"
103
+ }
65
104
  /**
66
105
  * Subscription status values (maps to Stripe subscription statuses).
67
106
  */
@@ -143,10 +182,37 @@ export interface StandardBilling_WebhookEvent {
143
182
  createdAt: Date;
144
183
  }
145
184
  export interface StandardBilling_CreateCustomerRequest {
146
- /** Descriptive name (e.g., organization name or user display name) */
147
- name: string;
148
- /** Contact email for invoices and receipts */
149
- email: string;
185
+ /**
186
+ * Descriptive name — the organisation's name for an org-scoped account, the person's display name
187
+ * for a user-scoped one.
188
+ *
189
+ * OPTIONAL, and that is the point (issue #486). It was required, and a caller that could not
190
+ * resolve one therefore had to INVENT it: the engine sent the literal `'Unknown'` for every
191
+ * customer it ever created. A contract that cannot express "we do not know" forces every caller to
192
+ * lie, and a fabricated value is worse than an absent one — an operator reading the provider
193
+ * dashboard cannot tell it from a real answer.
194
+ */
195
+ name?: string;
196
+ /**
197
+ * Contact email for invoices and receipts.
198
+ *
199
+ * OPTIONAL for the same reason as `name`, and additionally because **an organisation frequently has
200
+ * no billing email at all**. Sending a natural person's address for an ORGANISATION's customer
201
+ * record would put personal data on a record that is not about a person — the opposite of data
202
+ * minimisation, which asks that personal data be "adequate, relevant and limited to what is
203
+ * necessary".
204
+ * spec-cite: GDPR Art. 5(1)(c) — https://gdpr-info.eu/art-5-gdpr/
205
+ *
206
+ * It also makes the later erasure story cheap: an organisation record carrying no individual's
207
+ * identity never has to be visited when that individual exercises their right to erasure, so the
208
+ * obligation to inform recipients of an erasure does not reach it.
209
+ * spec-cite: GDPR Art. 17(2) — https://gdpr-info.eu/art-17-gdpr/
210
+ *
211
+ * Absent is a legitimate value at the provider: Stripe's own customer `email` is optional.
212
+ * spec-cite: N/A — describes the Stripe Customer object's declared optionality in this
213
+ * repository's own words (https://docs.stripe.com/api/customers/object).
214
+ */
215
+ email?: string;
150
216
  /** Arbitrary key-value metadata stored on the provider customer */
151
217
  metadata?: Record<string, string>;
152
218
  }
@@ -224,6 +290,8 @@ export interface StandardBilling_SyncPriceRequest {
224
290
  amount: number;
225
291
  currency: string;
226
292
  interval?: BillingInterval;
293
+ /** Multiplier of the recurring interval (3 months = quarterly). Omitted means 1; ignored for one-time prices. */
294
+ intervalCount?: number;
227
295
  /** For TIERED/VOLUME pricing models */
228
296
  tiers?: Array<{
229
297
  upTo: number | null;
@@ -281,14 +349,32 @@ export interface StandardBilling_CreateSubscriptionResponse {
281
349
  providerSubscriptionId: string;
282
350
  status: string;
283
351
  }
352
+ /** Provider-confirmed identities of correlated additions from the same update operation. */
353
+ export interface StandardBilling_UpdateSubscriptionResponse {
354
+ createdItems: Array<{
355
+ clientItemKey: string;
356
+ providerSubscriptionItemId: string;
357
+ }>;
358
+ }
284
359
  export interface StandardBilling_UpdateSubscriptionRequest {
360
+ /**
361
+ * Server-owned identity of one attempted change, reused with the SAME subscription and payload
362
+ * when recovering a lost response. Never generate a new key for a retry. Provider retention is
363
+ * bounded: this does not replace confirmation consumption, freshness checks or reconciliation.
364
+ * This is request transport metadata, not subscription metadata or a browser authoring field.
365
+ */
366
+ idempotencyKey?: string;
367
+ /** Item patches: omitted existing items are retained; an item without an ID is added. */
285
368
  items?: Array<{
286
- /** Provider-side subscription item ID (used to target the correct item on the provider).
287
- * If omitted, the provider transformer falls back to index-based matching. */
369
+ /** Provider-side subscription item ID to update. Omit only when adding a new item. */
288
370
  providerSubscriptionItemId?: string;
371
+ /** Backend-generated correlation key for an intentional new item; echoed with its created provider ID. */
372
+ clientItemKey?: string;
289
373
  providerPriceId: string;
290
374
  quantity?: number;
291
375
  }>;
376
+ /** Explicit provider-side item IDs to remove. Omitting an item from `items` never removes it. */
377
+ removedProviderSubscriptionItemIds?: string[];
292
378
  /** Provider promotion code to apply */
293
379
  providerPromotionCodeId?: string;
294
380
  /**
@@ -301,9 +387,67 @@ export interface StandardBilling_UpdateSubscriptionRequest {
301
387
  * subscription update did before this field existed.
302
388
  */
303
389
  prorationBehavior?: ProrationBehavior;
390
+ /**
391
+ * How the provider treats an unpaid resulting invoice (#535, D6). Absent sends none, so the provider's default
392
+ * applies; the engine's own plan-change dispatch always declares it.
393
+ */
394
+ paymentBehavior?: StandardBilling_SubscriptionPaymentBehavior;
395
+ /** Unix seconds used for proration. Reuse the preview instant when confirming the same change. */
396
+ prorationDate?: number;
304
397
  metadata?: Record<string, string>;
305
398
  }
306
- export interface StandardBilling_CancelSubscriptionOptions {
399
+ /**
400
+ * Hypothetical item patch for an upcoming invoice. Item identity, quantity and proration must match
401
+ * the eventual update; selecting the first provider item can accidentally preview an addon change.
402
+ * Omitted items remain on the subscription. This request never changes the subscription itself.
403
+ */
404
+ export type StandardBilling_SubscriptionPreviewRequest = Pick<StandardBilling_UpdateSubscriptionRequest, 'items' | 'removedProviderSubscriptionItemIds' | 'prorationBehavior' | 'prorationDate'>;
405
+ /**
406
+ * Request transport options shared by the subscription mutations that carry no payload of their own.
407
+ *
408
+ * `idempotencyKey` has the same contract as on {@link StandardBilling_UpdateSubscriptionRequest}: a server-owned
409
+ * identity of ONE attempted change, reused with the same subscription and options only to recover a lost response.
410
+ */
411
+ export interface StandardBilling_SubscriptionMutationOptions {
412
+ idempotencyKey?: string;
413
+ }
414
+ /**
415
+ * A plan change deferred to the end of the subscription's current period (#1868).
416
+ *
417
+ * The provider keeps the subscription as it is until the period ends and then moves it onto `items`. Stripe does this with a
418
+ * subscription schedule: one phase holding the current lines until `current_period_end`, a second holding `items`, released
419
+ * afterwards so the subscription runs on without it. The adapter derives the current lines and the period end from the
420
+ * subscription itself, so the change always lands at the renewal of the period it was confirmed in.
421
+ */
422
+ export interface StandardBilling_SchedulePlanChangeRequest extends StandardBilling_SubscriptionMutationOptions {
423
+ /** Every line the subscription carries from the next period: the new plan and the add-ons that carry over. */
424
+ items: Array<{
425
+ providerPriceId: string;
426
+ quantity: number;
427
+ }>;
428
+ /** How the provider settles the move into the new lines at renewal. Absent sends none. */
429
+ prorationBehavior?: ProrationBehavior;
430
+ /** Written on the schedule, so a later read can name the change that created it (`wildo_mutation`). */
431
+ metadata?: Record<string, string>;
432
+ }
433
+ /** The provider's handle on a deferred plan change: what `releaseSubscriptionSchedule` withdraws. */
434
+ export interface StandardBilling_SchedulePlanChangeResponse {
435
+ providerScheduleId: string;
436
+ }
437
+ /** How a schedule is released (#1868). */
438
+ export interface StandardBilling_ReleaseScheduleOptions extends StandardBilling_SubscriptionMutationOptions {
439
+ /**
440
+ * Release only while the schedule still has a phase AHEAD of the current one — a WITHDRAWAL of a change that has not taken effect. A
441
+ * schedule still managing the subscription with its next phase begun is refused conclusively, nothing sent: releasing it then would
442
+ * keep the subscription on the lines the change moved it to, while the caller believed the change withdrawn. A schedule already
443
+ * released, cancelled or completed succeeds only when the caller's key replays its own earlier release; otherwise it answers an
444
+ * INDETERMINATE failure — it may be this caller's release, so only a read of what the provider bills can say whether the withdrawal
445
+ * happened. Absent, a schedule is released whatever phase it is in, which is
446
+ * how the engine lets go of a schedule whose change has already landed.
447
+ */
448
+ onlyBeforeNextPhase?: boolean;
449
+ }
450
+ export interface StandardBilling_CancelSubscriptionOptions extends StandardBilling_SubscriptionMutationOptions {
307
451
  /** If true, subscription remains active until current period ends */
308
452
  atPeriodEnd?: boolean;
309
453
  }
@@ -318,15 +462,46 @@ export interface StandardBilling_SubscriptionData {
318
462
  currentPeriodStart: Date;
319
463
  currentPeriodEnd: Date;
320
464
  cancelAtPeriodEnd: boolean;
465
+ /**
466
+ * When the subscription's trial began and ends, if it had one. The provider keeps both after the trial
467
+ * is over, so a subscription that trialed carries them for its whole life, and one that never did
468
+ * carries neither.
469
+ */
470
+ trialStart?: Date;
321
471
  trialEnd?: Date;
472
+ /**
473
+ * The schedule the provider holds on this subscription, if any (#1868): how a deferred plan change is kept until renewal.
474
+ * `upcomingPhase` is the phase after the current one — the lines the subscription moves to and when — and is absent once
475
+ * the last phase is current, which for an engine-created schedule means its change has taken effect. `metadata` carries
476
+ * the reference of the engine mutation that created the schedule (`wildo_mutation`), absent on one made elsewhere.
477
+ */
478
+ schedule?: {
479
+ providerScheduleId: string;
480
+ metadata: Record<string, string>;
481
+ upcomingPhase?: {
482
+ startsAt: Date;
483
+ items: Array<{
484
+ providerPriceId: string;
485
+ quantity: number;
486
+ }>;
487
+ };
488
+ };
322
489
  items: Array<{
323
490
  providerSubscriptionItemId: string;
324
491
  providerProductId: string;
325
492
  providerPriceId: string;
326
493
  quantity: number;
327
494
  }>;
328
- /** Active discount on this subscription (from coupon/promotion code) */
329
- discount?: {
495
+ /**
496
+ * Every subscription-level discount the provider applies, from coupons and promotion codes, in the order the provider
497
+ * applies them. Absent or empty when none applies, including after the last one has ended.
498
+ *
499
+ * ALL of them, because a subscription can hold several — a referral reward (`addSubscriptionDiscount`) is added BESIDE
500
+ * a promotion the checkout applied — and each is charged (#1948). An adapter that reported only the first would leave
501
+ * the application showing one discount while the customer is billed for two.
502
+ * `duration` is a `PromotionDuration` value: `once`, `repeating` or `forever`.
503
+ */
504
+ discounts?: Array<{
330
505
  providerCouponId: string;
331
506
  percentOff?: number;
332
507
  amountOff?: number;
@@ -334,13 +509,14 @@ export interface StandardBilling_SubscriptionData {
334
509
  duration: string;
335
510
  durationInMonths?: number;
336
511
  end?: Date;
337
- };
512
+ }>;
338
513
  }
339
514
  /**
340
515
  * StandardBilling_InvoicePreview: canonical upcoming invoice from provider.
341
516
  * Returned by retrieveUpcomingInvoice() for plan change previews.
342
517
  */
343
518
  export interface StandardBilling_InvoicePreview {
519
+ /** Upcoming invoice amount due, in currency minor units; not a promise of an immediate charge. */
344
520
  amount: number;
345
521
  currency: string;
346
522
  lineItems: Array<{
@@ -464,6 +640,23 @@ export interface StandardBilling_CreateCouponResponse {
464
640
  export interface StandardBilling_CreatePromotionCodeResponse {
465
641
  providerPromotionId: string;
466
642
  }
643
+ /**
644
+ * A percentage discount GIVEN to one subscription — a referral reward (#1802) — rather than redeemed by the
645
+ * customer from a code.
646
+ */
647
+ export interface StandardBilling_AddSubscriptionDiscountRequest {
648
+ /** Percentage taken off, 1–100. */
649
+ percentOff: number;
650
+ duration: 'once' | 'repeating' | 'forever';
651
+ /** Months, for a `repeating` discount. */
652
+ durationInMonths?: number;
653
+ /**
654
+ * Stable per grant. The adapter derives the provider coupon's identity and its idempotency keys from it, so
655
+ * a repeated call with the same key adds the discount once.
656
+ */
657
+ grantKey: string;
658
+ metadata?: Record<string, string>;
659
+ }
467
660
  /**
468
661
  * Provider-agnostic billing interface.
469
662
  * Each billing provider (Stripe, Paddle, etc.) implements this interface
@@ -493,17 +686,64 @@ export interface StandardBilling_Interface {
493
686
  * what erasure needs and what the retained invoice record requires.
494
687
  */
495
688
  detachPaymentMethod(providerPaymentMethodId: string): Promise<void>;
689
+ /**
690
+ * Blank the personal data an instrument carries about whoever paid with it — the cardholder's name,
691
+ * email, phone and billing address — keeping the instrument itself (#869).
692
+ *
693
+ * Detaching does not do this: a detached instrument still exists at the provider with its billing
694
+ * details intact, and on Stripe it can no longer be edited once detached ("You must save this
695
+ * PaymentMethod to a customer before you can update it", measured 2026-09-25). So subject erasure
696
+ * calls this BEFORE {@link detachPaymentMethod}. A provider field that cannot be unset stays: Stripe
697
+ * refuses to clear `address.country`, which identifies nobody on its own.
698
+ *
699
+ * The card network data (brand, last four digits, expiry, fingerprint) is the instrument, not contact
700
+ * data, and stays with the retained transaction record it belongs to.
701
+ */
702
+ redactPaymentMethodBillingDetails(providerPaymentMethodId: string): Promise<void>;
496
703
  syncProduct(request: StandardBilling_SyncProductRequest): Promise<StandardBilling_SyncProductResponse>;
497
704
  syncPrice(request: StandardBilling_SyncPriceRequest): Promise<StandardBilling_SyncPriceResponse>;
705
+ /**
706
+ * Whether the provider price a local price is LINKED to still carries the local terms (#1907): active, on the
707
+ * requested product, and equal in amount, currency, cadence, tiers, packaging and tax behaviour.
708
+ *
709
+ * A provider price is immutable, so a link made under an earlier amount convention — or before a catalogue edit —
710
+ * keeps charging the old amount unless something compares the two. The catalogue sync asks this of every linked
711
+ * price and re-syncs one that answers `false`. Answer `false` when the price cannot be read: the caller then
712
+ * creates a correct price rather than keeping a link nobody could check.
713
+ */
714
+ linkedPriceMatches(providerPriceId: string, request: StandardBilling_SyncPriceRequest): Promise<boolean>;
498
715
  createSubscription(request: StandardBilling_CreateSubscriptionRequest): Promise<StandardBilling_CreateSubscriptionResponse>;
499
- updateSubscription(providerSubscriptionId: string, request: StandardBilling_UpdateSubscriptionRequest): Promise<void>;
716
+ updateSubscription(providerSubscriptionId: string, request: StandardBilling_UpdateSubscriptionRequest): Promise<StandardBilling_UpdateSubscriptionResponse>;
500
717
  cancelSubscription(providerSubscriptionId: string, options?: StandardBilling_CancelSubscriptionOptions): Promise<void>;
501
718
  pauseSubscription(providerSubscriptionId: string): Promise<void>;
719
+ /** Resume paused payment collection; does not undo a scheduled cancellation. */
502
720
  resumeSubscription(providerSubscriptionId: string): Promise<void>;
721
+ /** Remove a pending period-end cancellation without changing collection or lifecycle status. */
722
+ removeScheduledCancellation(providerSubscriptionId: string, options?: StandardBilling_SubscriptionMutationOptions): Promise<void>;
723
+ /**
724
+ * Defer a plan change to the end of the current period (#1868). One deferred change at a time: the engine refuses a second
725
+ * while one is pending, and it is withdrawn (`releaseSubscriptionSchedule`) before another is made.
726
+ */
727
+ schedulePlanChange(providerSubscriptionId: string, request: StandardBilling_SchedulePlanChangeRequest): Promise<StandardBilling_SchedulePlanChangeResponse>;
728
+ /**
729
+ * Withdraw a schedule from its subscription, leaving the subscription running as it is now (#1868). Releasing a schedule that is
730
+ * already released succeeds: the state asked for holds — except with `onlyBeforeNextPhase`, where it succeeds only as a replay of the
731
+ * caller's own release and otherwise answers an INDETERMINATE failure, and the caller decides from what the provider bills.
732
+ */
733
+ releaseSubscriptionSchedule(providerScheduleId: string, options?: StandardBilling_ReleaseScheduleOptions): Promise<void>;
734
+ /**
735
+ * Classify an error thrown by `updateSubscription`, `cancelSubscription`, `removeScheduledCancellation`, `schedulePlanChange` or
736
+ * `releaseSubscriptionSchedule` (#535, D3).
737
+ *
738
+ * Must answer {@link StandardBilling_MutationErrorClass.INDETERMINATE} for anything the adapter cannot positively place
739
+ * — including an error the adapter itself threw AFTER the provider answered — because every other class licenses the
740
+ * caller to record that the change did not happen.
741
+ */
742
+ classifyMutationError(error: unknown): StandardBilling_MutationErrorClass;
503
743
  /** On-demand retrieval for reconciliation (if webhook missed) */
504
744
  retrieveSubscription(providerSubscriptionId: string): Promise<StandardBilling_SubscriptionData>;
505
- /** Preview prorated cost of a plan change before user commits */
506
- retrieveUpcomingInvoice(providerSubscriptionId: string, newPriceId?: string): Promise<StandardBilling_InvoicePreview>;
745
+ /** Preview the upcoming invoice for an optional item change; the amount is not necessarily charged immediately. */
746
+ retrieveUpcomingInvoice(providerSubscriptionId: string, request?: StandardBilling_SubscriptionPreviewRequest): Promise<StandardBilling_InvoicePreview>;
507
747
  /**
508
748
  * Invoices the provider holds for one customer, newest first.
509
749
  *
@@ -532,5 +772,10 @@ export interface StandardBilling_Interface {
532
772
  parseWebhookEvent(payload: string | Uint8Array): StandardBilling_WebhookEvent | null;
533
773
  createCoupon(request: StandardBilling_CreateCouponRequest): Promise<StandardBilling_CreateCouponResponse>;
534
774
  createPromotionCode(providerCouponId: string, code: string): Promise<StandardBilling_CreatePromotionCodeResponse>;
775
+ /**
776
+ * Add a discount to a subscription, KEEPING any discount it already carries (#1802). Idempotent on
777
+ * `request.grantKey`: a second call with the same key finds its discount already applied and adds nothing.
778
+ */
779
+ addSubscriptionDiscount(providerSubscriptionId: string, request: StandardBilling_AddSubscriptionDiscountRequest): Promise<void>;
535
780
  }
536
781
  //# sourceMappingURL=billing.standard-interface.schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"billing.standard-interface.schemas.d.ts","sourceRoot":"","sources":["../../../src/protocols/billing.standard-interface.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH;;GAEG;A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mC,GAAG,OAAO,CAAC,oCAAoC,CAAC,CAAC;IAC1G,mBAAmB,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,2CAA2C,CAAC,CAAC;CACnH"}
1
+ {"version":3,"file":"billing.standard-interface.schemas.d.ts","sourceRoot":"","sources":["../../../../src/protocols/billing.standard-interface.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH;;GAEG;AACH,oBAAY,YAAY;IACtB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,+CAA+C;IAC/C,MAAM,WAAW;IACjB,mDAAmD;IACnD,SAAS,cAAc;IACvB,mCAAmC;IACnC,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB,mDAAmD;IACnD,SAAS,cAAc;IACvB,2CAA2C;IAC3C,SAAS,cAAc;CACxB;AAED;;;;;;;;;;;GAWG;AACH,oBAAY,iBAAiB;IAC3B,6FAA6F;IAC7F,iBAAiB,sBAAsB;IACvC,2FAA2F;IAC3F,IAAI,SAAS;IACb,oFAAoF;IACpF,cAAc,mBAAmB;CAClC;AAED;;;;;;;;;;;;;GAaG;AACH,oBAAY,2CAA2C;IACrD,4FAA4F;IAC5F,gBAAgB,qBAAqB;CACtC;AAED;;;;;;;;;;GAUG;AACH,oBAAY,kCAAkC;IAC5C,6GAA6G;IAC7G,oBAAoB,yBAAyB;IAC7C,wHAAwH;IACxH,YAAY,iBAAiB;IAC7B,4GAA4G;IAC5G,kBAAkB,uBAAuB;IACzC,qHAAqH;IACrH,aAAa,kBAAkB;CAChC;AAED;;GAEG;AACH,oBAAY,kBAAkB;IAC5B,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,8DAA8D;IAC9D,UAAU,eAAe;IACzB,kBAAkB,uBAA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,0CAA0C,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;IACvJ;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,2BAA2B,EAAE,CAAC,CAAC;IAG/G,qEAAqE;IACrE,qBAAqB,CAAC,OAAO,EAAE,4CAA4C,GAAG,OAAO,CAAC,6CAA6C,CAAC,CAAC;IACrI,8EAA8E;IAC9E,2BAA2B,CAAC,kBAAkB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,mDAAmD,CAAC,CAAC;IAGzI,WAAW,CAAC,OAAO,EAAE,kCAAkC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAGxE,qFAAqF;IACrF,QAAQ,CAAC,0BAA0B,EAAE,MAAM,CAAC;IAC5C,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IACjG,0GAA0G;IAC1G,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,4BAA4B,GAAG,IAAI,CAAC;IAGrF,YAAY,CAAC,OAAO,EAAE,mCAAmC,GAAG,OAAO,CAAC,oCAAoC,CAAC,CAAC;IAC1G,mBAAmB,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,2CAA2C,CAAC,CAAC;IAClH;;;OAGG;IACH,uBAAuB,CAAC,sBAAsB,EAAE,MAAM,EAAE,OAAO,EAAE,8CAA8C,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACjI"}
@@ -69,6 +69,47 @@ export var ProrationBehavior;
69
69
  /** Prorate and invoice the difference IMMEDIATELY rather than at the next cycle. */
70
70
  ProrationBehavior["ALWAYS_INVOICE"] = "always_invoice";
71
71
  })(ProrationBehavior || (ProrationBehavior = {}));
72
+ /**
73
+ * How the provider treats a subscription change whose resulting payment does not succeed (#535, decision D6).
74
+ *
75
+ * Wildo applies a confirmed plan change IMMEDIATELY: entitlements move at local completion, and a failed proration
76
+ * payment moves the subscription to `past_due` through the webhook projection, where dunning owns what happens next.
77
+ * The value is DECLARED on every engine-issued change rather than left to the provider's default, so a change of that
78
+ * default can never silently change the semantics.
79
+ *
80
+ * Deliberately a one-member vocabulary. `pending_if_incomplete` (apply only after payment, expire after 23 h) was
81
+ * weighed and rejected in #535; add a member only with a decision that changes D6.
82
+ *
83
+ * spec-cite: https://docs.stripe.com/api/subscriptions/update — `payment_behavior`; the value equals Stripe's wire value,
84
+ * so the Stripe adapter passes it untranslated, as it does `ProrationBehavior`.
85
+ */
86
+ export var StandardBilling_SubscriptionPaymentBehavior;
87
+ (function (StandardBilling_SubscriptionPaymentBehavior) {
88
+ /** Apply the change now; an unpaid resulting invoice leaves the subscription `past_due`. */
89
+ StandardBilling_SubscriptionPaymentBehavior["ALLOW_INCOMPLETE"] = "allow_incomplete";
90
+ })(StandardBilling_SubscriptionPaymentBehavior || (StandardBilling_SubscriptionPaymentBehavior = {}));
91
+ /**
92
+ * What a FAILED provider mutation tells the caller about whether the change took effect (#535, decision D3).
93
+ *
94
+ * The distinction that matters is not the HTTP status but what may be recorded next: a conclusive refusal and a request
95
+ * that never executed may both be recorded as "no effect", while an indeterminate outcome must NEVER be — the provider
96
+ * may have applied it, or may still apply it. Only the adapter can read its vendor's error shape, so each adapter
97
+ * classifies (`StandardBilling_Interface.classifyMutationError`) and the engine decides on the class alone.
98
+ *
99
+ * spec-cite: https://docs.stripe.com/error-low-level — "Network errors", "Server errors", "Content errors" (the
100
+ * source of the classes for the Stripe adapter; other adapters map their own vendor's equivalents).
101
+ */
102
+ export var StandardBilling_MutationErrorClass;
103
+ (function (StandardBilling_MutationErrorClass) {
104
+ /** The provider evaluated the request and refused it (e.g. a declined card, a missing object). No effect. */
105
+ StandardBilling_MutationErrorClass["CONCLUSIVE_REJECTION"] = "conclusive_rejection";
106
+ /** Refused before execution (rate limit, authentication). No effect; a later attempt must use a NEW idempotency key. */
107
+ StandardBilling_MutationErrorClass["NOT_EXECUTED"] = "not_executed";
108
+ /** Another request with the same idempotency key is still being processed. The outcome is not known yet. */
109
+ StandardBilling_MutationErrorClass["IN_FLIGHT_CONFLICT"] = "in_flight_conflict";
110
+ /** Timeout, connection loss, server error, or a failure after the provider answered. The change may have applied. */
111
+ StandardBilling_MutationErrorClass["INDETERMINATE"] = "indeterminate";
112
+ })(StandardBilling_MutationErrorClass || (StandardBilling_MutationErrorClass = {}));
72
113
  /**
73
114
  * Subscription status values (maps to Stripe subscription statuses).
74
115
  */