@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,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "poll-uncommitted-cursor-rejected",
|
|
4
|
+
"category": "machine_poll",
|
|
5
|
+
"given": {
|
|
6
|
+
"committed_cursor": "mcur_synthetic_001",
|
|
7
|
+
"supplied_after": "mcur_synthetic_002",
|
|
8
|
+
"supplied_cursor_issued": true,
|
|
9
|
+
"supplied_cursor_committed": false
|
|
10
|
+
},
|
|
11
|
+
"expected": {
|
|
12
|
+
"outcome": "cursor_mismatch",
|
|
13
|
+
"events_returned": 0,
|
|
14
|
+
"rewound": false,
|
|
15
|
+
"committed_cursor": "mcur_synthetic_001"
|
|
16
|
+
}
|
|
17
|
+
}
|
package/fixtures/interaction-machine-v1/scenarios/project-credential-machine-endpoint-denied.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "project-credential-machine-endpoint-denied",
|
|
4
|
+
"category": "machine_authorization",
|
|
5
|
+
"given": {
|
|
6
|
+
"credential_kind": "project",
|
|
7
|
+
"operation_id": "pollMachineEvents"
|
|
8
|
+
},
|
|
9
|
+
"expected": {
|
|
10
|
+
"status": 401,
|
|
11
|
+
"authorized": false,
|
|
12
|
+
"machine_stream_selected": false
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "quarantine-integrity-rejected",
|
|
4
|
+
"category": "quarantine",
|
|
5
|
+
"given": {
|
|
6
|
+
"schema_valid": false,
|
|
7
|
+
"stream_identity_valid": true,
|
|
8
|
+
"reason_code": "schema.invalid"
|
|
9
|
+
},
|
|
10
|
+
"expected": {
|
|
11
|
+
"outcome": "integrity_failure",
|
|
12
|
+
"cursor_may_advance": false,
|
|
13
|
+
"ordinary_quarantine_allowed": false
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "quarantine-signature-rejected",
|
|
4
|
+
"category": "quarantine",
|
|
5
|
+
"given": {
|
|
6
|
+
"schema_valid": true,
|
|
7
|
+
"stream_identity_valid": true,
|
|
8
|
+
"signature_valid": false,
|
|
9
|
+
"reason_code": "signature.invalid"
|
|
10
|
+
},
|
|
11
|
+
"expected": {
|
|
12
|
+
"outcome": "integrity_failure",
|
|
13
|
+
"cursor_may_advance": false,
|
|
14
|
+
"ordinary_quarantine_allowed": false
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "quarantine-valid",
|
|
4
|
+
"category": "quarantine",
|
|
5
|
+
"given": {
|
|
6
|
+
"schema_valid": true,
|
|
7
|
+
"stream_identity_valid": true,
|
|
8
|
+
"durable_reason_recorded": true,
|
|
9
|
+
"reason_code": "consumer.unsupported_version"
|
|
10
|
+
},
|
|
11
|
+
"expected": {
|
|
12
|
+
"outcome": "recorded",
|
|
13
|
+
"cursor_may_advance": true
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract_version": "1.0.0-rc.13",
|
|
3
|
+
"id": "revoked-machine-credential",
|
|
4
|
+
"category": "machine_authorization",
|
|
5
|
+
"given": {
|
|
6
|
+
"credential_kind": "machine",
|
|
7
|
+
"credential_status": "revoked",
|
|
8
|
+
"operation_id": "pollMachineEvents"
|
|
9
|
+
},
|
|
10
|
+
"expected": {
|
|
11
|
+
"status": 401,
|
|
12
|
+
"authorized": false,
|
|
13
|
+
"resource_looked_up": false
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"event_id": "event_interaction_select_001",
|
|
3
|
+
"cursor": "mcur_synthetic_002",
|
|
4
|
+
"disposition": "quarantined",
|
|
5
|
+
"reason_code": "consumer.unsupported_version",
|
|
6
|
+
"acknowledgement_status": "recorded",
|
|
7
|
+
"committed_cursor": "mcur_synthetic_002",
|
|
8
|
+
"advanced": true
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "interaction_synthetic_input",
|
|
3
|
+
"type": "input",
|
|
4
|
+
"state": "answered",
|
|
5
|
+
"expires_at": "2026-07-25T18:00:00Z",
|
|
6
|
+
"correlation_id": "request_input_001",
|
|
7
|
+
"answered_at": "2026-07-25T17:47:00Z",
|
|
8
|
+
"answer_retained": true,
|
|
9
|
+
"answer": "Operator supplied context"
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "interaction_synthetic_select",
|
|
3
|
+
"type": "select",
|
|
4
|
+
"state": "answered",
|
|
5
|
+
"expires_at": "2026-07-25T18:00:00Z",
|
|
6
|
+
"correlation_id": "request_select_001",
|
|
7
|
+
"answered_at": "2026-07-25T17:47:00Z",
|
|
8
|
+
"answer_retained": true,
|
|
9
|
+
"answer": "approve_opaque"
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "machine_client_synthetic_001",
|
|
3
|
+
"project_id": "project_synthetic",
|
|
4
|
+
"environment": "test",
|
|
5
|
+
"machine_id": "machine_synthetic_a",
|
|
6
|
+
"notifier_id": "default",
|
|
7
|
+
"subscriber_id": "agent_relay_operator",
|
|
8
|
+
"binding_id": "binding_synthetic_relay",
|
|
9
|
+
"display_name": "Synthetic local machine",
|
|
10
|
+
"status": "active",
|
|
11
|
+
"scope_summary": [
|
|
12
|
+
"machine-messages:write",
|
|
13
|
+
"machine-messages:read",
|
|
14
|
+
"machine-events:read",
|
|
15
|
+
"machine-events:ack"
|
|
16
|
+
],
|
|
17
|
+
"created_at": "2026-07-25T17:40:00Z",
|
|
18
|
+
"updated_at": "2026-07-25T17:42:00Z",
|
|
19
|
+
"last_used_at": "2026-07-25T17:43:00Z"
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "machine_client_synthetic_001",
|
|
3
|
+
"project_id": "project_synthetic",
|
|
4
|
+
"environment": "test",
|
|
5
|
+
"machine_id": "machine_synthetic_a",
|
|
6
|
+
"notifier_id": "default",
|
|
7
|
+
"subscriber_id": "agent_relay_operator",
|
|
8
|
+
"binding_id": "binding_synthetic_relay",
|
|
9
|
+
"display_name": "Synthetic local machine",
|
|
10
|
+
"status": "provisioning",
|
|
11
|
+
"scope_summary": [
|
|
12
|
+
"machine-messages:write",
|
|
13
|
+
"machine-messages:read",
|
|
14
|
+
"machine-events:read",
|
|
15
|
+
"machine-events:ack"
|
|
16
|
+
],
|
|
17
|
+
"created_at": "2026-07-25T17:40:00Z",
|
|
18
|
+
"updated_at": "2026-07-25T17:40:00Z"
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "machine_client_synthetic_001",
|
|
3
|
+
"project_id": "project_synthetic",
|
|
4
|
+
"environment": "test",
|
|
5
|
+
"machine_id": "machine_synthetic_a",
|
|
6
|
+
"notifier_id": "default",
|
|
7
|
+
"subscriber_id": "agent_relay_operator",
|
|
8
|
+
"binding_id": "binding_synthetic_relay",
|
|
9
|
+
"display_name": "Synthetic local machine",
|
|
10
|
+
"status": "revoked",
|
|
11
|
+
"scope_summary": [
|
|
12
|
+
"machine-messages:write",
|
|
13
|
+
"machine-messages:read",
|
|
14
|
+
"machine-events:read",
|
|
15
|
+
"machine-events:ack"
|
|
16
|
+
],
|
|
17
|
+
"created_at": "2026-07-25T17:40:00Z",
|
|
18
|
+
"updated_at": "2026-07-25T18:30:00Z",
|
|
19
|
+
"last_used_at": "2026-07-25T18:00:00Z",
|
|
20
|
+
"revoked_at": "2026-07-25T18:30:00Z"
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"credential_id": "mcred_AAECAwQFBgcICQoLDA0ODw",
|
|
3
|
+
"machine_client_id": "machine_client_synthetic_001",
|
|
4
|
+
"status": "active",
|
|
5
|
+
"scope_summary": [
|
|
6
|
+
"machine-messages:write",
|
|
7
|
+
"machine-messages:read",
|
|
8
|
+
"machine-events:read",
|
|
9
|
+
"machine-events:ack"
|
|
10
|
+
],
|
|
11
|
+
"created_at": "2026-07-25T17:42:00Z",
|
|
12
|
+
"last_used_at": "2026-07-25T17:43:00Z"
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"credential_id": "mcred_AAECAwQFBgcICQoLDA0ODw",
|
|
3
|
+
"machine_client_id": "machine_client_synthetic_001",
|
|
4
|
+
"status": "revoked",
|
|
5
|
+
"scope_summary": [
|
|
6
|
+
"machine-messages:write",
|
|
7
|
+
"machine-messages:read",
|
|
8
|
+
"machine-events:read",
|
|
9
|
+
"machine-events:ack"
|
|
10
|
+
],
|
|
11
|
+
"created_at": "2026-07-25T17:42:00Z",
|
|
12
|
+
"last_used_at": "2026-07-25T18:00:00Z",
|
|
13
|
+
"revoked_at": "2026-07-25T18:30:00Z"
|
|
14
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "msg_interactive_synthetic_001",
|
|
3
|
+
"project_id": "project_synthetic",
|
|
4
|
+
"environment": "test",
|
|
5
|
+
"subscriber_id": "agent_relay_operator",
|
|
6
|
+
"notifier_id": "default",
|
|
7
|
+
"binding": {
|
|
8
|
+
"id": "binding_synthetic_relay",
|
|
9
|
+
"project_id": "project_synthetic",
|
|
10
|
+
"environment": "test",
|
|
11
|
+
"subscriber_id": "agent_relay_operator",
|
|
12
|
+
"notifier_id": "default",
|
|
13
|
+
"channel": "telegram",
|
|
14
|
+
"status": "active"
|
|
15
|
+
},
|
|
16
|
+
"state": "accepted",
|
|
17
|
+
"accepted_at": "2026-07-25T17:45:00Z",
|
|
18
|
+
"updated_at": "2026-07-25T17:45:00Z",
|
|
19
|
+
"expires_at": "2026-07-25T18:00:00Z",
|
|
20
|
+
"delivery": {
|
|
21
|
+
"attempt_count": 0,
|
|
22
|
+
"highest_proven_provider_state": "none",
|
|
23
|
+
"retry_scheduled": false
|
|
24
|
+
},
|
|
25
|
+
"diagnostic_id": "diag_interactive_message_001",
|
|
26
|
+
"interaction": {
|
|
27
|
+
"id": "interaction_synthetic_001",
|
|
28
|
+
"type": "select",
|
|
29
|
+
"state": "open",
|
|
30
|
+
"expires_at": "2026-07-25T18:00:00Z",
|
|
31
|
+
"correlation_id": "request_select_001"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "whooshbang.machine-events.v1",
|
|
3
|
+
"events": [
|
|
4
|
+
{
|
|
5
|
+
"schema": "whooshbang.interaction-event.v1",
|
|
6
|
+
"id": "event_interaction_confirm_001",
|
|
7
|
+
"cursor": "mcur_synthetic_001",
|
|
8
|
+
"type": "interaction.received",
|
|
9
|
+
"message_id": "msg_interactive_confirm_001",
|
|
10
|
+
"interaction_id": "interaction_synthetic_confirm",
|
|
11
|
+
"correlation_id": "request_confirm_001",
|
|
12
|
+
"answer_retained": true,
|
|
13
|
+
"response": {
|
|
14
|
+
"type": "confirm",
|
|
15
|
+
"value": true
|
|
16
|
+
},
|
|
17
|
+
"channel_context": {
|
|
18
|
+
"binding_id": "binding_synthetic_relay",
|
|
19
|
+
"channel": "telegram",
|
|
20
|
+
"conversation_kind": "private_chat",
|
|
21
|
+
"display_name": "Synthetic operator"
|
|
22
|
+
},
|
|
23
|
+
"occurred_at": "2026-07-25T17:47:00Z",
|
|
24
|
+
"expires_at": "2026-07-25T18:00:00Z"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"schema": "whooshbang.interaction-event.v1",
|
|
28
|
+
"id": "event_interaction_select_001",
|
|
29
|
+
"cursor": "mcur_synthetic_002",
|
|
30
|
+
"type": "interaction.received",
|
|
31
|
+
"message_id": "msg_interactive_select_001",
|
|
32
|
+
"interaction_id": "interaction_synthetic_select",
|
|
33
|
+
"correlation_id": "request_select_001",
|
|
34
|
+
"answer_retained": true,
|
|
35
|
+
"response": {
|
|
36
|
+
"type": "select",
|
|
37
|
+
"value": "staging"
|
|
38
|
+
},
|
|
39
|
+
"channel_context": {
|
|
40
|
+
"binding_id": "binding_synthetic_relay",
|
|
41
|
+
"channel": "telegram",
|
|
42
|
+
"conversation_kind": "private_chat",
|
|
43
|
+
"display_name": "Synthetic operator"
|
|
44
|
+
},
|
|
45
|
+
"occurred_at": "2026-07-25T17:48:00Z",
|
|
46
|
+
"expires_at": "2026-07-25T18:00:00Z"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"committed_cursor": null,
|
|
50
|
+
"server_time": "2026-07-25T17:50:00Z"
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"itok_AAECAwQFBgcICQoLDA0ODw"
|