@whooshbang/contracts 1.0.0-rc.21 → 1.0.0-rc.23

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 (125) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +9 -3
  3. package/contract-manifest.json +43 -41
  4. package/dist/generated/artifact-index.d.ts +35 -35
  5. package/dist/generated/artifact-index.js +43 -41
  6. package/dist/generated/artifact-index.js.map +1 -1
  7. package/dist/generated/validators-standalone.d.ts +340 -288
  8. package/dist/generated/validators-standalone.js +5560 -2925
  9. package/dist/generated/validators-standalone.js.map +1 -1
  10. package/dist/generated/validators.d.ts +12 -8
  11. package/dist/generated/validators.js +22 -18
  12. package/dist/generated/validators.js.map +1 -1
  13. package/dist/generated/whooshbang-event-v1.d.ts +1 -1
  14. package/dist/generated/whooshbang-v1.d.ts +211 -121
  15. package/dist/index.d.ts +2 -2
  16. package/dist/index.js +1 -1
  17. package/dist/index.js.map +1 -1
  18. package/fixtures/core-v1/fixture-index.json +50 -34
  19. package/fixtures/core-v1/problems/credential-organization-mismatch.json +9 -0
  20. package/fixtures/core-v1/problems/live-simulator-refused.json +16 -0
  21. package/fixtures/core-v1/problems/project-slug-conflict.json +1 -1
  22. package/fixtures/core-v1/requests/create-organization-credential.json +4 -0
  23. package/fixtures/core-v1/requests/update-project.json +3 -0
  24. package/fixtures/core-v1/scenarios/api-credential-invalid-indistinguishable.json +1 -1
  25. package/fixtures/core-v1/scenarios/api-credential-one-time-reveal.json +1 -1
  26. package/fixtures/core-v1/scenarios/api-credential-revocation-replay.json +1 -1
  27. package/fixtures/core-v1/scenarios/api-credential-rotation-overlap.json +1 -1
  28. package/fixtures/core-v1/scenarios/cancellation-too-late.json +1 -1
  29. package/fixtures/core-v1/scenarios/cross-organization-project.json +14 -0
  30. package/fixtures/core-v1/scenarios/cross-project-resource.json +1 -1
  31. package/fixtures/core-v1/scenarios/environment-mismatch.json +1 -1
  32. package/fixtures/core-v1/scenarios/idempotency-conflict.json +1 -1
  33. package/fixtures/core-v1/scenarios/idempotency-equivalent-replay.json +1 -1
  34. package/fixtures/core-v1/scenarios/malformed-bearer.json +1 -1
  35. package/fixtures/core-v1/scenarios/metadata-overrun.json +1 -1
  36. package/fixtures/core-v1/scenarios/missing-scope.json +1 -1
  37. package/fixtures/core-v1/scenarios/project-create-equivalent-replay.json +2 -2
  38. package/fixtures/core-v1/scenarios/project-slug-conflict.json +2 -2
  39. package/fixtures/core-v1/scenarios/provider-outcome-unknown.json +1 -1
  40. package/fixtures/core-v1/scenarios/subscription-activation-replay.json +1 -1
  41. package/fixtures/core-v1/scenarios/subscription-authorization-capability-opacity.json +1 -1
  42. package/fixtures/core-v1/scenarios/subscription-cross-connection-callback-rejected.json +1 -1
  43. package/fixtures/core-v1/scenarios/subscription-expired-replay.json +1 -1
  44. package/fixtures/core-v1/scenarios/subscription-selected-connection-replay.json +1 -1
  45. package/fixtures/core-v1/success/{account-credential-collection.json → organization-credential-collection.json} +3 -3
  46. package/fixtures/core-v1/success/organization-credential-created.json +12 -0
  47. package/fixtures/core-v1/success/{account-credential-revoked.json → organization-credential-revoked.json} +3 -3
  48. package/fixtures/core-v1/success/{account-credential-rotated.json → organization-credential-rotated.json} +7 -7
  49. package/fixtures/core-v1/success/{account-projection.json → organization-projection.json} +2 -2
  50. package/fixtures/core-v1/success/project-collection.json +3 -2
  51. package/fixtures/core-v1/success/project-created.json +3 -2
  52. package/fixtures/interaction-machine-v1/scenarios/ack-conflict.json +1 -1
  53. package/fixtures/interaction-machine-v1/scenarios/ack-cross-machine.json +1 -1
  54. package/fixtures/interaction-machine-v1/scenarios/ack-out-of-order.json +1 -1
  55. package/fixtures/interaction-machine-v1/scenarios/ack-replay.json +1 -1
  56. package/fixtures/interaction-machine-v1/scenarios/ambiguous-free-text.json +1 -1
  57. package/fixtures/interaction-machine-v1/scenarios/callback-token-opacity.json +1 -1
  58. package/fixtures/interaction-machine-v1/scenarios/credential-registration-conflict.json +1 -1
  59. package/fixtures/interaction-machine-v1/scenarios/credential-registration-replay.json +1 -1
  60. package/fixtures/interaction-machine-v1/scenarios/credential-revocation-replay.json +1 -1
  61. package/fixtures/interaction-machine-v1/scenarios/credential-rotation.json +1 -1
  62. package/fixtures/interaction-machine-v1/scenarios/first-credential-activates.json +1 -1
  63. package/fixtures/interaction-machine-v1/scenarios/interaction-duplicate.json +1 -1
  64. package/fixtures/interaction-machine-v1/scenarios/interaction-expired.json +1 -1
  65. package/fixtures/interaction-machine-v1/scenarios/interaction-mismatch.json +1 -1
  66. package/fixtures/interaction-machine-v1/scenarios/interaction-retired.json +1 -1
  67. package/fixtures/interaction-machine-v1/scenarios/interaction-stale.json +1 -1
  68. package/fixtures/interaction-machine-v1/scenarios/machine-admin-denied.json +1 -1
  69. package/fixtures/interaction-machine-v1/scenarios/machine-bound-message-create.json +1 -1
  70. package/fixtures/interaction-machine-v1/scenarios/machine-cancel-denied.json +1 -1
  71. package/fixtures/interaction-machine-v1/scenarios/machine-crash-before-ack.json +1 -1
  72. package/fixtures/interaction-machine-v1/scenarios/machine-notifier-mismatch.json +1 -1
  73. package/fixtures/interaction-machine-v1/scenarios/machine-other-message-read.json +1 -1
  74. package/fixtures/interaction-machine-v1/scenarios/machine-owned-message-read.json +1 -1
  75. package/fixtures/interaction-machine-v1/scenarios/machine-subscriber-mismatch.json +1 -1
  76. package/fixtures/interaction-machine-v1/scenarios/poll-uncommitted-cursor-rejected.json +1 -1
  77. package/fixtures/interaction-machine-v1/scenarios/project-credential-machine-endpoint-denied.json +1 -1
  78. package/fixtures/interaction-machine-v1/scenarios/quarantine-integrity-rejected.json +1 -1
  79. package/fixtures/interaction-machine-v1/scenarios/quarantine-signature-rejected.json +1 -1
  80. package/fixtures/interaction-machine-v1/scenarios/quarantine-valid.json +1 -1
  81. package/fixtures/interaction-machine-v1/scenarios/revoked-machine-credential.json +1 -1
  82. package/fixtures/recipient-experience-v1/requests/create-recipient-group.json +1 -1
  83. package/fixtures/recipient-experience-v1/requests/create-subscriber-with-groups.json +1 -1
  84. package/fixtures/recipient-experience-v1/scenarios/membership-broadcast-snapshot.json +1 -1
  85. package/fixtures/recipient-experience-v1/scenarios/preferred-binding-resolution.json +1 -1
  86. package/fixtures/recipient-experience-v1/scenarios/recipient-session-security.json +1 -1
  87. package/fixtures/recipient-experience-v1/scenarios/subscriber-initial-groups-transaction.json +2 -2
  88. package/fixtures/recipient-experience-v1/success/recipient-group.json +1 -1
  89. package/fixtures/whooshbang-events-v1/events/agent-binding-degraded.json +1 -1
  90. package/fixtures/whooshbang-events-v1/events/interaction-expired.json +1 -1
  91. package/fixtures/whooshbang-events-v1/events/interaction-received.json +1 -1
  92. package/fixtures/whooshbang-events-v1/events/message-delivered.json +1 -1
  93. package/fixtures/whooshbang-events-v1/events/message-expired.json +1 -1
  94. package/fixtures/whooshbang-events-v1/events/message-failed.json +1 -1
  95. package/fixtures/whooshbang-events-v1/events/message-provider-accepted.json +1 -1
  96. package/fixtures/whooshbang-events-v1/events/subscription-activated.json +1 -1
  97. package/fixtures/whooshbang-events-v1/events/subscription-revoked.json +1 -1
  98. package/fixtures/whooshbang-events-v1/signing/vectors.json +29 -29
  99. package/openapi/generated/whooshbang-v1.bundle.json +641 -248
  100. package/openapi/whooshbang-v1.yaml +403 -189
  101. package/package.json +1 -1
  102. package/schemas/core-scenario.schema.json +1 -1
  103. package/schemas/events/agent-binding-degraded-v1.schema.json +1 -1
  104. package/schemas/events/interaction-expired-v1.schema.json +1 -1
  105. package/schemas/events/interaction-received-v1.schema.json +1 -1
  106. package/schemas/events/message-delivered-v1.schema.json +1 -1
  107. package/schemas/events/message-expired-v1.schema.json +1 -1
  108. package/schemas/events/message-failed-v1.schema.json +1 -1
  109. package/schemas/events/message-provider-accepted-v1.schema.json +1 -1
  110. package/schemas/events/subscription-activated-v1.schema.json +1 -1
  111. package/schemas/events/subscription-revoked-v1.schema.json +1 -1
  112. package/schemas/events/whooshbang-event-v1.schema.json +3 -3
  113. package/schemas/fixture-index.schema.json +1 -1
  114. package/schemas/interaction-machine-scenario.schema.json +1 -1
  115. package/schemas/interaction-v1.schema.json +1 -1
  116. package/schemas/machine-v1.schema.json +1 -1
  117. package/schemas/provider-capabilities-v1.schema.json +1 -1
  118. package/schemas/webhooks/webhook-delivery-case-v1.schema.json +1 -1
  119. package/schemas/webhooks/webhook-signing-vector-v1.schema.json +1 -1
  120. package/schemas/whooshbang-v1.schema.json +289 -67
  121. package/fixtures/core-v1/problems/credential-account-mismatch.json +0 -9
  122. package/fixtures/core-v1/requests/create-account-credential.json +0 -4
  123. package/fixtures/core-v1/scenarios/cross-account-project.json +0 -14
  124. package/fixtures/core-v1/success/account-credential-created.json +0 -12
  125. /package/fixtures/core-v1/requests/{rotate-account-credential.json → rotate-organization-credential.json} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whooshbang/contracts",
