@whooshbang/contracts 2.0.0-rc.4 → 2.0.0-rc.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 (112) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/contract-manifest.json +52 -33
  3. package/dist/generated/artifact-index.d.ts +34 -34
  4. package/dist/generated/artifact-index.js +51 -32
  5. package/dist/generated/artifact-index.js.map +1 -1
  6. package/dist/generated/validators-standalone.d.ts +605 -358
  7. package/dist/generated/validators-standalone.js +12400 -1709
  8. package/dist/generated/validators-standalone.js.map +1 -1
  9. package/dist/generated/validators.d.ts +20 -1
  10. package/dist/generated/validators.js +20 -1
  11. package/dist/generated/validators.js.map +1 -1
  12. package/dist/generated/whooshbang-v1.d.ts +191 -6
  13. package/dist/index.d.ts +2 -2
  14. package/dist/index.js +1 -1
  15. package/dist/index.js.map +1 -1
  16. package/fixtures/core-v1/fixture-index.json +147 -1
  17. package/fixtures/core-v1/requests/assign-billing-project-slots.json +3 -0
  18. package/fixtures/core-v1/requests/confirm-subscription-change.json +3 -0
  19. package/fixtures/core-v1/requests/create-subscription-checkout.json +5 -0
  20. package/fixtures/core-v1/requests/create-wallet-checkout.json +3 -0
  21. package/fixtures/core-v1/requests/update-auto-top-up-settings.json +6 -0
  22. package/fixtures/core-v1/requests/update-project-attribution.json +3 -0
  23. package/fixtures/core-v1/scenarios/api-credential-invalid-indistinguishable.json +1 -1
  24. package/fixtures/core-v1/scenarios/api-credential-one-time-reveal.json +1 -1
  25. package/fixtures/core-v1/scenarios/api-credential-revocation-replay.json +1 -1
  26. package/fixtures/core-v1/scenarios/api-credential-rotation-overlap.json +1 -1
  27. package/fixtures/core-v1/scenarios/cancellation-too-late.json +1 -1
  28. package/fixtures/core-v1/scenarios/cross-organization-project.json +1 -1
  29. package/fixtures/core-v1/scenarios/cross-project-resource.json +1 -1
  30. package/fixtures/core-v1/scenarios/environment-mismatch.json +1 -1
  31. package/fixtures/core-v1/scenarios/idempotency-conflict.json +1 -1
  32. package/fixtures/core-v1/scenarios/idempotency-equivalent-replay.json +1 -1
  33. package/fixtures/core-v1/scenarios/malformed-bearer.json +1 -1
  34. package/fixtures/core-v1/scenarios/metadata-overrun.json +1 -1
  35. package/fixtures/core-v1/scenarios/missing-scope.json +1 -1
  36. package/fixtures/core-v1/scenarios/project-create-equivalent-replay.json +1 -1
  37. package/fixtures/core-v1/scenarios/project-slug-conflict.json +1 -1
  38. package/fixtures/core-v1/scenarios/provider-outcome-unknown.json +1 -1
  39. package/fixtures/core-v1/scenarios/subscription-activation-replay.json +1 -1
  40. package/fixtures/core-v1/scenarios/subscription-authorization-capability-opacity.json +1 -1
  41. package/fixtures/core-v1/scenarios/subscription-cross-connection-callback-rejected.json +1 -1
  42. package/fixtures/core-v1/scenarios/subscription-expired-replay.json +1 -1
  43. package/fixtures/core-v1/scenarios/subscription-selected-connection-replay.json +1 -1
  44. package/fixtures/core-v1/success/auto-top-up-settings.json +11 -0
  45. package/fixtures/core-v1/success/auto-top-up-setup.json +5 -0
  46. package/fixtures/core-v1/success/billing-account.json +33 -0
  47. package/fixtures/core-v1/success/billing-entitlements.json +32 -0
  48. package/fixtures/core-v1/success/billing-portal-session.json +3 -0
  49. package/fixtures/core-v1/success/billing-project-slots.json +5 -0
  50. package/fixtures/core-v1/success/project-attribution.json +5 -0
  51. package/fixtures/core-v1/success/reconcile-auto-top-up-setup.json +17 -0
  52. package/fixtures/core-v1/success/reconcile-subscription-checkout.json +35 -0
  53. package/fixtures/core-v1/success/reconcile-wallet-checkout.json +36 -0
  54. package/fixtures/core-v1/success/subscription-change.json +16 -0
  55. package/fixtures/core-v1/success/subscription-checkout.json +5 -0
  56. package/fixtures/core-v1/success/wallet-checkout.json +5 -0
  57. package/fixtures/interaction-machine-v1/scenarios/ack-conflict.json +1 -1
  58. package/fixtures/interaction-machine-v1/scenarios/ack-cross-machine.json +1 -1
  59. package/fixtures/interaction-machine-v1/scenarios/ack-out-of-order.json +1 -1
  60. package/fixtures/interaction-machine-v1/scenarios/ack-replay.json +1 -1
  61. package/fixtures/interaction-machine-v1/scenarios/ambiguous-free-text.json +1 -1
  62. package/fixtures/interaction-machine-v1/scenarios/callback-token-opacity.json +1 -1
  63. package/fixtures/interaction-machine-v1/scenarios/credential-registration-conflict.json +1 -1
  64. package/fixtures/interaction-machine-v1/scenarios/credential-registration-replay.json +1 -1
  65. package/fixtures/interaction-machine-v1/scenarios/credential-revocation-replay.json +1 -1
  66. package/fixtures/interaction-machine-v1/scenarios/credential-rotation.json +1 -1
  67. package/fixtures/interaction-machine-v1/scenarios/first-credential-activates.json +1 -1
  68. package/fixtures/interaction-machine-v1/scenarios/interaction-duplicate.json +1 -1
  69. package/fixtures/interaction-machine-v1/scenarios/interaction-expired.json +1 -1
  70. package/fixtures/interaction-machine-v1/scenarios/interaction-mismatch.json +1 -1
  71. package/fixtures/interaction-machine-v1/scenarios/interaction-retired.json +1 -1
  72. package/fixtures/interaction-machine-v1/scenarios/interaction-stale.json +1 -1
  73. package/fixtures/interaction-machine-v1/scenarios/machine-admin-denied.json +1 -1
  74. package/fixtures/interaction-machine-v1/scenarios/machine-bound-message-create.json +1 -1
  75. package/fixtures/interaction-machine-v1/scenarios/machine-cancel-denied.json +1 -1
  76. package/fixtures/interaction-machine-v1/scenarios/machine-crash-before-ack.json +1 -1
  77. package/fixtures/interaction-machine-v1/scenarios/machine-notifier-mismatch.json +1 -1
  78. package/fixtures/interaction-machine-v1/scenarios/machine-other-message-read.json +1 -1
  79. package/fixtures/interaction-machine-v1/scenarios/machine-owned-message-read.json +1 -1
  80. package/fixtures/interaction-machine-v1/scenarios/machine-subscriber-mismatch.json +1 -1
  81. package/fixtures/interaction-machine-v1/scenarios/poll-uncommitted-cursor-rejected.json +1 -1
  82. package/fixtures/interaction-machine-v1/scenarios/project-credential-machine-endpoint-denied.json +1 -1
  83. package/fixtures/interaction-machine-v1/scenarios/quarantine-integrity-rejected.json +1 -1
  84. package/fixtures/interaction-machine-v1/scenarios/quarantine-signature-rejected.json +1 -1
  85. package/fixtures/interaction-machine-v1/scenarios/quarantine-valid.json +1 -1
  86. package/fixtures/interaction-machine-v1/scenarios/revoked-machine-credential.json +1 -1
  87. package/fixtures/recipient-experience-v1/scenarios/membership-broadcast-snapshot.json +1 -1
  88. package/fixtures/recipient-experience-v1/scenarios/preferred-binding-resolution.json +1 -1
  89. package/fixtures/recipient-experience-v1/scenarios/recipient-session-security.json +1 -1
  90. package/fixtures/recipient-experience-v1/scenarios/subscriber-initial-groups-transaction.json +1 -1
  91. package/openapi/generated/whooshbang-v1.bundle.json +8644 -7172
  92. package/openapi/whooshbang-v1.yaml +971 -12
  93. package/package.json +1 -1
  94. package/schemas/core-scenario.schema.json +1 -1
  95. package/schemas/events/agent-binding-degraded-v1.schema.json +1 -1
  96. package/schemas/events/interaction-expired-v1.schema.json +1 -1
  97. package/schemas/events/interaction-received-v1.schema.json +1 -1
  98. package/schemas/events/message-delivered-v1.schema.json +1 -1
  99. package/schemas/events/message-expired-v1.schema.json +1 -1
  100. package/schemas/events/message-failed-v1.schema.json +1 -1
  101. package/schemas/events/message-provider-accepted-v1.schema.json +1 -1
  102. package/schemas/events/subscription-activated-v1.schema.json +1 -1
  103. package/schemas/events/subscription-revoked-v1.schema.json +1 -1
  104. package/schemas/events/whooshbang-event-v1.schema.json +1 -1
  105. package/schemas/fixture-index.schema.json +1 -1
  106. package/schemas/interaction-machine-scenario.schema.json +1 -1
  107. package/schemas/interaction-v1.schema.json +1 -1
  108. package/schemas/machine-v1.schema.json +1 -1
  109. package/schemas/provider-capabilities-v1.schema.json +1 -1
  110. package/schemas/webhooks/webhook-delivery-case-v1.schema.json +1 -1
  111. package/schemas/webhooks/webhook-signing-vector-v1.schema.json +1 -1
  112. package/schemas/whooshbang-v1.schema.json +802 -9
