@whooshbang/contracts 2.0.0-rc.6 → 2.0.0-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/contract-manifest.json +40 -42
- package/dist/generated/artifact-index.d.ts +34 -34
- package/dist/generated/artifact-index.js +39 -41
- package/dist/generated/artifact-index.js.map +1 -1
- package/dist/generated/validators-standalone.d.ts +391 -404
- package/dist/generated/validators-standalone.js +8115 -6262
- package/dist/generated/validators-standalone.js.map +1 -1
- package/dist/generated/validators.d.ts +9 -10
- package/dist/generated/validators.js +9 -10
- package/dist/generated/validators.js.map +1 -1
- package/dist/generated/whooshbang-v1.d.ts +166 -59
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/fixtures/core-v1/fixture-index.json +54 -71
- package/fixtures/core-v1/requests/update-billing-receipt-email.json +3 -0
- package/fixtures/core-v1/scenarios/api-credential-invalid-indistinguishable.json +1 -1
- package/fixtures/core-v1/scenarios/api-credential-one-time-reveal.json +1 -1
- package/fixtures/core-v1/scenarios/api-credential-revocation-replay.json +1 -1
- package/fixtures/core-v1/scenarios/api-credential-rotation-overlap.json +1 -1
- package/fixtures/core-v1/scenarios/cancellation-too-late.json +1 -1
- package/fixtures/core-v1/scenarios/cross-organization-project.json +1 -1
- package/fixtures/core-v1/scenarios/cross-project-resource.json +1 -1
- package/fixtures/core-v1/scenarios/environment-mismatch.json +1 -1
- package/fixtures/core-v1/scenarios/idempotency-conflict.json +1 -1
- package/fixtures/core-v1/scenarios/idempotency-equivalent-replay.json +1 -1
- package/fixtures/core-v1/scenarios/malformed-bearer.json +1 -1
- package/fixtures/core-v1/scenarios/metadata-overrun.json +1 -1
- package/fixtures/core-v1/scenarios/missing-scope.json +1 -1
- package/fixtures/core-v1/scenarios/project-create-equivalent-replay.json +1 -1
- package/fixtures/core-v1/scenarios/project-slug-conflict.json +1 -1
- package/fixtures/core-v1/scenarios/provider-outcome-unknown.json +1 -1
- package/fixtures/core-v1/scenarios/subscription-activation-replay.json +1 -1
- package/fixtures/core-v1/scenarios/subscription-authorization-capability-opacity.json +1 -1
- package/fixtures/core-v1/scenarios/subscription-cross-connection-callback-rejected.json +1 -1
- package/fixtures/core-v1/scenarios/subscription-expired-replay.json +1 -1
- package/fixtures/core-v1/scenarios/subscription-selected-connection-replay.json +1 -1
- package/fixtures/core-v1/success/auto-top-up-settings.json +2 -2
- package/fixtures/core-v1/success/billing-account.json +4 -2
- package/fixtures/core-v1/success/billing-entitlements.json +3 -4
- package/fixtures/core-v1/success/billing-invoices.json +33 -0
- package/fixtures/core-v1/success/card-setup.json +7 -0
- package/fixtures/core-v1/success/credit-purchase.json +15 -0
- package/fixtures/core-v1/success/reconcile-card-setup.json +12 -0
- package/fixtures/core-v1/success/subscription-change.json +3 -1
- package/fixtures/interaction-machine-v1/scenarios/ack-conflict.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/ack-cross-machine.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/ack-out-of-order.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/ack-replay.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/ambiguous-free-text.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/callback-token-opacity.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/credential-registration-conflict.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/credential-registration-replay.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/credential-revocation-replay.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/credential-rotation.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/first-credential-activates.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/interaction-duplicate.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/interaction-expired.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/interaction-mismatch.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/interaction-retired.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/interaction-stale.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/machine-admin-denied.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/machine-bound-message-create.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/machine-cancel-denied.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/machine-crash-before-ack.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/machine-notifier-mismatch.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/machine-other-message-read.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/machine-owned-message-read.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/machine-subscriber-mismatch.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/poll-uncommitted-cursor-rejected.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/project-credential-machine-endpoint-denied.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/quarantine-integrity-rejected.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/quarantine-signature-rejected.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/quarantine-valid.json +1 -1
- package/fixtures/interaction-machine-v1/scenarios/revoked-machine-credential.json +1 -1
- package/fixtures/recipient-experience-v1/scenarios/membership-broadcast-snapshot.json +1 -1
- package/fixtures/recipient-experience-v1/scenarios/preferred-binding-resolution.json +1 -1
- package/fixtures/recipient-experience-v1/scenarios/recipient-session-security.json +1 -1
- package/fixtures/recipient-experience-v1/scenarios/subscriber-initial-groups-transaction.json +1 -1
- package/openapi/generated/whooshbang-v1.bundle.json +548 -470
- package/openapi/whooshbang-v1.yaml +193 -331
- package/package.json +1 -1
- package/schemas/core-scenario.schema.json +1 -1
- package/schemas/events/agent-binding-degraded-v1.schema.json +1 -1
- package/schemas/events/interaction-expired-v1.schema.json +1 -1
- package/schemas/events/interaction-received-v1.schema.json +1 -1
- package/schemas/events/message-delivered-v1.schema.json +1 -1
- package/schemas/events/message-expired-v1.schema.json +1 -1
- package/schemas/events/message-failed-v1.schema.json +1 -1
- package/schemas/events/message-provider-accepted-v1.schema.json +1 -1
- package/schemas/events/subscription-activated-v1.schema.json +1 -1
- package/schemas/events/subscription-revoked-v1.schema.json +1 -1
- package/schemas/events/whooshbang-event-v1.schema.json +1 -1
- package/schemas/fixture-index.schema.json +1 -1
- package/schemas/interaction-machine-scenario.schema.json +1 -1
- package/schemas/interaction-v1.schema.json +1 -1
- package/schemas/machine-v1.schema.json +1 -1
- package/schemas/provider-capabilities-v1.schema.json +1 -1
- package/schemas/webhooks/webhook-delivery-case-v1.schema.json +1 -1
- package/schemas/webhooks/webhook-signing-vector-v1.schema.json +1 -1
- package/schemas/whooshbang-v1.schema.json +505 -243
- package/fixtures/core-v1/success/auto-top-up-setup.json +0 -5
- package/fixtures/core-v1/success/billing-portal-session.json +0 -3
- package/fixtures/core-v1/success/reconcile-auto-top-up-setup.json +0 -17
- package/fixtures/core-v1/success/reconcile-subscription-checkout.json +0 -35
- package/fixtures/core-v1/success/reconcile-wallet-checkout.json +0 -36
- package/fixtures/core-v1/success/subscription-checkout.json +0 -5
- package/fixtures/core-v1/success/wallet-checkout.json +0 -5
- /package/fixtures/core-v1/requests/{create-wallet-checkout.json → create-credit-purchase.json} +0 -0
- /package/fixtures/core-v1/requests/{create-subscription-checkout.json → create-subscription-change.json} +0 -0
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"available_email_credit_usd": "2.000000",
|
|
8
8
|
"core_price_per_1000_usd": "3.000000",
|
|
9
9
|
"shared_email_price_per_1000_usd": "1.000000",
|
|
10
|
-
"
|
|
10
|
+
"purchases_available": true,
|
|
11
11
|
"packs": [
|
|
12
12
|
{
|
|
13
13
|
"purchase_cents": 500,
|
|
@@ -29,5 +29,7 @@
|
|
|
29
29
|
"purchase_cents": 10000,
|
|
30
30
|
"core_credit_usd": "150.000000"
|
|
31
31
|
}
|
|
32
|
-
]
|
|
32
|
+
],
|
|
33
|
+
"card": null,
|
|
34
|
+
"receipt_email": null
|
|
33
35
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"live_notifications_remaining": "0",
|
|
8
8
|
"shared_emails_remaining": "0",
|
|
9
9
|
"allowance_period_end": null,
|
|
10
|
-
"
|
|
10
|
+
"recurring_available": true,
|
|
11
11
|
"offers": [
|
|
12
12
|
{
|
|
13
13
|
"kind": "attribution",
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"hide_attribution": false
|
|
27
27
|
}
|
|
28
28
|
],
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"has_subscription": false
|
|
29
|
+
"has_subscription": false,
|
|
30
|
+
"payment_issue": null
|
|
32
31
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"items": [
|
|
3
|
+
{
|
|
4
|
+
"id": "credit_purchase_ffffffffffffffffffffffffffffffff",
|
|
5
|
+
"kind": "credit",
|
|
6
|
+
"created_at": "2026-10-06T12:00:00Z",
|
|
7
|
+
"amount_usd": "25.000000",
|
|
8
|
+
"status": "paid",
|
|
9
|
+
"purchase_cents": 2500,
|
|
10
|
+
"items": [],
|
|
11
|
+
"period_start": null,
|
|
12
|
+
"period_end": null,
|
|
13
|
+
"document_url": "https://pay.stripe.com/receipts/synthetic",
|
|
14
|
+
"document_kind": "receipt"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "welcome_credit",
|
|
18
|
+
"kind": "welcome_credit",
|
|
19
|
+
"created_at": "2026-09-30T12:00:00Z",
|
|
20
|
+
"amount_usd": "0.000000",
|
|
21
|
+
"status": "free",
|
|
22
|
+
"purchase_cents": null,
|
|
23
|
+
"items": [],
|
|
24
|
+
"period_start": null,
|
|
25
|
+
"period_end": null,
|
|
26
|
+
"document_url": null,
|
|
27
|
+
"document_kind": null
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"page": 1,
|
|
31
|
+
"page_size": 25,
|
|
32
|
+
"total": 2
|
|
33
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "credit_purchase_ffffffffffffffffffffffffffffffff",
|
|
3
|
+
"purchase_cents": 2500,
|
|
4
|
+
"credit_usd": "30.000000",
|
|
5
|
+
"status": "paid",
|
|
6
|
+
"failure": null,
|
|
7
|
+
"client_secret": null,
|
|
8
|
+
"publishable_key": null,
|
|
9
|
+
"card": {
|
|
10
|
+
"brand": "visa",
|
|
11
|
+
"last_four": "4242",
|
|
12
|
+
"exp_month": 12,
|
|
13
|
+
"exp_year": 2034
|
|
14
|
+
}
|
|
15
|
+
}
|