3
- "version": "1.0.0-rc.21",
3
+ "version": "1.0.0-rc.23",
4
4
  "description": "Versioned public contracts for WhooshBang",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://whooshbang.flowxo.com/schemas/core-scenario.schema.json",
4
- "x-contract-version": "1.0.0-rc.21",
4
+ "x-contract-version": "1.0.0-rc.23",
5
5
  "title": "CoreContractScenario",
6
6
  "description": "A deterministic C0-02 semantic, state, idempotency, or isolation scenario.",
7
7
  "type": "object",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://whooshbang.flowxo.com/schemas/events/agent-binding-degraded-v1.schema.json",
4
- "x-contract-version": "1.0.0-rc.21",
4
+ "x-contract-version": "1.0.0-rc.23",
5
5
  "title": "AgentBindingDegradedEventV1",
6
6
  "description": "An agent binding entered a provider-neutral degraded state.",
7
7
  "$ref": "whooshbang-event-v1.schema.json#/$defs/AgentBindingDegradedEvent"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://whooshbang.flowxo.com/schemas/events/interaction-expired-v1.schema.json",
4
- "x-contract-version": "1.0.0-rc.21",
4
+ "x-contract-version": "1.0.0-rc.23",
5
5
  "title": "InteractionExpiredEventV1",
