@whooshbang/contracts 1.0.0-rc.13
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 +198 -0
- package/LICENSE +21 -0
- package/README.md +120 -0
- package/contract-manifest.json +390 -0
- package/dist/base64url.d.ts +2 -0
- package/dist/base64url.js +51 -0
- package/dist/base64url.js.map +1 -0
- package/dist/generated/artifact-index.d.ts +205 -0
- package/dist/generated/artifact-index.js +396 -0
- package/dist/generated/artifact-index.js.map +1 -0
- package/dist/generated/contract-manifest.d.ts +66 -0
- package/dist/generated/contract-manifest.js +6 -0
- package/dist/generated/contract-manifest.js.map +1 -0
- package/dist/generated/core-scenario.d.ts +18 -0
- package/dist/generated/core-scenario.js +6 -0
- package/dist/generated/core-scenario.js.map +1 -0
- package/dist/generated/fixture-index.d.ts +33 -0
- package/dist/generated/fixture-index.js +6 -0
- package/dist/generated/fixture-index.js.map +1 -0
- package/dist/generated/interaction-machine-scenario.d.ts +263 -0
- package/dist/generated/interaction-machine-scenario.js +6 -0
- package/dist/generated/interaction-machine-scenario.js.map +1 -0
- package/dist/generated/interaction-v1.d.ts +152 -0
- package/dist/generated/interaction-v1.js +6 -0
- package/dist/generated/interaction-v1.js.map +1 -0
- package/dist/generated/machine-v1.d.ts +169 -0
- package/dist/generated/machine-v1.js +6 -0
- package/dist/generated/machine-v1.js.map +1 -0
- package/dist/generated/provider-capabilities-v1.d.ts +78 -0
- package/dist/generated/provider-capabilities-v1.js +6 -0
- package/dist/generated/provider-capabilities-v1.js.map +1 -0
- package/dist/generated/validators-standalone.d.ts +659 -0
- package/dist/generated/validators-standalone.js +47800 -0
- package/dist/generated/validators-standalone.js.map +1 -0
- package/dist/generated/validators.d.ts +74 -0
- package/dist/generated/validators.js +493 -0
- package/dist/generated/validators.js.map +1 -0
- package/dist/generated/webhook-delivery-case-v1.d.ts +91 -0
- package/dist/generated/webhook-delivery-case-v1.js +6 -0
- package/dist/generated/webhook-delivery-case-v1.js.map +1 -0
- package/dist/generated/webhook-signing-vector-v1.d.ts +88 -0
- package/dist/generated/webhook-signing-vector-v1.js +6 -0
- package/dist/generated/webhook-signing-vector-v1.js.map +1 -0
- package/dist/generated/whooshbang-event-v1.d.ts +191 -0
- package/dist/generated/whooshbang-event-v1.js +6 -0
- package/dist/generated/whooshbang-event-v1.js.map +1 -0
- package/dist/generated/whooshbang-v1.d.ts +1162 -0
- package/dist/generated/whooshbang-v1.js +6 -0
- package/dist/generated/whooshbang-v1.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/machine-credential.d.ts +31 -0
- package/dist/machine-credential.js +78 -0
- package/dist/machine-credential.js.map +1 -0
- package/dist/webhook-consumer.d.ts +50 -0
- package/dist/webhook-consumer.js +71 -0
- package/dist/webhook-consumer.js.map +1 -0
- package/dist/webhook-delivery.d.ts +46 -0
- package/dist/webhook-delivery.js +126 -0
- package/dist/webhook-delivery.js.map +1 -0
- package/dist/webhook-signature.d.ts +36 -0
- package/dist/webhook-signature.js +255 -0
- package/dist/webhook-signature.js.map +1 -0
- package/examples/python/verify_webhook.py +283 -0
- package/fixtures/.gitkeep +1 -0
- package/fixtures/core-v1/fixture-index.json +963 -0
- package/fixtures/core-v1/problems/auth-invalid.json +9 -0
- package/fixtures/core-v1/problems/authentication-required.json +9 -0
- package/fixtures/core-v1/problems/cancellation-too-late.json +9 -0
- package/fixtures/core-v1/problems/endpoint-rotation-conflict.json +10 -0
- package/fixtures/core-v1/problems/environment-mismatch.json +9 -0
- package/fixtures/core-v1/problems/idempotency-conflict.json +9 -0
- package/fixtures/core-v1/problems/idempotency-key-required.json +9 -0
- package/fixtures/core-v1/problems/project-slug-conflict.json +16 -0
- package/fixtures/core-v1/problems/provider-outcome-unknown.json +9 -0
- package/fixtures/core-v1/problems/provider-retryable.json +10 -0
- package/fixtures/core-v1/problems/provider-terminal.json +9 -0
- package/fixtures/core-v1/problems/rate-limited.json +10 -0
- package/fixtures/core-v1/problems/replay-unavailable-not-terminal.json +16 -0
- package/fixtures/core-v1/problems/replay-unavailable-payload.json +16 -0
- package/fixtures/core-v1/problems/replay-unavailable-rollout.json +16 -0
- package/fixtures/core-v1/problems/request-invalid.json +16 -0
- package/fixtures/core-v1/problems/resource-expired.json +9 -0
- package/fixtures/core-v1/problems/resource-not-found.json +9 -0
- package/fixtures/core-v1/problems/scope-forbidden.json +9 -0
- package/fixtures/core-v1/problems/subscriber-unbound.json +9 -0
- package/fixtures/core-v1/requests/create-api-credential.json +9 -0
- package/fixtures/core-v1/requests/create-customer-endpoint.json +5 -0
- package/fixtures/core-v1/requests/create-message.json +15 -0
- package/fixtures/core-v1/requests/create-project.json +4 -0
- package/fixtures/core-v1/requests/create-subscription-link.json +5 -0
- package/fixtures/core-v1/requests/rotate-api-credential.json +3 -0
- package/fixtures/core-v1/requests/rotate-customer-endpoint.json +3 -0
- package/fixtures/core-v1/scenarios/api-credential-invalid-indistinguishable.json +14 -0
- package/fixtures/core-v1/scenarios/api-credential-one-time-reveal.json +21 -0
- package/fixtures/core-v1/scenarios/api-credential-revocation-replay.json +17 -0
- package/fixtures/core-v1/scenarios/api-credential-rotation-overlap.json +18 -0
- package/fixtures/core-v1/scenarios/cancellation-too-late.json +15 -0
- package/fixtures/core-v1/scenarios/cross-account-project.json +14 -0
- package/fixtures/core-v1/scenarios/cross-project-resource.json +17 -0
- package/fixtures/core-v1/scenarios/environment-mismatch.json +17 -0
- package/fixtures/core-v1/scenarios/idempotency-conflict.json +35 -0
- package/fixtures/core-v1/scenarios/idempotency-equivalent-replay.json +27 -0
- package/fixtures/core-v1/scenarios/malformed-bearer.json +14 -0
- package/fixtures/core-v1/scenarios/metadata-overrun.json +14 -0
- package/fixtures/core-v1/scenarios/missing-scope.json +15 -0
- package/fixtures/core-v1/scenarios/project-create-equivalent-replay.json +26 -0
- package/fixtures/core-v1/scenarios/project-slug-conflict.json +21 -0
- package/fixtures/core-v1/scenarios/provider-outcome-unknown.json +15 -0
- package/fixtures/core-v1/scenarios/subscription-activation-replay.json +18 -0
- package/fixtures/core-v1/scenarios/subscription-expired-replay.json +16 -0
- package/fixtures/core-v1/success/account-projection.json +11 -0
- package/fixtures/core-v1/success/api-credential-collection.json +22 -0
- package/fixtures/core-v1/success/api-credential-created.json +20 -0
- package/fixtures/core-v1/success/api-credential-revoked.json +19 -0
- package/fixtures/core-v1/success/api-credential-rotated.json +41 -0
- package/fixtures/core-v1/success/customer-endpoint-attempts.json +15 -0
- package/fixtures/core-v1/success/customer-endpoint-collection.json +26 -0
- package/fixtures/core-v1/success/customer-endpoint-create-replayed.json +16 -0
- package/fixtures/core-v1/success/customer-endpoint-created.json +17 -0
- package/fixtures/core-v1/success/customer-endpoint-rotated.json +21 -0
- package/fixtures/core-v1/success/message-accepted.json +30 -0
- package/fixtures/core-v1/success/message-cancellation-too-late.json +27 -0
- package/fixtures/core-v1/success/message-cancelled.json +27 -0
- package/fixtures/core-v1/success/message-outcome-unknown.json +33 -0
- package/fixtures/core-v1/success/message-provider-accepted.json +30 -0
- package/fixtures/core-v1/success/project-collection.json +42 -0
- package/fixtures/core-v1/success/project-created.json +38 -0
- package/fixtures/core-v1/success/subscription-link-activated.json +22 -0
- package/fixtures/core-v1/success/subscription-link-cancelled.json +14 -0
- package/fixtures/core-v1/success/subscription-link-paused.json +22 -0
- package/fixtures/core-v1/success/subscription-link-pending.json +14 -0
- package/fixtures/core-v1/success/subscription-link-revoked.json +22 -0
- package/fixtures/interaction-machine-v1/capabilities/providers.json +57 -0
- package/fixtures/interaction-machine-v1/capabilities/telegram.json +52 -0
- package/fixtures/interaction-machine-v1/events/confirm-answered.json +22 -0
- package/fixtures/interaction-machine-v1/events/input-answered.json +22 -0
- package/fixtures/interaction-machine-v1/events/input-redacted.json +18 -0
- package/fixtures/interaction-machine-v1/events/select-answered.json +22 -0
- package/fixtures/interaction-machine-v1/requests/ack-processed.json +5 -0
- package/fixtures/interaction-machine-v1/requests/ack-quarantined.json +5 -0
- package/fixtures/interaction-machine-v1/requests/create-machine-client.json +6 -0
- package/fixtures/interaction-machine-v1/requests/create-message-confirm.json +18 -0
- package/fixtures/interaction-machine-v1/requests/create-message-input.json +16 -0
- package/fixtures/interaction-machine-v1/requests/create-message-select.json +26 -0
- package/fixtures/interaction-machine-v1/requests/register-machine-credential.json +4 -0
- package/fixtures/interaction-machine-v1/scenarios/ack-conflict.json +14 -0
- package/fixtures/interaction-machine-v1/scenarios/ack-cross-machine.json +15 -0
- package/fixtures/interaction-machine-v1/scenarios/ack-out-of-order.json +15 -0
- package/fixtures/interaction-machine-v1/scenarios/ack-replay.json +17 -0
- package/fixtures/interaction-machine-v1/scenarios/ambiguous-free-text.json +15 -0
- package/fixtures/interaction-machine-v1/scenarios/callback-token-opacity.json +16 -0
- package/fixtures/interaction-machine-v1/scenarios/credential-registration-conflict.json +16 -0
- package/fixtures/interaction-machine-v1/scenarios/credential-registration-replay.json +15 -0
- package/fixtures/interaction-machine-v1/scenarios/credential-revocation-replay.json +14 -0
- package/fixtures/interaction-machine-v1/scenarios/credential-rotation.json +16 -0
- package/fixtures/interaction-machine-v1/scenarios/first-credential-activates.json +15 -0
- package/fixtures/interaction-machine-v1/scenarios/interaction-duplicate.json +16 -0
- package/fixtures/interaction-machine-v1/scenarios/interaction-expired.json +17 -0
- package/fixtures/interaction-machine-v1/scenarios/interaction-mismatch.json +16 -0
- package/fixtures/interaction-machine-v1/scenarios/interaction-retired.json +16 -0
- package/fixtures/interaction-machine-v1/scenarios/interaction-stale.json +16 -0
- package/fixtures/interaction-machine-v1/scenarios/machine-admin-denied.json +14 -0
- package/fixtures/interaction-machine-v1/scenarios/machine-bound-message-create.json +22 -0
- package/fixtures/interaction-machine-v1/scenarios/machine-cancel-denied.json +14 -0
- package/fixtures/interaction-machine-v1/scenarios/machine-crash-before-ack.json +16 -0
- package/fixtures/interaction-machine-v1/scenarios/machine-notifier-mismatch.json +14 -0
- package/fixtures/interaction-machine-v1/scenarios/machine-other-message-read.json +14 -0
- package/fixtures/interaction-machine-v1/scenarios/machine-owned-message-read.json +22 -0
- package/fixtures/interaction-machine-v1/scenarios/machine-subscriber-mismatch.json +14 -0
- package/fixtures/interaction-machine-v1/scenarios/poll-uncommitted-cursor-rejected.json +17 -0
- package/fixtures/interaction-machine-v1/scenarios/project-credential-machine-endpoint-denied.json +14 -0
- package/fixtures/interaction-machine-v1/scenarios/quarantine-integrity-rejected.json +15 -0
- package/fixtures/interaction-machine-v1/scenarios/quarantine-signature-rejected.json +16 -0
- package/fixtures/interaction-machine-v1/scenarios/quarantine-valid.json +15 -0
- package/fixtures/interaction-machine-v1/scenarios/revoked-machine-credential.json +15 -0
- package/fixtures/interaction-machine-v1/success/ack-out-of-order.json +8 -0
- package/fixtures/interaction-machine-v1/success/ack-processed.json +8 -0
- package/fixtures/interaction-machine-v1/success/ack-quarantined.json +9 -0
- package/fixtures/interaction-machine-v1/success/interaction-answered-confirm.json +10 -0
- package/fixtures/interaction-machine-v1/success/interaction-answered-input.json +10 -0
- package/fixtures/interaction-machine-v1/success/interaction-answered-redacted.json +8 -0
- package/fixtures/interaction-machine-v1/success/interaction-answered-select.json +10 -0
- package/fixtures/interaction-machine-v1/success/interaction-open.json +7 -0
- package/fixtures/interaction-machine-v1/success/machine-client-active.json +20 -0
- package/fixtures/interaction-machine-v1/success/machine-client-provisioning.json +19 -0
- package/fixtures/interaction-machine-v1/success/machine-client-revoked.json +21 -0
- package/fixtures/interaction-machine-v1/success/machine-credential-active.json +13 -0
- package/fixtures/interaction-machine-v1/success/machine-credential-revoked.json +14 -0
- package/fixtures/interaction-machine-v1/success/message-interaction-open.json +33 -0
- package/fixtures/interaction-machine-v1/success/poll-empty.json +6 -0
- package/fixtures/interaction-machine-v1/success/poll-events.json +51 -0
- package/fixtures/interaction-machine-v1/tokens/callback-token.json +1 -0
- package/fixtures/whooshbang-events-v1/delivery/cases.json +418 -0
- package/fixtures/whooshbang-events-v1/events/agent-binding-degraded.json +17 -0
- package/fixtures/whooshbang-events-v1/events/interaction-expired.json +16 -0
- package/fixtures/whooshbang-events-v1/events/interaction-received.json +23 -0
- package/fixtures/whooshbang-events-v1/events/message-delivered.json +16 -0
- package/fixtures/whooshbang-events-v1/events/message-expired.json +15 -0
- package/fixtures/whooshbang-events-v1/events/message-failed.json +17 -0
- package/fixtures/whooshbang-events-v1/events/message-provider-accepted.json +15 -0
- package/fixtures/whooshbang-events-v1/events/subscription-activated.json +18 -0
- package/fixtures/whooshbang-events-v1/events/subscription-revoked.json +18 -0
- package/fixtures/whooshbang-events-v1/signing/vectors.json +852 -0
- package/openapi/.gitkeep +1 -0
- package/openapi/generated/whooshbang-v1.bundle.json +5913 -0
- package/openapi/whooshbang-v1.yaml +2334 -0
- package/package.json +63 -0
- package/schemas/contract-manifest.schema.json +140 -0
- package/schemas/core-scenario.schema.json +38 -0
- package/schemas/events/agent-binding-degraded-v1.schema.json +8 -0
- package/schemas/events/interaction-expired-v1.schema.json +8 -0
- package/schemas/events/interaction-received-v1.schema.json +8 -0
- package/schemas/events/message-delivered-v1.schema.json +8 -0
- package/schemas/events/message-expired-v1.schema.json +8 -0
- package/schemas/events/message-failed-v1.schema.json +8 -0
- package/schemas/events/message-provider-accepted-v1.schema.json +8 -0
- package/schemas/events/subscription-activated-v1.schema.json +8 -0
- package/schemas/events/subscription-revoked-v1.schema.json +8 -0
- package/schemas/events/whooshbang-event-v1.schema.json +689 -0
- package/schemas/fixture-index.schema.json +67 -0
- package/schemas/interaction-machine-scenario.schema.json +700 -0
- package/schemas/interaction-v1.schema.json +483 -0
- package/schemas/machine-v1.schema.json +430 -0
- package/schemas/provider-capabilities-v1.schema.json +263 -0
- package/schemas/webhooks/webhook-delivery-case-v1.schema.json +167 -0
- package/schemas/webhooks/webhook-signing-vector-v1.schema.json +197 -0
- package/schemas/whooshbang-v1.schema.json +2173 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "whooshbang.provider-capabilities.v1",
|
|
3
|
+
"provider": "telegram",
|
|
4
|
+
"text": {
|
|
5
|
+
"supported": true,
|
|
6
|
+
"maximum_bytes": 8192
|
|
7
|
+
},
|
|
8
|
+
"interaction": {
|
|
9
|
+
"confirm": {
|
|
10
|
+
"mode": "native"
|
|
11
|
+
},
|
|
12
|
+
"select": {
|
|
13
|
+
"mode": "native"
|
|
14
|
+
},
|
|
15
|
+
"input": {
|
|
16
|
+
"mode": "conditional",
|
|
17
|
+
"explanation": "Input requires an exact provider reply context."
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"streaming": {
|
|
21
|
+
"mode": "edit",
|
|
22
|
+
"explanation": "Progressive content uses bounded message edits."
|
|
23
|
+
},
|
|
24
|
+
"edit": {
|
|
25
|
+
"supported": true
|
|
26
|
+
},
|
|
27
|
+
"receipts": {
|
|
28
|
+
"provider_accepted": true,
|
|
29
|
+
"delivered": false,
|
|
30
|
+
"read": false
|
|
31
|
+
},
|
|
32
|
+
"contexts": {
|
|
33
|
+
"private_chat": {
|
|
34
|
+
"mode": "supported"
|
|
35
|
+
},
|
|
36
|
+
"thread": {
|
|
37
|
+
"mode": "conditional",
|
|
38
|
+
"explanation": "Thread support depends on the bound Telegram chat context."
|
|
39
|
+
},
|
|
40
|
+
"group": {
|
|
41
|
+
"mode": "conditional",
|
|
42
|
+
"explanation": "Group use requires an authenticated subscriber binding and exact reply context."
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"rate_limit": {
|
|
46
|
+
"strategy": "provider_retry_after",
|
|
47
|
+
"explanation": "Safe provider retry timing is honored when available."
|
|
48
|
+
},
|
|
49
|
+
"degradation": {
|
|
50
|
+
"active": false
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "whooshbang.interaction-event.v1",
|
|
3
|
+
"id": "event_interaction_confirm_001",
|
|
4
|
+
"cursor": "mcur_synthetic_001",
|
|
5
|
+
"type": "interaction.received",
|
|
6
|
+
"message_id": "msg_interactive_confirm_001",
|
|
7
|
+
"interaction_id": "interaction_synthetic_confirm",
|
|
8
|
+
"correlation_id": "request_confirm_001",
|
|
9
|
+
"answer_retained": true,
|
|
10
|
+
"response": {
|
|
11
|
+
"type": "confirm",
|
|
12
|
+
"value": true
|
|
13
|
+
},
|
|
14
|
+
"channel_context": {
|
|
15
|
+
"binding_id": "binding_synthetic_relay",
|
|
16
|
+
"channel": "telegram",
|
|
17
|
+
"conversation_kind": "private_chat",
|
|
18
|
+
"display_name": "Synthetic operator"
|
|
19
|
+
},
|
|
20
|
+
"occurred_at": "2026-07-25T17:47:00Z",
|
|
21
|
+
"expires_at": "2026-07-25T18:00:00Z"
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "whooshbang.interaction-event.v1",
|
|
3
|
+
"id": "event_interaction_input_001",
|
|
4
|
+
"cursor": "mcur_synthetic_003",
|
|
5
|
+
"type": "interaction.received",
|
|
6
|
+
"message_id": "msg_interactive_input_001",
|
|
7
|
+
"interaction_id": "interaction_synthetic_input",
|
|
8
|
+
"correlation_id": "request_input_001",
|
|
9
|
+
"answer_retained": true,
|
|
10
|
+
"response": {
|
|
11
|
+
"type": "input",
|
|
12
|
+
"value": "Continue with the synthetic verification."
|
|
13
|
+
},
|
|
14
|
+
"channel_context": {
|
|
15
|
+
"binding_id": "binding_synthetic_relay",
|
|
16
|
+
"channel": "telegram",
|
|
17
|
+
"conversation_kind": "private_chat",
|
|
18
|
+
"display_name": "Synthetic operator"
|
|
19
|
+
},
|
|
20
|
+
"occurred_at": "2026-07-25T17:49:00Z",
|
|
21
|
+
"expires_at": "2026-07-25T18:00:00Z"
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "whooshbang.interaction-event.v1",
|
|
3
|
+
"id": "event_interaction_input_redacted_001",
|
|
4
|
+
"cursor": "mcur_synthetic_redacted_001",
|
|
5
|
+
"type": "interaction.received",
|
|
6
|
+
"message_id": "msg_interactive_input_redacted_001",
|
|
7
|
+
"interaction_id": "interaction_synthetic_input_redacted",
|
|
8
|
+
"correlation_id": "request_input_redacted_001",
|
|
9
|
+
"answer_retained": false,
|
|
10
|
+
"channel_context": {
|
|
11
|
+
"binding_id": "binding_synthetic_relay",
|
|
12
|
+
"channel": "telegram",
|
|
13
|
+
"conversation_kind": "private_chat",
|
|
14
|
+
"display_name": "Synthetic operator"
|
|
15
|
+
},
|
|
16
|
+
"occurred_at": "2026-07-25T17:49:00Z",
|
|
17
|
+
"expires_at": "2026-07-25T18:00:00Z"
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "whooshbang.interaction-event.v1",
|
|
3
|
+
"id": "event_interaction_select_001",
|
|
4
|
+
"cursor": "mcur_synthetic_002",
|
|
5
|
+
"type": "interaction.received",
|
|
6
|
+
"message_id": "msg_interactive_select_001",
|
|
7
|
+
"interaction_id": "interaction_synthetic_select",
|
|
8
|
+
"correlation_id": "request_select_001",
|
|
9
|
+
"answer_retained": true,
|
|
10
|
+
"response": {
|
|
11
|
+
"type": "select",
|
|
12
|
+
"value": "staging"
|
|
13
|
+
},
|
|
14
|
+
"channel_context": {
|
|
15
|
+
"binding_id": "binding_synthetic_relay",
|
|
16
|
+
"channel": "telegram",
|
|
17
|
+
"conversation_kind": "private_chat",
|
|
18
|
+
"display_name": "Synthetic operator"
|
|
19
|
+
},
|
|
20
|
+
"occurred_at": "2026-07-25T17:48:00Z",
|
|
21
|
+
"expires_at": "2026-07-25T18:00:00Z"
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"to": {
|
|
3
|
+
"subscriber_id": "agent_relay_operator"
|
|
4
|
+
},
|
|
5
|
+
"notifier_id": "default",
|
|
6
|
+
"content": {
|
|
7
|
+
"type": "text",
|
|
8
|
+
"text": "A deployment is waiting for your decision."
|
|
9
|
+
},
|
|
10
|
+
"interaction": {
|
|
11
|
+
"type": "confirm",
|
|
12
|
+
"prompt": "Approve the synthetic deployment?",
|
|
13
|
+
"confirm_label": "Approve",
|
|
14
|
+
"deny_label": "Deny",
|
|
15
|
+
"expires_at": "2026-07-25T18:00:00Z",
|
|
16
|
+
"correlation_id": "request_confirm_001"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"to": {
|
|
3
|
+
"subscriber_id": "agent_relay_operator"
|
|
4
|
+
},
|
|
5
|
+
"notifier_id": "default",
|
|
6
|
+
"content": {
|
|
7
|
+
"type": "text",
|
|
8
|
+
"text": "A bounded response is required."
|
|
9
|
+
},
|
|
10
|
+
"interaction": {
|
|
11
|
+
"type": "input",
|
|
12
|
+
"prompt": "What should happen next?",
|
|
13
|
+
"expires_at": "2026-07-25T18:00:00Z",
|
|
14
|
+
"correlation_id": "request_input_001"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"to": {
|
|
3
|
+
"subscriber_id": "agent_relay_operator"
|
|
4
|
+
},
|
|
5
|
+
"notifier_id": "default",
|
|
6
|
+
"content": {
|
|
7
|
+
"type": "text",
|
|
8
|
+
"text": "Choose a synthetic environment."
|
|
9
|
+
},
|
|
10
|
+
"interaction": {
|
|
11
|
+
"type": "select",
|
|
12
|
+
"prompt": "Choose an environment",
|
|
13
|
+
"options": [
|
|
14
|
+
{
|
|
15
|
+
"value": "staging",
|
|
16
|
+
"label": "Staging"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"value": "production",
|
|
20
|
+
"label": "Production"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"expires_at": "2026-07-25T18:00:00Z",
|
|
24
|
+
"correlation_id": "request_select_001"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "ack-conflict",
|
|
4
|
+
"category": "machine_ack",
|
|
5
|
+
"given": {
|
|
6
|
+
"recorded_disposition": "processed",
|
|
7
|
+
"replayed_disposition": "quarantined"
|
|
8
|
+
},
|
|
9
|
+
"expected": {
|
|
10
|
+
"outcome": "conflict",
|
|
11
|
+
"status": 409,
|
|
12
|
+
"committed_cursor_unchanged": true
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "ack-cross-machine",
|
|
4
|
+
"category": "machine_authorization",
|
|
5
|
+
"given": {
|
|
6
|
+
"authenticated_machine_id": "machine_synthetic_b",
|
|
7
|
+
"event_machine_id": "machine_synthetic_a"
|
|
8
|
+
},
|
|
9
|
+
"expected": {
|
|
10
|
+
"status": 404,
|
|
11
|
+
"existence_disclosed": false,
|
|
12
|
+
"ack_recorded": false,
|
|
13
|
+
"committed_cursor": null
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "ack-out-of-order",
|
|
4
|
+
"category": "machine_ack",
|
|
5
|
+
"given": {
|
|
6
|
+
"earlier_cursor": "mcur_synthetic_001",
|
|
7
|
+
"earlier_acknowledged": false,
|
|
8
|
+
"ack_cursor": "mcur_synthetic_002"
|
|
9
|
+
},
|
|
10
|
+
"expected": {
|
|
11
|
+
"ack_recorded": true,
|
|
12
|
+
"committed_cursor": null,
|
|
13
|
+
"gap_skipped": false
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "ack-replay",
|
|
4
|
+
"category": "machine_ack",
|
|
5
|
+
"given": {
|
|
6
|
+
"event_id": "event_interaction_confirm_001",
|
|
7
|
+
"cursor": "mcur_synthetic_001",
|
|
8
|
+
"disposition": "processed",
|
|
9
|
+
"same_ack_replayed": true
|
|
10
|
+
},
|
|
11
|
+
"expected": {
|
|
12
|
+
"outcome": "existing",
|
|
13
|
+
"status": 200,
|
|
14
|
+
"committed_cursor": "mcur_synthetic_001",
|
|
15
|
+
"events_skipped": 0
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "ambiguous-free-text",
|
|
4
|
+
"category": "interaction_resolution",
|
|
5
|
+
"given": {
|
|
6
|
+
"eligible_open_inputs": 2,
|
|
7
|
+
"exact_reply_context": false
|
|
8
|
+
},
|
|
9
|
+
"expected": {
|
|
10
|
+
"answers_created": 0,
|
|
11
|
+
"events_created": 0,
|
|
12
|
+
"outcome": "ambiguous",
|
|
13
|
+
"routed_by_recency": false
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "callback-token-opacity",
|
|
4
|
+
"category": "callback_token",
|
|
5
|
+
"given": {
|
|
6
|
+
"token": "itok_AAECAwQFBgcICQoLDA0ODw",
|
|
7
|
+
"random_bytes": 16
|
|
8
|
+
},
|
|
9
|
+
"expected": {
|
|
10
|
+
"opaque": true,
|
|
11
|
+
"contains_identity": false,
|
|
12
|
+
"contains_answer": false,
|
|
13
|
+
"contains_command": false,
|
|
14
|
+
"contains_business_parameter": false
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "credential-registration-conflict",
|
|
4
|
+
"category": "machine_credential",
|
|
5
|
+
"given": {
|
|
6
|
+
"same_credential_id": true,
|
|
7
|
+
"same_digest": false
|
|
8
|
+
},
|
|
9
|
+
"expected": {
|
|
10
|
+
"outcome": "conflict",
|
|
11
|
+
"status": 409,
|
|
12
|
+
"credentials_created": 0,
|
|
13
|
+
"secret_returned": false,
|
|
14
|
+
"digest_returned": false
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "credential-registration-replay",
|
|
4
|
+
"category": "machine_credential",
|
|
5
|
+
"given": {
|
|
6
|
+
"same_credential_id": true,
|
|
7
|
+
"same_digest": true
|
|
8
|
+
},
|
|
9
|
+
"expected": {
|
|
10
|
+
"outcome": "existing",
|
|
11
|
+
"credentials_created": 0,
|
|
12
|
+
"secret_returned": false,
|
|
13
|
+
"digest_returned": false
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "credential-revocation-replay",
|
|
4
|
+
"category": "machine_credential",
|
|
5
|
+
"given": {
|
|
6
|
+
"credential_status": "revoked",
|
|
7
|
+
"same_revocation_replayed": true
|
|
8
|
+
},
|
|
9
|
+
"expected": {
|
|
10
|
+
"outcome": "existing",
|
|
11
|
+
"credential_status": "revoked",
|
|
12
|
+
"authorized": false
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "credential-rotation",
|
|
4
|
+
"category": "machine_credential",
|
|
5
|
+
"given": {
|
|
6
|
+
"new_registered": true,
|
|
7
|
+
"new_smoke_tested": true,
|
|
8
|
+
"old_revoked_after_smoke_test": true,
|
|
9
|
+
"registration_response_lost": true
|
|
10
|
+
},
|
|
11
|
+
"expected": {
|
|
12
|
+
"valid_credentials": 1,
|
|
13
|
+
"machine_locked_out": false,
|
|
14
|
+
"old_credential_authorized": false
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "first-credential-activates",
|
|
4
|
+
"category": "machine_credential",
|
|
5
|
+
"given": {
|
|
6
|
+
"client_state": "provisioning",
|
|
7
|
+
"active_credentials": 0,
|
|
8
|
+
"registration_accepted": true
|
|
9
|
+
},
|
|
10
|
+
"expected": {
|
|
11
|
+
"client_state": "active",
|
|
12
|
+
"active_credentials": 1,
|
|
13
|
+
"readable_secret_received": false
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "interaction-duplicate",
|
|
4
|
+
"category": "interaction_resolution",
|
|
5
|
+
"given": {
|
|
6
|
+
"state": "answered",
|
|
7
|
+
"provider_update": "duplicate"
|
|
8
|
+
},
|
|
9
|
+
"expected": {
|
|
10
|
+
"state": "answered",
|
|
11
|
+
"answers_created": 0,
|
|
12
|
+
"events_created": 0,
|
|
13
|
+
"outcome": "duplicate",
|
|
14
|
+
"safe_diagnostic": true
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "interaction-expired",
|
|
4
|
+
"category": "interaction_resolution",
|
|
5
|
+
"given": {
|
|
6
|
+
"state": "open",
|
|
7
|
+
"expires_at": "2026-07-25T18:00:00Z",
|
|
8
|
+
"response_at": "2026-07-25T18:00:00Z"
|
|
9
|
+
},
|
|
10
|
+
"expected": {
|
|
11
|
+
"state": "expired",
|
|
12
|
+
"answers_created": 0,
|
|
13
|
+
"events_created": 0,
|
|
14
|
+
"outcome": "expired",
|
|
15
|
+
"safe_diagnostic": true
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "interaction-mismatch",
|
|
4
|
+
"category": "interaction_resolution",
|
|
5
|
+
"given": {
|
|
6
|
+
"state": "open",
|
|
7
|
+
"provider_binding_matches": false
|
|
8
|
+
},
|
|
9
|
+
"expected": {
|
|
10
|
+
"state": "open",
|
|
11
|
+
"answers_created": 0,
|
|
12
|
+
"events_created": 0,
|
|
13
|
+
"outcome": "identity_mismatch",
|
|
14
|
+
"trusted_provider_identity": false
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "interaction-retired",
|
|
4
|
+
"category": "interaction_resolution",
|
|
5
|
+
"given": {
|
|
6
|
+
"state": "retired",
|
|
7
|
+
"provider_update": "late_answer"
|
|
8
|
+
},
|
|
9
|
+
"expected": {
|
|
10
|
+
"state": "retired",
|
|
11
|
+
"answers_created": 0,
|
|
12
|
+
"events_created": 0,
|
|
13
|
+
"outcome": "stale",
|
|
14
|
+
"safe_diagnostic": true
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "interaction-stale",
|
|
4
|
+
"category": "interaction_resolution",
|
|
5
|
+
"given": {
|
|
6
|
+
"state": "cancelled",
|
|
7
|
+
"provider_update": "late_answer"
|
|
8
|
+
},
|
|
9
|
+
"expected": {
|
|
10
|
+
"state": "cancelled",
|
|
11
|
+
"answers_created": 0,
|
|
12
|
+
"events_created": 0,
|
|
13
|
+
"outcome": "stale",
|
|
14
|
+
"safe_diagnostic": true
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "machine-admin-denied",
|
|
4
|
+
"category": "machine_authorization",
|
|
5
|
+
"given": {
|
|
6
|
+
"credential_kind": "machine",
|
|
7
|
+
"operation_id": "registerMachineCredential"
|
|
8
|
+
},
|
|
9
|
+
"expected": {
|
|
10
|
+
"status": 403,
|
|
11
|
+
"authorized": false,
|
|
12
|
+
"required_project_scope": "machine-clients:write"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "machine-bound-message-create",
|
|
4
|
+
"category": "machine_authorization",
|
|
5
|
+
"given": {
|
|
6
|
+
"credential_kind": "machine",
|
|
7
|
+
"credential_status": "active",
|
|
8
|
+
"operation_id": "createMessage",
|
|
9
|
+
"scope": "machine-messages:write",
|
|
10
|
+
"authenticated_project_id": "project_synthetic",
|
|
11
|
+
"authenticated_environment": "test",
|
|
12
|
+
"bound_notifier_id": "default",
|
|
13
|
+
"bound_subscriber_id": "agent_relay_operator",
|
|
14
|
+
"request_notifier_id": "default",
|
|
15
|
+
"request_subscriber_id": "agent_relay_operator"
|
|
16
|
+
},
|
|
17
|
+
"expected": {
|
|
18
|
+
"authorized": true,
|
|
19
|
+
"target_bound": true,
|
|
20
|
+
"provider_call_allowed": true
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "machine-cancel-denied",
|
|
4
|
+
"category": "machine_authorization",
|
|
5
|
+
"given": {
|
|
6
|
+
"credential_kind": "machine",
|
|
7
|
+
"operation_id": "cancelMessage"
|
|
8
|
+
},
|
|
9
|
+
"expected": {
|
|
10
|
+
"status": 403,
|
|
11
|
+
"authorized": false,
|
|
12
|
+
"required_project_scope": "messages:write"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "machine-crash-before-ack",
|
|
4
|
+
"category": "machine_poll",
|
|
5
|
+
"given": {
|
|
6
|
+
"committed_cursor": null,
|
|
7
|
+
"polled_event_id": "event_interaction_confirm_001",
|
|
8
|
+
"acknowledged": false,
|
|
9
|
+
"client_restarted": true
|
|
10
|
+
},
|
|
11
|
+
"expected": {
|
|
12
|
+
"event_repeated": true,
|
|
13
|
+
"event_id": "event_interaction_confirm_001",
|
|
14
|
+
"committed_cursor": null
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "machine-notifier-mismatch",
|
|
4
|
+
"category": "machine_authorization",
|
|
5
|
+
"given": {
|
|
6
|
+
"credential_notifier_id": "default",
|
|
7
|
+
"request_notifier_id": "another_notifier"
|
|
8
|
+
},
|
|
9
|
+
"expected": {
|
|
10
|
+
"authorized": false,
|
|
11
|
+
"provider_called": false,
|
|
12
|
+
"existence_disclosed": false
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "machine-other-message-read",
|
|
4
|
+
"category": "machine_authorization",
|
|
5
|
+
"given": {
|
|
6
|
+
"credential_machine_client_id": "machine_client_synthetic_001",
|
|
7
|
+
"message_machine_client_id": "machine_client_synthetic_002"
|
|
8
|
+
},
|
|
9
|
+
"expected": {
|
|
10
|
+
"status": 404,
|
|
11
|
+
"authorized": false,
|
|
12
|
+
"existence_disclosed": false
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "machine-owned-message-read",
|
|
4
|
+
"category": "machine_authorization",
|
|
5
|
+
"given": {
|
|
6
|
+
"credential_kind": "machine",
|
|
7
|
+
"credential_status": "active",
|
|
8
|
+
"operation_id": "getMessage",
|
|
9
|
+
"scope": "machine-messages:read",
|
|
10
|
+
"authenticated_project_id": "project_synthetic",
|
|
11
|
+
"authenticated_environment": "test",
|
|
12
|
+
"credential_machine_client_id": "machine_client_synthetic_001",
|
|
13
|
+
"message_project_id": "project_synthetic",
|
|
14
|
+
"message_environment": "test",
|
|
15
|
+
"message_machine_client_id": "machine_client_synthetic_001"
|
|
16
|
+
},
|
|
17
|
+
"expected": {
|
|
18
|
+
"authorized": true,
|
|
19
|
+
"own_message_only": true,
|
|
20
|
+
"message_returned": true
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "machine-subscriber-mismatch",
|
|
4
|
+
"category": "machine_authorization",
|
|
5
|
+
"given": {
|
|
6
|
+
"credential_subscriber_id": "agent_relay_operator",
|
|
7
|
+
"request_subscriber_id": "another_subscriber"
|
|
8
|
+
},
|
|
9
|
+
"expected": {
|
|
10
|
+
"authorized": false,
|
|
11
|
+
"provider_called": false,
|
|
12
|
+
"existence_disclosed": false
|
|
13
|
+
}
|
|
14
|
+
}
|