@whooshbang/contracts 2.3.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/contract-manifest.json +35 -32
- package/dist/generated/artifact-index.d.ts +34 -34
- package/dist/generated/artifact-index.js +35 -32
- package/dist/generated/artifact-index.js.map +1 -1
- package/dist/generated/validators-standalone.d.ts +439 -400
- package/dist/generated/validators-standalone.js +6840 -1621
- package/dist/generated/validators-standalone.js.map +1 -1
- package/dist/generated/validators.d.ts +4 -1
- package/dist/generated/validators.js +4 -1
- package/dist/generated/validators.js.map +1 -1
- package/dist/generated/whooshbang-v1.d.ts +112 -1
- 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 +24 -1
- package/fixtures/core-v1/requests/redeem-billing-promotion.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/billing-promotion.json +14 -0
- package/fixtures/core-v1/success/billing-promotions.json +64 -0
- package/fixtures/core-v1/success/credit-purchase.json +2 -0
- package/fixtures/core-v1/success/subscription-change.json +7 -0
- 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 +423 -11
- package/openapi/whooshbang-v1.yaml +124 -2
- 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 +374 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contract_version": "2.
|
|
2
|
+
"contract_version": "2.5.0",
|
|
3
3
|
"fixtures": [
|
|
4
4
|
{
|
|
5
5
|
"id": "create-project.request",
|
|
@@ -1956,6 +1956,29 @@
|
|
|
1956
1956
|
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/AssignBillingProjectSlotsRequest",
|
|
1957
1957
|
"operation_id": "assignBillingProjectSlots"
|
|
1958
1958
|
},
|
|
1959
|
+
{
|
|
1960
|
+
"id": "billing-promotions.success",
|
|
1961
|
+
"kind": "success",
|
|
1962
|
+
"path": "fixtures/core-v1/success/billing-promotions.json",
|
|
1963
|
+
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/BillingPromotions",
|
|
1964
|
+
"operation_id": "getBillingPromotions",
|
|
1965
|
+
"status_code": 200
|
|
1966
|
+
},
|
|
1967
|
+
{
|
|
1968
|
+
"id": "redeem-billing-promotion.request",
|
|
1969
|
+
"kind": "request",
|
|
1970
|
+
"path": "fixtures/core-v1/requests/redeem-billing-promotion.json",
|
|
1971
|
+
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/RedeemBillingPromotionRequest",
|
|
1972
|
+
"operation_id": "redeemBillingPromotion"
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
"id": "billing-promotion.success",
|
|
1976
|
+
"kind": "success",
|
|
1977
|
+
"path": "fixtures/core-v1/success/billing-promotion.json",
|
|
1978
|
+
"schema_ref": "schemas/whooshbang-v1.schema.json#/$defs/BillingPromotion",
|
|
1979
|
+
"operation_id": "redeemBillingPromotion",
|
|
1980
|
+
"status_code": 201
|
|
1981
|
+
},
|
|
1959
1982
|
{
|
|
1960
1983
|
"id": "auto-top-up-settings.success",
|
|
1961
1984
|
"kind": "success",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "grn_0000000000000000000000000a",
|
|
3
|
+
"source": "code",
|
|
4
|
+
"name": "Design partner launch",
|
|
5
|
+
"status": "active",
|
|
6
|
+
"starts_at": "2026-10-12T12:00:00.000Z",
|
|
7
|
+
"ends_at": "2026-11-11T12:00:00.000Z",
|
|
8
|
+
"ended_at": null,
|
|
9
|
+
"benefit": {
|
|
10
|
+
"kind": "message_credit",
|
|
11
|
+
"credit_usd": "10.000000",
|
|
12
|
+
"remaining_usd": "10.000000"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"promotional_credit_usd": "10.000000",
|
|
3
|
+
"free_shared_emails": 500,
|
|
4
|
+
"branding_removed_until": "2026-12-12T12:00:00.000Z",
|
|
5
|
+
"promotions": [
|
|
6
|
+
{
|
|
7
|
+
"id": "grn_0000000000000000000000000a",
|
|
8
|
+
"source": "code",
|
|
9
|
+
"name": "Design partner launch",
|
|
10
|
+
"status": "active",
|
|
11
|
+
"starts_at": "2026-10-12T12:00:00.000Z",
|
|
12
|
+
"ends_at": "2026-11-11T12:00:00.000Z",
|
|
13
|
+
"ended_at": null,
|
|
14
|
+
"benefit": {
|
|
15
|
+
"kind": "message_credit",
|
|
16
|
+
"credit_usd": "10.000000",
|
|
17
|
+
"remaining_usd": "10.000000"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "grn_0000000000000000000000000b",
|
|
22
|
+
"source": "whooshbang",
|
|
23
|
+
"name": null,
|
|
24
|
+
"status": "active",
|
|
25
|
+
"starts_at": "2026-10-12T12:00:00.000Z",
|
|
26
|
+
"ends_at": "2026-12-12T12:00:00.000Z",
|
|
27
|
+
"ended_at": null,
|
|
28
|
+
"benefit": {
|
|
29
|
+
"kind": "branding"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "grn_0000000000000000000000000c",
|
|
34
|
+
"source": "whooshbang",
|
|
35
|
+
"name": null,
|
|
36
|
+
"status": "active",
|
|
37
|
+
"starts_at": "2026-10-12T12:00:00.000Z",
|
|
38
|
+
"ends_at": "2026-11-11T12:00:00.000Z",
|
|
39
|
+
"ended_at": null,
|
|
40
|
+
"benefit": {
|
|
41
|
+
"kind": "shared_emails",
|
|
42
|
+
"shared_emails": 500,
|
|
43
|
+
"remaining": 500
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "grn_0000000000000000000000000d",
|
|
48
|
+
"source": "code",
|
|
49
|
+
"name": "Spring packs",
|
|
50
|
+
"status": "active",
|
|
51
|
+
"starts_at": "2026-10-12T12:00:00.000Z",
|
|
52
|
+
"ends_at": null,
|
|
53
|
+
"ended_at": null,
|
|
54
|
+
"benefit": {
|
|
55
|
+
"kind": "discount",
|
|
56
|
+
"applies_to": "credit_packs",
|
|
57
|
+
"percent_off": 25,
|
|
58
|
+
"amount_off_usd": null,
|
|
59
|
+
"duration": "once",
|
|
60
|
+
"months": null
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
@@ -10,6 +10,13 @@
|
|
|
10
10
|
"monthly_price_usd": "10.000000",
|
|
11
11
|
"charge_now_usd": "7.500000",
|
|
12
12
|
"unused_time_credit_usd": "0.000000",
|
|
13
|
+
"promotion": null,
|
|
14
|
+
"renewal_promotion": {
|
|
15
|
+
"percent_off": 50,
|
|
16
|
+
"duration": "repeating",
|
|
17
|
+
"renewal_price_usd": "5.000000",
|
|
18
|
+
"ends_at": "2026-12-07T11:00:00Z"
|
|
19
|
+
},
|
|
13
20
|
"effective_at": null,
|
|
14
21
|
"expires_at": "2026-10-07T11:00:00Z",
|
|
15
22
|
"client_secret": null,
|