6
6
  "description": "An interaction reached its terminal expiry without a valid answer.",
7
7
  "$ref": "whooshbang-event-v1.schema.json#/$defs/InteractionExpiredEvent"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://whooshbang.flowxo.com/schemas/events/interaction-received-v1.schema.json",
4
- "x-contract-version": "1.0.0-rc.21",
4
+ "x-contract-version": "1.0.0-rc.23",
5
5
  "title": "InteractionReceivedEventV1",
6
6
  "description": "One authenticated, provider-neutral interaction answer was received.",
7
7
  "$ref": "whooshbang-event-v1.schema.json#/$defs/InteractionReceivedEvent"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://whooshbang.flowxo.com/schemas/events/message-delivered-v1.schema.json",
4
- "x-contract-version": "1.0.0-rc.21",
4
+ "x-contract-version": "1.0.0-rc.23",
5
5
  "title": "MessageDeliveredEventV1",
6
6
  "description": "A provider supplied trustworthy evidence that a message was delivered.",
7
7
  "$ref": "whooshbang-event-v1.schema.json#/$defs/MessageDeliveredEvent"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://whooshbang.flowxo.com/schemas/events/message-expired-v1.schema.json",
4
- "x-contract-version": "1.0.0-rc.21",
4
+ "x-contract-version": "1.0.0-rc.23",
5
5
  "title": "MessageExpiredEventV1",
