From cfc83d15943a22321275111a3324426755d357a7 Mon Sep 17 00:00:00 2001 From: ismellike Date: Mon, 8 Dec 2025 14:49:39 -0600 Subject: [PATCH 1/3] AT protocol triggers --- wit-definitions/types/wit/events.wit | 12 ++++++++++++ wit-definitions/types/wit/service.wit | 7 +++++++ 2 files changed, 19 insertions(+) diff --git a/wit-definitions/types/wit/events.wit b/wit-definitions/types/wit/events.wit index 23c1f8a..e642a6a 100644 --- a/wit-definitions/types/wit/events.wit +++ b/wit-definitions/types/wit/events.wit @@ -9,6 +9,7 @@ interface events { cosmos-contract-event(trigger-data-cosmos-contract-event), block-interval(trigger-data-block-interval), cron(trigger-data-cron), + atproto-event(trigger-data-atproto-event), raw(list) } @@ -33,4 +34,15 @@ interface events { record trigger-data-cron { trigger-time: timestamp } + + record trigger-data-atproto-event { + sequence: s64, + timestamp: s64, + repo: string, + collection: string, + rkey: string, + action: string, + cid: option, + record-data: option + } } diff --git a/wit-definitions/types/wit/service.wit b/wit-definitions/types/wit/service.wit index d56095b..d131d89 100644 --- a/wit-definitions/types/wit/service.wit +++ b/wit-definitions/types/wit/service.wit @@ -92,6 +92,7 @@ interface service { cosmos-contract-event(trigger-cosmos-contract-event), block-interval(trigger-block-interval), cron(trigger-cron), + atproto-event(trigger-atproto-event), manual } @@ -120,6 +121,12 @@ interface service { end-time: option } + record trigger-atproto-event { + collection: string, + repo-did: option, + action: option + } + // Submit types variant submit { From bb4bf1d208621f0fb270fb193648c3fcf5d57cfc Mon Sep 17 00:00:00 2001 From: ismellike Date: Mon, 8 Dec 2025 14:50:49 -0600 Subject: [PATCH 2/3] just set-version 2.4.0 --- Cargo.toml | 2 +- wit-definitions/aggregator/wit/aggregator.wit | 10 +++++----- wit-definitions/operator/wit/operator.wit | 10 +++++----- wit-definitions/types/wit/lib.wit | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e3d73e1..06cb722 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ resolver = "2" [workspace.package] edition = "2021" -version = "2.3.0" +version = "2.4.0" license = "MIT" authors = ["Lay3r Labs Team"] repository = "https://github.com/Lay3rLabs/WAVS-WASI" diff --git a/wit-definitions/aggregator/wit/aggregator.wit b/wit-definitions/aggregator/wit/aggregator.wit index d75f8ff..e7564b9 100644 --- a/wit-definitions/aggregator/wit/aggregator.wit +++ b/wit-definitions/aggregator/wit/aggregator.wit @@ -1,9 +1,9 @@ -package wavs:aggregator@2.3.0; +package wavs:aggregator@2.4.0; -use wavs:types/core@2.3.0 as core-types; -use wavs:types/service@2.3.0 as service-types; -use wavs:types/chain@2.3.0 as chain-types; -use wavs:types/events@2.3.0 as event-types; +use wavs:types/core@2.4.0 as core-types; +use wavs:types/service@2.4.0 as service-types; +use wavs:types/chain@2.4.0 as chain-types; +use wavs:types/events@2.4.0 as event-types; interface aggregator { use core-types.{duration, u128}; diff --git a/wit-definitions/operator/wit/operator.wit b/wit-definitions/operator/wit/operator.wit index 35e6b2d..e4d0dc6 100644 --- a/wit-definitions/operator/wit/operator.wit +++ b/wit-definitions/operator/wit/operator.wit @@ -1,9 +1,9 @@ -package wavs:operator@2.3.0; +package wavs:operator@2.4.0; -use wavs:types/core@2.3.0 as core-types; -use wavs:types/service@2.3.0 as service-types; -use wavs:types/chain@2.3.0 as chain-types; -use wavs:types/events@2.3.0 as event-types; +use wavs:types/core@2.4.0 as core-types; +use wavs:types/service@2.4.0 as service-types; +use wavs:types/chain@2.4.0 as chain-types; +use wavs:types/events@2.4.0 as event-types; interface input { use service-types.{service-id, workflow-id, trigger}; diff --git a/wit-definitions/types/wit/lib.wit b/wit-definitions/types/wit/lib.wit index 3faf5c3..15e70f4 100644 --- a/wit-definitions/types/wit/lib.wit +++ b/wit-definitions/types/wit/lib.wit @@ -1 +1 @@ -package wavs:types@2.3.0; +package wavs:types@2.4.0; From 5de068978dae1fa62bfd273798a165e690437898 Mon Sep 17 00:00:00 2001 From: ismellike Date: Mon, 8 Dec 2025 16:09:28 -0600 Subject: [PATCH 3/3] Update events.wit --- wit-definitions/types/wit/events.wit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wit-definitions/types/wit/events.wit b/wit-definitions/types/wit/events.wit index e642a6a..d837345 100644 --- a/wit-definitions/types/wit/events.wit +++ b/wit-definitions/types/wit/events.wit @@ -43,6 +43,8 @@ interface events { rkey: string, action: string, cid: option, - record-data: option + record-data: option, + rev: option, + op-index: option } }