@@ -0,0 +1,35 @@
1
+ {
2
+ "outcome": "unpaid",
3
+ "entitlements": {
4
+ "content_retention_days": 7,
5
+ "plan": "payg",
6
+ "project_capacity": 1,
7
+ "can_hide_attribution": false,
8
+ "paid_through": null,
9
+ "live_notifications_remaining": "0",
10
+ "shared_emails_remaining": "0",
11
+ "allowance_period_end": null,
12
+ "recurring_checkout_available": true,
13
+ "offers": [
14
+ {
15
+ "kind": "attribution",
16
+ "monthly_price_usd": "5.000000",
17
+ "live_notifications": "0",
18
+ "shared_emails": "0",
19
+ "included_projects": 0,
20
+ "hide_attribution": true
21
+ },
22
+ {
23
+ "kind": "project",
24
+ "monthly_price_usd": "5.000000",
25
+ "live_notifications": "0",
26
+ "shared_emails": "0",
27
+ "included_projects": 1,
28
+ "hide_attribution": false
29
+ }
30
+ ],
31
+ "pending_subscription_checkout_id": null,
32
+ "subscription_management_available": false,
33
+ "has_subscription": false
34
+ }
35
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "outcome": "applied",
3
+ "account": {
4
+ "currency": "USD",
5
+ "purchased_credit_usd": "0.000000",
6
+ "bonus_credit_usd": "0.000000",
7
+ "starter_credit_usd": "2.000000",
8
+ "available_core_credit_usd": "2.000000",
9
+ "available_email_credit_usd": "2.000000",
10
+ "core_price_per_1000_usd": "3.000000",
11
+ "shared_email_price_per_1000_usd": "1.000000",
12
+ "checkout_available": true,
13
+ "packs": [
14
+ {
15
+ "purchase_cents": 500,
16
+ "core_credit_usd": "5.000000"
17
+ },
18
+ {
19
+ "purchase_cents": 1000,
20
+ "core_credit_usd": "10.000000"
21
+ },
22
+ {
23
+ "purchase_cents": 2500,
24
+ "core_credit_usd": "30.000000"
25
+ },
26
+ {
27
+ "purchase_cents": 5000,
28
+ "core_credit_usd": "65.000000"
29
+ },
30
+ {
31
+ "purchase_cents": 10000,
32
+ "core_credit_usd": "150.000000"
33
+ }
34
+ ]
35
+ }
36
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "id": "subscription_change_dddddddddddddddddddddddddddddddd",
3
+ "kind": "upgrade",
4
+ "status": "reserved",
5
+ "selection": {
6
+ "plan": "payg",
7
+ "hide_attribution": false,
8
+ "additional_projects": 2
9
+ },
10
+ "monthly_price_usd": "10.000000",
11
+ "charge_now_usd": "7.500000",
12
+ "unused_time_credit_usd": "2.500000",
13
+ "effective_at": null,
14
+ "expires_at": "2026-10-07T11:00:00Z",
15
+ "payment_url": null
16
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "id": "subscription_checkout_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
3
+ "status": "open",
4
+ "checkout_url": "https://checkout.stripe.com/c/pay/test_fixture"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "id": "checkout_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
3
+ "status": "open",
4
+ "checkout_url": "https://checkout.stripe.com/c/pay/cs_test_example"
5
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "ack-conflict",
4
4
  "category": "machine_ack",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "ack-cross-machine",
4
4
  "category": "machine_authorization",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "ack-out-of-order",
4
4
  "category": "machine_ack",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "ack-replay",
4
4
  "category": "machine_ack",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "ambiguous-free-text",
4
4
  "category": "interaction_resolution",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "callback-token-opacity",
4
4
  "category": "callback_token",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "credential-registration-conflict",
4
4
  "category": "machine_credential",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "credential-registration-replay",
4
4
  "category": "machine_credential",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "credential-revocation-replay",
4
4
  "category": "machine_credential",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "credential-rotation",
4
4
  "category": "machine_credential",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "first-credential-activates",
4
4
  "category": "machine_credential",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "interaction-duplicate",
4
4
  "category": "interaction_resolution",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "interaction-expired",
4
4
  "category": "interaction_resolution",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "interaction-mismatch",
4
4
  "category": "interaction_resolution",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "interaction-retired",
4
4
  "category": "interaction_resolution",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "interaction-stale",
4
4
  "category": "interaction_resolution",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "machine-admin-denied",
4
4
  "category": "machine_authorization",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "machine-bound-message-create",
4
4
  "category": "machine_authorization",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "machine-cancel-denied",
4
4
  "category": "machine_authorization",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "machine-crash-before-ack",
4
4
  "category": "machine_poll",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "machine-notifier-mismatch",
4
4
  "category": "machine_authorization",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "machine-other-message-read",
4
4
  "category": "machine_authorization",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "machine-owned-message-read",
4
4
  "category": "machine_authorization",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "machine-subscriber-mismatch",
4
4
  "category": "machine_authorization",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "poll-uncommitted-cursor-rejected",
4
4
  "category": "machine_poll",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "project-credential-machine-endpoint-denied",
4
4
  "category": "machine_authorization",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "quarantine-integrity-rejected",
4
4
  "category": "quarantine",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "quarantine-signature-rejected",
4
4
  "category": "quarantine",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "quarantine-valid",
4
4
  "category": "quarantine",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "revoked-machine-credential",
4
4
  "category": "machine_authorization",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "membership-broadcast-snapshot",
4
4
  "category": "membership_broadcast",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "preferred-binding-resolution",
4
4
  "category": "preference_resolution",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "recipient-session-security",
4
4
  "category": "recipient_security",
5
5
  "given": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "contract_version": "2.0.0-rc.4",
2
+ "contract_version": "2.0.0-rc.6",
3
3
  "id": "subscriber-initial-groups-transaction",
4
4
  "category": "subscriber_groups",
5
5
  "given": {