6
6
  "description": "A message expired before reaching a later delivery state.",
7
7
  "$ref": "whooshbang-event-v1.schema.json#/$defs/MessageExpiredEvent"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://whooshbang.flowxo.com/schemas/events/message-failed-v1.schema.json",
4
- "x-contract-version": "1.0.0-rc.21",
4
+ "x-contract-version": "1.0.0-rc.23",
5
5
  "title": "MessageFailedEventV1",
6
6
  "description": "A message reached a classified terminal failure.",
7
7
  "$ref": "whooshbang-event-v1.schema.json#/$defs/MessageFailedEvent"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://whooshbang.flowxo.com/schemas/events/message-provider-accepted-v1.schema.json",
4
- "x-contract-version": "1.0.0-rc.21",
4
+ "x-contract-version": "1.0.0-rc.23",
5
5
  "title": "MessageProviderAcceptedEventV1",
6
6
  "description": "The provider accepted a message without implying delivery.",
7
7
  "$ref": "whooshbang-event-v1.schema.json#/$defs/MessageProviderAcceptedEvent"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://whooshbang.flowxo.com/schemas/events/subscription-activated-v1.schema.json",
4
- "x-contract-version": "1.0.0-rc.21",
4
+ "x-contract-version": "1.0.0-rc.23",
5
5
  "title": "SubscriptionActivatedEventV1",
6
6
  "description": "A subscription became active with a safe public channel binding.",
7
7
  "$ref": "whooshbang-event-v1.schema.json#/$defs/SubscriptionActivatedEvent"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://whooshbang.flowxo.com/schemas/events/subscription-revoked-v1.schema.json",
4
- "x-contract-version": "1.0.0-rc.21",
4
+ "x-contract-version": "1.0.0-rc.23",
5
5
  "title": "SubscriptionRevokedEventV1",
6
6
  "description": "A subscription and its safe public channel binding were revoked.",
