diff --git a/crates/holoom_dna_tests/src/tests/username_registry/oracle.rs b/crates/holoom_dna_tests/src/tests/username_registry/oracle.rs index 8fb8700..df2f3f3 100644 --- a/crates/holoom_dna_tests/src/tests/username_registry/oracle.rs +++ b/crates/holoom_dna_tests/src/tests/username_registry/oracle.rs @@ -1,11 +1,7 @@ use hdk::prelude::*; use holochain::conductor::api::error::ConductorApiResult; -use holoom_types::{ - DocumentRelationTag, JqExecution, OracleDocument, OracleDocumentListSnapshot, - RefreshJqExecutionForNamedRelationPayload, SnapshotInput, -}; -use username_registry_utils::deserialize_record_entry; +use holoom_types::{DocumentRelationTag, OracleDocument}; use crate::TestSetup; @@ -13,7 +9,7 @@ use crate::TestSetup; async fn can_fetch_documents_by_relation() { let setup = TestSetup::authority_only().await; - let foo1_record: Record = setup + let _foo1_record: Record = setup .authority_call( "username_registry", "create_oracle_document", @@ -25,7 +21,7 @@ async fn can_fetch_documents_by_relation() { .await .unwrap(); - let foo2_record: Record = setup + let _foo2_record: Record = setup .authority_call( "username_registry", "create_oracle_document", @@ -72,90 +68,4 @@ async fn can_fetch_documents_by_relation() { let expected_identifiers = vec![String::from("foo/1"), String::from("foo/2")]; assert_eq!(identifiers, expected_identifiers); - - let snapshot_record: Record = setup - .authority_call( - "username_registry", - "refresh_oracle_document_snapshot_for_relation", - String::from("foo"), - ) - .await - .unwrap(); - - let snapshot: OracleDocumentListSnapshot = deserialize_record_entry(snapshot_record).unwrap(); - - assert_eq!( - snapshot.identifiers_input, - SnapshotInput::RelationSnapshot(expected_identifiers) - ); - assert_eq!( - snapshot.resolved_documents, - vec![ - foo1_record.action_address().clone(), - foo2_record.action_address().clone() - ] - ); - - let jq_execution_record: Record = setup - .authority_call( - "username_registry", - "refresh_jq_execution_for_named_relation", - RefreshJqExecutionForNamedRelationPayload { - relation_name: "foo".into(), - program: "[.[].value]".into(), - }, - ) - .await - .unwrap(); - - let jq_execution: JqExecution = deserialize_record_entry(jq_execution_record).unwrap(); - assert_eq!(jq_execution.output, String::from("[1,2]")); - - let revised_foo2_record: Record = setup - .authority_call( - "username_registry", - "create_oracle_document", - OracleDocument { - name: "foo/2".into(), - json_data: "{\"type\":\"foo\",\"value\":\"two\"}".into(), - }, - ) - .await - .unwrap(); - - let revised_snapshot_record: Record = setup - .authority_call( - "username_registry", - "refresh_oracle_document_snapshot_for_relation", - String::from("foo"), - ) - .await - .unwrap(); - - let revised_snapshot: OracleDocumentListSnapshot = - deserialize_record_entry(revised_snapshot_record).unwrap(); - - assert_eq!( - revised_snapshot.resolved_documents, - vec![ - foo1_record.action_address().clone(), - revised_foo2_record.action_address().clone() - ] - ); - - let revised_jq_execution_record: Record = setup - .authority_call( - "username_registry", - "refresh_jq_execution_for_named_relation", - RefreshJqExecutionForNamedRelationPayload { - relation_name: "foo".into(), - program: "[.[].value]".into(), - }, - ) - .await - .unwrap(); - - let revised_jq_execution: JqExecution = - deserialize_record_entry(revised_jq_execution_record).unwrap(); - assert_eq!(revised_jq_execution.output, String::from("[1,\"two\"]")); } diff --git a/crates/holoom_types/src/oracle.rs b/crates/holoom_types/src/oracle.rs index 6e157fd..7002a2e 100644 --- a/crates/holoom_types/src/oracle.rs +++ b/crates/holoom_types/src/oracle.rs @@ -11,48 +11,6 @@ pub struct OracleDocument { pub json_data: String, } -#[derive(Clone, PartialEq, Serialize, Deserialize, Debug, TS)] -#[ts(export)] -pub enum SnapshotInput { - JqExecution(#[ts(type = "ActionHash")] ActionHash), - OracleDocument(#[ts(type = "ActionHash")] ActionHash), - RelationSnapshot(Vec), -} - -#[hdk_entry_helper] -#[derive(Clone, PartialEq, TS)] -#[ts(export)] -pub struct OracleDocumentListSnapshot { - /// The action hash of an OracleDocument that gives a list of identifiers - pub identifiers_input: SnapshotInput, - #[ts(type = "ActionHash[]")] - pub resolved_documents: Vec, -} - -#[derive(Clone, PartialEq, Serialize, Deserialize, Debug, TS)] -#[ts(export)] -pub enum JqExecutionInput { - OracleDocument(#[ts(type = "ActionHash")] ActionHash), - OracleDocumentListSnapshot(#[ts(type = "ActionHash")] ActionHash), - JqExecution(#[ts(type = "ActionHash")] ActionHash), -} - -#[hdk_entry_helper] -#[derive(Clone, PartialEq, TS)] -#[ts(export)] -pub struct JqExecution { - pub program: String, - pub input: JqExecutionInput, - pub output: String, -} - -#[derive(Serialize, Deserialize, Debug, TS)] -#[ts(export)] -pub struct RefreshJqExecutionForNamedRelationPayload { - pub relation_name: String, - pub program: String, -} - #[derive(Serialize, Deserialize, Debug, TS)] #[ts(export)] pub struct DocumentRelationTag { diff --git a/crates/username_registry_coordinator/src/jq_execution.rs b/crates/username_registry_coordinator/src/jq_execution.rs deleted file mode 100644 index 6f4ef35..0000000 --- a/crates/username_registry_coordinator/src/jq_execution.rs +++ /dev/null @@ -1,45 +0,0 @@ -use hdk::prelude::*; -use holoom_types::{ - JqExecution, JqExecutionInput, OracleDocument, OracleDocumentListSnapshot, - RefreshJqExecutionForNamedRelationPayload, -}; -use jaq_wrapper::{compile_and_run_jq, JqProgramInput}; -use username_registry_integrity::EntryTypes; -use username_registry_utils::deserialize_record_entry; - -use crate::oracle_document_list_snapshot::refresh_oracle_document_snapshot_for_relation; - -#[hdk_extern] -pub fn refresh_jq_execution_for_named_relation( - payload: RefreshJqExecutionForNamedRelationPayload, -) -> ExternResult { - let snapshot_record = refresh_oracle_document_snapshot_for_relation(payload.relation_name)?; - let snapshot_ah = snapshot_record.action_address().clone(); - let snapshot: OracleDocumentListSnapshot = deserialize_record_entry(snapshot_record)?; - - let jsons = snapshot - .resolved_documents - .into_iter() - .map(|ah| { - let oracle_document_record = get(ah, GetOptions::network())?.ok_or(wasm_error!( - WasmErrorInner::Guest("OracleDocument not found".into()) - ))?; - let oracle_document: OracleDocument = deserialize_record_entry(oracle_document_record)?; - Ok(oracle_document.json_data) - }) - .collect::>>()?; - - let jq_program_output = compile_and_run_jq(&payload.program, JqProgramInput::Slurp(jsons))?; - - let jq_execution = JqExecution { - program: payload.program, - input: JqExecutionInput::OracleDocumentListSnapshot(snapshot_ah), - output: jq_program_output, - }; - - let jq_execution_ah = create_entry(EntryTypes::JqExecution(jq_execution))?; - let jq_execution_record = get(jq_execution_ah, GetOptions::network())?.ok_or(wasm_error!( - WasmErrorInner::Guest("Newly created JqExecution not found".into()) - ))?; - Ok(jq_execution_record) -} diff --git a/crates/username_registry_coordinator/src/lib.rs b/crates/username_registry_coordinator/src/lib.rs index 599e8c7..5f2edff 100644 --- a/crates/username_registry_coordinator/src/lib.rs +++ b/crates/username_registry_coordinator/src/lib.rs @@ -1,8 +1,6 @@ pub mod evm_signing_offer; pub mod external_id_attestation; -pub mod jq_execution; pub mod oracle_document; -pub mod oracle_document_list_snapshot; pub mod recipe; pub mod recipe_execution; pub mod user_metadata; diff --git a/crates/username_registry_coordinator/src/oracle_document_list_snapshot.rs b/crates/username_registry_coordinator/src/oracle_document_list_snapshot.rs deleted file mode 100644 index 8833d40..0000000 --- a/crates/username_registry_coordinator/src/oracle_document_list_snapshot.rs +++ /dev/null @@ -1,87 +0,0 @@ -use hdk::prelude::*; -use holoom_types::{JqExecution, OracleDocument, OracleDocumentListSnapshot, SnapshotInput}; -use serde_json; -use username_registry_integrity::EntryTypes; -use username_registry_utils::deserialize_record_entry; - -use crate::oracle_document::{ - get_latest_oracle_document_ah_for_name, get_related_oracle_document_names, -}; - -pub fn resolve_snapshot_input(input: SnapshotInput) -> ExternResult> { - let json_list = match input { - SnapshotInput::JqExecution(jq_execution_ah) => { - let record = get(jq_execution_ah, GetOptions::network())?.ok_or(wasm_error!( - WasmErrorInner::Guest("JqExecution for SnapshotInput not found".into()) - ))?; - let jq_execution: JqExecution = deserialize_record_entry(record)?; - jq_execution.output - } - SnapshotInput::OracleDocument(oracle_document_ah) => { - let record = get(oracle_document_ah, GetOptions::network())?.ok_or(wasm_error!( - WasmErrorInner::Guest("JqExecution for SnapshotInput not found".into()) - ))?; - let oracle_document: OracleDocument = deserialize_record_entry(record)?; - oracle_document.json_data - } - SnapshotInput::RelationSnapshot(identifiers) => return Ok(identifiers), - }; - - serde_json::from_str(&json_list).map_err(|_| { - wasm_error!(WasmErrorInner::Guest( - "SnapshotInput doesn't point to a list".into() - )) - }) -} - -pub fn build_latest_oracle_document_list_snapshot_for_frozen_input( - input: SnapshotInput, -) -> ExternResult { - let names = resolve_snapshot_input(input.clone())?; - let action_hashes = names - .into_iter() - .map(|name| { - let action_hash = get_latest_oracle_document_ah_for_name(name.clone())?; - action_hash.ok_or(wasm_error!(WasmErrorInner::Guest(format!( - "Cannot build snapshot with missing document '{}'", - name - )))) - }) - .collect::>>()?; - let snapshot = OracleDocumentListSnapshot { - identifiers_input: input, - resolved_documents: action_hashes, - }; - Ok(snapshot) -} - -pub fn refresh_oracle_document_snapshot_for_named_input_list_document( - input_list_document_name: String, -) -> ExternResult { - let input_ah = get_latest_oracle_document_ah_for_name(input_list_document_name.clone())? - .ok_or(wasm_error!(WasmErrorInner::Guest(format!( - "No linked documents for '{}'", - input_list_document_name - ))))?; - let snapshot_input = SnapshotInput::OracleDocument(input_ah); - let snapshot = build_latest_oracle_document_list_snapshot_for_frozen_input(snapshot_input)?; - let snapshot_ah = create_entry(EntryTypes::OracleDocumentListSnapshot(snapshot))?; - let record = get(snapshot_ah, GetOptions::network())?.ok_or(wasm_error!( - WasmErrorInner::Guest("Newly created OracleDocumentListSnapshot not found".into()) - ))?; - Ok(record) -} - -#[hdk_extern] -pub fn refresh_oracle_document_snapshot_for_relation( - relation_name: String, -) -> ExternResult { - let identifiers = get_related_oracle_document_names(relation_name)?; - let snapshot_input = SnapshotInput::RelationSnapshot(identifiers); - let snapshot = build_latest_oracle_document_list_snapshot_for_frozen_input(snapshot_input)?; - let snapshot_ah = create_entry(EntryTypes::OracleDocumentListSnapshot(snapshot))?; - let record = get(snapshot_ah, GetOptions::network())?.ok_or(wasm_error!( - WasmErrorInner::Guest("Newly created OracleDocumentListSnapshot not found".into()) - ))?; - Ok(record) -} diff --git a/crates/username_registry_integrity/src/entry_types.rs b/crates/username_registry_integrity/src/entry_types.rs index 562ff97..2079431 100644 --- a/crates/username_registry_integrity/src/entry_types.rs +++ b/crates/username_registry_integrity/src/entry_types.rs @@ -2,8 +2,7 @@ use hdi::prelude::*; use holoom_types::{ evm_signing_offer::EvmSigningOffer, recipe::{Recipe, RecipeExecution}, - ExternalIdAttestation, JqExecution, OracleDocument, OracleDocumentListSnapshot, - UsernameAttestation, WalletAttestation, + ExternalIdAttestation, OracleDocument, UsernameAttestation, WalletAttestation, }; use username_registry_validation::*; @@ -16,8 +15,6 @@ pub enum EntryTypes { WalletAttestation(WalletAttestation), ExternalIdAttestation(ExternalIdAttestation), OracleDocument(OracleDocument), - OracleDocumentListSnapshot(OracleDocumentListSnapshot), - JqExecution(JqExecution), Recipe(Recipe), RecipeExecution(RecipeExecution), EvmSigningOffer(EvmSigningOffer), @@ -48,15 +45,6 @@ impl EntryTypes { EntryCreationAction::Create(action), oracle_document, ), - EntryTypes::OracleDocumentListSnapshot(oracle_document_list_snapshot) => { - validate_create_oracle_document_list_snapshot( - EntryCreationAction::Create(action), - oracle_document_list_snapshot, - ) - } - EntryTypes::JqExecution(jq_execution) => { - validate_create_jq_execution(EntryCreationAction::Create(action), jq_execution) - } EntryTypes::Recipe(recipe) => { validate_create_recipe(EntryCreationAction::Create(action), recipe) } diff --git a/crates/username_registry_validation/src/jq_execution.rs b/crates/username_registry_validation/src/jq_execution.rs deleted file mode 100644 index b1d2075..0000000 --- a/crates/username_registry_validation/src/jq_execution.rs +++ /dev/null @@ -1,43 +0,0 @@ -use hdi::prelude::*; -use holoom_types::{JqExecution, JqExecutionInput, OracleDocument, OracleDocumentListSnapshot}; -use jaq_wrapper::{compile_and_run_jq, JqProgramInput}; -use username_registry_utils::deserialize_record_entry; - -pub fn validate_create_jq_execution( - _action: EntryCreationAction, - jq_execution: JqExecution, -) -> ExternResult { - let input = match jq_execution.input { - JqExecutionInput::OracleDocument(oracle_document_ah) => { - let record = must_get_valid_record(oracle_document_ah)?; - let oracle_document: OracleDocument = deserialize_record_entry(record)?; - JqProgramInput::Single(oracle_document.json_data) - } - JqExecutionInput::OracleDocumentListSnapshot(snapshot_ah) => { - let record = must_get_valid_record(snapshot_ah)?; - let snapshot: OracleDocumentListSnapshot = deserialize_record_entry(record)?; - let jsons = snapshot - .resolved_documents - .into_iter() - .map(|oracle_document_ah| { - let record = must_get_valid_record(oracle_document_ah)?; - let oracle_document: OracleDocument = deserialize_record_entry(record)?; - Ok(oracle_document.json_data) - }) - .collect::>>()?; - JqProgramInput::Slurp(jsons) - } - JqExecutionInput::JqExecution(_) => { - todo!() - } - }; - - let output = compile_and_run_jq(&jq_execution.program, input)?; - if output != jq_execution.output { - return Ok(ValidateCallbackResult::Invalid( - "Program output doesn't match".into(), - )); - } - - Ok(ValidateCallbackResult::Valid) -} diff --git a/crates/username_registry_validation/src/lib.rs b/crates/username_registry_validation/src/lib.rs index 0e79ba7..e9c1340 100644 --- a/crates/username_registry_validation/src/lib.rs +++ b/crates/username_registry_validation/src/lib.rs @@ -18,10 +18,6 @@ pub mod agent_external_id_attestation; pub use agent_external_id_attestation::*; pub mod name_oracle_document; pub use name_oracle_document::*; -pub mod oracle_document_list_snapshot; -pub use oracle_document_list_snapshot::*; -pub mod jq_execution; -pub use jq_execution::*; pub mod recipe; pub use recipe::*; pub mod recipe_execution; diff --git a/crates/username_registry_validation/src/oracle_document_list_snapshot.rs b/crates/username_registry_validation/src/oracle_document_list_snapshot.rs deleted file mode 100644 index 4d2a487..0000000 --- a/crates/username_registry_validation/src/oracle_document_list_snapshot.rs +++ /dev/null @@ -1,65 +0,0 @@ -use hdi::prelude::*; -use holoom_types::{JqExecution, OracleDocument, OracleDocumentListSnapshot, SnapshotInput}; -use username_registry_utils::deserialize_record_entry; - -pub fn validate_create_oracle_document_list_snapshot( - _action: EntryCreationAction, - oracle_document_list_snapshot: OracleDocumentListSnapshot, -) -> ExternResult { - let (resolution_validity, identifiers) = - must_resolve_snapshot_input(oracle_document_list_snapshot.identifiers_input)?; - if resolution_validity != ValidateCallbackResult::Valid { - return Ok(resolution_validity); - } - - let resolved_documents = oracle_document_list_snapshot - .resolved_documents - .into_iter() - .map(|ah| { - let record = must_get_valid_record(ah)?; - let oracle_document: OracleDocument = deserialize_record_entry(record)?; - Ok(oracle_document) - }) - .collect::>>()?; - for (oracle_document, identifier) in resolved_documents.into_iter().zip(identifiers.into_iter()) - { - if oracle_document.name != identifier { - return Ok(ValidateCallbackResult::Invalid(format!( - "Oracle document identifier mismatch: '{}' != '{}'", - oracle_document.name, identifier - ))); - } - } - - Ok(ValidateCallbackResult::Valid) -} - -pub fn must_resolve_snapshot_input( - input: SnapshotInput, -) -> ExternResult<(ValidateCallbackResult, Vec)> { - // Must get the input document - let json_list = match input { - SnapshotInput::JqExecution(jq_execution_ah) => { - let record = must_get_valid_record(jq_execution_ah)?; - let jq_execution: JqExecution = deserialize_record_entry(record)?; - jq_execution.output - } - SnapshotInput::OracleDocument(oracle_document_ah) => { - let record = must_get_valid_record(oracle_document_ah)?; - let oracle_document: OracleDocument = deserialize_record_entry(record)?; - oracle_document.json_data - } - SnapshotInput::RelationSnapshot(identifiers) => { - return Ok((ValidateCallbackResult::Valid, identifiers)) - } - }; - - // Input document must be a list of identifiers - let Ok(identifiers) = serde_json::from_str::>(&json_list) else { - return Ok(( - ValidateCallbackResult::Invalid("SnapshotInput doesn't point to a list".into()), - Vec::default(), - )); - }; - Ok((ValidateCallbackResult::Valid, identifiers)) -} diff --git a/package-lock.json b/package-lock.json index b29a477..c9de4af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,6 +6,7 @@ "": { "name": "holoom", "devDependencies": { + "rimraf": "^5.0.5", "typescript": "^5.4.5" }, "workspaces": { diff --git a/package.json b/package.json index 8e69a80..8afb230 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "scripts": { "build:dna": "scripts/build_dna.sh", "test:dna": "npm run build:dna && cargo nextest run -j 1", - "build:types": "cargo test --package holoom_types && npm run -w @holoom/types build", + "build:types": "rimraf crates/holoom_types/bindings && cargo test --package holoom_types && npm run -w @holoom/types build", "build:client": "npm run build -w @holoom/client", "build:authority": "npm run build -w @holoom/authority", "build:mock-oracle": "npm run build -w @holoom/mock-oracle", @@ -18,6 +18,7 @@ "test:e2e": "npm run build:docker && npm run build:client && npm run e2e -w @holoom/e2e" }, "devDependencies": { + "rimraf": "^5.0.5", "typescript": "^5.4.5" } } diff --git a/packages/client/src/holoom-client.ts b/packages/client/src/holoom-client.ts index e541e4d..558bd08 100644 --- a/packages/client/src/holoom-client.ts +++ b/packages/client/src/holoom-client.ts @@ -3,7 +3,6 @@ import type { PublicKey as SolanaPublicKey } from "@solana/web3.js"; import { ChainWalletSignature, ExecuteRecipePayload, - JqExecution, Recipe, RecipeExecution, UsernameAttestation, @@ -241,20 +240,6 @@ export class HoloomClient { }); } - /** @ignore */ - async refreshJq(arg: { - program: string; - input: { collection: string }; - }): Promise { - const record: Record = await this.appAgent.callZome({ - role_name: "holoom", - zome_name: "username_registry", - fn_name: "refresh_jq_execution_for_named_relation", - payload: { program: arg.program, relation_name: arg.input.collection }, - }); - return JSON.parse(decodeAppEntry(record).output); - } - async createRecipe(recipe: Recipe): Promise { const record: Record = await this.appAgent.callZome({ role_name: "holoom", diff --git a/packages/e2e/tests/oracle.test.js b/packages/e2e/tests/oracle.test.js deleted file mode 100644 index 7e9bfc4..0000000 --- a/packages/e2e/tests/oracle.test.js +++ /dev/null @@ -1,88 +0,0 @@ -const { startTestContainers } = require("./utils/testcontainers"); -const { loadPageAndRegister } = require("./utils/holo"); -const { postOracleWebhook } = require("./utils/oracle"); - -describe("metadata", () => { - let testContainers; - beforeEach(async () => { - testContainers = await startTestContainers({ oracle: true }); - }, 60_000); - afterEach(async () => { - await Promise.all([testContainers?.stop(), jestPuppeteer.resetPage()]); - }); - - it("Should aggregate from attested json", async () => { - debug("Started test"); - await loadPageAndRegister("test@test.com", "test1234"); - debug("Loaded chaperone and registered agent"); - - // Check the jq initially interprets the collection as empty - await expect( - page.evaluate(() => - clients.holoom.refreshJq({ - program: "[.[].name]", - input: { collection: "tournaments" }, - }) - ) - ).resolves.toEqual([]); - debug("Tested empty collection"); - - await postOracleWebhook("tournament_created", { - id: "tournament-1", - name: "super-rank", - }); - await postOracleWebhook("tournament_created", { - id: "tournament-2", - name: "mega-rank", - }); - debug("Published two oracle documents"); - - // Poll until consistency - const timeout = Date.now() + 5_000; - while (Date.now() < timeout) { - try { - const output = await page.evaluate(() => - clients.holoom.refreshJq({ - program: "[.[].name]", - input: { collection: "tournaments" }, - }) - ); - if (output.length === 2) { - expect(output).toEqual(["super-rank", "mega-rank"]); - break; - } - } catch (err) { - if ( - err.message.includes("Cannot build snapshot with missing document") - ) { - // This could happen if links are gossiped before records. - } else { - throw err; - } - } - await new Promise((r) => setTimeout(r, 200)); - } - debug("Polled jq program until oracle documents included"); - - await postOracleWebhook("tournament_updated", { - id: "tournament-2", - name: "uber-rank", - }); - - // Poll until consistency - while (true) { - const output = await page.evaluate(() => - clients.holoom.refreshJq({ - program: "[.[].name]", - input: { collection: "tournaments" }, - }) - ); - if (output[1] !== "mega-rank") { - expect(output).toEqual(["super-rank", "uber-rank"]); - break; - } - await new Promise((r) => setTimeout(r, 200)); - } - debug("Polled jq program until revised oracle document included"); - }, 120_000); -}); diff --git a/packages/types/src/JqExecution.ts b/packages/types/src/JqExecution.ts deleted file mode 100644 index 5e00996..0000000 --- a/packages/types/src/JqExecution.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { JqExecutionInput } from "./JqExecutionInput"; - -export type JqExecution = { - program: string; - input: JqExecutionInput; - output: string; -}; diff --git a/packages/types/src/JqExecutionInput.ts b/packages/types/src/JqExecutionInput.ts deleted file mode 100644 index a0f5557..0000000 --- a/packages/types/src/JqExecutionInput.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ActionHash } from "@holochain/client"; -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. - -export type JqExecutionInput = - | { OracleDocument: ActionHash } - | { OracleDocumentListSnapshot: ActionHash } - | { JqExecution: ActionHash }; diff --git a/packages/types/src/OracleDocumentListSnapshot.ts b/packages/types/src/OracleDocumentListSnapshot.ts deleted file mode 100644 index d4384b4..0000000 --- a/packages/types/src/OracleDocumentListSnapshot.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { ActionHash } from "@holochain/client"; -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { SnapshotInput } from "./SnapshotInput"; - -export type OracleDocumentListSnapshot = { - /** - * The action hash of an OracleDocument that gives a list of identifiers - */ - identifiers_input: SnapshotInput; - resolved_documents: ActionHash[]; -}; diff --git a/packages/types/src/RefreshJqExecutionForNamedRelationPayload.ts b/packages/types/src/RefreshJqExecutionForNamedRelationPayload.ts deleted file mode 100644 index 42aa89d..0000000 --- a/packages/types/src/RefreshJqExecutionForNamedRelationPayload.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. - -export type RefreshJqExecutionForNamedRelationPayload = { - relation_name: string; - program: string; -}; diff --git a/packages/types/src/SnapshotInput.ts b/packages/types/src/SnapshotInput.ts deleted file mode 100644 index a5ed227..0000000 --- a/packages/types/src/SnapshotInput.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ActionHash } from "@holochain/client"; -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. - -export type SnapshotInput = - | { JqExecution: ActionHash } - | { OracleDocument: ActionHash } - | { RelationSnapshot: Array }; diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index e42bd77..2f9e92b 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -9,20 +9,16 @@ export * from "./ExecuteRecipePayload"; export * from "./ExternalIdAttestation"; export * from "./GetMetadataItemValuePayload"; export * from "./IngestExternalIdAttestationRequestPayload"; -export * from "./JqExecution"; -export * from "./JqExecutionInput"; export * from "./JqInstructionArgumentNames"; export * from "./LocalHoloomSignal"; export * from "./MetadataItem"; export * from "./OracleDocument"; -export * from "./OracleDocumentListSnapshot"; export * from "./Recipe"; export * from "./RecipeArgument"; export * from "./RecipeArgumentType"; export * from "./RecipeExecution"; export * from "./RecipeInstruction"; export * from "./RecipeInstructionExecution"; -export * from "./RefreshJqExecutionForNamedRelationPayload"; export * from "./RejectEvmSignatureOverRecipeExecutionRequestPayload"; export * from "./RejectExternalIdRequestPayload"; export * from "./RemoteHoloomSignal"; @@ -31,7 +27,6 @@ export * from "./SendExternalIdAttestationRequestPayload"; export * from "./SignableBytes"; export * from "./SignedEvmU256Array"; export * from "./SignedUsername"; -export * from "./SnapshotInput"; export * from "./UpdateMetadataItemPayload"; export * from "./UsernameAttestation"; export * from "./WalletAttestation";