7
7
  "$ref": "whooshbang-event-v1.schema.json#/$defs/SubscriptionRevokedEvent"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://whooshbang.flowxo.com/schemas/events/whooshbang-event-v1.schema.json",
4
- "x-contract-version": "1.0.0-rc.21",
4
+ "x-contract-version": "1.0.0-rc.23",
5
5
  "title": "WhooshBangEventV1ContractDocument",
6
6
  "description": "Strict public customer-event envelope and initial WhooshBang event union.",
7
7
  "oneOf": [
@@ -85,7 +85,7 @@
85
85
  "id",
86
86
  "type",
87
87
  "created_at",
88
- "account_id",
88
+ "organization_id",
89
89
  "project_id",
90
90
  "environment",
91
91
  "data"
@@ -114,7 +114,7 @@
114
114
  "created_at": {
115
115
  "$ref": "#/$defs/Timestamp"
116
116
  },
117
- "account_id": {
117
+ "organization_id": {
118
118
  "$ref": "#/$defs/OpaqueIdentifier"
119
119
  },
120
120
  "project_id": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://whooshbang.flowxo.com/schemas/fixture-index.schema.json",
4
- "x-contract-version": "1.0.0-rc.21",
4
+ "x-contract-version": "1.0.0-rc.23",
5
5
  "title": "CoreFixtureIndex",
6
6
  "description": "The machine-readable index of deterministic C0-02 through C0-04 golden fixtures.",
7
7
  "type": "object",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://whooshbang.flowxo.com/schemas/interaction-machine-scenario.schema.json",
4
- "x-contract-version": "1.0.0-rc.21",
4
+ "x-contract-version": "1.0.0-rc.23",
5
5
  "title": "InteractionMachineScenario",
6
6
  "description": "A deterministic C0-03 interaction, credential, authorization, polling, acknowledgement, or quarantine scenario.",
7
7
  "type": "object",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://whooshbang.flowxo.com/schemas/interaction-v1.schema.json",
4
- "x-contract-version": "1.0.0-rc.21",
4
+ "x-contract-version": "1.0.0-rc.23",
5
5
  "title": "InteractionV1ContractDocument",
6
6
  "description": "Provider-neutral confirm, single-select, input, lifecycle, callback-token, and authenticated answer-event contracts.",
7
7
  "oneOf": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://whooshbang.flowxo.com/schemas/machine-v1.schema.json",
4
- "x-contract-version": "1.0.0-rc.21",
4
+ "x-contract-version": "1.0.0-rc.23",
5
5
  "title": "MachineV1ContractDocument",
6
6
  "description": "Machine-client administration, locally generated credential metadata, durable long-poll, and contiguous acknowledgement contracts.",
7
7
  "oneOf": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://whooshbang.flowxo.com/schemas/provider-capabilities-v1.schema.json",
4
- "x-contract-version": "1.0.0-rc.21",
4
+ "x-contract-version": "1.0.0-rc.23",
5
5
  "title": "ProviderCapabilitiesV1",
6
6
  "description": "Provider-neutral, renderer-facing delivery and interaction capabilities with explicit degradation.",
7
7
  "type": "object",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://whooshbang.flowxo.com/schemas/webhooks/webhook-delivery-case-v1.schema.json",
4
- "x-contract-version": "1.0.0-rc.21",
4
+ "x-contract-version": "1.0.0-rc.23",
5
5
  "title": "WebhookDeliveryCaseSetV1",
6
6
  "description": "Deterministic customer webhook response classification, Retry-After, and delivery-bound cases.",
7
7
  "type": "object",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://whooshbang.flowxo.com/schemas/webhooks/webhook-signing-vector-v1.schema.json",
4
- "x-contract-version": "1.0.0-rc.21",
4
+ "x-contract-version": "1.0.0-rc.23",
5
5
  "title": "WebhookSigningVectorSetV1",
6
6
  "description": "Language-neutral deterministic Standard Webhooks V1 verification vectors. All key material is public synthetic test data and must never be used outside fixtures.",
7
7
  "type": "object",