diff --git a/Cargo.lock b/Cargo.lock index 3c55b847..db9068b5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -253,6 +253,17 @@ dependencies = [ "tracing", ] +[[package]] +name = "axum-macros" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "604fde5e028fea851ce1d8570bbdc034bec850d157f7569d10f347d06808c05c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.106", +] + [[package]] name = "axum-test" version = "18.1.0" @@ -1790,6 +1801,7 @@ name = "jacquard-axum" version = "0.3.0" dependencies = [ "axum", + "axum-macros", "axum-test", "bytes", "jacquard", @@ -1802,6 +1814,9 @@ dependencies = [ "thiserror 2.0.17", "tokio", "tokio-test", + "tower-http", + "tracing", + "tracing-subscriber", ] [[package]] @@ -2133,6 +2148,15 @@ dependencies = [ "libc", ] +[[package]] +name = "matchers" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" +dependencies = [ + "regex-automata", +] + [[package]] name = "matchit" version = "0.8.4" @@ -2273,6 +2297,15 @@ dependencies = [ "minimal-lexical", ] +[[package]] +name = "nu-ansi-term" +version = "0.50.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" +dependencies = [ + "windows-sys 0.60.2", +] + [[package]] name = "num" version = "0.4.3" @@ -3294,6 +3327,15 @@ dependencies = [ "digest", ] +[[package]] +name = "sharded-slab" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" +dependencies = [ + "lazy_static", +] + [[package]] name = "shlex" version = "1.3.0" @@ -3577,6 +3619,15 @@ dependencies = [ "syn 2.0.106", ] +[[package]] +name = "thread_local" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185" +dependencies = [ + "cfg-if", +] + [[package]] name = "threadpool" version = "1.8.1" @@ -3766,6 +3817,7 @@ dependencies = [ "tower", "tower-layer", "tower-service", + "tracing", ] [[package]] @@ -3810,6 +3862,37 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b9d12581f227e93f094d3af2ae690a574abb8a2b9b7a96e7cfe9647b2b617678" dependencies = [ "once_cell", + "valuable", +] + +[[package]] +name = "tracing-log" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" +dependencies = [ + "log", + "once_cell", + "tracing-core", +] + +[[package]] +name = "tracing-subscriber" +version = "0.3.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2054a14f5307d601f88daf0553e1cbf472acc4f2c51afab632431cdcd72124d5" +dependencies = [ + "matchers", + "nu-ansi-term", + "once_cell", + "regex-automata", + "sharded-slab", + "smallvec", + "thread_local", + "time", + "tracing", + "tracing-core", + "tracing-log", ] [[package]] @@ -3957,6 +4040,12 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "valuable" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" + [[package]] name = "version_check" version = "0.9.5" diff --git a/crates/jacquard-api/Cargo.toml b/crates/jacquard-api/Cargo.toml index e145231a..14f52c4f 100644 --- a/crates/jacquard-api/Cargo.toml +++ b/crates/jacquard-api/Cargo.toml @@ -27,9 +27,9 @@ thiserror.workspace = true [features] default = [ "com_atproto", "com_bad_example"] bluesky = [ "com_atproto", "app_bsky", "chat_bsky", "tools_ozone"] -other = ["sh_tangled", "sh_weaver", "pub_leaflet", "net_anisota", "events_smokesignal","network_slices", "tools_smokesignal", "com_whtwnd", "community_lexicon", "place_stream" ] +other = ["sh_tangled", "sh_weaver", "pub_leaflet", "net_anisota", "events_smokesignal","network_slices", "tools_smokesignal", "com_whtwnd", "community_lexicon", "place_stream", "blue__2048" ] lexicon_community = ["community_lexicon", "my_skylights", "com_whtwnd", "social_psky", "lol_atmo", "blue_linkat"] -ufos = ["place_artwork", "moe_karashiiro", "dev_regnault", "buzz_bookhive", "place_artwork", "how_bun", "lol_atmo", "inc_toronto", "uk_ewancroft", "xyz_autonomylab", "lol_skittr", "win_tomo", "dev_fudgeu", "dev_ocbwoy3", "blog_pckt", "blue_rito", "com_welistskyblue", "net_bnewbold", "did_plc_jh6yfs5dk47kykvhp7r6qwrb"] +ufos = ["place_artwork", "moe_karashiiro", "dev_regnault", "buzz_bookhive", "place_artwork", "how_bun", "lol_atmo", "inc_toronto", "uk_ewancroft", "lol_skittr", "win_tomo", "dev_fudgeu", "dev_ocbwoy3", "blog_pckt", "blue_rito", "com_welistskyblue", "net_bnewbold", "club_stellz", "dev_baileytownsend", "net_aftertheinter", "org_devcon","org_robocracy", "garden_lexicon", "social_clippr", "social_grain", "social_pmsky", "com_crabdance", "app_blebbit", "app_ocho", "uk_skyblur", "us_polhem", "blue_atplane", "net_mmatt" ] app_bsky = [] chat_bsky = [] com_atproto = [] @@ -42,12 +42,16 @@ network_slices = [] place_atwork = [] tools_smokesignal = [] uk_ewancroft = [] -xyz_autonomylab = [] place_artwork = [] moe_karashiiro = [] buzz_bookhive = [] dev_regnault = [] events_smokesignal = [] +dev_baileytownsend = [] +blue__2048 = [] +blue_atplane = [] +club_stellz = [] +net_mmatt = [] how_bun = [] lol_atmo = [] lol_skittr = [] @@ -59,7 +63,6 @@ dev_fudgeu = [] com_welistskyblue = [] blog_pckt = [] blue_rito = [] -did_plc_jh6yfs5dk47kykvhp7r6qwrb = [] net_bnewbold = [] win_tomo_x = [] com_shinolabs = [] @@ -71,3 +74,16 @@ community_lexicon = [] social_psky = [] place_stream = [] my_skylights = [] +net_aftertheinter = [] +org_devcon = [] +org_robocracy = [] +garden_lexicon = [] +social_clippr = [] +social_grain = [] +social_pmsky = [] +com_crabdance = [] +app_blebbit = [] +beauty_cybernetic = [] +app_ocho = [] +uk_skyblur = [] +us_polhem = [] diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_folder_authzed.json b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_authzed.json new file mode 100644 index 00000000..f4607c8f --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_authzed.json @@ -0,0 +1,7 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.folder.authzed", + "revision": 1, + "description": "Relations and permissions available on folders for the Authr Example", + "defs": {} +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_folder_createFolder.json b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_createFolder.json new file mode 100644 index 00000000..95a9fa48 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_createFolder.json @@ -0,0 +1,42 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.folder.createFolder", + "revision": 1, + "description": "create a folder", + "defs": { + "main": { + "type": "procedure", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "properties": { + "cuid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_folder_createFolderRelationship.json b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_createFolderRelationship.json new file mode 100644 index 00000000..5fc8696b --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_createFolderRelationship.json @@ -0,0 +1,33 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.folder.createFolderRelationship", + "revision": 1, + "description": "create a relationship for folder", + "defs": { + "main": { + "type": "procedure", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "subject", + "relation", + "resource" + ], + "properties": { + "relation": { + "type": "string" + }, + "resource": { + "type": "string" + }, + "subject": { + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_folder_defs.json b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_defs.json new file mode 100644 index 00000000..c6826bd2 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_defs.json @@ -0,0 +1,33 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.folder.defs", + "revision": 1, + "description": "Common folder defs for the Authr Example", + "defs": { + "folderForm": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + }, + "folderView": { + "type": "object", + "properties": { + "cuid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_folder_deleteFolder.json b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_deleteFolder.json new file mode 100644 index 00000000..d7a91585 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_deleteFolder.json @@ -0,0 +1,19 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.folder.deleteFolder", + "revision": 1, + "description": "delete a folder", + "defs": { + "main": { + "type": "procedure", + "parameters": { + "type": "params", + "properties": { + "id": { + "type": "string" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_folder_deleteFolderRelationship.json b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_deleteFolderRelationship.json new file mode 100644 index 00000000..ffe66b03 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_deleteFolderRelationship.json @@ -0,0 +1,32 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.folder.deleteFolderRelationship", + "revision": 1, + "description": "delete a relationship for folder", + "defs": { + "main": { + "type": "procedure", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "subject", + "resource" + ], + "properties": { + "relation": { + "type": "string" + }, + "resource": { + "type": "string" + }, + "subject": { + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_folder_getFolder.json b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_getFolder.json new file mode 100644 index 00000000..0cf6a082 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_getFolder.json @@ -0,0 +1,39 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.folder.getFolder", + "revision": 1, + "description": "get a folder by id", + "defs": { + "main": { + "type": "query", + "parameters": { + "type": "params", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string" + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "properties": { + "cuid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_folder_getFolders.json b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_getFolders.json new file mode 100644 index 00000000..b81bc626 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_getFolders.json @@ -0,0 +1,37 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.folder.getFolders", + "revision": 1, + "description": "get a folder list", + "defs": { + "main": { + "type": "query", + "parameters": { + "type": "params", + "properties": { + "cursor": { + "type": "string" + }, + "limit": { + "type": "integer" + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "properties": { + "folders": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.blebbit.authr.folder.defs#folderView" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_folder_record.json b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_record.json new file mode 100644 index 00000000..0a17485d --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_record.json @@ -0,0 +1,26 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.folder.record", + "revision": 1, + "description": "Lexicon for folders on Authr Example", + "defs": { + "main": { + "type": "record", + "key": "tid", + "record": { + "type": "object", + "properties": { + "cuid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_folder_updateFolder.json b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_updateFolder.json new file mode 100644 index 00000000..9adb3781 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_updateFolder.json @@ -0,0 +1,50 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.folder.updateFolder", + "revision": 1, + "description": "update a folder", + "defs": { + "main": { + "type": "procedure", + "parameters": { + "type": "params", + "properties": { + "id": { + "type": "string" + } + } + }, + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "properties": { + "cuid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_folder_updateFolderRelationship.json b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_updateFolderRelationship.json new file mode 100644 index 00000000..dedf69d2 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_folder_updateFolderRelationship.json @@ -0,0 +1,33 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.folder.updateFolderRelationship", + "revision": 1, + "description": "update a relationship for folder", + "defs": { + "main": { + "type": "procedure", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "subject", + "relation", + "resource" + ], + "properties": { + "relation": { + "type": "string" + }, + "resource": { + "type": "string" + }, + "subject": { + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_group_authzed.json b/crates/jacquard-api/lexicons/app_blebbit_authr_group_authzed.json new file mode 100644 index 00000000..dc308652 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_group_authzed.json @@ -0,0 +1,7 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.group.authzed", + "revision": 1, + "description": "Relations and permissions available on groups for the Authr Example", + "defs": {} +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_group_createGroup.json b/crates/jacquard-api/lexicons/app_blebbit_authr_group_createGroup.json new file mode 100644 index 00000000..01d6e5af --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_group_createGroup.json @@ -0,0 +1,57 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.group.createGroup", + "revision": 1, + "description": "create a group", + "defs": { + "main": { + "type": "procedure", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "description": { + "type": "string" + }, + "display": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "properties": { + "cuid": { + "type": "string" + }, + "description": { + "type": "string" + }, + "display": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_group_createGroupRelationship.json b/crates/jacquard-api/lexicons/app_blebbit_authr_group_createGroupRelationship.json new file mode 100644 index 00000000..7fce7ae4 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_group_createGroupRelationship.json @@ -0,0 +1,33 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.group.createGroupRelationship", + "revision": 1, + "description": "create a relationship for group", + "defs": { + "main": { + "type": "procedure", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "subject", + "relation", + "resource" + ], + "properties": { + "relation": { + "type": "string" + }, + "resource": { + "type": "string" + }, + "subject": { + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_group_defs.json b/crates/jacquard-api/lexicons/app_blebbit_authr_group_defs.json new file mode 100644 index 00000000..b4c510ab --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_group_defs.json @@ -0,0 +1,48 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.group.defs", + "revision": 1, + "description": "Common defs for the Authr Example", + "defs": { + "groupForm": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "description": { + "type": "string" + }, + "display": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + }, + "groupView": { + "type": "object", + "properties": { + "cuid": { + "type": "string" + }, + "description": { + "type": "string" + }, + "display": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_group_deleteGroup.json b/crates/jacquard-api/lexicons/app_blebbit_authr_group_deleteGroup.json new file mode 100644 index 00000000..4a393086 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_group_deleteGroup.json @@ -0,0 +1,19 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.group.deleteGroup", + "revision": 1, + "description": "delete a group", + "defs": { + "main": { + "type": "procedure", + "parameters": { + "type": "params", + "properties": { + "id": { + "type": "string" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_group_deleteGroupRelationship.json b/crates/jacquard-api/lexicons/app_blebbit_authr_group_deleteGroupRelationship.json new file mode 100644 index 00000000..996612d7 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_group_deleteGroupRelationship.json @@ -0,0 +1,32 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.group.deleteGroupRelationship", + "revision": 1, + "description": "delete a relationship for group", + "defs": { + "main": { + "type": "procedure", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "subject", + "resource" + ], + "properties": { + "relation": { + "type": "string" + }, + "resource": { + "type": "string" + }, + "subject": { + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_group_getGroup.json b/crates/jacquard-api/lexicons/app_blebbit_authr_group_getGroup.json new file mode 100644 index 00000000..cd90fb58 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_group_getGroup.json @@ -0,0 +1,45 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.group.getGroup", + "revision": 1, + "description": "get a group by id", + "defs": { + "main": { + "type": "query", + "parameters": { + "type": "params", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string" + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "properties": { + "cuid": { + "type": "string" + }, + "description": { + "type": "string" + }, + "display": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_group_getGroups.json b/crates/jacquard-api/lexicons/app_blebbit_authr_group_getGroups.json new file mode 100644 index 00000000..c3147b8c --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_group_getGroups.json @@ -0,0 +1,37 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.group.getGroups", + "revision": 1, + "description": "get a group list", + "defs": { + "main": { + "type": "query", + "parameters": { + "type": "params", + "properties": { + "cursor": { + "type": "string" + }, + "limit": { + "type": "integer" + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "properties": { + "groups": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.blebbit.authr.group.defs#groupView" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_group_record.json b/crates/jacquard-api/lexicons/app_blebbit_authr_group_record.json new file mode 100644 index 00000000..ae32e2d0 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_group_record.json @@ -0,0 +1,32 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.group.record", + "revision": 1, + "description": "Lexicon for groups on Authr Example", + "defs": { + "main": { + "type": "record", + "key": "tid", + "record": { + "type": "object", + "properties": { + "cuid": { + "type": "string" + }, + "description": { + "type": "string" + }, + "display": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_group_updateGroup.json b/crates/jacquard-api/lexicons/app_blebbit_authr_group_updateGroup.json new file mode 100644 index 00000000..fbca948b --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_group_updateGroup.json @@ -0,0 +1,65 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.group.updateGroup", + "revision": 1, + "description": "update a group", + "defs": { + "main": { + "type": "procedure", + "parameters": { + "type": "params", + "properties": { + "id": { + "type": "string" + } + } + }, + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "description": { + "type": "string" + }, + "display": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "properties": { + "cuid": { + "type": "string" + }, + "description": { + "type": "string" + }, + "display": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_group_updateGroupRelationship.json b/crates/jacquard-api/lexicons/app_blebbit_authr_group_updateGroupRelationship.json new file mode 100644 index 00000000..0b0ff03b --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_group_updateGroupRelationship.json @@ -0,0 +1,33 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.group.updateGroupRelationship", + "revision": 1, + "description": "update a relationship for group", + "defs": { + "main": { + "type": "procedure", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "subject", + "relation", + "resource" + ], + "properties": { + "relation": { + "type": "string" + }, + "resource": { + "type": "string" + }, + "subject": { + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_page_authzed.json b/crates/jacquard-api/lexicons/app_blebbit_authr_page_authzed.json new file mode 100644 index 00000000..15c270aa --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_page_authzed.json @@ -0,0 +1,7 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.page.authzed", + "revision": 1, + "description": "Relations and permissions available on pages for the Authr Example", + "defs": {} +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_page_createPage.json b/crates/jacquard-api/lexicons/app_blebbit_authr_page_createPage.json new file mode 100644 index 00000000..c9ce5355 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_page_createPage.json @@ -0,0 +1,45 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.page.createPage", + "revision": 1, + "description": "create a page", + "defs": { + "main": { + "type": "procedure", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "cuid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_page_createPageRelationship.json b/crates/jacquard-api/lexicons/app_blebbit_authr_page_createPageRelationship.json new file mode 100644 index 00000000..ccfc7412 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_page_createPageRelationship.json @@ -0,0 +1,33 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.page.createPageRelationship", + "revision": 1, + "description": "create a relationship for page", + "defs": { + "main": { + "type": "procedure", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "subject", + "relation", + "resource" + ], + "properties": { + "relation": { + "type": "string" + }, + "resource": { + "type": "string" + }, + "subject": { + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_page_defs.json b/crates/jacquard-api/lexicons/app_blebbit_authr_page_defs.json new file mode 100644 index 00000000..1e230d65 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_page_defs.json @@ -0,0 +1,36 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.page.defs", + "revision": 1, + "description": "Common page defs for the Authr Example", + "defs": { + "pageForm": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + }, + "pageView": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "cuid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_page_deletePage.json b/crates/jacquard-api/lexicons/app_blebbit_authr_page_deletePage.json new file mode 100644 index 00000000..8f2f7d19 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_page_deletePage.json @@ -0,0 +1,19 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.page.deletePage", + "revision": 1, + "description": "delete a page", + "defs": { + "main": { + "type": "procedure", + "parameters": { + "type": "params", + "properties": { + "id": { + "type": "string" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_page_deletePageRelationship.json b/crates/jacquard-api/lexicons/app_blebbit_authr_page_deletePageRelationship.json new file mode 100644 index 00000000..71b9e178 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_page_deletePageRelationship.json @@ -0,0 +1,32 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.page.deletePageRelationship", + "revision": 1, + "description": "delete a relationship for page", + "defs": { + "main": { + "type": "procedure", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "subject", + "resource" + ], + "properties": { + "relation": { + "type": "string" + }, + "resource": { + "type": "string" + }, + "subject": { + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_page_getPage.json b/crates/jacquard-api/lexicons/app_blebbit_authr_page_getPage.json new file mode 100644 index 00000000..d506484e --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_page_getPage.json @@ -0,0 +1,42 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.page.getPage", + "revision": 1, + "description": "get a page by id", + "defs": { + "main": { + "type": "query", + "parameters": { + "type": "params", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string" + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "cuid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_page_getPages.json b/crates/jacquard-api/lexicons/app_blebbit_authr_page_getPages.json new file mode 100644 index 00000000..c0a8a561 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_page_getPages.json @@ -0,0 +1,37 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.page.getPages", + "revision": 1, + "description": "get a page list", + "defs": { + "main": { + "type": "query", + "parameters": { + "type": "params", + "properties": { + "cursor": { + "type": "string" + }, + "limit": { + "type": "integer" + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "properties": { + "pages": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.blebbit.authr.page.defs#pageView" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_page_record.json b/crates/jacquard-api/lexicons/app_blebbit_authr_page_record.json new file mode 100644 index 00000000..b47a4715 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_page_record.json @@ -0,0 +1,29 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.page.record", + "revision": 1, + "description": "Lexicon for pages on Authr Example", + "defs": { + "main": { + "type": "record", + "key": "tid", + "record": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "cuid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_page_updatePage.json b/crates/jacquard-api/lexicons/app_blebbit_authr_page_updatePage.json new file mode 100644 index 00000000..09f04e36 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_page_updatePage.json @@ -0,0 +1,53 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.page.updatePage", + "revision": 1, + "description": "update a page", + "defs": { + "main": { + "type": "procedure", + "parameters": { + "type": "params", + "properties": { + "id": { + "type": "string" + } + } + }, + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "cuid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_blebbit_authr_page_updatePageRelationship.json b/crates/jacquard-api/lexicons/app_blebbit_authr_page_updatePageRelationship.json new file mode 100644 index 00000000..c46874eb --- /dev/null +++ b/crates/jacquard-api/lexicons/app_blebbit_authr_page_updatePageRelationship.json @@ -0,0 +1,33 @@ +{ + "lexicon": 1, + "id": "app.blebbit.authr.page.updatePageRelationship", + "revision": 1, + "description": "update a relationship for page", + "defs": { + "main": { + "type": "procedure", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "subject", + "relation", + "resource" + ], + "properties": { + "relation": { + "type": "string" + }, + "resource": { + "type": "string" + }, + "subject": { + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_bsky_feed_threadgate.json b/crates/jacquard-api/lexicons/app_bsky_feed_threadgate.json index c9a2b485..7a6c456e 100644 --- a/crates/jacquard-api/lexicons/app_bsky_feed_threadgate.json +++ b/crates/jacquard-api/lexicons/app_bsky_feed_threadgate.json @@ -61,7 +61,7 @@ "type": "string", "format": "at-uri" }, - "maxLength": 50 + "maxLength": 300 }, "post": { "type": "string", diff --git a/crates/jacquard-api/lexicons/app_ocho_auth_atProtoCallback.json b/crates/jacquard-api/lexicons/app_ocho_auth_atProtoCallback.json new file mode 100644 index 00000000..b87695b3 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_auth_atProtoCallback.json @@ -0,0 +1,29 @@ +{ + "lexicon": 1, + "id": "app.ocho.auth.atProtoCallback", + "defs": { + "main": { + "type": "query", + "description": "A handler for the Ocho AppView Oauth system", + "parameters": { + "type": "params", + "required": [ + "code", + "state", + "iss" + ], + "properties": { + "code": { + "type": "string" + }, + "iss": { + "type": "string" + }, + "state": { + "type": "string" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_auth_authorize.json b/crates/jacquard-api/lexicons/app_ocho_auth_authorize.json new file mode 100644 index 00000000..9abdca5f --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_auth_authorize.json @@ -0,0 +1,42 @@ +{ + "lexicon": 1, + "id": "app.ocho.auth.authorize", + "defs": { + "main": { + "type": "procedure", + "description": "Login to the ATProto via OAuth", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "input", + "authorizeOptions" + ], + "properties": { + "authorizeOptions": { + "type": "unknown" + }, + "input": { + "type": "string" + } + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "url" + ], + "properties": { + "url": { + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_auth_defs.json b/crates/jacquard-api/lexicons/app_ocho_auth_defs.json new file mode 100644 index 00000000..65711bc6 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_auth_defs.json @@ -0,0 +1,30 @@ +{ + "lexicon": 1, + "id": "app.ocho.auth.defs", + "defs": { + "authCallback": { + "type": "object", + "required": [ + "refreshJwt", + "accessJwt", + "handle", + "did" + ], + "properties": { + "accessJwt": { + "type": "string" + }, + "did": { + "type": "string", + "format": "did" + }, + "handle": { + "type": "string" + }, + "refreshJwt": { + "type": "string" + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_auth_githubCallback.json b/crates/jacquard-api/lexicons/app_ocho_auth_githubCallback.json new file mode 100644 index 00000000..b829120f --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_auth_githubCallback.json @@ -0,0 +1,25 @@ +{ + "lexicon": 1, + "id": "app.ocho.auth.githubCallback", + "defs": { + "main": { + "type": "query", + "description": "A handler for the Ocho AppView Oauth system", + "parameters": { + "type": "params", + "required": [ + "code", + "state" + ], + "properties": { + "code": { + "type": "string" + }, + "state": { + "type": "string" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_auth_googleCallback.json b/crates/jacquard-api/lexicons/app_ocho_auth_googleCallback.json new file mode 100644 index 00000000..46945e5d --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_auth_googleCallback.json @@ -0,0 +1,25 @@ +{ + "lexicon": 1, + "id": "app.ocho.auth.googleCallback", + "defs": { + "main": { + "type": "query", + "description": "A handler for the Ocho AppView Oauth system", + "parameters": { + "type": "params", + "required": [ + "code", + "state" + ], + "properties": { + "code": { + "type": "string" + }, + "state": { + "type": "string" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_auth_requestEmailUpdate.json b/crates/jacquard-api/lexicons/app_ocho_auth_requestEmailUpdate.json new file mode 100644 index 00000000..56bdab71 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_auth_requestEmailUpdate.json @@ -0,0 +1,24 @@ +{ + "lexicon": 1, + "id": "app.ocho.auth.requestEmailUpdate", + "defs": { + "main": { + "type": "procedure", + "description": "Request a token in order to update email.", + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "tokenRequired" + ], + "properties": { + "tokenRequired": { + "type": "boolean" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_auth_updateEmail.json b/crates/jacquard-api/lexicons/app_ocho_auth_updateEmail.json new file mode 100644 index 00000000..473df8b9 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_auth_updateEmail.json @@ -0,0 +1,42 @@ +{ + "lexicon": 1, + "id": "app.ocho.auth.updateEmail", + "defs": { + "main": { + "type": "procedure", + "description": "Update an account's email.", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + }, + "emailAuthFactor": { + "type": "boolean" + }, + "token": { + "type": "string", + "description": "Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed." + } + } + } + }, + "errors": [ + { + "name": "ExpiredToken" + }, + { + "name": "InvalidToken" + }, + { + "name": "TokenRequired" + } + ] + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_auth_updateHandle.json b/crates/jacquard-api/lexicons/app_ocho_auth_updateHandle.json new file mode 100644 index 00000000..1e633701 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_auth_updateHandle.json @@ -0,0 +1,26 @@ +{ + "lexicon": 1, + "id": "app.ocho.auth.updateHandle", + "defs": { + "main": { + "type": "procedure", + "description": "Updates the current account's handle. Verifies handle validity, and updates did:plc document if necessary. Implemented by PDS, and requires auth.", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "handle" + ], + "properties": { + "handle": { + "type": "string", + "description": "The new handle.", + "format": "handle" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_auth_whoami.json b/crates/jacquard-api/lexicons/app_ocho_auth_whoami.json new file mode 100644 index 00000000..4b717468 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_auth_whoami.json @@ -0,0 +1,31 @@ +{ + "lexicon": 1, + "id": "app.ocho.auth.whoami", + "defs": { + "main": { + "type": "query", + "description": "A handler for the Ocho AppView Oauth system", + "output": { + "description": "The session data", + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "did", + "handle" + ], + "properties": { + "did": { + "type": "string", + "description": "The user's DID" + }, + "handle": { + "type": "string", + "description": "The user's ID" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_edu_getVerificationUrl.json b/crates/jacquard-api/lexicons/app_ocho_edu_getVerificationUrl.json new file mode 100644 index 00000000..54de5fa9 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_edu_getVerificationUrl.json @@ -0,0 +1,35 @@ +{ + "lexicon": 1, + "id": "app.ocho.edu.getVerificationUrl", + "defs": { + "main": { + "type": "query", + "parameters": { + "type": "params", + "required": [ + "domain" + ], + "properties": { + "domain": { + "type": "string" + } + } + }, + "output": { + "description": "The intent data", + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "url" + ], + "properties": { + "url": { + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_edu_googleCallback.json b/crates/jacquard-api/lexicons/app_ocho_edu_googleCallback.json new file mode 100644 index 00000000..0f086fe3 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_edu_googleCallback.json @@ -0,0 +1,25 @@ +{ + "lexicon": 1, + "id": "app.ocho.edu.googleCallback", + "defs": { + "main": { + "type": "query", + "description": "A handler for the Ocho education verification Google callback", + "parameters": { + "type": "params", + "required": [ + "code", + "state" + ], + "properties": { + "code": { + "type": "string" + }, + "state": { + "type": "string" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_edu_isVerified.json b/crates/jacquard-api/lexicons/app_ocho_edu_isVerified.json new file mode 100644 index 00000000..7edd3185 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_edu_isVerified.json @@ -0,0 +1,35 @@ +{ + "lexicon": 1, + "id": "app.ocho.edu.isVerified", + "defs": { + "main": { + "type": "query", + "parameters": { + "type": "params", + "required": [ + "domain" + ], + "properties": { + "domain": { + "type": "string" + } + } + }, + "output": { + "description": "Whether the user is verified on that domain", + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "verified" + ], + "properties": { + "verified": { + "type": "boolean" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_edu_verification.json b/crates/jacquard-api/lexicons/app_ocho_edu_verification.json new file mode 100644 index 00000000..9a4a6c27 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_edu_verification.json @@ -0,0 +1,35 @@ +{ + "lexicon": 1, + "id": "app.ocho.edu.verification", + "defs": { + "main": { + "type": "record", + "description": "Record declaring a verification relationship between an account and a .edu domain. Verifications are only considered valid by an app if issued by an account the app considers trusted.", + "key": "tid", + "record": { + "type": "object", + "required": [ + "subject", + "domain", + "createdAt" + ], + "properties": { + "createdAt": { + "type": "string", + "description": "Date of when the verification was created.", + "format": "datetime" + }, + "domain": { + "type": "string", + "description": "The domain the subject is verified under." + }, + "subject": { + "type": "string", + "description": "DID of the subject the verification applies to.", + "format": "did" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_message_send.json b/crates/jacquard-api/lexicons/app_ocho_message_send.json new file mode 100644 index 00000000..d375e2d8 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_message_send.json @@ -0,0 +1,45 @@ +{ + "lexicon": 1, + "id": "app.ocho.message.send", + "defs": { + "main": { + "type": "procedure", + "description": "Sends a message to a user from an app.", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "message", + "did" + ], + "properties": { + "did": { + "type": "string", + "description": "The user to send the message to." + }, + "message": { + "type": "string", + "description": "The message to send to the user." + } + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "success" + ], + "properties": { + "success": { + "type": "boolean", + "description": "Whether the token was successfully registered." + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_payment_getStripeIntent.json b/crates/jacquard-api/lexicons/app_ocho_payment_getStripeIntent.json new file mode 100644 index 00000000..4d14c140 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_payment_getStripeIntent.json @@ -0,0 +1,72 @@ +{ + "lexicon": 1, + "id": "app.ocho.payment.getStripeIntent", + "defs": { + "main": { + "type": "query", + "parameters": { + "type": "params", + "required": [ + "iss", + "amount", + "id" + ], + "properties": { + "amount": { + "type": "integer", + "description": "The amount to charge in cents", + "minimum": 0 + }, + "id": { + "type": "string", + "description": "An identifier linking the payment intent to the user / transaction / payment. Provided by the plugin." + }, + "iss": { + "type": "string", + "format": "did" + }, + "token": { + "type": "string", + "description": "The token for the user, optional." + } + } + }, + "output": { + "description": "The intent data", + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "paymentIntent", + "ephemeralKey", + "customer", + "customerSession", + "publishableKey" + ], + "properties": { + "customer": { + "type": "string", + "description": "The customer ID for the payment intent" + }, + "customerSession": { + "type": "string", + "description": "The customer session ID for the payment intent" + }, + "ephemeralKey": { + "type": "string", + "description": "The ephemeral key for the payment intent" + }, + "paymentIntent": { + "type": "string", + "description": "The payment intent ID" + }, + "publishableKey": { + "type": "string", + "description": "The publishable key for the payment intent" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_plugin_defs.json b/crates/jacquard-api/lexicons/app_ocho_plugin_defs.json new file mode 100644 index 00000000..5e4e72c9 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_plugin_defs.json @@ -0,0 +1,343 @@ +{ + "lexicon": 1, + "id": "app.ocho.plugin.defs", + "defs": { + "adaptiveIcon": { + "type": "object", + "properties": { + "backgroundColor": { + "type": "string", + "description": "The background color of the adaptive icon." + }, + "foregroundImage": { + "type": "string", + "description": "The URL to the foreground image of the adaptive icon." + }, + "foregroundImageBlob": { + "type": "blob" + } + } + }, + "android": { + "type": "object", + "properties": { + "adaptiveIcon": { + "type": "ref", + "description": "Configuration for the adaptive icon on Android.", + "ref": "#adaptiveIcon" + }, + "edgeToEdgeEnabled": { + "type": "boolean", + "description": "Whether edge-to-edge mode is enabled for the app." + } + } + }, + "androidStatusBar": { + "type": "object", + "description": "Android status bar configuration.", + "properties": { + "backgroundColor": { + "type": "string", + "description": "The background color of the Android status bar." + } + } + }, + "asset": { + "type": "object", + "required": [ + "hash", + "blob", + "type" + ], + "properties": { + "blob": { + "type": "blob", + "description": "The blob of the asset" + }, + "hash": { + "type": "string", + "description": "The hash of the asset" + }, + "type": { + "type": "string", + "description": "The type of the asset" + }, + "updatedAt": { + "type": "string", + "description": "The date and time when this asset was last updated. Used to reset the jetstream cache, among other things.", + "format": "datetime" + } + } + }, + "db": { + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string", + "description": "The ID of the database." + } + } + }, + "developer": { + "type": "object", + "required": [ + "tool" + ], + "properties": { + "tool": { + "type": "string", + "description": "The tool used for development, e.g., 'expo-cli'." + } + } + }, + "expoClient": { + "type": "object", + "required": [ + "name", + "slug" + ], + "properties": { + "android": { + "type": "ref", + "description": "Android-specific configuration for the app.", + "ref": "#android" + }, + "androidStatusBar": { + "type": "ref", + "description": "Configuration for the Android status bar.", + "ref": "#androidStatusBar" + }, + "expirements": { + "type": "unknown", + "description": "Experimental features enabled for the app." + }, + "extra": { + "type": "unknown", + "description": "Additional configuration for the app." + }, + "icon": { + "type": "string", + "description": "The URL to the app icon." + }, + "ios": { + "type": "ref", + "description": "ios-specific configuration for the app.", + "ref": "#ios" + }, + "locales": { + "type": "unknown", + "description": "Localization settings for the app." + }, + "name": { + "type": "string", + "description": "The name of the Expo client application." + }, + "newArchEnabled": { + "type": "boolean", + "description": "Whether the new architecture is enabled for the app." + }, + "orientation": { + "type": "string", + "description": "The default orientation of the app.", + "enum": [ + "portrait", + "landscape", + "default" + ] + }, + "platforms": { + "type": "array", + "description": "The platforms supported by the app.", + "items": { + "type": "string", + "enum": [ + "ios", + "android", + "web" + ] + } + }, + "plugins": { + "type": "unknown", + "description": "A list of plugins used by the app." + }, + "scheme": { + "type": "string", + "description": "The custom URI scheme for deep linking." + }, + "sdkVersion": { + "type": "string", + "description": "The SDK version of the Expo client." + }, + "slug": { + "type": "string", + "description": "A URL-friendly identifier for the app." + }, + "userInterfaceStyle": { + "type": "string", + "description": "The default user interface style." + }, + "version": { + "type": "string", + "description": "The version of the app." + }, + "web": { + "type": "ref", + "description": "Web-specific configuration for the app.", + "ref": "#web" + } + } + }, + "expoGo": { + "type": "object", + "required": [ + "developer" + ], + "properties": { + "developer": { + "type": "ref", + "description": "Developer-specific configuration for the Expo Go app.", + "ref": "#developer" + } + } + }, + "ios": { + "type": "object", + "properties": { + "supportsTablet": { + "type": "boolean", + "description": "Whether the app supports iPad." + } + } + }, + "launchAsset": { + "type": "object", + "required": [ + "key", + "contentType", + "url" + ], + "properties": { + "contentType": { + "type": "string", + "description": "The MIME type of the asset, e.g., 'image/png'." + }, + "key": { + "type": "string", + "description": "The unique key for this asset, used to reference it in the plugin." + }, + "url": { + "type": "string", + "description": "The URL where the asset can be accessed.", + "format": "uri" + } + } + }, + "manifest": { + "type": "object", + "required": [ + "id", + "createdAt", + "runtimeVersion", + "launchAsset", + "metadata", + "extra" + ], + "properties": { + "createdAt": { + "type": "string", + "description": "The date and time when this plugin manifest was created.", + "format": "datetime" + }, + "extra": { + "type": "ref", + "description": "Additional metadata for the plugin, including Expo client and Go configurations.", + "ref": "app.ocho.plugin.defs#manifestExtra" + }, + "id": { + "type": "string", + "description": "The unique identifier for this plugin manifest." + }, + "launchAsset": { + "type": "ref", + "description": "The launch asset for the plugin (the main javascipt bundle).", + "ref": "app.ocho.plugin.defs#launchAsset" + }, + "metadata": { + "type": "unknown" + }, + "runtimeVersion": { + "type": "string", + "description": "The version of the Expo runtime this plugin is compatible with." + } + } + }, + "manifestExtra": { + "type": "object", + "required": [ + "expoClient", + "expoGo" + ], + "properties": { + "expoClient": { + "type": "ref", + "ref": "#expoClient" + }, + "expoGo": { + "type": "ref", + "ref": "#expoGo" + } + } + }, + "plugin": { + "type": "array", + "items": { + "type": "union", + "refs": [ + "#stringId", + "#pluginConfig" + ] + } + }, + "pluginConfig": { + "type": "unknown", + "description": "Configuration object for a plugin, can be any valid JSON object." + }, + "stringId": { + "type": "string", + "description": "A string identifier for a plugin, used to reference it in the app." + }, + "web": { + "type": "object", + "properties": { + "bundler": { + "type": "string", + "description": "The bundler used for the web app.", + "enum": [ + "webpack", + "metro" + ] + }, + "favicon": { + "type": "string", + "description": "The URL to the favicon for the web app." + }, + "faviconBlob": { + "type": "blob" + }, + "output": { + "type": "string", + "description": "The output directory for the web app.", + "enum": [ + "static", + "server", + "single" + ] + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_plugin_getLaunchAsset.json b/crates/jacquard-api/lexicons/app_ocho_plugin_getLaunchAsset.json new file mode 100644 index 00000000..ea2daafa --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_plugin_getLaunchAsset.json @@ -0,0 +1,37 @@ +{ + "lexicon": 1, + "id": "app.ocho.plugin.getLaunchAsset", + "defs": { + "main": { + "type": "query", + "description": "Get the launch asset for an Ocho plugin.", + "parameters": { + "type": "params", + "required": [ + "did", + "platform" + ], + "properties": { + "did": { + "type": "string", + "description": "The did of the plugin to retrieve the manifest for", + "format": "did" + }, + "platform": { + "type": "string", + "description": "The platform for which to retrieve the plugin manifest", + "enum": [ + "ios", + "android", + "web" + ] + } + } + }, + "output": { + "description": "The launch asset for the plugin, which is the main JavaScript bundle.", + "encoding": "text/javascript" + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_plugin_getManifest.json b/crates/jacquard-api/lexicons/app_ocho_plugin_getManifest.json new file mode 100644 index 00000000..f59b7cc2 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_plugin_getManifest.json @@ -0,0 +1,41 @@ +{ + "lexicon": 1, + "id": "app.ocho.plugin.getManifest", + "defs": { + "main": { + "type": "query", + "description": "Get the manifest for an Ocho plugin.", + "parameters": { + "type": "params", + "required": [ + "did", + "platform" + ], + "properties": { + "did": { + "type": "string", + "description": "The did of the plugin to retrieve the manifest for", + "format": "did" + }, + "platform": { + "type": "string", + "description": "The platform for which to retrieve the plugin manifest", + "enum": [ + "ios", + "android", + "web" + ] + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "ref", + "description": "The plugin manifest, which includes the plugin's metadata, launch asset, and extra information. TODO: Fix these types.", + "ref": "app.ocho.plugin.defs#manifest" + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_plugin_putHostingUrl.json b/crates/jacquard-api/lexicons/app_ocho_plugin_putHostingUrl.json new file mode 100644 index 00000000..c6a727a9 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_plugin_putHostingUrl.json @@ -0,0 +1,39 @@ +{ + "lexicon": 1, + "id": "app.ocho.plugin.putHostingUrl", + "defs": { + "main": { + "type": "procedure", + "description": "Puts the URL your app is hosted on.", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "url" + ], + "properties": { + "url": { + "type": "string", + "description": "The expo push token" + } + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "success" + ], + "properties": { + "success": { + "type": "boolean" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_plugin_service.json b/crates/jacquard-api/lexicons/app_ocho_plugin_service.json new file mode 100644 index 00000000..43ae0a25 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_plugin_service.json @@ -0,0 +1,30 @@ +{ + "lexicon": 1, + "id": "app.ocho.plugin.service", + "defs": { + "main": { + "type": "record", + "description": "The definitions for the plugin.", + "key": "literal:self", + "record": { + "type": "object", + "required": [ + "permissions" + ], + "properties": { + "db": { + "type": "ref", + "ref": "app.ocho.plugin.defs#db" + }, + "permissions": { + "type": "array", + "description": "Additional metadata for the plugin, including Expo client and Go configurations.", + "items": { + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_push_register.json b/crates/jacquard-api/lexicons/app_ocho_push_register.json new file mode 100644 index 00000000..3280c01c --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_push_register.json @@ -0,0 +1,40 @@ +{ + "lexicon": 1, + "id": "app.ocho.push.register", + "defs": { + "main": { + "type": "procedure", + "description": "Registers for push notifications on a given device.", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "pushToken" + ], + "properties": { + "pushToken": { + "type": "string", + "description": "The expo push token" + } + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "success" + ], + "properties": { + "success": { + "type": "boolean", + "description": "Whether the token was successfully registered." + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_server_getLaunchToken.json b/crates/jacquard-api/lexicons/app_ocho_server_getLaunchToken.json new file mode 100644 index 00000000..1f5ca60d --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_server_getLaunchToken.json @@ -0,0 +1,37 @@ +{ + "lexicon": 1, + "id": "app.ocho.server.getLaunchToken", + "defs": { + "main": { + "type": "query", + "description": "Get a token for a user to launch a service.", + "parameters": { + "type": "params", + "required": [ + "aud" + ], + "properties": { + "aud": { + "type": "string", + "description": "The DID of the service that the user will authenticate with", + "format": "did" + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "token" + ], + "properties": { + "token": { + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_server_getToken.json b/crates/jacquard-api/lexicons/app_ocho_server_getToken.json new file mode 100644 index 00000000..7ddd5f8a --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_server_getToken.json @@ -0,0 +1,37 @@ +{ + "lexicon": 1, + "id": "app.ocho.server.getToken", + "defs": { + "main": { + "type": "query", + "description": "Get a token for a user to authenticate with a service.", + "parameters": { + "type": "params", + "required": [ + "aud" + ], + "properties": { + "aud": { + "type": "string", + "description": "The DID of the service that the user will authenticate with", + "format": "did" + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "token" + ], + "properties": { + "token": { + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_server_swapLaunchToken.json b/crates/jacquard-api/lexicons/app_ocho_server_swapLaunchToken.json new file mode 100644 index 00000000..7085fc88 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_server_swapLaunchToken.json @@ -0,0 +1,47 @@ +{ + "lexicon": 1, + "id": "app.ocho.server.swapLaunchToken", + "defs": { + "main": { + "type": "query", + "description": "Get the auth state for a user from the launch token.", + "parameters": { + "type": "params", + "required": [ + "launchToken" + ], + "properties": { + "launchToken": { + "type": "string", + "description": "The launch token provided by the service" + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "token" + ], + "properties": { + "did": { + "type": "string", + "description": "The did of the user", + "format": "did" + }, + "handle": { + "type": "string" + }, + "name": { + "type": "string" + }, + "token": { + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_state_getConfig.json b/crates/jacquard-api/lexicons/app_ocho_state_getConfig.json new file mode 100644 index 00000000..96a11943 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_state_getConfig.json @@ -0,0 +1,43 @@ +{ + "lexicon": 1, + "id": "app.ocho.state.getConfig", + "defs": { + "main": { + "type": "query", + "description": "Creates a link between a service (hosted on the atproto) and its InstantDB App ID.", + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "id", + "adminToken", + "accountToken" + ], + "properties": { + "accountToken": { + "type": "string", + "description": "The token for the InstantDB account" + }, + "adminToken": { + "type": "string", + "description": "The InstantDB admin token" + }, + "id": { + "type": "string", + "description": "The App ID" + } + } + } + }, + "errors": [ + { + "name": "InvalidID" + }, + { + "name": "InvalidServiceAuth" + } + ] + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/app_ocho_state_login.json b/crates/jacquard-api/lexicons/app_ocho_state_login.json new file mode 100644 index 00000000..ec6fa367 --- /dev/null +++ b/crates/jacquard-api/lexicons/app_ocho_state_login.json @@ -0,0 +1,25 @@ +{ + "lexicon": 1, + "id": "app.ocho.state.login", + "defs": { + "main": { + "type": "query", + "description": "Gets the email code to login on the InstantDB website", + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "code": { + "type": "string", + "description": "The code used to login on the InstantDB website" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/beauty_cybernetic_trustcow_review.json b/crates/jacquard-api/lexicons/beauty_cybernetic_trustcow_review.json new file mode 100644 index 00000000..20aa2122 --- /dev/null +++ b/crates/jacquard-api/lexicons/beauty_cybernetic_trustcow_review.json @@ -0,0 +1,53 @@ +{ + "lexicon": 1, + "id": "beauty.cybernetic.trustcow.review", + "defs": { + "main": { + "type": "record", + "description": "A review connected to a verified transaction, can only be created by one of the transaction parties", + "record": { + "type": "object", + "required": [ + "transaction", + "rating", + "createdAt" + ], + "properties": { + "createdAt": { + "type": "string", + "description": "When the review was created", + "format": "datetime" + }, + "description": { + "type": "string", + "description": "The detailed review text", + "maxLength": 1000 + }, + "rating": { + "type": "integer", + "description": "Rating score from 1 to 5", + "minimum": 1, + "maximum": 5 + }, + "reviewerRole": { + "type": "string", + "description": "Whether this review is from the service provider or consumer", + "knownValues": [ + "serviceProvider", + "serviceConsumer" + ] + }, + "title": { + "type": "string", + "description": "The title of the review", + "maxLength": 100 + }, + "transaction": { + "type": "string", + "description": "AT URI reference to the transaction record (at://did/beauty.cybernetic.trustcow.transaction/rkey)" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/beauty_cybernetic_trustcow_transaction.json b/crates/jacquard-api/lexicons/beauty_cybernetic_trustcow_transaction.json new file mode 100644 index 00000000..96d83ec8 --- /dev/null +++ b/crates/jacquard-api/lexicons/beauty_cybernetic_trustcow_transaction.json @@ -0,0 +1,53 @@ +{ + "lexicon": 1, + "id": "beauty.cybernetic.trustcow.transaction", + "defs": { + "main": { + "type": "record", + "description": "A verified transaction between two ATProto identities that must be stored in both parties' PDS", + "record": { + "type": "object", + "required": [ + "serviceProvider", + "serviceConsumer", + "transactionId", + "createdAt" + ], + "properties": { + "amount": { + "type": "string", + "description": "Transaction amount (optional, in whatever currency applies)" + }, + "createdAt": { + "type": "string", + "description": "When the transaction occurred", + "format": "datetime" + }, + "currency": { + "type": "string", + "description": "Currency code (optional, e.g. USD, EUR, BTC)", + "maxLength": 10 + }, + "description": { + "type": "string", + "description": "Description of the service or product transacted", + "maxLength": 500 + }, + "serviceConsumer": { + "type": "string", + "description": "DID of the service consumer identity" + }, + "serviceProvider": { + "type": "string", + "description": "DID of the service provider identity" + }, + "transactionId": { + "type": "string", + "description": "Unique identifier for this transaction, must be identical in both parties' records", + "maxLength": 128 + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/beauty_cybernetic_trustcow_warrant.json b/crates/jacquard-api/lexicons/beauty_cybernetic_trustcow_warrant.json new file mode 100644 index 00000000..5bafdc1f --- /dev/null +++ b/crates/jacquard-api/lexicons/beauty_cybernetic_trustcow_warrant.json @@ -0,0 +1,59 @@ +{ + "lexicon": 1, + "id": "beauty.cybernetic.trustcow.warrant", + "defs": { + "main": { + "type": "record", + "description": "A warrant where one ATProto identity vouches for the trustworthiness of another identity", + "record": { + "type": "object", + "required": [ + "subject", + "createdAt" + ], + "properties": { + "createdAt": { + "type": "string", + "description": "When the warrant was created", + "format": "datetime" + }, + "description": { + "type": "string", + "description": "Optional description explaining the basis for this warrant", + "maxLength": 300 + }, + "expiresAt": { + "type": "string", + "description": "Optional expiration date for this warrant", + "format": "datetime" + }, + "subject": { + "type": "string", + "description": "DID of the identity being warranted for" + }, + "trustLevel": { + "type": "string", + "description": "Level of trust being warranted", + "knownValues": [ + "basic", + "verified", + "trusted", + "highly-trusted" + ] + }, + "warrantType": { + "type": "string", + "description": "Type of warrant being provided", + "knownValues": [ + "general", + "business", + "individual", + "technical", + "financial" + ] + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/blue_2048_defs.json b/crates/jacquard-api/lexicons/blue_2048_defs.json new file mode 100644 index 00000000..2ae00755 --- /dev/null +++ b/crates/jacquard-api/lexicons/blue_2048_defs.json @@ -0,0 +1,36 @@ +{ + "lexicon": 1, + "id": "blue.2048.defs", + "description": "Reusable types for blue.2048 lexicons", + "defs": { + "syncStatus": { + "type": "object", + "description": "The sync status for a record used to help sync between your ATProto record and local record.", + "required": [ + "hash", + "updatedAt", + "createdAt", + "syncedWithATRepo" + ], + "properties": { + "createdAt": { + "type": "string", + "format": "datetime" + }, + "hash": { + "type": "string", + "description": "A XXH3 hash of the record to tell if anything has changed" + }, + "syncedWithATRepo": { + "type": "boolean", + "description": "A flag to know if it has been synced with the AT repo. Used mostly client side to filter what records need syncing", + "default": false + }, + "updatedAt": { + "type": "string", + "format": "datetime" + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/blue_2048_game.json b/crates/jacquard-api/lexicons/blue_2048_game.json new file mode 100644 index 00000000..efc42e67 --- /dev/null +++ b/crates/jacquard-api/lexicons/blue_2048_game.json @@ -0,0 +1,52 @@ +{ + "lexicon": 1, + "id": "blue.2048.game", + "defs": { + "main": { + "type": "record", + "description": "A declaration of an instance of a at://2048 game", + "key": "tid", + "record": { + "type": "object", + "required": [ + "currentScore", + "won", + "completed", + "seededRecording", + "syncStatus", + "createdAt" + ], + "properties": { + "completed": { + "type": "boolean", + "description": "The player no longer has any moves left", + "default": false + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "currentScore": { + "type": "integer", + "description": "The game's current score", + "default": 0 + }, + "seededRecording": { + "type": "string", + "description": "This is the recording of the game. Like chess notation, but for 2048" + }, + "syncStatus": { + "type": "ref", + "description": "The sync status of this record with the users AT Protocol repo.", + "ref": "blue.2048.defs#syncStatus" + }, + "won": { + "type": "boolean", + "description": "The player has found a 2048 tile (they have won)", + "default": false + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/blue_2048_key_defs.json b/crates/jacquard-api/lexicons/blue_2048_key_defs.json new file mode 100644 index 00000000..c28be97b --- /dev/null +++ b/crates/jacquard-api/lexicons/blue_2048_key_defs.json @@ -0,0 +1,48 @@ +{ + "lexicon": 1, + "id": "blue.2048.key.defs", + "description": "Reusable types for an at://2048 authority to provide public did:keys and signatures for verification", + "defs": { + "key": { + "type": "object", + "description": "A record that holds a did:key used to verify records. Use the collection to know the type of verification. Example blue.2048.key.game is for blue.2048.game records", + "required": [ + "key", + "createdAt" + ], + "properties": { + "createdAt": { + "type": "string", + "format": "datetime" + }, + "key": { + "type": "string", + "description": "A did:key used to verify records came from an at://2048 authority" + } + } + }, + "signatureRef": { + "type": "object", + "description": "a signature for an at://2048 record meaning it has been verified by a service. Most likely @2048.blue", + "required": [ + "atURI", + "signature", + "createdAt" + ], + "properties": { + "atURI": { + "type": "string", + "description": "The at://uri for the public did:key to verify this record. This also counts as the authority of the verification (example @2048.blue). As well as the type of verification by the collection name (blue.2048.key.game)." + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "signature": { + "type": "string", + "description": "The public verifiable signature of the record. Serialization of the records value minus the signature field" + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/blue_2048_key_game.json b/crates/jacquard-api/lexicons/blue_2048_key_game.json new file mode 100644 index 00000000..3cc748c6 --- /dev/null +++ b/crates/jacquard-api/lexicons/blue_2048_key_game.json @@ -0,0 +1,29 @@ +{ + "lexicon": 1, + "id": "blue.2048.key.game", + "defs": { + "main": { + "type": "record", + "description": "A record that holds a did:key for verifying a players game. This is intended to be written at a verification authorities repo", + "key": "literal:self", + "record": { + "type": "object", + "required": [ + "key", + "createdAt" + ], + "properties": { + "createdAt": { + "type": "string", + "format": "datetime" + }, + "key": { + "type": "ref", + "description": "A did:key that is used to verify an at://2048 authority has verified this game to a certain degree", + "ref": "blue.2048.key.defs#key" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/blue_2048_key_player_stats.json b/crates/jacquard-api/lexicons/blue_2048_key_player_stats.json new file mode 100644 index 00000000..0c909a8c --- /dev/null +++ b/crates/jacquard-api/lexicons/blue_2048_key_player_stats.json @@ -0,0 +1,29 @@ +{ + "lexicon": 1, + "id": "blue.2048.key.player.stats", + "defs": { + "main": { + "type": "record", + "description": "A record that holds a did:key for verifying a players stats. This is intended to be written at a verification authorities repo", + "key": "literal:self", + "record": { + "type": "object", + "required": [ + "key", + "createdAt" + ], + "properties": { + "createdAt": { + "type": "string", + "format": "datetime" + }, + "key": { + "type": "ref", + "description": "A did:key that is used to verify an at://2048 authority has verified this players stats to a certain degree", + "ref": "blue.2048.key.defs#key" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/blue_2048_player_profile.json b/crates/jacquard-api/lexicons/blue_2048_player_profile.json new file mode 100644 index 00000000..fc219275 --- /dev/null +++ b/crates/jacquard-api/lexicons/blue_2048_player_profile.json @@ -0,0 +1,35 @@ +{ + "lexicon": 1, + "id": "blue.2048.player.profile", + "defs": { + "main": { + "type": "record", + "description": "A declaration of a at://2048 player's profile", + "key": "literal:self", + "record": { + "type": "object", + "required": [ + "soloPlay", + "syncStatus", + "createdAt" + ], + "properties": { + "createdAt": { + "type": "string", + "format": "datetime" + }, + "soloPlay": { + "type": "boolean", + "description": "Does not want to show up anywhere. Keep stats to your PDS.", + "default": false + }, + "syncStatus": { + "type": "ref", + "description": "The sync status of this record with the users AT Protocol repo.", + "ref": "blue.2048.defs#syncStatus" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/blue_2048_player_stats.json b/crates/jacquard-api/lexicons/blue_2048_player_stats.json new file mode 100644 index 00000000..d4413b0b --- /dev/null +++ b/crates/jacquard-api/lexicons/blue_2048_player_stats.json @@ -0,0 +1,71 @@ +{ + "lexicon": 1, + "id": "blue.2048.player.stats", + "defs": { + "main": { + "type": "record", + "description": "A declaration of a at://2048 player's stats over the course of their playtime", + "key": "literal:self", + "record": { + "type": "object", + "required": [ + "highestScore", + "gamesPlayed", + "totalScore", + "highestNumberBlock", + "timesTwentyFortyEightBeenFound", + "leastMovesToFindTwentyFortyEight", + "averageScore", + "syncStatus", + "createdAt" + ], + "properties": { + "averageScore": { + "type": "integer", + "description": "Average score across all games", + "default": 0 + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "gamesPlayed": { + "type": "integer", + "description": "Total numbers of games the user has played", + "default": 0 + }, + "highestNumberBlock": { + "type": "integer", + "description": "The highest number block the player has fround. example 128, 256, etc", + "default": 0 + }, + "highestScore": { + "type": "integer", + "description": "The highest score the user has gotten in a game", + "default": 0 + }, + "leastMovesToFindTwentyFortyEight": { + "type": "integer", + "description": "The smallest number of moves to get the 2048 block", + "default": 0 + }, + "syncStatus": { + "type": "ref", + "description": "The sync status of this record with the users AT Protocol repo.", + "ref": "blue.2048.defs#syncStatus" + }, + "timesTwentyFortyEightBeenFound": { + "type": "integer", + "description": "Times the 2048 block has been found also count as wins", + "default": 0 + }, + "totalScore": { + "type": "integer", + "description": "Total score across all games", + "default": 0 + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/blue_2048_verification_defs.json b/crates/jacquard-api/lexicons/blue_2048_verification_defs.json new file mode 100644 index 00000000..75e73c05 --- /dev/null +++ b/crates/jacquard-api/lexicons/blue_2048_verification_defs.json @@ -0,0 +1,43 @@ +{ + "lexicon": 1, + "id": "blue.2048.verification.defs", + "description": "Reusable types for an at://2048 authority to prove that it has verified a record ", + "defs": { + "verificationRef": { + "type": "object", + "description": "Holds the signature for another record showing it has verified it to the best of it's ability and it should be trusted if the signatures match.", + "required": [ + "keyRef", + "recordRef", + "subject", + "signature", + "createdAt" + ], + "properties": { + "createdAt": { + "type": "string", + "format": "datetime" + }, + "keyRef": { + "type": "string", + "description": "The at://uri for the public did:key to verify the remote record. This also counts as the authority of the verification (example @2048.blue). As well as the type of verification by the collection name (blue.2048.key.game).", + "format": "at-uri" + }, + "recordRef": { + "type": "string", + "description": "The at://uri for the record that is being verified.", + "format": "at-uri" + }, + "signature": { + "type": "string", + "description": "The public verifiable signature of the record. Serialization of the records valued" + }, + "subject": { + "type": "string", + "description": "DID of the subject the verification applies to.", + "format": "did" + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/blue_2048_verification_game.json b/crates/jacquard-api/lexicons/blue_2048_verification_game.json new file mode 100644 index 00000000..10370b2f --- /dev/null +++ b/crates/jacquard-api/lexicons/blue_2048_verification_game.json @@ -0,0 +1,25 @@ +{ + "lexicon": 1, + "id": "blue.2048.verification.game", + "defs": { + "main": { + "type": "record", + "description": "A record that holds a verification of a game record saying the owner of the repo has verified that it is a valid game played.", + "key": "tid", + "record": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "datetime" + }, + "verifiedRef": { + "type": "ref", + "description": "This is the record that holds the publicly verifiable signature of a game record", + "ref": "blue.2048.verification.defs#verificationRef" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/blue_2048_verification_stats.json b/crates/jacquard-api/lexicons/blue_2048_verification_stats.json new file mode 100644 index 00000000..a95bb2cc --- /dev/null +++ b/crates/jacquard-api/lexicons/blue_2048_verification_stats.json @@ -0,0 +1,25 @@ +{ + "lexicon": 1, + "id": "blue.2048.verification.stats", + "defs": { + "main": { + "type": "record", + "description": "A record that holds a verification of a stats record saying the owner of the repo has verified that it is a valid and most likely not tampered with.", + "key": "tid", + "record": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "datetime" + }, + "verifiedRef": { + "type": "ref", + "description": "This is the record that holds the publicly verifiable signature of a stats record", + "ref": "blue.2048.verification.defs#verificationRef" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/blue_atplane_favClient.json b/crates/jacquard-api/lexicons/blue_atplane_favClient.json new file mode 100644 index 00000000..35b37107 --- /dev/null +++ b/crates/jacquard-api/lexicons/blue_atplane_favClient.json @@ -0,0 +1,24 @@ +{ + "lexicon": 1, + "id": "blue.atplane.favClient", + "defs": { + "main": { + "type": "record", + "description": "A declaration of a favorite client.", + "key": "literal:self", + "record": { + "type": "object", + "required": [ + "favClient" + ], + "properties": { + "favClient": { + "type": "string", + "description": "Set to your favorite client.", + "maxLength": 32 + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/blue_rito_feed_bookmark.json b/crates/jacquard-api/lexicons/blue_rito_feed_bookmark.json deleted file mode 100644 index 89ff4421..00000000 --- a/crates/jacquard-api/lexicons/blue_rito_feed_bookmark.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "lexicon": 1, - "id": "blue.rito.feed.bookmark", - "defs": { - "locale": { - "type": "object", - "required": [ - "lang", - "title" - ], - "properties": { - "comment": { - "type": "string", - "description": "URI's comment. It can use GitHub Flavored Markdown.", - "maxLength": 100000, - "maxGraphemes": 10000 - }, - "lang": { - "type": "string", - "description": "Comments Language", - "maxLength": 6, - "enum": [ - "ja", - "en" - ] - }, - "title": { - "type": "string", - "description": "URI's title", - "maxLength": 500, - "maxGraphemes": 50 - } - } - }, - "main": { - "type": "record", - "description": "Records a bookmark.", - "key": "tid", - "record": { - "type": "object", - "required": [ - "comments", - "subject", - "createdAt" - ], - "properties": { - "comments": { - "type": "array", - "description": "Title and comment in different languages.", - "items": { - "type": "ref", - "ref": "blue.rito.feed.bookmark#locale" - }, - "minLength": 1 - }, - "createdAt": { - "type": "string", - "format": "datetime" - }, - "ogpDescription": { - "type": "string", - "description": "OGP Description" - }, - "ogpImage": { - "type": "string", - "description": "OGP Image Uri", - "format": "uri" - }, - "ogpTitle": { - "type": "string", - "description": "OGP Title" - }, - "subject": { - "type": "string", - "format": "uri" - }, - "tags": { - "type": "array", - "description": "Tags describing the uri's description (max 10 tags, 25 charactors)", - "items": { - "type": "string", - "minLength": 1, - "maxLength": 250, - "minGraphemes": 1, - "maxGraphemes": 25 - }, - "maxLength": 10 - } - } - } - } - } -} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/blue_rito_service_getSchema.json b/crates/jacquard-api/lexicons/blue_rito_service_getSchema.json deleted file mode 100644 index 3d9b38ca..00000000 --- a/crates/jacquard-api/lexicons/blue_rito_service_getSchema.json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "lexicon": 1, - "id": "blue.rito.service.getSchema", - "defs": { - "langs": { - "type": "object", - "required": [ - "lang", - "title", - "moderation" - ], - "properties": { - "comment": { - "type": "string" - }, - "lang": { - "type": "string" - }, - "moderation": { - "type": "array", - "items": { - "type": "string" - } - }, - "title": { - "type": "string" - } - } - }, - "main": { - "type": "procedure", - "description": "Get Bookmark by NSID, including schema, OGP, tags, moderation, and comments.", - "input": { - "encoding": "application/json", - "schema": { - "type": "object", - "required": [ - "nsid" - ], - "properties": { - "nsid": { - "type": "string" - } - } - } - }, - "output": { - "description": "Returns the Bookmark data for the given NSID.", - "encoding": "application/json", - "schema": { - "type": "object", - "required": [ - "nsid", - "schema", - "moderations", - "comments", - "verified" - ], - "properties": { - "comments": { - "type": "array", - "description": "Comments with titles, content, and moderation in multiple languages.", - "items": { - "type": "ref", - "ref": "blue.rito.service.getSchema#langs" - } - }, - "moderations": { - "type": "array", - "description": "Moderation result for OGP title and description", - "items": { - "type": "string" - } - }, - "nsid": { - "type": "string", - "description": "Namespace ID of the service or application (e.g., 'uk.skyblur.post')." - }, - "ogpDescription": { - "type": "string", - "description": "The Open Graph Protocol (OGP) description for the bookmark." - }, - "ogpImage": { - "type": "string", - "description": "The Open Graph Protocol (OGP) image URL for the bookmark.", - "format": "uri" - }, - "ogpTitle": { - "type": "string", - "description": "The Open Graph Protocol (OGP) title for the bookmark." - }, - "schema": { - "type": "string", - "description": "The schema URL pattern associated with this NSID (e.g., 'https://skyblur.uk/post/{did}/{rkey}')." - }, - "tags": { - "type": "array", - "description": "This field contains tags. If registered by the owner, it may include 'Verified'.", - "items": { - "type": "string" - } - }, - "verified": { - "type": "boolean", - "description": "If this comment registed by owner, this field should be true." - } - } - } - } - } - } -} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/blue_rito_service_schema.json b/crates/jacquard-api/lexicons/blue_rito_service_schema.json deleted file mode 100644 index 48163c63..00000000 --- a/crates/jacquard-api/lexicons/blue_rito_service_schema.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "lexicon": 1, - "id": "blue.rito.service.schema", - "defs": { - "main": { - "type": "record", - "description": "This record defines the schema associated with a specific NSID.", - "key": "nsid", - "record": { - "type": "object", - "required": [ - "schema" - ], - "properties": { - "schema": { - "type": "string", - "description": "The AppView URL for the NSID. For example, if the NSID is uk.skyblur.post, the URL should be https://skyblur.uk/post/{did}/{rkey}", - "format": "uri" - } - } - } - } - } -} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/club_stellz_evm_addressControl.json b/crates/jacquard-api/lexicons/club_stellz_evm_addressControl.json new file mode 100644 index 00000000..d8e77782 --- /dev/null +++ b/crates/jacquard-api/lexicons/club_stellz_evm_addressControl.json @@ -0,0 +1,93 @@ +{ + "lexicon": 1, + "id": "club.stellz.evm.addressControl", + "defs": { + "main": { + "type": "object", + "required": [ + "address", + "signature", + "siwe" + ], + "properties": { + "address": { + "type": "bytes", + "description": "Ethereum address as bytes (20 bytes)" + }, + "alsoOn": { + "type": "array", + "description": "List of all Chain IDs (besides the one in the sign-in message, though you can include it) that the holder of this address is also active on & accepts tokens thru.", + "items": { + "type": "integer", + "description": "Chain ID of a Ethereum VM network" + } + }, + "signature": { + "type": "bytes", + "description": "Sign in With Ethereum message signature as bytes" + }, + "siwe": { + "type": "ref", + "ref": "#siweMessage" + } + } + }, + "siweMessage": { + "type": "object", + "required": [ + "domain", + "address", + "statement", + "uri", + "version", + "chainId", + "nonce", + "issuedAt" + ], + "properties": { + "address": { + "type": "string", + "description": "Ethereum address in 0x-prefixed, checksummed hex format", + "minLength": 42, + "maxLength": 42 + }, + "chainId": { + "type": "integer", + "description": "Chain ID of the Ethereum VM network the address is on" + }, + "domain": { + "type": "string", + "description": "Domain of the application requesting the signature, e.g. 'wallet-link.stellz.club'" + }, + "issuedAt": { + "type": "string", + "description": "Timestamp when the message was signed", + "format": "datetime" + }, + "nonce": { + "type": "string", + "description": "Random nonce the message was signed with", + "minLength": 8, + "maxLength": 256 + }, + "statement": { + "type": "string", + "description": "The message shown to the user in their wallet before signing, which MUST be of the format 'Prove control of ${address} to link it to ${did}', where ${address} is the linked Ethereum address in 0x-prefixed, checksummed hex format, and ${did} is the DID of the user.", + "minLength": 78 + }, + "uri": { + "type": "string", + "description": "URI of the application requesting the signature, e.g. 'https://wallet-link.stellz.club'", + "format": "uri" + }, + "version": { + "type": "string", + "description": "Sign in With Ethereum message version", + "enum": [ + "1" + ] + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/com_crabdance_nandi_post.json b/crates/jacquard-api/lexicons/com_crabdance_nandi_post.json new file mode 100644 index 00000000..4cce5869 --- /dev/null +++ b/crates/jacquard-api/lexicons/com_crabdance_nandi_post.json @@ -0,0 +1,59 @@ +{ + "lexicon": 1, + "id": "com.crabdance.nandi.post", + "defs": { + "main": { + "type": "record", + "key": "tid", + "record": { + "type": "object", + "required": [ + "title", + "content", + "createdAt" + ], + "properties": { + "content": { + "type": "string", + "description": "The main content of the blog post in markdown", + "minLength": 1, + "maxLength": 10000 + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "published": { + "type": "boolean", + "description": "Whether the post is published or draft", + "default": false + }, + "summary": { + "type": "string", + "description": "Optional summary/excerpt of the post", + "maxLength": 500 + }, + "tags": { + "type": "array", + "description": "Tags for categorizing the post", + "items": { + "type": "string", + "maxLength": 50 + }, + "maxLength": 10 + }, + "title": { + "type": "string", + "description": "The title of the blog post", + "minLength": 1, + "maxLength": 200 + }, + "updatedAt": { + "type": "string", + "format": "datetime" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/com_welistskyblue_list_collection.json b/crates/jacquard-api/lexicons/com_welistskyblue_list_collection.json deleted file mode 100644 index e78492d2..00000000 --- a/crates/jacquard-api/lexicons/com_welistskyblue_list_collection.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "lexicon": 1, - "id": "com.welistskyblue.list.collection", - "description": "A record that holds a collection of active task AT-URIs for a user.", - "defs": { - "main": { - "type": "record", - "key": "self", - "record": { - "type": "object", - "required": [ - "uris", - "createdAt" - ], - "properties": { - "createdAt": { - "type": "string", - "format": "datetime" - }, - "updatedAt": { - "type": "string", - "format": "datetime" - }, - "uris": { - "type": "array", - "description": "List of AT-URIs controlled by the user.", - "items": { - "type": "string", - "format": "at-uri" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/com_welistskyblue_list_comment.json b/crates/jacquard-api/lexicons/com_welistskyblue_list_comment.json deleted file mode 100644 index 6ca56144..00000000 --- a/crates/jacquard-api/lexicons/com_welistskyblue_list_comment.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "lexicon": 1, - "id": "com.welistskyblue.list.comment", - "description": "A comment attached to a task item.", - "defs": { - "main": { - "type": "record", - "key": "tid", - "record": { - "type": "object", - "required": [ - "item", - "text", - "createdAt" - ], - "properties": { - "createdAt": { - "type": "string", - "format": "datetime" - }, - "deletedAt": { - "type": "string", - "format": "datetime" - }, - "item": { - "type": "ref", - "description": "Strong reference to the task item being commented on.", - "ref": "strong" - }, - "text": { - "type": "string", - "description": "Comment text.", - "maxLength": 640, - "maxGraphemes": 64 - }, - "updatedAt": { - "type": "string", - "format": "datetime" - } - } - } - } - } -} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/com_welistskyblue_list_item.json b/crates/jacquard-api/lexicons/com_welistskyblue_list_item.json deleted file mode 100644 index 93d5aa2e..00000000 --- a/crates/jacquard-api/lexicons/com_welistskyblue_list_item.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "lexicon": 1, - "id": "com.welistskyblue.list.item", - "description": "A task record with name, status, and timestamps.", - "defs": { - "main": { - "type": "record", - "key": "tid", - "record": { - "type": "object", - "required": [ - "name", - "status", - "createdAt" - ], - "properties": { - "createdAt": { - "type": "string", - "format": "datetime" - }, - "deletedAt": { - "type": "string", - "format": "datetime" - }, - "name": { - "type": "string", - "description": "Task name/title.", - "maxLength": 640, - "maxGraphemes": 64 - }, - "status": { - "type": "string", - "description": "Task status.", - "default": "ongoing", - "enum": [ - "ongoing", - "done" - ] - }, - "updatedAt": { - "type": "string", - "format": "datetime" - } - } - } - } - } -} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/com_welistskyblue_list_like.json b/crates/jacquard-api/lexicons/com_welistskyblue_list_like.json deleted file mode 100644 index 70155997..00000000 --- a/crates/jacquard-api/lexicons/com_welistskyblue_list_like.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "lexicon": 1, - "id": "com.welistskyblue.list.like", - "defs": { - "main": { - "type": "record", - "description": "Record declaring a 'like' of a com.welistskyblue.list.item record.", - "key": "tid", - "record": { - "type": "object", - "required": [ - "subject", - "createdAt" - ], - "properties": { - "createdAt": { - "type": "string", - "format": "datetime" - }, - "subject": { - "type": "ref", - "ref": "com.atproto.repo.strongRef" - } - } - } - } - } -} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/com_welistskyblue_list_congrats.json b/crates/jacquard-api/lexicons/dev_baileytownsend_health_calories.json similarity index 53% rename from crates/jacquard-api/lexicons/com_welistskyblue_list_congrats.json rename to crates/jacquard-api/lexicons/dev_baileytownsend_health_calories.json index d8d7a7f7..5552e55c 100644 --- a/crates/jacquard-api/lexicons/com_welistskyblue_list_congrats.json +++ b/crates/jacquard-api/lexicons/dev_baileytownsend_health_calories.json @@ -1,25 +1,28 @@ { "lexicon": 1, - "id": "com.welistskyblue.list.congrats", + "id": "dev.baileytownsend.health.calories", "defs": { "main": { "type": "record", - "description": "Record declaring a 'congrats' of a completed com.welistskyblue.list.item record.", - "key": "tid", + "description": "A record of daily intake and burned calories.", + "key": "any", "record": { "type": "object", "required": [ - "subject", + "intake", + "burned", "createdAt" ], "properties": { + "burned": { + "type": "integer" + }, "createdAt": { "type": "string", "format": "datetime" }, - "subject": { - "type": "ref", - "ref": "com.atproto.repo.strongRef" + "intake": { + "type": "integer" } } } diff --git a/crates/jacquard-api/lexicons/dev_baileytownsend_health_rings.json b/crates/jacquard-api/lexicons/dev_baileytownsend_health_rings.json new file mode 100644 index 00000000..ca6d4501 --- /dev/null +++ b/crates/jacquard-api/lexicons/dev_baileytownsend_health_rings.json @@ -0,0 +1,53 @@ +{ + "lexicon": 1, + "id": "dev.baileytownsend.health.rings", + "defs": { + "main": { + "type": "record", + "description": "A record of daily activity rings (Apple Fitness), including move, exercise, and stand goals.", + "key": "any", + "record": { + "type": "object", + "required": [ + "move", + "moveGoal", + "exercise", + "exerciseGoal", + "standHours", + "standGoal", + "createdAt" + ], + "properties": { + "createdAt": { + "type": "string", + "format": "datetime" + }, + "exercise": { + "type": "integer", + "description": "The total minutes of exercise completed." + }, + "exerciseGoal": { + "type": "integer", + "description": "The daily exercise goal in minutes." + }, + "move": { + "type": "integer", + "description": "The total active calories burned for the day." + }, + "moveGoal": { + "type": "integer", + "description": "The daily move goal in calories." + }, + "standGoal": { + "type": "integer", + "description": "The daily stand goal in hours." + }, + "standHours": { + "type": "integer", + "description": "The number of hours the user stood up and moved around." + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/did:plc:jh6yfs5dk47kykvhp7r6qwrb.json b/crates/jacquard-api/lexicons/dev_baileytownsend_health_steps.json similarity index 60% rename from crates/jacquard-api/lexicons/did:plc:jh6yfs5dk47kykvhp7r6qwrb.json rename to crates/jacquard-api/lexicons/dev_baileytownsend_health_steps.json index c8c70d09..0fe41fd2 100644 --- a/crates/jacquard-api/lexicons/did:plc:jh6yfs5dk47kykvhp7r6qwrb.json +++ b/crates/jacquard-api/lexicons/dev_baileytownsend_health_steps.json @@ -1,15 +1,14 @@ { "lexicon": 1, - "id": "did:plc:jh6yfs5dk47kykvhp7r6qwrb", - "description": "A test schema to probe parser behavior.", + "id": "dev.baileytownsend.health.steps", "defs": { "main": { "type": "record", - "key": "tid", + "key": "any", "record": { "type": "object", "required": [ - "text", + "steps", "createdAt" ], "properties": { @@ -17,9 +16,8 @@ "type": "string", "format": "datetime" }, - "text": { - "type": "string", - "maxLength": 1024 + "steps": { + "type": "integer" } } } diff --git a/crates/jacquard-api/lexicons/dev_baileytownsend_health_workout.json b/crates/jacquard-api/lexicons/dev_baileytownsend_health_workout.json new file mode 100644 index 00000000..93a68259 --- /dev/null +++ b/crates/jacquard-api/lexicons/dev_baileytownsend_health_workout.json @@ -0,0 +1,51 @@ +{ + "lexicon": 1, + "id": "dev.baileytownsend.health.workout", + "defs": { + "main": { + "type": "record", + "key": "any", + "record": { + "type": "object", + "required": [ + "activity", + "caloriesBurned", + "duration", + "startTime", + "endTime", + "createdAt" + ], + "properties": { + "activity": { + "type": "string", + "description": "Type of activity. Walking, running, weights, etc." + }, + "caloriesBurned": { + "type": "integer", + "description": "Active calories burned during the workout." + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "distance": { + "type": "string", + "description": "Distance covered during the workout (optional)." + }, + "duration": { + "type": "string", + "description": "How long the workout lasted in minutes." + }, + "endTime": { + "type": "string", + "format": "datetime" + }, + "startTime": { + "type": "string", + "format": "datetime" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/dev_fudgeu_experimental_atforumv1_feed_post.json b/crates/jacquard-api/lexicons/dev_fudgeu_experimental_atforumv1_feed_post.json new file mode 100644 index 00000000..6caadeec --- /dev/null +++ b/crates/jacquard-api/lexicons/dev_fudgeu_experimental_atforumv1_feed_post.json @@ -0,0 +1,63 @@ +{ + "lexicon": 1, + "id": "dev.fudgeu.experimental.atforumv1.feed.post", + "defs": { + "main": { + "type": "record", + "description": "An initial post that starts a discussion", + "key": "tid", + "record": { + "type": "object", + "required": [ + "title", + "content", + "createdAt", + "category", + "forum", + "tags" + ], + "properties": { + "category": { + "type": "string", + "format": "at-uri" + }, + "content": { + "type": "string", + "minLength": 1, + "maxLength": 10000 + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "forum": { + "type": "string", + "format": "at-identifier" + }, + "solution": { + "type": "string", + "format": "at-uri" + }, + "tags": { + "type": "array", + "items": { + "type": "string", + "minLength": 1, + "maxLength": 25 + }, + "maxLength": 20 + }, + "title": { + "type": "string", + "minLength": 1, + "maxLength": 100 + }, + "updatedAt": { + "type": "string", + "format": "datetime" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/dev_fudgeu_experimental_atforumv1_forum_announcement.json b/crates/jacquard-api/lexicons/dev_fudgeu_experimental_atforumv1_forum_announcement.json new file mode 100644 index 00000000..de16ae47 --- /dev/null +++ b/crates/jacquard-api/lexicons/dev_fudgeu_experimental_atforumv1_forum_announcement.json @@ -0,0 +1,40 @@ +{ + "lexicon": 1, + "id": "dev.fudgeu.experimental.atforumv1.forum.announcement", + "defs": { + "main": { + "type": "record", + "description": "A forum-wide announcement", + "key": "any", + "record": { + "type": "object", + "required": [ + "title", + "body", + "createdAt", + "expiresAt" + ], + "properties": { + "body": { + "type": "string", + "minLength": 1, + "maxLength": 10000 + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "expiresAt": { + "type": "string", + "format": "datetime" + }, + "title": { + "type": "string", + "minLength": 1, + "maxLength": 100 + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/dev_fudgeu_experimental_atforumv1_forum_category.json b/crates/jacquard-api/lexicons/dev_fudgeu_experimental_atforumv1_forum_category.json new file mode 100644 index 00000000..dc359aa5 --- /dev/null +++ b/crates/jacquard-api/lexicons/dev_fudgeu_experimental_atforumv1_forum_category.json @@ -0,0 +1,41 @@ +{ + "lexicon": 1, + "id": "dev.fudgeu.experimental.atforumv1.forum.category", + "defs": { + "main": { + "type": "record", + "description": "A method of grouping posts into a single 'category'", + "key": "any", + "record": { + "type": "object", + "required": [ + "name", + "group", + "categoryType" + ], + "properties": { + "categoryType": { + "type": "string", + "enum": [ + "discussion", + "question" + ] + }, + "description": { + "type": "string", + "maxLength": 300 + }, + "group": { + "type": "string", + "format": "at-uri" + }, + "name": { + "type": "string", + "minLength": 1, + "maxLength": 100 + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/lol_atmo_link.json b/crates/jacquard-api/lexicons/dev_fudgeu_experimental_atforumv1_forum_group.json similarity index 55% rename from crates/jacquard-api/lexicons/lol_atmo_link.json rename to crates/jacquard-api/lexicons/dev_fudgeu_experimental_atforumv1_forum_group.json index 1710bfd0..6a6a5760 100644 --- a/crates/jacquard-api/lexicons/lol_atmo_link.json +++ b/crates/jacquard-api/lexicons/dev_fudgeu_experimental_atforumv1_forum_group.json @@ -1,26 +1,25 @@ { "lexicon": 1, - "id": "lol.atmo.link", + "id": "dev.fudgeu.experimental.atforumv1.forum.group", "defs": { "main": { "type": "record", - "key": "tid", + "description": "Defines a group of categories", + "key": "any", "record": { "type": "object", "required": [ - "short", - "url" + "name" ], "properties": { - "short": { + "description": { "type": "string", - "minLength": 1, - "maxLength": 32 + "maxLength": 300 }, - "url": { + "name": { "type": "string", "minLength": 1, - "maxLength": 2048 + "maxLength": 100 } } } diff --git a/crates/jacquard-api/lexicons/dev_fudgeu_experimental_atforumv1_forum_identity.json b/crates/jacquard-api/lexicons/dev_fudgeu_experimental_atforumv1_forum_identity.json new file mode 100644 index 00000000..7d3927b6 --- /dev/null +++ b/crates/jacquard-api/lexicons/dev_fudgeu_experimental_atforumv1_forum_identity.json @@ -0,0 +1,32 @@ +{ + "lexicon": 1, + "id": "dev.fudgeu.experimental.atforumv1.forum.identity", + "defs": { + "main": { + "type": "record", + "description": "Defines what the forum is - name, description, etc.", + "key": "literal:self", + "record": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "accent": { + "type": "string", + "minLength": 7, + "maxLength": 7 + }, + "description": { + "type": "string", + "maxLength": 300 + }, + "name": { + "type": "string", + "maxLength": 100 + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/dev_ocbwoy3_dotsyncd_config.json b/crates/jacquard-api/lexicons/dev_ocbwoy3_dotsyncd_config.json deleted file mode 100644 index 2a156eac..00000000 --- a/crates/jacquard-api/lexicons/dev_ocbwoy3_dotsyncd_config.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "lexicon": 1, - "id": "dev.ocbwoy3.dotsyncd.config", - "description": "This record defines a configuration used by dotsyncd", - "defs": { - "config": { - "type": "object", - "description": "Describes custom configuration for your rice. You must implement your own settings JSON schema.", - "required": [], - "properties": {} - }, - "dependencies": { - "type": "array", - "description": "All dependencies for the configuration", - "items": { - "type": "union", - "refs": [ - "dev.ocbwoy3.dotsyncd.refsDependency#hyprland", - "dev.ocbwoy3.dotsyncd.refsDependency#tangledRepo", - "dev.ocbwoy3.dotsyncd.refsDependency#distro" - ] - } - }, - "main": { - "type": "record", - "key": "any", - "record": { - "type": "object", - "required": [ - "name", - "config", - "createdAt", - "updatedAt", - "dependencies" - ], - "properties": { - "config": { - "type": "ref", - "description": "The configuration details", - "ref": "#config" - }, - "createdAt": { - "type": "string", - "description": "The date and time when the config was created", - "format": "datetime" - }, - "dependencies": { - "type": "ref", - "description": "Dependencies required for this config", - "ref": "#dependencies" - }, - "description": { - "type": "string", - "description": "The description for config", - "maxLength": 2000 - }, - "name": { - "type": "string", - "description": "The name of the config (e.g. Main)", - "minLength": 1, - "maxLength": 100 - }, - "updatedAt": { - "type": "string", - "description": "The date and time when the config was last updated", - "format": "datetime" - } - } - } - } - } -} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/dev_ocbwoy3_dotsyncd_device.json b/crates/jacquard-api/lexicons/dev_ocbwoy3_dotsyncd_device.json deleted file mode 100644 index ba3c0ad4..00000000 --- a/crates/jacquard-api/lexicons/dev_ocbwoy3_dotsyncd_device.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "lexicon": 1, - "id": "dev.ocbwoy3.dotsyncd.device", - "description": "This record defines a device connected to dotsyncd", - "defs": { - "distro": { - "type": "object", - "required": [ - "name", - "id" - ], - "properties": { - "id": { - "type": "string", - "description": "The ID of the Linux distribution (e.g. nixos, gentoo)", - "minLength": 1, - "maxLength": 50 - }, - "name": { - "type": "string", - "description": "The name of the Linux distribution (e.g. NixOS, Gentoo Linux)", - "minLength": 1, - "maxLength": 50 - } - } - }, - "main": { - "type": "record", - "key": "any", - "record": { - "type": "object", - "required": [ - "name", - "rig", - "setup", - "createdAt", - "distro", - "configInUse" - ], - "properties": { - "configInUse": { - "type": "string", - "description": "The config in use on the device", - "format": "uri", - "minLength": 1, - "maxLength": 100 - }, - "createdAt": { - "type": "string", - "description": "The date and time when the device was added", - "format": "datetime" - }, - "distro": { - "type": "ref", - "description": "The distro specifications of the device", - "ref": "#distro" - }, - "name": { - "type": "string", - "description": "The name of the device (e.g. Gaming PC, Laptop)", - "minLength": 1, - "maxLength": 100 - }, - "rig": { - "type": "ref", - "description": "The hardware specifications of the device", - "ref": "#rig" - }, - "setup": { - "type": "ref", - "description": "The software setup of the device", - "ref": "#setup" - } - } - } - }, - "rig": { - "type": "object", - "required": [ - "cpu", - "gpu", - "ram", - "disk", - "diskType" - ], - "properties": { - "cpu": { - "type": "string", - "description": "The CPU model of the device", - "minLength": 1, - "maxLength": 100 - }, - "disk": { - "type": "string", - "description": "The amount of space in / (in numBlocks*blockSize, e.g. 32767*1024)", - "minLength": 1, - "maxLength": 30 - }, - "diskType": { - "type": "string", - "description": "The type of filesystem on / (e.g. ext4, btrfs)", - "minLength": 1, - "maxLength": 20 - }, - "gpu": { - "type": "string", - "description": "The GPU model of the device", - "minLength": 1, - "maxLength": 100 - }, - "ram": { - "type": "string", - "description": "The amount of RAM in the device (e.g. 16GB)", - "minLength": 1, - "maxLength": 20 - } - } - }, - "setup": { - "type": "object", - "required": [ - "wm" - ], - "properties": { - "wm": { - "type": "string", - "description": "The WM/DE used on the device derived from $XDG_CURRENT_DESKTOP (e.g. Hyprland)", - "minLength": 1, - "maxLength": 50 - } - } - } - } -} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/dev_ocbwoy3_dotsyncd_refsDependency.json b/crates/jacquard-api/lexicons/dev_ocbwoy3_dotsyncd_refsDependency.json deleted file mode 100644 index 0efe5913..00000000 --- a/crates/jacquard-api/lexicons/dev_ocbwoy3_dotsyncd_refsDependency.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "lexicon": 1, - "id": "dev.ocbwoy3.dotsyncd.refsDependency", - "description": "This defines the various dependency types used in dotsyncd", - "defs": { - "distro": { - "type": "object", - "description": "A specific Linux distribution", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string", - "description": "The distro ID identified in /etc/os-release, such as nixos, cachyos, etc." - } - } - }, - "hyprland": { - "type": "object", - "description": "A specific Hyprland version", - "required": [ - "version" - ], - "properties": { - "version": { - "type": "string", - "description": "Must be semver" - } - } - }, - "tangledRepo": { - "type": "object", - "description": "A repo from Tangled cloned into a specific directory", - "required": [ - "owner", - "repo", - "dir" - ], - "properties": { - "dir": { - "type": "string", - "description": "The location of the cloned git repo. Must be a valid POSIX (not NT) path. Example: /home/ocbwoy3/config" - }, - "owner": { - "type": "string", - "description": "The owner of the repo. In the case of https://tangled.sh/@ocbwoy3.dev/nix, owner would be the DID of @ocbwoy3.dev", - "format": "did" - }, - "repo": { - "type": "string", - "description": "The repository name" - } - } - } - } -} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/dev_regnault_webfishing_save.json b/crates/jacquard-api/lexicons/dev_regnault_webfishing_save.json deleted file mode 100644 index 870715e7..00000000 --- a/crates/jacquard-api/lexicons/dev_regnault_webfishing_save.json +++ /dev/null @@ -1,447 +0,0 @@ -{ - "lexicon": 1, - "id": "dev.regnault.webfishing.save", - "defs": { - "aqua_fish": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "quality": { - "type": "integer" - }, - "ref": { - "type": "integer" - }, - "size": { - "type": "string" - } - } - }, - "bait_inv": { - "type": "object", - "properties": { - "": { - "type": "integer" - }, - "cricket": { - "type": "integer" - }, - "leech": { - "type": "integer" - }, - "minnow": { - "type": "integer" - }, - "nautilus": { - "type": "integer" - }, - "squid": { - "type": "integer" - }, - "worms": { - "type": "integer" - } - } - }, - "cosmetics": { - "type": "object", - "properties": { - "accessory": { - "type": "array", - "items": { - "type": "string" - } - }, - "bobber": { - "type": "string" - }, - "eye": { - "type": "string" - }, - "hat": { - "type": "string" - }, - "legs": { - "type": "string" - }, - "mouth": { - "type": "string" - }, - "nose": { - "type": "string" - }, - "overshirt": { - "type": "string" - }, - "pattern": { - "type": "string" - }, - "primary_color": { - "type": "string" - }, - "secondary_color": { - "type": "string" - }, - "species": { - "type": "string" - }, - "tail": { - "type": "string" - }, - "title": { - "type": "string" - }, - "undershirt": { - "type": "string" - } - } - }, - "guitar_shape": { - "type": "array", - "items": { - "type": "integer" - }, - "minLength": 6, - "maxLength": 6 - }, - "guitar_shapes": { - "type": "array", - "items": { - "type": "ref", - "ref": "#guitar_shape" - } - }, - "hotbar": { - "type": "object", - "properties": { - "0": { - "type": "integer" - }, - "1": { - "type": "integer" - }, - "2": { - "type": "integer" - }, - "3": { - "type": "integer" - }, - "4": { - "type": "integer" - } - } - }, - "item": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "custom_name": { - "type": "string" - }, - "id": { - "type": "string" - }, - "quality": { - "type": "integer" - }, - "ref": { - "type": "integer" - }, - "size": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "journal_category": { - "type": "object", - "properties": { - "entries": { - "type": "array", - "items": { - "type": "ref", - "ref": "#journal_entry" - } - }, - "name": { - "type": "string" - } - } - }, - "journal_entry": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "quality": { - "type": "array", - "items": { - "type": "integer" - } - }, - "record": { - "type": "string" - } - } - }, - "letter": { - "type": "object", - "properties": { - "body": { - "type": "string" - }, - "closing": { - "type": "string" - }, - "from": { - "type": "string" - }, - "header": { - "type": "string" - }, - "items": { - "type": "array", - "items": { - "type": "ref", - "ref": "#item" - } - }, - "letter_id": { - "type": "integer" - }, - "to": { - "type": "string" - } - } - }, - "main": { - "type": "record", - "description": "Record declaring a save data of the game webfishing", - "key": "tid", - "record": { - "type": "object", - "required": [ - "inventory" - ], - "properties": { - "bait_inv": { - "type": "ref", - "ref": "#bait_inv" - }, - "bait_selected": { - "type": "string" - }, - "bait_unlocked": { - "type": "array", - "items": { - "type": "string" - } - }, - "buddy_level": { - "type": "integer" - }, - "buddy_speed": { - "type": "integer" - }, - "cash_total": { - "type": "integer" - }, - "completed_quests": { - "type": "array", - "items": { - "type": "string" - } - }, - "cosmetics_equipped": { - "type": "ref", - "ref": "#cosmetics" - }, - "cosmetics_unlocked": { - "type": "array", - "items": { - "type": "string" - } - }, - "fish_caught": { - "type": "integer" - }, - "guitar_shapes": { - "type": "array", - "items": { - "type": "ref", - "ref": "#guitar_shapes" - } - }, - "hotbar": { - "type": "ref", - "ref": "#hotbar" - }, - "inbound_mail": { - "type": "array", - "items": { - "type": "ref", - "ref": "#letter" - } - }, - "inventory": { - "type": "array", - "items": { - "type": "ref", - "ref": "#item" - } - }, - "journal": { - "type": "array", - "items": { - "type": "ref", - "ref": "#journal_category" - } - }, - "level": { - "type": "integer" - }, - "loan_left": { - "type": "integer" - }, - "loan_level": { - "type": "integer" - }, - "locked_refs": { - "type": "array", - "items": { - "type": "integer" - } - }, - "lure_selected": { - "type": "string" - }, - "lure_unlocked": { - "type": "array", - "items": { - "type": "string" - } - }, - "max_bait": { - "type": "integer" - }, - "money": { - "type": "integer" - }, - "new_cosmetics": { - "type": "array", - "items": { - "type": "string" - } - }, - "quests": { - "type": "array", - "items": { - "type": "ref", - "ref": "#quest_entry" - } - }, - "rod_chance": { - "type": "integer" - }, - "rod_luck": { - "type": "integer" - }, - "rod_power": { - "type": "integer" - }, - "rod_speed": { - "type": "integer" - }, - "saved_aqua_fish": { - "type": "ref", - "ref": "#aqua_fish" - }, - "saved_tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "version": { - "type": "string" - }, - "voice_pitch": { - "type": "string" - }, - "voice_speed": { - "type": "integer" - }, - "xp": { - "type": "integer" - } - } - } - }, - "quest_entry": { - "type": "object", - "properties": { - "action": { - "type": "string" - }, - "goal_amt": { - "type": "integer" - }, - "goal_array": { - "type": "array", - "items": { - "type": "integer" - } - }, - "goal_id": { - "type": "string" - }, - "gold_reward": { - "type": "integer" - }, - "hidden": { - "type": "boolean" - }, - "icon": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "max_level": { - "type": "integer" - }, - "progress": { - "type": "integer" - }, - "rewards": { - "type": "array", - "items": { - "type": "string" - } - }, - "tier": { - "type": "integer" - }, - "title": { - "type": "string" - }, - "xp_reward": { - "type": "integer" - } - } - } - } -} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/events_smokesignal_automation_InvokeWebhook.json b/crates/jacquard-api/lexicons/events_smokesignal_automation_InvokeWebhook.json deleted file mode 100644 index 6d14b433..00000000 --- a/crates/jacquard-api/lexicons/events_smokesignal_automation_InvokeWebhook.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "lexicon": 1, - "id": "events.smokesignal.automation.InvokeWebhook", - "defs": { - "main": { - "type": "procedure", - "description": "Process a Smoke Signal webhook event.", - "input": { - "encoding": "application/json", - "schema": { - "type": "object", - "required": [ - "event", - "record", - "context" - ], - "properties": { - "context": { - "type": "object", - "properties": {} - }, - "event": { - "type": "string", - "knownValues": [ - "test", - "rsvp.created", - "event.created" - ] - }, - "record": { - "type": "object", - "properties": {} - } - } - } - }, - "output": { - "encoding": "application/json", - "schema": { - "type": "object", - "properties": {} - } - } - } - } -} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/garden_lexicon_ngerakines_helloworld_Hello.json b/crates/jacquard-api/lexicons/garden_lexicon_ngerakines_helloworld_Hello.json new file mode 100644 index 00000000..e2f75516 --- /dev/null +++ b/crates/jacquard-api/lexicons/garden_lexicon_ngerakines_helloworld_Hello.json @@ -0,0 +1,34 @@ +{ + "lexicon": 1, + "id": "garden.lexicon.ngerakines.helloworld.Hello", + "defs": { + "main": { + "type": "query", + "parameters": { + "type": "params", + "required": [], + "properties": { + "subject": { + "type": "string", + "maxLength": 55 + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "message" + ], + "properties": { + "message": { + "type": "string", + "maxLength": 64 + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/garden_lexicon_ngerakines_semeion_Sign.json b/crates/jacquard-api/lexicons/garden_lexicon_ngerakines_semeion_Sign.json new file mode 100644 index 00000000..93b79283 --- /dev/null +++ b/crates/jacquard-api/lexicons/garden_lexicon_ngerakines_semeion_Sign.json @@ -0,0 +1,16 @@ +{ + "lexicon": 1, + "id": "garden.lexicon.ngerakines.semeion.Sign", + "defs": { + "main": { + "type": "procedure", + "description": "Sign a payload", + "input": { + "encoding": "*/*" + }, + "output": { + "encoding": "application/octet-stream" + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/how_bun_reviews_review.json b/crates/jacquard-api/lexicons/how_bun_reviews_review.json deleted file mode 100644 index 10d7026b..00000000 --- a/crates/jacquard-api/lexicons/how_bun_reviews_review.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "lexicon": 1, - "id": "how.bun.reviews.review", - "defs": { - "main": { - "type": "record", - "description": "Record containing a review of something.", - "key": "tid", - "record": { - "type": "object", - "required": [ - "createdAt", - "subject", - "text" - ], - "properties": { - "createdAt": { - "type": "string", - "description": "The timestamp when this review was originally written.", - "format": "datetime" - }, - "facets": { - "type": "array", - "description": "Annotations of text (Bluesky-compatible richtext).", - "items": { - "type": "ref", - "ref": "app.bsky.richtext.facet" - } - }, - "langs": { - "type": "array", - "description": "Indicates natural language of text.", - "items": { - "type": "string", - "format": "language" - }, - "maxLength": 3 - }, - "subject": { - "type": "union", - "refs": [ - "how.bun.reviews.subject#wikidataObject" - ] - }, - "summary": { - "type": "string", - "description": "A short summary of the review (perhaps a score).", - "maxLength": 1000, - "maxGraphemes": 96 - }, - "text": { - "type": "string", - "description": "The text of the review.", - "maxLength": 768000, - "maxGraphemes": 64000 - } - } - } - } - } -} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/how_bun_reviews_subject.json b/crates/jacquard-api/lexicons/how_bun_reviews_subject.json deleted file mode 100644 index 142ac46b..00000000 --- a/crates/jacquard-api/lexicons/how_bun_reviews_subject.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "lexicon": 1, - "id": "how.bun.reviews.subject", - "defs": { - "wikidataObject": { - "type": "object", - "description": "An entity on wikidata.org.", - "required": [ - "qid" - ], - "properties": { - "qid": { - "type": "string" - } - } - } - } -} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/inc_toronto_discover_beta_profile.json b/crates/jacquard-api/lexicons/inc_toronto_discover_beta_profile.json deleted file mode 100644 index 36620b96..00000000 --- a/crates/jacquard-api/lexicons/inc_toronto_discover_beta_profile.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "lexicon": 1, - "id": "inc.toronto.discover.beta.profile", - "defs": { - "main": { - "type": "record", - "description": "A Toronto profile entry", - "key": "tid", - "record": { - "type": "object", - "required": [ - "name", - "bio", - "interests", - "currentProject", - "createdAt" - ], - "properties": { - "bio": { - "type": "string", - "description": "Short bio - one-liner about who you are, what you make, or what you're about", - "maxLength": 300, - "maxGraphemes": 300 - }, - "createdAt": { - "type": "string", - "description": "When this profile was created", - "format": "datetime" - }, - "currentProject": { - "type": "string", - "description": "Short blurb about a project you're currently working on or exploring", - "maxLength": 500, - "maxGraphemes": 500 - }, - "githubUrl": { - "type": "string", - "description": "GitHub profile URL", - "format": "uri" - }, - "instagramUrl": { - "type": "string", - "description": "Instagram profile URL", - "format": "uri" - }, - "interests": { - "type": "array", - "description": "Keywords describing interests, focus areas, or creative mediums", - "items": { - "type": "string", - "maxLength": 50, - "maxGraphemes": 50 - }, - "maxLength": 10 - }, - "linkedinUrl": { - "type": "string", - "description": "LinkedIn profile URL", - "format": "uri" - }, - "name": { - "type": "string", - "description": "Name or online alias - real name, artist name, or handle", - "minLength": 1, - "maxLength": 100, - "maxGraphemes": 100 - }, - "neighbourhood": { - "type": "string", - "description": "Toronto neighbourhood where you're based or do most of your work", - "maxLength": 100, - "maxGraphemes": 100 - }, - "twitterUrl": { - "type": "string", - "description": "Twitter profile URL", - "format": "uri" - }, - "updatedAt": { - "type": "string", - "description": "When this profile was last updated", - "format": "datetime" - }, - "websiteUrl": { - "type": "string", - "description": "Personal website URL", - "format": "uri" - } - } - } - } - } -} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/lol_skittr_actor_theme.json b/crates/jacquard-api/lexicons/lol_skittr_actor_theme.json deleted file mode 100644 index 25502f66..00000000 --- a/crates/jacquard-api/lexicons/lol_skittr_actor_theme.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "lexicon": 1, - "id": "lol.skittr.actor.theme", - "defs": { - "main": { - "type": "record", - "description": "Profile customization values", - "key": "literal:self", - "record": { - "type": "object", - "required": [ - "bg_color", - "text_color", - "link_color", - "side_color", - "side_border" - ], - "properties": { - "background": { - "type": "blob", - "description": "A background image, must be either PNG or JPEG", - "accept": [ - "image/png", - "image/jpeg" - ], - "maxSize": 1000000 - }, - "bg_color": { - "type": "string", - "maxLength": 640, - "maxGraphemes": 64 - }, - "link_color": { - "type": "string", - "maxLength": 640, - "maxGraphemes": 64 - }, - "side_border": { - "type": "string", - "maxLength": 640, - "maxGraphemes": 64 - }, - "side_color": { - "type": "string", - "maxLength": 640, - "maxGraphemes": 64 - }, - "text_color": { - "type": "string", - "maxLength": 640, - "maxGraphemes": 64 - } - } - } - } - } -} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/lol_skittr_server_getMeta.json b/crates/jacquard-api/lexicons/lol_skittr_server_getMeta.json deleted file mode 100644 index d0c8b537..00000000 --- a/crates/jacquard-api/lexicons/lol_skittr_server_getMeta.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "lexicon": 1, - "id": "lol.skittr.server.getMeta", - "defs": { - "main": { - "type": "query", - "description": "Get information about the AppView", - "output": { - "encoding": "application/json", - "schema": { - "type": "object", - "required": [ - "software", - "version", - "supported_lexicons" - ], - "properties": { - "software": { - "type": "string" - }, - "supported_extensions": { - "type": "array", - "items": { - "type": "string" - } - }, - "supported_lexicons": { - "type": "array", - "items": { - "type": "string" - } - }, - "version": { - "type": "string" - } - } - } - } - } - } -} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/xyz_autonomylab_status.json b/crates/jacquard-api/lexicons/net_aftertheinter_coolthingtwo.json similarity index 92% rename from crates/jacquard-api/lexicons/xyz_autonomylab_status.json rename to crates/jacquard-api/lexicons/net_aftertheinter_coolthingtwo.json index c5fd2a9d..d186e577 100644 --- a/crates/jacquard-api/lexicons/xyz_autonomylab_status.json +++ b/crates/jacquard-api/lexicons/net_aftertheinter_coolthingtwo.json @@ -1,6 +1,6 @@ { "lexicon": 1, - "id": "xyz.autonomylab.status", + "id": "net.aftertheinter.coolthingtwo", "defs": { "main": { "type": "record", diff --git a/crates/jacquard-api/lexicons/net_bnewbold_demo_mushroom.json b/crates/jacquard-api/lexicons/net_bnewbold_demo_mushroom.json new file mode 100644 index 00000000..44de6fcd --- /dev/null +++ b/crates/jacquard-api/lexicons/net_bnewbold_demo_mushroom.json @@ -0,0 +1,32 @@ +{ + "lexicon": 1, + "id": "net.bnewbold.demo.mushroom", + "defs": { + "main": { + "type": "record", + "description": "it's a kind of fungus", + "key": "any", + "record": { + "type": "object", + "required": [ + "commonName" + ], + "properties": { + "commonName": { + "type": "string", + "maxLength": 2560, + "maxGraphemes": 256 + }, + "edible": { + "type": "boolean" + }, + "species": { + "type": "string", + "maxLength": 2560, + "maxGraphemes": 256 + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/net_bnewbold_m.json b/crates/jacquard-api/lexicons/net_bnewbold_m.json new file mode 100644 index 00000000..93b7801d --- /dev/null +++ b/crates/jacquard-api/lexicons/net_bnewbold_m.json @@ -0,0 +1,32 @@ +{ + "lexicon": 1, + "id": "net.bnewbold.m", + "defs": { + "main": { + "type": "record", + "description": "it's a kind of fungus", + "key": "any", + "record": { + "type": "object", + "required": [ + "commonName" + ], + "properties": { + "commonName": { + "type": "string", + "maxLength": 2560, + "maxGraphemes": 256 + }, + "edible": { + "type": "boolean" + }, + "species": { + "type": "string", + "maxLength": 2560, + "maxGraphemes": 256 + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/net_mmatt_right_now.json b/crates/jacquard-api/lexicons/net_mmatt_right_now.json new file mode 100644 index 00000000..1fa0a289 --- /dev/null +++ b/crates/jacquard-api/lexicons/net_mmatt_right_now.json @@ -0,0 +1,33 @@ +{ + "lexicon": 1, + "id": "net.mmatt.right.now", + "defs": { + "main": { + "type": "record", + "description": "A personal lexicon for mmatt's statuslog.", + "key": "tid", + "record": { + "type": "object", + "required": [ + "createdAt", + "text" + ], + "properties": { + "createdAt": { + "type": "string", + "description": "The unix timestamp of when the status was recorded", + "format": "datetime" + }, + "emoji": { + "type": "string", + "description": "The emoji of the status update" + }, + "text": { + "type": "string", + "description": "The text of the status update" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/net_mmatt_vitals_car.json b/crates/jacquard-api/lexicons/net_mmatt_vitals_car.json new file mode 100644 index 00000000..5ed560ce --- /dev/null +++ b/crates/jacquard-api/lexicons/net_mmatt_vitals_car.json @@ -0,0 +1,55 @@ +{ + "lexicon": 1, + "id": "net.mmatt.vitals.car", + "defs": { + "main": { + "type": "record", + "key": "tid", + "record": { + "type": "object", + "required": [ + "createdAt", + "carFuelRange", + "carPercentFuelRemaining", + "amountRemaining", + "carTraveledDistance" + ], + "properties": { + "amountRemaining": { + "type": "string", + "description": "The car fuel amount remaining value (floating point string)" + }, + "carFuelRange": { + "type": "integer", + "description": "The car fuel range value in miles" + }, + "carMake": { + "type": "string", + "description": "The car make value" + }, + "carModel": { + "type": "string", + "description": "The car model value" + }, + "carPercentFuelRemaining": { + "type": "string", + "description": "The car fuel level value in percentage (floating point string)" + }, + "carTraveledDistance": { + "type": "integer", + "description": "The car traveled distance value" + }, + "carYear": { + "type": "integer", + "description": "The car year value" + }, + "createdAt": { + "type": "string", + "description": "The unix timestamp of when the vital was recorded", + "format": "datetime" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/org_devcon_event_test.json b/crates/jacquard-api/lexicons/org_devcon_event_test.json new file mode 100644 index 00000000..bafb13b4 --- /dev/null +++ b/crates/jacquard-api/lexicons/org_devcon_event_test.json @@ -0,0 +1,50 @@ +{ + "lexicon": 1, + "id": "org.devcon.event.test", + "defs": { + "main": { + "type": "record", + "key": "tid", + "record": { + "type": "object", + "required": [ + "title", + "start", + "end" + ], + "properties": { + "createdAt": { + "type": "string", + "format": "datetime" + }, + "description": { + "type": "string", + "description": "Description of the event" + }, + "end": { + "type": "string", + "description": "End time of the event", + "format": "datetime" + }, + "location": { + "type": "string", + "description": "Location of the event" + }, + "start": { + "type": "string", + "description": "Start time of the event", + "format": "datetime" + }, + "title": { + "type": "string", + "description": "Title of the event" + }, + "url": { + "type": "string", + "description": "URL of the event" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/org_robocracy_demo_fungus.json b/crates/jacquard-api/lexicons/org_robocracy_demo_fungus.json new file mode 100644 index 00000000..311e582b --- /dev/null +++ b/crates/jacquard-api/lexicons/org_robocracy_demo_fungus.json @@ -0,0 +1,32 @@ +{ + "lexicon": 1, + "id": "org.robocracy.demo.fungus", + "defs": { + "main": { + "type": "record", + "description": "it's a kind of fungus!", + "key": "any", + "record": { + "type": "object", + "required": [ + "commonName" + ], + "properties": { + "commonName": { + "type": "string", + "maxLength": 2560, + "maxGraphemes": 256 + }, + "edible": { + "type": "boolean" + }, + "species": { + "type": "string", + "maxLength": 2560, + "maxGraphemes": 256 + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/org_robocracy_demo_mushies.json b/crates/jacquard-api/lexicons/org_robocracy_demo_mushies.json new file mode 100644 index 00000000..a3406655 --- /dev/null +++ b/crates/jacquard-api/lexicons/org_robocracy_demo_mushies.json @@ -0,0 +1,32 @@ +{ + "lexicon": 1, + "id": "org.robocracy.demo.mushies", + "defs": { + "main": { + "type": "record", + "description": "it's a kind of fungus!", + "key": "any", + "record": { + "type": "object", + "required": [ + "commonName" + ], + "properties": { + "commonName": { + "type": "string", + "maxLength": 2560, + "maxGraphemes": 256 + }, + "edible": { + "type": "boolean" + }, + "species": { + "type": "string", + "maxLength": 2560, + "maxGraphemes": 256 + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/place_atwork_endorsement.json b/crates/jacquard-api/lexicons/place_atwork_endorsement.json new file mode 100644 index 00000000..bc657059 --- /dev/null +++ b/crates/jacquard-api/lexicons/place_atwork_endorsement.json @@ -0,0 +1,53 @@ +{ + "lexicon": 1, + "id": "place.atwork.endorsement", + "defs": { + "main": { + "type": "record", + "description": "A cryptographically-verified professional endorsement between two identities.", + "key": "tid", + "record": { + "type": "object", + "required": [ + "giver", + "receiver", + "text", + "createdAt" + ], + "properties": { + "createdAt": { + "type": "string", + "description": "Timestamp when the endorsement was created.", + "format": "datetime" + }, + "giver": { + "type": "string", + "description": "The DID of the identity giving the endorsement.", + "format": "did" + }, + "receiver": { + "type": "string", + "description": "The DID of the identity receiving the endorsement.", + "format": "did" + }, + "signatures": { + "type": "array", + "description": "Verified signatures from endorsement proofs (strong references).", + "items": { + "type": "union", + "refs": [ + "com.atproto.repo.strongRef" + ] + } + }, + "text": { + "type": "string", + "description": "The endorsement text content.", + "maxLength": 1000, + "maxGraphemes": 1000 + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/place_atwork_endorsementProof.json b/crates/jacquard-api/lexicons/place_atwork_endorsementProof.json new file mode 100644 index 00000000..7cbaf0cb --- /dev/null +++ b/crates/jacquard-api/lexicons/place_atwork_endorsementProof.json @@ -0,0 +1,24 @@ +{ + "lexicon": 1, + "id": "place.atwork.endorsementProof", + "defs": { + "main": { + "type": "record", + "description": "A cryptographic proof record that validates an endorsement by containing the CID of the endorsement content.", + "key": "tid", + "record": { + "type": "object", + "required": [ + "cid" + ], + "properties": { + "cid": { + "type": "string", + "description": "The CID (Content Identifier) of the endorsement content that this proof validates. The endorsement's signatures array references this proof record.", + "format": "cid" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/place_atwork_getListings.json b/crates/jacquard-api/lexicons/place_atwork_getListings.json index ea834c84..a448b630 100644 --- a/crates/jacquard-api/lexicons/place_atwork_getListings.json +++ b/crates/jacquard-api/lexicons/place_atwork_getListings.json @@ -29,10 +29,14 @@ }, "main": { "type": "query", - "description": "Get job listings, optionally filtered by tag", + "description": "Get job listings, optionally filtered by tag or identity", "parameters": { "type": "params", "properties": { + "identity": { + "type": "string", + "description": "Filter listings by creator DID (e.g., did:plc:abc123)" + }, "tag": { "type": "string", "description": "Filter listings by hashtag" diff --git a/crates/jacquard-api/lexicons/place_atwork_listing.json b/crates/jacquard-api/lexicons/place_atwork_listing.json index fd0ff2ff..066d2c2e 100644 --- a/crates/jacquard-api/lexicons/place_atwork_listing.json +++ b/crates/jacquard-api/lexicons/place_atwork_listing.json @@ -20,6 +20,15 @@ "description": "URL where applicants can apply for the job.", "format": "uri" }, + "banner": { + "type": "blob", + "description": "Larger horizontal image to display behind job listing view.", + "accept": [ + "image/png", + "image/jpeg" + ], + "maxSize": 1000000 + }, "description": { "type": "string", "description": "The description of the job listing.", diff --git a/crates/jacquard-api/lexicons/place_atwork_profile.json b/crates/jacquard-api/lexicons/place_atwork_profile.json index 8be83b51..85fbef9b 100644 --- a/crates/jacquard-api/lexicons/place_atwork_profile.json +++ b/crates/jacquard-api/lexicons/place_atwork_profile.json @@ -17,6 +17,24 @@ "record": { "type": "object", "properties": { + "avatar": { + "type": "blob", + "description": "Small image to be displayed next to job listings from account. AKA, 'profile picture'", + "accept": [ + "image/png", + "image/jpeg" + ], + "maxSize": 1000000 + }, + "banner": { + "type": "blob", + "description": "Larger horizontal image to display behind profile view.", + "accept": [ + "image/png", + "image/jpeg" + ], + "maxSize": 1000000 + }, "description": { "type": "string", "description": "A free text description of the identity.", @@ -37,6 +55,23 @@ "ref": "app.bsky.richtext.facet" } }, + "profile_host": { + "type": "string", + "description": "The service used for profile links", + "knownValues": [ + "bsky.app", + "blacksky.community" + ] + }, + "resume": { + "type": "blob", + "description": "The identity's resume.", + "accept": [ + "application/pdf", + "text/plain" + ], + "maxSize": 4000000 + }, "status": { "type": "string", "description": "The current status of the identity.", diff --git a/crates/jacquard-api/lexicons/place_stream_chat_profile.json b/crates/jacquard-api/lexicons/place_stream_chat_profile.json index c5ea681b..0bed6ff1 100644 --- a/crates/jacquard-api/lexicons/place_stream_chat_profile.json +++ b/crates/jacquard-api/lexicons/place_stream_chat_profile.json @@ -34,7 +34,6 @@ "key": "literal:self", "record": { "type": "object", - "required": [], "properties": { "color": { "type": "ref", diff --git a/crates/jacquard-api/lexicons/social_clippr_actor_defs.json b/crates/jacquard-api/lexicons/social_clippr_actor_defs.json new file mode 100644 index 00000000..43d5fd95 --- /dev/null +++ b/crates/jacquard-api/lexicons/social_clippr_actor_defs.json @@ -0,0 +1,76 @@ +{ + "lexicon": 1, + "id": "social.clippr.actor.defs", + "defs": { + "preferences": { + "type": "array", + "description": "An array of refs to various preferences.", + "items": { + "type": "union", + "refs": [ + "#publishingScopesPref" + ] + } + }, + "profileView": { + "type": "object", + "description": "A view of an actor's profile.", + "required": [ + "did", + "handle", + "displayName" + ], + "properties": { + "avatar": { + "type": "string", + "description": "A link to the profile's avatar", + "format": "uri" + }, + "createdAt": { + "type": "string", + "description": "When the profile record was first created", + "format": "datetime" + }, + "description": { + "type": "string", + "description": "The biography associated to the profile", + "maxLength": 5000, + "maxGraphemes": 500 + }, + "did": { + "type": "string", + "description": "The DID of the profile", + "format": "did" + }, + "displayName": { + "type": "string", + "description": "The display name associated to the profile", + "maxLength": 640, + "maxGraphemes": 64 + }, + "handle": { + "type": "string", + "description": "The handle of the profile", + "format": "handle" + } + } + }, + "publishingScopesPref": { + "type": "object", + "description": "Preferences for an user's publishing scopes.", + "required": [ + "defaultScope" + ], + "properties": { + "defaultScope": { + "type": "string", + "description": "What publishing scope to mark a clip as by default", + "knownValues": [ + "public", + "unlisted" + ] + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_clippr_actor_getPreferences.json b/crates/jacquard-api/lexicons/social_clippr_actor_getPreferences.json new file mode 100644 index 00000000..6fb4a5fd --- /dev/null +++ b/crates/jacquard-api/lexicons/social_clippr_actor_getPreferences.json @@ -0,0 +1,30 @@ +{ + "lexicon": 1, + "id": "social.clippr.actor.getPreferences", + "defs": { + "main": { + "type": "query", + "description": "Get the private user preferences associated to the account.", + "parameters": { + "type": "params", + "properties": {} + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "preferences" + ], + "properties": { + "preferences": { + "type": "ref", + "description": "A ref to the user's preferences", + "ref": "social.clippr.actor.defs#preferences" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/lol_skittr_actor_getTheme.json b/crates/jacquard-api/lexicons/social_clippr_actor_getProfile.json similarity index 57% rename from crates/jacquard-api/lexicons/lol_skittr_actor_getTheme.json rename to crates/jacquard-api/lexicons/social_clippr_actor_getProfile.json index 76ed7fce..fcafe2d4 100644 --- a/crates/jacquard-api/lexicons/lol_skittr_actor_getTheme.json +++ b/crates/jacquard-api/lexicons/social_clippr_actor_getProfile.json @@ -1,10 +1,10 @@ { "lexicon": 1, - "id": "lol.skittr.actor.getTheme", + "id": "social.clippr.actor.getProfile", "defs": { "main": { "type": "query", - "description": "Get actor's theme", + "description": "Get profile view of an actor. Does not require auth.", "parameters": { "type": "params", "required": [ @@ -13,7 +13,7 @@ "properties": { "actor": { "type": "string", - "description": "Handle or DID of the actor", + "description": "Handle or DID of account to fetch profile of", "format": "at-identifier" } } @@ -22,7 +22,8 @@ "encoding": "application/json", "schema": { "type": "ref", - "ref": "lol.skittr.actor.theme#main" + "description": "A reference to the profile view of the actor", + "ref": "social.clippr.actor.defs#profileView" } } } diff --git a/crates/jacquard-api/lexicons/net_bnewbold_demo_nested_blah.json b/crates/jacquard-api/lexicons/social_clippr_actor_profile.json similarity index 52% rename from crates/jacquard-api/lexicons/net_bnewbold_demo_nested_blah.json rename to crates/jacquard-api/lexicons/social_clippr_actor_profile.json index 708b9434..ed8fe331 100644 --- a/crates/jacquard-api/lexicons/net_bnewbold_demo_nested_blah.json +++ b/crates/jacquard-api/lexicons/social_clippr_actor_profile.json @@ -1,46 +1,41 @@ { "lexicon": 1, - "id": "net.bnewbold.demo.nested.blah", + "id": "social.clippr.actor.profile", "defs": { "main": { "type": "record", - "description": "TODO: describe purpose of this schema", - "key": "any", + "description": "A declaration of a Clippr account's profile.", + "key": "literal:self", "record": { "type": "object", "required": [ - "name", - "createdAt" + "createdAt", + "displayName" ], "properties": { "avatar": { "type": "blob", + "description": "Image to show on user's profiles", "accept": [ "image/png", "image/jpeg" ], - "maxSize": 2000000 + "maxSize": 1000000 }, "createdAt": { "type": "string", + "description": "The creation date of the profile", "format": "datetime" }, "description": { "type": "string", - "maxLength": 3000, - "maxGraphemes": 300 + "description": "Text for user to describe themselves", + "maxLength": 5000, + "maxGraphemes": 500 }, - "descriptionFacets": { - "type": "array", - "items": { - "type": "ref", - "ref": "app.bsky.richtext.facet" - } - }, - "name": { + "displayName": { "type": "string", - "description": "TODO: title name of record; can not be empty", - "minLength": 1, + "description": "A display name to be shown on a profile", "maxLength": 640, "maxGraphemes": 64 } diff --git a/crates/jacquard-api/lexicons/social_clippr_actor_putPreferences.json b/crates/jacquard-api/lexicons/social_clippr_actor_putPreferences.json new file mode 100644 index 00000000..3f415ec1 --- /dev/null +++ b/crates/jacquard-api/lexicons/social_clippr_actor_putPreferences.json @@ -0,0 +1,26 @@ +{ + "lexicon": 1, + "id": "social.clippr.actor.putPreferences", + "defs": { + "main": { + "type": "procedure", + "description": "Set the private preferences attached to the account.", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "preferences" + ], + "properties": { + "preferences": { + "type": "ref", + "description": "A ref to the user's preferences", + "ref": "social.clippr.actor.defs#preferences" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_clippr_actor_searchClips.json b/crates/jacquard-api/lexicons/social_clippr_actor_searchClips.json new file mode 100644 index 00000000..f2c5bec6 --- /dev/null +++ b/crates/jacquard-api/lexicons/social_clippr_actor_searchClips.json @@ -0,0 +1,61 @@ +{ + "lexicon": 1, + "id": "social.clippr.actor.searchClips", + "defs": { + "main": { + "type": "query", + "description": "Find clips matching search criteria. Does not require auth.", + "parameters": { + "type": "params", + "required": [ + "q" + ], + "properties": { + "actor": { + "type": "string", + "description": "An actor to filter results to", + "format": "at-identifier" + }, + "cursor": { + "type": "string", + "description": "A parameter to paginate results" + }, + "limit": { + "type": "integer", + "description": "How many clips to return in the query output", + "default": 25, + "minimum": 1, + "maximum": 100 + }, + "q": { + "type": "string", + "description": "Search query string" + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "clips" + ], + "properties": { + "clips": { + "type": "array", + "description": "A list of clips and their associated details", + "items": { + "type": "ref", + "ref": "social.clippr.feed.defs#clipView" + } + }, + "cursor": { + "type": "string", + "description": "A parameter to paginate results" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_clippr_actor_searchProfiles.json b/crates/jacquard-api/lexicons/social_clippr_actor_searchProfiles.json new file mode 100644 index 00000000..f884b2d2 --- /dev/null +++ b/crates/jacquard-api/lexicons/social_clippr_actor_searchProfiles.json @@ -0,0 +1,52 @@ +{ + "lexicon": 1, + "id": "social.clippr.actor.searchProfiles", + "defs": { + "main": { + "type": "query", + "description": "Find profiles matching search criteria. Does not require auth.", + "parameters": { + "type": "params", + "properties": { + "cursor": { + "type": "string", + "description": "A parameter used for pagination" + }, + "limit": { + "type": "integer", + "description": "The number of profiles to be returned in the query", + "default": 25, + "minimum": 1, + "maximum": 100 + }, + "q": { + "type": "string", + "description": "Search query string" + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "actors" + ], + "properties": { + "actors": { + "type": "array", + "items": { + "type": "ref", + "ref": "social.clippr.actor.defs#profileView" + } + }, + "cursor": { + "type": "string", + "description": "A parameter used for pagination" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_clippr_actor_searchTags.json b/crates/jacquard-api/lexicons/social_clippr_actor_searchTags.json new file mode 100644 index 00000000..76beb0b2 --- /dev/null +++ b/crates/jacquard-api/lexicons/social_clippr_actor_searchTags.json @@ -0,0 +1,61 @@ +{ + "lexicon": 1, + "id": "social.clippr.actor.searchTags", + "defs": { + "main": { + "type": "query", + "description": "Find tags matching search criteria. Does not require auth.", + "parameters": { + "type": "params", + "required": [ + "q" + ], + "properties": { + "actor": { + "type": "string", + "description": "An actor to filter results to", + "format": "at-identifier" + }, + "cursor": { + "type": "string", + "description": "A parameter to paginate results" + }, + "limit": { + "type": "integer", + "description": "How many tags to return in the query output", + "default": 25, + "minimum": 1, + "maximum": 100 + }, + "q": { + "type": "string", + "description": "Search query string" + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "tags" + ], + "properties": { + "cursor": { + "type": "string", + "description": "A parameter to paginate results" + }, + "tags": { + "type": "array", + "description": "A list of tags and their associated details", + "items": { + "type": "ref", + "ref": "social.clippr.feed.defs#tagView" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_clippr_feed_clip.json b/crates/jacquard-api/lexicons/social_clippr_feed_clip.json new file mode 100644 index 00000000..8c5ca746 --- /dev/null +++ b/crates/jacquard-api/lexicons/social_clippr_feed_clip.json @@ -0,0 +1,80 @@ +{ + "lexicon": 1, + "id": "social.clippr.feed.clip", + "defs": { + "main": { + "type": "record", + "description": "Record containing a bookmarked item, or 'clip'.", + "key": "any", + "record": { + "type": "object", + "required": [ + "url", + "title", + "description", + "unlisted", + "createdAt" + ], + "properties": { + "createdAt": { + "type": "string", + "description": "Client-declared timestamp when the bookmark is created", + "format": "datetime" + }, + "description": { + "type": "string", + "description": "A description of the bookmark's content. This should be ripped from the URL metadata and be static for all records using the URL.", + "maxLength": 40960, + "maxGraphemes": 4096 + }, + "languages": { + "type": "array", + "description": "Indicates human language of the given URL", + "items": { + "type": "string", + "format": "language" + }, + "maxLength": 5 + }, + "notes": { + "type": "string", + "description": "User-written notes for the bookmark. Public and personal.", + "maxLength": 100000, + "maxGraphemes": 10000 + }, + "tags": { + "type": "array", + "description": "An array of tags. A format of solely alphanumeric characters and dashes should be used.", + "items": { + "type": "ref", + "ref": "com.atproto.repo.strongRef" + } + }, + "title": { + "type": "string", + "description": "The title of the bookmark. If left empty, reuse the URL.", + "maxLength": 20480, + "maxGraphemes": 2048 + }, + "unlisted": { + "type": "boolean", + "description": "Whether the bookmark can be used for feed indexing and aggregation", + "default": false + }, + "unread": { + "type": "boolean", + "description": "Whether the bookmark has been read by the user", + "default": true + }, + "url": { + "type": "string", + "description": "The URL of the bookmark. Cannot be left empty or be modified after creation.", + "format": "uri", + "maxLength": 20000, + "maxGraphemes": 2000 + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_clippr_feed_defs.json b/crates/jacquard-api/lexicons/social_clippr_feed_defs.json new file mode 100644 index 00000000..3794d6da --- /dev/null +++ b/crates/jacquard-api/lexicons/social_clippr_feed_defs.json @@ -0,0 +1,80 @@ +{ + "lexicon": 1, + "id": "social.clippr.feed.defs", + "defs": { + "clipView": { + "type": "object", + "description": "A view of a single bookmark (or 'clip').", + "required": [ + "uri", + "cid", + "author", + "record", + "indexedAt" + ], + "properties": { + "author": { + "type": "ref", + "description": "A reference to the actor's profile", + "ref": "social.clippr.actor.defs#profileView" + }, + "cid": { + "type": "string", + "description": "The CID of the clip", + "format": "cid" + }, + "indexedAt": { + "type": "string", + "description": "When the tag was first indexed by the AppView", + "format": "datetime" + }, + "record": { + "type": "unknown", + "description": "The raw record of the clip" + }, + "uri": { + "type": "string", + "description": "The AT-URI of the clip", + "format": "at-uri" + } + } + }, + "tagView": { + "type": "object", + "description": "A view of a single tag.", + "required": [ + "uri", + "cid", + "author", + "record", + "indexedAt" + ], + "properties": { + "author": { + "type": "ref", + "description": "A reference to the actor's profile", + "ref": "social.clippr.actor.defs#profileView" + }, + "cid": { + "type": "string", + "description": "The CID of the tag", + "format": "cid" + }, + "indexedAt": { + "type": "string", + "description": "When the tag was first indexed by the AppView", + "format": "datetime" + }, + "record": { + "type": "unknown", + "description": "The raw record of the tag" + }, + "uri": { + "type": "string", + "description": "The AT-URI to the tag", + "format": "at-uri" + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_clippr_feed_getClips.json b/crates/jacquard-api/lexicons/social_clippr_feed_getClips.json new file mode 100644 index 00000000..18fe468c --- /dev/null +++ b/crates/jacquard-api/lexicons/social_clippr_feed_getClips.json @@ -0,0 +1,46 @@ +{ + "lexicon": 1, + "id": "social.clippr.feed.getClips", + "defs": { + "main": { + "type": "query", + "description": "Get a list of clips. Does not require auth.", + "parameters": { + "type": "params", + "required": [ + "uris" + ], + "properties": { + "uris": { + "type": "array", + "description": "List of clip AT-URIs to return hydrated views for", + "items": { + "type": "string", + "format": "at-uri" + }, + "maxLength": 25 + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "clips" + ], + "properties": { + "clips": { + "type": "array", + "description": "An array of hydrated clip views", + "items": { + "type": "ref", + "ref": "social.clippr.feed.defs#clipView" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_clippr_feed_getProfileClips.json b/crates/jacquard-api/lexicons/social_clippr_feed_getProfileClips.json new file mode 100644 index 00000000..a704375d --- /dev/null +++ b/crates/jacquard-api/lexicons/social_clippr_feed_getProfileClips.json @@ -0,0 +1,65 @@ +{ + "lexicon": 1, + "id": "social.clippr.feed.getProfileClips", + "defs": { + "main": { + "type": "query", + "description": "Get a view of a profile's reverse-chronological clips feed. Does not require auth.", + "parameters": { + "type": "params", + "required": [ + "actor" + ], + "properties": { + "actor": { + "type": "string", + "description": "An actor to get feed data from", + "format": "at-identifier" + }, + "cursor": { + "type": "string", + "description": "A parameter to paginate results" + }, + "filter": { + "type": "string", + "description": "What types to include in response", + "default": "all_clips", + "knownValues": [ + "all_clips", + "tagged_clips", + "untagged_clips" + ] + }, + "limit": { + "type": "integer", + "description": "How many results to return with the query", + "default": 50, + "minimum": 1, + "maximum": 100 + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "feed" + ], + "properties": { + "cursor": { + "type": "string" + }, + "feed": { + "type": "array", + "items": { + "type": "ref", + "ref": "social.clippr.feed.defs#clipView" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_clippr_feed_getProfileTags.json b/crates/jacquard-api/lexicons/social_clippr_feed_getProfileTags.json new file mode 100644 index 00000000..5d8320d5 --- /dev/null +++ b/crates/jacquard-api/lexicons/social_clippr_feed_getProfileTags.json @@ -0,0 +1,55 @@ +{ + "lexicon": 1, + "id": "social.clippr.feed.getProfileTags", + "defs": { + "main": { + "type": "query", + "description": "Get a view of a profile's reverse-chronological clips feed. Does not require auth.", + "parameters": { + "type": "params", + "required": [ + "actor" + ], + "properties": { + "actor": { + "type": "string", + "description": "An actor to get feed data from", + "format": "at-identifier" + }, + "cursor": { + "type": "string", + "description": "A parameter to paginate results" + }, + "limit": { + "type": "integer", + "description": "How many results to return with the query", + "default": 50, + "minimum": 1, + "maximum": 100 + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "feed" + ], + "properties": { + "cursor": { + "type": "string" + }, + "feed": { + "type": "array", + "items": { + "type": "ref", + "ref": "social.clippr.feed.defs#tagView" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_clippr_feed_getTagList.json b/crates/jacquard-api/lexicons/social_clippr_feed_getTagList.json new file mode 100644 index 00000000..a90b5fb7 --- /dev/null +++ b/crates/jacquard-api/lexicons/social_clippr_feed_getTagList.json @@ -0,0 +1,39 @@ +{ + "lexicon": 1, + "id": "social.clippr.feed.getTagList", + "defs": { + "main": { + "type": "query", + "description": "Get a user's list of tags. Does not require auth.", + "parameters": { + "type": "params", + "properties": { + "actor": { + "type": "string", + "description": "An actor to fetch the tag list from", + "format": "at-identifier" + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "tags" + ], + "properties": { + "tags": { + "type": "array", + "description": "A list of tags and their associated details", + "items": { + "type": "ref", + "ref": "social.clippr.feed.defs#tagView" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_clippr_feed_getTags.json b/crates/jacquard-api/lexicons/social_clippr_feed_getTags.json new file mode 100644 index 00000000..a7e60e45 --- /dev/null +++ b/crates/jacquard-api/lexicons/social_clippr_feed_getTags.json @@ -0,0 +1,46 @@ +{ + "lexicon": 1, + "id": "social.clippr.feed.getTags", + "defs": { + "main": { + "type": "query", + "description": "Get a list of tags. Does not require auth.", + "parameters": { + "type": "params", + "required": [ + "uris" + ], + "properties": { + "uris": { + "type": "array", + "description": "List of tag AT-URIs to return hydrated views for", + "items": { + "type": "string", + "format": "at-uri" + }, + "maxLength": 25 + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "tags" + ], + "properties": { + "tags": { + "type": "array", + "description": "An array of hydrated tag views", + "items": { + "type": "ref", + "ref": "social.clippr.feed.defs#tagView" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_clippr_feed_tag.json b/crates/jacquard-api/lexicons/social_clippr_feed_tag.json new file mode 100644 index 00000000..a37b6282 --- /dev/null +++ b/crates/jacquard-api/lexicons/social_clippr_feed_tag.json @@ -0,0 +1,43 @@ +{ + "lexicon": 1, + "id": "social.clippr.feed.tag", + "defs": { + "main": { + "type": "record", + "description": "A record containing a bookmark tag for organization.", + "key": "any", + "record": { + "type": "object", + "required": [ + "name", + "createdAt" + ], + "properties": { + "color": { + "type": "string", + "description": "A hexadecimal color code", + "maxLength": 70, + "maxGraphemes": 7 + }, + "createdAt": { + "type": "string", + "description": "A client-defined timestamp for the creation of the tag", + "format": "datetime" + }, + "description": { + "type": "string", + "description": "A description of the tag for additional context", + "maxLength": 50000, + "maxGraphemes": 5000 + }, + "name": { + "type": "string", + "description": "A de-duplicated string containing the name of the tag", + "maxLength": 640, + "maxGraphemes": 64 + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_grain_actor_defs.json b/crates/jacquard-api/lexicons/social_grain_actor_defs.json new file mode 100644 index 00000000..27957dc5 --- /dev/null +++ b/crates/jacquard-api/lexicons/social_grain_actor_defs.json @@ -0,0 +1,48 @@ +{ + "lexicon": 1, + "id": "social.grain.actor.defs", + "defs": { + "profileView": { + "type": "object", + "required": [ + "did", + "handle" + ], + "properties": { + "avatar": { + "type": "string", + "format": "uri" + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "description": { + "type": "string", + "maxLength": 2560, + "maxGraphemes": 256 + }, + "did": { + "type": "string", + "format": "did" + }, + "displayName": { + "type": "string", + "maxLength": 640, + "maxGraphemes": 64 + }, + "handle": { + "type": "string", + "format": "handle" + }, + "labels": { + "type": "array", + "items": { + "type": "ref", + "ref": "com.atproto.label.defs#label" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_grain_actor_profile.json b/crates/jacquard-api/lexicons/social_grain_actor_profile.json new file mode 100644 index 00000000..e0a114ef --- /dev/null +++ b/crates/jacquard-api/lexicons/social_grain_actor_profile.json @@ -0,0 +1,40 @@ +{ + "lexicon": 1, + "id": "social.grain.actor.profile", + "defs": { + "main": { + "type": "record", + "description": "A declaration of a basic account profile.", + "key": "literal:self", + "record": { + "type": "object", + "properties": { + "avatar": { + "type": "blob", + "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'", + "accept": [ + "image/png", + "image/jpeg" + ], + "maxSize": 1000000 + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "description": { + "type": "string", + "description": "Free-form profile description text.", + "maxLength": 2560, + "maxGraphemes": 256 + }, + "displayName": { + "type": "string", + "maxLength": 640, + "maxGraphemes": 64 + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_grain_defs.json b/crates/jacquard-api/lexicons/social_grain_defs.json new file mode 100644 index 00000000..6423e20b --- /dev/null +++ b/crates/jacquard-api/lexicons/social_grain_defs.json @@ -0,0 +1,24 @@ +{ + "lexicon": 1, + "id": "social.grain.defs", + "defs": { + "aspectRatio": { + "type": "object", + "description": "width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.", + "required": [ + "width", + "height" + ], + "properties": { + "height": { + "type": "integer", + "minimum": 1 + }, + "width": { + "type": "integer", + "minimum": 1 + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/blue_rito_feed_like.json b/crates/jacquard-api/lexicons/social_grain_favorite.json similarity index 73% rename from crates/jacquard-api/lexicons/blue_rito_feed_like.json rename to crates/jacquard-api/lexicons/social_grain_favorite.json index 706fa145..f841028b 100644 --- a/crates/jacquard-api/lexicons/blue_rito_feed_like.json +++ b/crates/jacquard-api/lexicons/social_grain_favorite.json @@ -1,16 +1,15 @@ { "lexicon": 1, - "id": "blue.rito.feed.like", + "id": "social.grain.favorite", "defs": { "main": { "type": "record", - "description": "Records a like.", "key": "tid", "record": { "type": "object", "required": [ - "subject", - "createdAt" + "createdAt", + "subject" ], "properties": { "createdAt": { @@ -19,7 +18,7 @@ }, "subject": { "type": "string", - "format": "uri" + "format": "at-uri" } } } diff --git a/crates/jacquard-api/lexicons/social_grain_gallery.json b/crates/jacquard-api/lexicons/social_grain_gallery.json new file mode 100644 index 00000000..d7a64533 --- /dev/null +++ b/crates/jacquard-api/lexicons/social_grain_gallery.json @@ -0,0 +1,38 @@ +{ + "lexicon": 1, + "id": "social.grain.gallery", + "defs": { + "main": { + "type": "record", + "key": "tid", + "record": { + "type": "object", + "required": [ + "title", + "createdAt" + ], + "properties": { + "createdAt": { + "type": "string", + "format": "datetime" + }, + "description": { + "type": "string", + "maxLength": 1000 + }, + "labels": { + "type": "union", + "description": "Self-label values for this post. Effectively content warnings.", + "refs": [ + "com.atproto.label.defs#selfLabels" + ] + }, + "title": { + "type": "string", + "maxLength": 100 + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_grain_gallery_defs.json b/crates/jacquard-api/lexicons/social_grain_gallery_defs.json new file mode 100644 index 00000000..e9554fe0 --- /dev/null +++ b/crates/jacquard-api/lexicons/social_grain_gallery_defs.json @@ -0,0 +1,53 @@ +{ + "lexicon": 1, + "id": "social.grain.gallery.defs", + "defs": { + "galleryView": { + "type": "object", + "required": [ + "uri", + "cid", + "creator", + "record", + "indexedAt" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "creator": { + "type": "ref", + "ref": "social.grain.actor.defs#profileView" + }, + "indexedAt": { + "type": "string", + "format": "datetime" + }, + "items": { + "type": "array", + "items": { + "type": "union", + "refs": [ + "social.grain.photo.defs#photoView" + ] + } + }, + "labels": { + "type": "array", + "items": { + "type": "ref", + "ref": "com.atproto.label.defs#label" + } + }, + "record": { + "type": "unknown" + }, + "uri": { + "type": "string", + "format": "at-uri" + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_grain_gallery_item.json b/crates/jacquard-api/lexicons/social_grain_gallery_item.json new file mode 100644 index 00000000..ce66f76b --- /dev/null +++ b/crates/jacquard-api/lexicons/social_grain_gallery_item.json @@ -0,0 +1,36 @@ +{ + "lexicon": 1, + "id": "social.grain.gallery.item", + "defs": { + "main": { + "type": "record", + "key": "tid", + "record": { + "type": "object", + "required": [ + "createdAt", + "gallery", + "item" + ], + "properties": { + "createdAt": { + "type": "string", + "format": "datetime" + }, + "gallery": { + "type": "string", + "format": "at-uri" + }, + "item": { + "type": "string", + "format": "at-uri" + }, + "position": { + "type": "integer", + "default": 0 + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_grain_photo.json b/crates/jacquard-api/lexicons/social_grain_photo.json new file mode 100644 index 00000000..08d3a297 --- /dev/null +++ b/crates/jacquard-api/lexicons/social_grain_photo.json @@ -0,0 +1,38 @@ +{ + "lexicon": 1, + "id": "social.grain.photo", + "defs": { + "main": { + "type": "record", + "key": "tid", + "record": { + "type": "object", + "required": [ + "photo", + "alt" + ], + "properties": { + "alt": { + "type": "string", + "description": "Alt text description of the image, for accessibility." + }, + "aspectRatio": { + "type": "ref", + "ref": "social.grain.defs#aspectRatio" + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "photo": { + "type": "blob", + "accept": [ + "image/*" + ], + "maxSize": 1000000 + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_grain_photo_defs.json b/crates/jacquard-api/lexicons/social_grain_photo_defs.json new file mode 100644 index 00000000..d840b08f --- /dev/null +++ b/crates/jacquard-api/lexicons/social_grain_photo_defs.json @@ -0,0 +1,104 @@ +{ + "lexicon": 1, + "id": "social.grain.photo.defs", + "defs": { + "exifView": { + "type": "object", + "required": [ + "photo", + "createdAt" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "dateTimeOriginal": { + "type": "string" + }, + "exposureTime": { + "type": "string" + }, + "fNumber": { + "type": "string" + }, + "flash": { + "type": "string" + }, + "focalLengthIn35mmFormat": { + "type": "string" + }, + "iSO": { + "type": "integer" + }, + "lensMake": { + "type": "string" + }, + "lensModel": { + "type": "string" + }, + "make": { + "type": "string" + }, + "model": { + "type": "string" + }, + "photo": { + "type": "string", + "format": "at-uri" + }, + "uri": { + "type": "string", + "format": "at-uri" + } + } + }, + "photoView": { + "type": "object", + "required": [ + "uri", + "cid", + "thumb", + "fullsize", + "alt" + ], + "properties": { + "alt": { + "type": "string", + "description": "Alt text description of the image, for accessibility." + }, + "aspectRatio": { + "type": "ref", + "ref": "social.grain.defs#aspectRatio" + }, + "cid": { + "type": "string", + "format": "cid" + }, + "exif": { + "type": "ref", + "description": "EXIF metadata for the photo, if available.", + "ref": "social.grain.photo.defs#exifView" + }, + "fullsize": { + "type": "string", + "description": "Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View.", + "format": "uri" + }, + "thumb": { + "type": "string", + "description": "Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.", + "format": "uri" + }, + "uri": { + "type": "string", + "format": "at-uri" + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_grain_photo_exif.json b/crates/jacquard-api/lexicons/social_grain_photo_exif.json new file mode 100644 index 00000000..88b98378 --- /dev/null +++ b/crates/jacquard-api/lexicons/social_grain_photo_exif.json @@ -0,0 +1,59 @@ +{ + "lexicon": 1, + "id": "social.grain.photo.exif", + "defs": { + "main": { + "type": "record", + "description": "Basic EXIF metadata for a photo. Integers are scaled by 1000000 to accommodate decimal values and potentially other tags in the future.", + "key": "tid", + "record": { + "type": "object", + "required": [ + "photo", + "createdAt" + ], + "properties": { + "createdAt": { + "type": "string", + "format": "datetime" + }, + "dateTimeOriginal": { + "type": "string", + "format": "datetime" + }, + "exposureTime": { + "type": "integer" + }, + "fNumber": { + "type": "integer" + }, + "flash": { + "type": "string" + }, + "focalLengthIn35mmFormat": { + "type": "integer" + }, + "iSO": { + "type": "integer" + }, + "lensMake": { + "type": "string" + }, + "lensModel": { + "type": "string" + }, + "make": { + "type": "string" + }, + "model": { + "type": "string" + }, + "photo": { + "type": "string", + "format": "at-uri" + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_pmsky_proposal.json b/crates/jacquard-api/lexicons/social_pmsky_proposal.json new file mode 100644 index 00000000..5947bc20 --- /dev/null +++ b/crates/jacquard-api/lexicons/social_pmsky_proposal.json @@ -0,0 +1,75 @@ +{ + "lexicon": 1, + "id": "social.pmsky.proposal", + "defs": { + "main": { + "type": "record", + "key": "tid", + "record": { + "type": "object", + "description": "A proposed moderation action (e.g. adding a label or annotation to a post). Refers to some other resource via URI (e.g. an atproto post). Superset of 'com.atproto.proposal.defs#label.", + "required": [ + "typ", + "src", + "uri", + "val", + "cts" + ], + "properties": { + "aid": { + "type": "string", + "description": "The persistent, anonymous identifier for the user creating the proposal." + }, + "cid": { + "type": "string", + "description": "Optionally, CID specifying the specific version of 'uri' resource this proposal applies to.", + "format": "cid" + }, + "cts": { + "type": "string", + "description": "Timestamp when this proposal was created.", + "format": "datetime" + }, + "note": { + "type": "string", + "description": "For 'label' proposals where 'val' is 'needs-context', the full text of any proposed annotation (e.g. community note) to be shown below the post." + }, + "reasons": { + "type": "array", + "description": "An optional array of predefined reasons justifying the moderation action.", + "items": { + "type": "string" + } + }, + "sig": { + "type": "bytes", + "description": "Signature of dag-cbor encoded proposal." + }, + "src": { + "type": "string", + "description": "DID of the actor who created this proposal.", + "format": "did" + }, + "typ": { + "type": "string", + "description": "The type of moderation action being proposed. Currently expected values are 'allowed_user' or 'label'" + }, + "uri": { + "type": "string", + "description": "AT URI of the record, repository (account), or other resource that this proposal applies to.", + "format": "uri" + }, + "val": { + "type": "string", + "description": "For 'label' proposals, the short string name of the value of the proposed label.", + "maxLength": 128 + }, + "ver": { + "type": "integer", + "description": "The AT Protocol version of the proposal object." + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/social_pmsky_vote.json b/crates/jacquard-api/lexicons/social_pmsky_vote.json new file mode 100644 index 00000000..a50126cd --- /dev/null +++ b/crates/jacquard-api/lexicons/social_pmsky_vote.json @@ -0,0 +1,61 @@ +{ + "lexicon": 1, + "id": "social.pmsky.vote", + "defs": { + "main": { + "type": "record", + "key": "tid", + "record": { + "type": "object", + "description": "A vote record, representing a user's approval or disapproval of the referenced resource. The resource my be a proposal, a post, a web page, or anything that can be agreed or disagreed with.", + "required": [ + "src", + "uri", + "val", + "cts" + ], + "properties": { + "aid": { + "type": "string", + "description": "The persistent, anonymous identifier for the user casting the vote." + }, + "cid": { + "type": "string", + "description": "Optionally, CID specifying the specific version of 'uri' resource this vote applies to.", + "format": "cid" + }, + "cts": { + "type": "string", + "description": "Timestamp when this vote was created.", + "format": "datetime" + }, + "reasons": { + "type": "array", + "description": "An optional array of predefined reasons justifying the vote.", + "items": { + "type": "string" + } + }, + "sig": { + "type": "bytes", + "description": "Signature of dag-cbor encoded vote." + }, + "src": { + "type": "string", + "description": "the account creating the vote, not necessarily the same as the user who voted", + "format": "did" + }, + "uri": { + "type": "string", + "description": "AT URI of the record, repository (account), or other resource that this vote applies to.", + "format": "uri" + }, + "val": { + "type": "integer", + "description": "The value of the vote. The exact meaning depends on what is being voted on, but generally '+1' means 'approval', -1 means 'disapproval', and 0 indicates 'neutrality'." + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/uk_ewancroft_site_info.json b/crates/jacquard-api/lexicons/uk_ewancroft_site_info.json deleted file mode 100644 index cbb00cce..00000000 --- a/crates/jacquard-api/lexicons/uk_ewancroft_site_info.json +++ /dev/null @@ -1,284 +0,0 @@ -{ - "lexicon": 1, - "id": "uk.ewancroft.site.info", - "defs": { - "main": { - "type": "record", - "description": "Information about the website.", - "key": "literal:self", - "record": { - "type": "object", - "properties": { - "additionalInfo": { - "type": "object", - "description": "Additional flexible information about the website.", - "properties": { - "purpose": { - "type": "string", - "description": "Website purpose or mission statement.", - "maxLength": 10000, - "maxGraphemes": 1000 - }, - "sectionLicense": { - "type": "array", - "description": "License information for specific content sections, such as a blog.", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string", - "maxLength": 1000, - "maxGraphemes": 100 - }, - "section": { - "type": "string", - "maxLength": 1000, - "maxGraphemes": 100 - }, - "url": { - "type": "string", - "format": "uri" - } - } - } - }, - "websiteBirthYear": { - "type": "integer", - "description": "The year the website was first launched or created.", - "minimum": 1990 - } - } - }, - "credits": { - "type": "array", - "description": "Credits for assets, fonts, libraries, or other resources used.", - "items": { - "type": "object", - "required": [ - "name", - "type" - ], - "properties": { - "author": { - "type": "string", - "maxLength": 1000, - "maxGraphemes": 100 - }, - "description": { - "type": "string", - "maxLength": 5000, - "maxGraphemes": 500 - }, - "license": { - "type": "object", - "properties": { - "name": { - "type": "string", - "maxLength": 1000, - "maxGraphemes": 100 - }, - "url": { - "type": "string", - "format": "uri" - } - } - }, - "name": { - "type": "string", - "maxLength": 1000, - "maxGraphemes": 100 - }, - "section": { - "type": "string", - "maxLength": 1000, - "maxGraphemes": 100 - }, - "type": { - "type": "string", - "description": "Type of credit (font, library, asset, etc.)", - "maxLength": 500, - "maxGraphemes": 50 - }, - "url": { - "type": "string", - "format": "uri" - } - } - }, - "maxLength": 50 - }, - "openSourceInfo": { - "type": "object", - "description": "Information about the open-source nature of the website.", - "properties": { - "basedOn": { - "type": "array", - "description": "Projects or libraries this is based on or forked from.", - "items": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "description": { - "type": "string", - "maxLength": 5000, - "maxGraphemes": 500 - }, - "name": { - "type": "string", - "maxLength": 1000, - "maxGraphemes": 100 - }, - "section": { - "type": "string", - "maxLength": 1000, - "maxGraphemes": 100 - }, - "type": { - "type": "string", - "description": "Type of relationship (fork, inspiration, dependency, etc.)", - "maxLength": 500, - "maxGraphemes": 50 - }, - "url": { - "type": "string", - "format": "uri" - } - } - }, - "maxLength": 20 - }, - "description": { - "type": "string", - "description": "General description of the open-source nature.", - "maxLength": 20000, - "maxGraphemes": 2000 - }, - "license": { - "type": "object", - "description": "License information for the project.", - "properties": { - "name": { - "type": "string", - "maxLength": 1000, - "maxGraphemes": 100 - }, - "url": { - "type": "string", - "format": "uri" - } - } - }, - "relatedServices": { - "type": "array", - "description": "Related services or platforms.", - "items": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "description": { - "type": "string", - "maxLength": 5000, - "maxGraphemes": 500 - }, - "name": { - "type": "string", - "maxLength": 1000, - "maxGraphemes": 100 - }, - "relationship": { - "type": "string", - "description": "How this service relates to the website", - "maxLength": 1000, - "maxGraphemes": 100 - }, - "section": { - "type": "string", - "maxLength": 1000, - "maxGraphemes": 100 - }, - "url": { - "type": "string", - "format": "uri" - } - } - }, - "maxLength": 20 - }, - "repositories": { - "type": "array", - "description": "Source code repositories.", - "items": { - "type": "object", - "required": [ - "url" - ], - "properties": { - "description": { - "type": "string", - "maxLength": 2000, - "maxGraphemes": 200 - }, - "platform": { - "type": "string", - "description": "Platform name (github, gitlab, tangled, etc.)", - "maxLength": 500, - "maxGraphemes": 50 - }, - "type": { - "type": "string", - "description": "Repository type (primary, mirror, fork, etc.)", - "maxLength": 500, - "maxGraphemes": 50 - }, - "url": { - "type": "string", - "format": "uri" - } - } - }, - "maxLength": 20 - } - } - }, - "privacyStatement": { - "type": "string", - "description": "A statement about website privacy and data handling.", - "maxLength": 50000, - "maxGraphemes": 5000 - }, - "technologyStack": { - "type": "array", - "description": "A list of technologies used to build the website.", - "items": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "description": { - "type": "string", - "maxLength": 5000, - "maxGraphemes": 500 - }, - "name": { - "type": "string", - "maxLength": 1000, - "maxGraphemes": 100 - }, - "url": { - "type": "string", - "format": "uri" - } - } - }, - "maxLength": 50 - } - } - } - } - } -} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/uk_ewancroft_snake_score.json b/crates/jacquard-api/lexicons/uk_ewancroft_snake_score.json deleted file mode 100644 index d335e4e0..00000000 --- a/crates/jacquard-api/lexicons/uk_ewancroft_snake_score.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "lexicon": 1, - "id": "uk.ewancroft.snake.score", - "defs": { - "main": { - "type": "record", - "description": "A validated record of a user's score in the Snake game.", - "key": "tid", - "record": { - "type": "object", - "required": [ - "score", - "createdAt" - ], - "properties": { - "createdAt": { - "type": "string", - "description": "When the score was achieved", - "format": "datetime" - }, - "gameProof": { - "type": "object", - "description": "Validation proof to prevent score manipulation", - "properties": { - "actionCount": { - "type": "integer", - "description": "Number of recorded game actions", - "minimum": 2 - }, - "checksum": { - "type": "string", - "description": "Cryptographic checksum of game actions" - }, - "duration": { - "type": "integer", - "description": "Game duration in milliseconds", - "minimum": 1000 - } - } - }, - "score": { - "type": "integer", - "description": "The player's final score", - "minimum": 0 - } - } - } - } - } -} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/uk_skyblur_post.json b/crates/jacquard-api/lexicons/uk_skyblur_post.json new file mode 100644 index 00000000..00a09eb1 --- /dev/null +++ b/crates/jacquard-api/lexicons/uk_skyblur_post.json @@ -0,0 +1,57 @@ +{ + "lexicon": 1, + "id": "uk.skyblur.post", + "defs": { + "main": { + "type": "record", + "description": "Record containing a Skyblur post.", + "key": "tid", + "record": { + "type": "object", + "required": [ + "text", + "createdAt", + "uri", + "visibility" + ], + "properties": { + "additional": { + "type": "string", + "description": "The post additional contents.", + "maxLength": 100000, + "maxGraphemes": 10000 + }, + "createdAt": { + "type": "string", + "description": "Created date assigned by client", + "format": "datetime" + }, + "encryptBody": { + "type": "blob", + "description": "Encrypted post body. It shoud be decrypted by the client with AES-256." + }, + "text": { + "type": "string", + "description": "The post main contents. Blurred text must be enclosed in brackets [].", + "maxLength": 3000, + "maxGraphemes": 300 + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "visibility": { + "type": "string", + "description": "For 'password', the text only contains blurred text, and additional is always empty. The unblurred text and additional are included in the encryptBody.", + "maxLength": 100, + "maxGraphemes": 10, + "enum": [ + "public", + "password" + ] + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/uk_skyblur_post_decryptByCid.json b/crates/jacquard-api/lexicons/uk_skyblur_post_decryptByCid.json new file mode 100644 index 00000000..b6b6b02e --- /dev/null +++ b/crates/jacquard-api/lexicons/uk_skyblur_post_decryptByCid.json @@ -0,0 +1,60 @@ +{ + "lexicon": 1, + "id": "uk.skyblur.post.decryptByCid", + "defs": { + "main": { + "type": "procedure", + "description": "Decrypting the post by blob cid.", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "pds", + "repo", + "cid", + "password" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "password": { + "type": "string" + }, + "pds": { + "type": "string", + "format": "uri" + }, + "repo": { + "type": "string", + "format": "did" + } + } + } + }, + "output": { + "description": "Returns the encrypted result.", + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "text" + ], + "properties": { + "additional": { + "type": "string" + }, + "message": { + "type": "string" + }, + "text": { + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/uk_skyblur_post_encrypt.json b/crates/jacquard-api/lexicons/uk_skyblur_post_encrypt.json new file mode 100644 index 00000000..df979a5f --- /dev/null +++ b/crates/jacquard-api/lexicons/uk_skyblur_post_encrypt.json @@ -0,0 +1,46 @@ +{ + "lexicon": 1, + "id": "uk.skyblur.post.encrypt", + "defs": { + "main": { + "type": "procedure", + "description": "Encrypting the post.", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "body", + "password" + ], + "properties": { + "body": { + "type": "string" + }, + "password": { + "type": "string" + } + } + } + }, + "output": { + "description": "Returns the encrypted result.", + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "body" + ], + "properties": { + "body": { + "type": "string" + }, + "message": { + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/uk_skyblur_post_getPost.json b/crates/jacquard-api/lexicons/uk_skyblur_post_getPost.json new file mode 100644 index 00000000..be39ae57 --- /dev/null +++ b/crates/jacquard-api/lexicons/uk_skyblur_post_getPost.json @@ -0,0 +1,50 @@ +{ + "lexicon": 1, + "id": "uk.skyblur.post.getPost", + "defs": { + "main": { + "type": "procedure", + "description": "Get Skyblur post. If the specified post is password-protected, you can retrieve the unlocked content by providing the password.", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "uri" + ], + "properties": { + "password": { + "type": "string", + "description": "If the specified uri is password-protected, please provide the password. If no password is specified, the non-protected content will be returned." + }, + "uri": { + "type": "string", + "description": "Skyblur post at-uri. It shoud be uk.skyblur.post collection.", + "format": "at-uri" + } + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [ + "text" + ], + "properties": { + "additional": { + "type": "string" + }, + "message": { + "type": "string" + }, + "text": { + "type": "string" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/uk_skyblur_preference.json b/crates/jacquard-api/lexicons/uk_skyblur_preference.json new file mode 100644 index 00000000..df1dc884 --- /dev/null +++ b/crates/jacquard-api/lexicons/uk_skyblur_preference.json @@ -0,0 +1,43 @@ +{ + "lexicon": 1, + "id": "uk.skyblur.preference", + "defs": { + "main": { + "type": "record", + "description": "A declaration of a Skyblur account.", + "key": "literal:self", + "record": { + "type": "object", + "required": [ + "myPage" + ], + "properties": { + "myPage": { + "type": "union", + "refs": [ + "uk.skyblur.preference#myPage" + ] + } + } + } + }, + "myPage": { + "type": "object", + "required": [ + "isUseMyPage" + ], + "properties": { + "description": { + "type": "string", + "description": "Define the description displayed on MyPage.", + "maxLength": 10000, + "maxGraphemes": 100000 + }, + "isUseMyPage": { + "type": "boolean", + "description": "If this item is true, MyPage will be displayed." + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/us_polhem_blog_content.json b/crates/jacquard-api/lexicons/us_polhem_blog_content.json new file mode 100644 index 00000000..2a32b954 --- /dev/null +++ b/crates/jacquard-api/lexicons/us_polhem_blog_content.json @@ -0,0 +1,41 @@ +{ + "lexicon": 1, + "id": "us.polhem.blog.content", + "description": "Generic blocks of web content for my personal blog (https://polhem.us)", + "defs": { + "main": { + "type": "record", + "description": "Record describing a page content block.", + "key": "tid", + "record": { + "type": "object", + "required": [ + "content", + "slug", + "createdAt" + ], + "properties": { + "content": { + "type": "string", + "maxLength": 100000 + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "images": { + "type": "array", + "items": { + "type": "ref", + "ref": "us.polhem.blog.image" + } + }, + "slug": { + "type": "string", + "maxLength": 100 + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/us_polhem_blog_defs.json b/crates/jacquard-api/lexicons/us_polhem_blog_defs.json new file mode 100644 index 00000000..cb0b28b1 --- /dev/null +++ b/crates/jacquard-api/lexicons/us_polhem_blog_defs.json @@ -0,0 +1,25 @@ +{ + "lexicon": 1, + "id": "us.polhem.blog.defs", + "description": "", + "defs": { + "aspectRatio": { + "type": "object", + "description": "width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.", + "required": [ + "width", + "height" + ], + "properties": { + "height": { + "type": "integer", + "minimum": 1 + }, + "width": { + "type": "integer", + "minimum": 1 + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/us_polhem_blog_post.json b/crates/jacquard-api/lexicons/us_polhem_blog_post.json new file mode 100644 index 00000000..ef948c3d --- /dev/null +++ b/crates/jacquard-api/lexicons/us_polhem_blog_post.json @@ -0,0 +1,72 @@ +{ + "lexicon": 1, + "id": "us.polhem.blog.post", + "description": "Posts on my personal blog (https://polhem.us)", + "defs": { + "main": { + "type": "record", + "description": "Record describing a blog post.", + "key": "tid", + "record": { + "type": "object", + "required": [ + "title", + "content", + "slug", + "createdAt" + ], + "properties": { + "content": { + "type": "string", + "maxLength": 100000 + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "excerpt": { + "type": "string", + "maxLength": 1000 + }, + "featuredImage": { + "type": "ref", + "ref": "app.bsky.embed.images#image" + }, + "images": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.bsky.embed.images#image" + } + }, + "slug": { + "type": "string", + "maxLength": 100 + }, + "tags": { + "type": "array", + "items": { + "type": "string", + "description": "Reference (AT-URI) to a tag record (us.polhem.blog.tag).", + "format": "at-uri" + } + }, + "title": { + "type": "string", + "maxLength": 1000 + }, + "visibility": { + "type": "string", + "description": "Tells the visibility of the article to AppView.", + "default": "public", + "enum": [ + "public", + "url", + "author" + ] + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/lexicons/us_polhem_blog_tag.json b/crates/jacquard-api/lexicons/us_polhem_blog_tag.json new file mode 100644 index 00000000..84a6866d --- /dev/null +++ b/crates/jacquard-api/lexicons/us_polhem_blog_tag.json @@ -0,0 +1,39 @@ +{ + "lexicon": 1, + "id": "us.polhem.blog.tag", + "description": "Tags for posts on my personal blog (https://polhem.us)", + "defs": { + "main": { + "type": "record", + "description": "Record describing a blog tag.", + "key": "tid", + "record": { + "type": "object", + "required": [ + "name", + "slug", + "description", + "createdAt" + ], + "properties": { + "createdAt": { + "type": "string", + "format": "datetime" + }, + "description": { + "type": "string", + "maxLength": 100000 + }, + "name": { + "type": "string", + "maxLength": 100 + }, + "slug": { + "type": "string", + "maxLength": 100 + } + } + } + } + } +} \ No newline at end of file diff --git a/crates/jacquard-api/src/xyz_autonomylab.rs b/crates/jacquard-api/src/app_blebbit.rs similarity index 92% rename from crates/jacquard-api/src/xyz_autonomylab.rs rename to crates/jacquard-api/src/app_blebbit.rs index cbaa2578..450928ba 100644 --- a/crates/jacquard-api/src/xyz_autonomylab.rs +++ b/crates/jacquard-api/src/app_blebbit.rs @@ -3,4 +3,4 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -pub mod status; \ No newline at end of file +pub mod authr; \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr.rs b/crates/jacquard-api/src/app_blebbit/authr.rs new file mode 100644 index 00000000..c76a0966 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr.rs @@ -0,0 +1,8 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod folder; +pub mod group; +pub mod page; \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/folder.rs b/crates/jacquard-api/src/app_blebbit/authr/folder.rs new file mode 100644 index 00000000..881e9ae4 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/folder.rs @@ -0,0 +1,57 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.folder.defs +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod create_folder; +pub mod create_folder_relationship; +pub mod delete_folder; +pub mod delete_folder_relationship; +pub mod get_folder; +pub mod get_folders; +pub mod record; +pub mod update_folder; +pub mod update_folder_relationship; + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct FolderForm<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct FolderView<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cuid: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/folder/create_folder.rs b/crates/jacquard-api/src/app_blebbit/authr/folder/create_folder.rs new file mode 100644 index 00000000..eca9a3b9 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/folder/create_folder.rs @@ -0,0 +1,87 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.folder.createFolder +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct CreateFolder<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct CreateFolderOutput<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cuid: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, +} + +///Response type for +///app.blebbit.authr.folder.createFolder +pub struct CreateFolderResponse; +impl jacquard_common::xrpc::XrpcResp for CreateFolderResponse { + const NSID: &'static str = "app.blebbit.authr.folder.createFolder"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = CreateFolderOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CreateFolder<'de> { + const NSID: &'static str = "app.blebbit.authr.folder.createFolder"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = CreateFolderResponse; +} + +///Endpoint type for +///app.blebbit.authr.folder.createFolder +pub struct CreateFolderRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CreateFolderRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.folder.createFolder"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = CreateFolder<'de>; + type Response = CreateFolderResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/folder/create_folder_relationship.rs b/crates/jacquard-api/src/app_blebbit/authr/folder/create_folder_relationship.rs new file mode 100644 index 00000000..ea1b0bcb --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/folder/create_folder_relationship.rs @@ -0,0 +1,68 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.folder.createFolderRelationship +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct CreateFolderRelationship<'a> { + #[serde(borrow)] + #[builder(into)] + pub relation: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub resource: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub subject: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +///Response type for +///app.blebbit.authr.folder.createFolderRelationship +pub struct CreateFolderRelationshipResponse; +impl jacquard_common::xrpc::XrpcResp for CreateFolderRelationshipResponse { + const NSID: &'static str = "app.blebbit.authr.folder.createFolderRelationship"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = (); + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CreateFolderRelationship<'de> { + const NSID: &'static str = "app.blebbit.authr.folder.createFolderRelationship"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = CreateFolderRelationshipResponse; +} + +///Endpoint type for +///app.blebbit.authr.folder.createFolderRelationship +pub struct CreateFolderRelationshipRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CreateFolderRelationshipRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.folder.createFolderRelationship"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = CreateFolderRelationship<'de>; + type Response = CreateFolderRelationshipResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/folder/delete_folder.rs b/crates/jacquard-api/src/app_blebbit/authr/folder/delete_folder.rs new file mode 100644 index 00000000..5c4eeef9 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/folder/delete_folder.rs @@ -0,0 +1,67 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.folder.deleteFolder +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct DeleteFolderParams<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub id: std::option::Option>, +} + +/// XRPC request marker type +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] +pub struct DeleteFolder; +///Response type for +///app.blebbit.authr.folder.deleteFolder +pub struct DeleteFolderResponse; +impl jacquard_common::xrpc::XrpcResp for DeleteFolderResponse { + const NSID: &'static str = "app.blebbit.authr.folder.deleteFolder"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = (); + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeleteFolder { + const NSID: &'static str = "app.blebbit.authr.folder.deleteFolder"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = DeleteFolderResponse; +} + +///Endpoint type for +///app.blebbit.authr.folder.deleteFolder +pub struct DeleteFolderRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeleteFolderRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.folder.deleteFolder"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeleteFolder; + type Response = DeleteFolderResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/folder/delete_folder_relationship.rs b/crates/jacquard-api/src/app_blebbit/authr/folder/delete_folder_relationship.rs new file mode 100644 index 00000000..12940733 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/folder/delete_folder_relationship.rs @@ -0,0 +1,69 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.folder.deleteFolderRelationship +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct DeleteFolderRelationship<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub relation: std::option::Option>, + #[serde(borrow)] + #[builder(into)] + pub resource: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub subject: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +///Response type for +///app.blebbit.authr.folder.deleteFolderRelationship +pub struct DeleteFolderRelationshipResponse; +impl jacquard_common::xrpc::XrpcResp for DeleteFolderRelationshipResponse { + const NSID: &'static str = "app.blebbit.authr.folder.deleteFolderRelationship"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = (); + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeleteFolderRelationship<'de> { + const NSID: &'static str = "app.blebbit.authr.folder.deleteFolderRelationship"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = DeleteFolderRelationshipResponse; +} + +///Endpoint type for +///app.blebbit.authr.folder.deleteFolderRelationship +pub struct DeleteFolderRelationshipRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeleteFolderRelationshipRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.folder.deleteFolderRelationship"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeleteFolderRelationship<'de>; + type Response = DeleteFolderRelationshipResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/folder/get_folder.rs b/crates/jacquard-api/src/app_blebbit/authr/folder/get_folder.rs new file mode 100644 index 00000000..9b998d61 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/folder/get_folder.rs @@ -0,0 +1,72 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.folder.getFolder +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetFolder<'a> { + #[serde(borrow)] + #[builder(into)] + pub id: jacquard_common::CowStr<'a>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetFolderOutput<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cuid: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, +} + +///Response type for +///app.blebbit.authr.folder.getFolder +pub struct GetFolderResponse; +impl jacquard_common::xrpc::XrpcResp for GetFolderResponse { + const NSID: &'static str = "app.blebbit.authr.folder.getFolder"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetFolderOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetFolder<'de> { + const NSID: &'static str = "app.blebbit.authr.folder.getFolder"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetFolderResponse; +} + +///Endpoint type for +///app.blebbit.authr.folder.getFolder +pub struct GetFolderRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetFolderRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.folder.getFolder"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetFolder<'de>; + type Response = GetFolderResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/folder/get_folders.rs b/crates/jacquard-api/src/app_blebbit/authr/folder/get_folders.rs new file mode 100644 index 00000000..1dd25fcd --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/folder/get_folders.rs @@ -0,0 +1,72 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.folder.getFolders +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetFolders<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub cursor: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub limit: std::option::Option, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetFoldersOutput<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub folders: std::option::Option< + Vec>, + >, +} + +///Response type for +///app.blebbit.authr.folder.getFolders +pub struct GetFoldersResponse; +impl jacquard_common::xrpc::XrpcResp for GetFoldersResponse { + const NSID: &'static str = "app.blebbit.authr.folder.getFolders"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetFoldersOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetFolders<'de> { + const NSID: &'static str = "app.blebbit.authr.folder.getFolders"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetFoldersResponse; +} + +///Endpoint type for +///app.blebbit.authr.folder.getFolders +pub struct GetFoldersRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetFoldersRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.folder.getFolders"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetFolders<'de>; + type Response = GetFoldersResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/folder/record.rs b/crates/jacquard-api/src/app_blebbit/authr/folder/record.rs new file mode 100644 index 00000000..e50d2346 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/folder/record.rs @@ -0,0 +1,32 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.folder.record +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Record<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cuid: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, +} + +impl jacquard_common::types::collection::Collection for Record<'_> { + const NSID: &'static str = "app.blebbit.authr.folder.record"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/folder/update_folder.rs b/crates/jacquard-api/src/app_blebbit/authr/folder/update_folder.rs new file mode 100644 index 00000000..3b109f16 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/folder/update_folder.rs @@ -0,0 +1,106 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.folder.updateFolder +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct UpdateFolderParams<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub id: std::option::Option>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct UpdateFolder<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct UpdateFolderOutput<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cuid: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, +} + +///Response type for +///app.blebbit.authr.folder.updateFolder +pub struct UpdateFolderResponse; +impl jacquard_common::xrpc::XrpcResp for UpdateFolderResponse { + const NSID: &'static str = "app.blebbit.authr.folder.updateFolder"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = UpdateFolderOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateFolder<'de> { + const NSID: &'static str = "app.blebbit.authr.folder.updateFolder"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = UpdateFolderResponse; +} + +///Endpoint type for +///app.blebbit.authr.folder.updateFolder +pub struct UpdateFolderRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateFolderRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.folder.updateFolder"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateFolder<'de>; + type Response = UpdateFolderResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/folder/update_folder_relationship.rs b/crates/jacquard-api/src/app_blebbit/authr/folder/update_folder_relationship.rs new file mode 100644 index 00000000..6d66dac3 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/folder/update_folder_relationship.rs @@ -0,0 +1,68 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.folder.updateFolderRelationship +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct UpdateFolderRelationship<'a> { + #[serde(borrow)] + #[builder(into)] + pub relation: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub resource: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub subject: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +///Response type for +///app.blebbit.authr.folder.updateFolderRelationship +pub struct UpdateFolderRelationshipResponse; +impl jacquard_common::xrpc::XrpcResp for UpdateFolderRelationshipResponse { + const NSID: &'static str = "app.blebbit.authr.folder.updateFolderRelationship"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = (); + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateFolderRelationship<'de> { + const NSID: &'static str = "app.blebbit.authr.folder.updateFolderRelationship"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = UpdateFolderRelationshipResponse; +} + +///Endpoint type for +///app.blebbit.authr.folder.updateFolderRelationship +pub struct UpdateFolderRelationshipRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateFolderRelationshipRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.folder.updateFolderRelationship"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateFolderRelationship<'de>; + type Response = UpdateFolderRelationshipResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/group.rs b/crates/jacquard-api/src/app_blebbit/authr/group.rs new file mode 100644 index 00000000..5d073939 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/group.rs @@ -0,0 +1,68 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.group.defs +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod create_group; +pub mod create_group_relationship; +pub mod delete_group; +pub mod delete_group_relationship; +pub mod get_group; +pub mod get_groups; +pub mod record; +pub mod update_group; +pub mod update_group_relationship; + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GroupForm<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub display: std::option::Option>, + #[serde(borrow)] + pub name: jacquard_common::CowStr<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GroupView<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cuid: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub display: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/group/create_group.rs b/crates/jacquard-api/src/app_blebbit/authr/group/create_group.rs new file mode 100644 index 00000000..49eb2f13 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/group/create_group.rs @@ -0,0 +1,100 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.group.createGroup +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct CreateGroup<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub description: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub display: std::option::Option>, + #[serde(borrow)] + #[builder(into)] + pub name: jacquard_common::CowStr<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct CreateGroupOutput<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cuid: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub display: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, +} + +///Response type for +///app.blebbit.authr.group.createGroup +pub struct CreateGroupResponse; +impl jacquard_common::xrpc::XrpcResp for CreateGroupResponse { + const NSID: &'static str = "app.blebbit.authr.group.createGroup"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = CreateGroupOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CreateGroup<'de> { + const NSID: &'static str = "app.blebbit.authr.group.createGroup"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = CreateGroupResponse; +} + +///Endpoint type for +///app.blebbit.authr.group.createGroup +pub struct CreateGroupRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CreateGroupRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.group.createGroup"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = CreateGroup<'de>; + type Response = CreateGroupResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/group/create_group_relationship.rs b/crates/jacquard-api/src/app_blebbit/authr/group/create_group_relationship.rs new file mode 100644 index 00000000..8fb41bd2 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/group/create_group_relationship.rs @@ -0,0 +1,68 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.group.createGroupRelationship +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct CreateGroupRelationship<'a> { + #[serde(borrow)] + #[builder(into)] + pub relation: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub resource: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub subject: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +///Response type for +///app.blebbit.authr.group.createGroupRelationship +pub struct CreateGroupRelationshipResponse; +impl jacquard_common::xrpc::XrpcResp for CreateGroupRelationshipResponse { + const NSID: &'static str = "app.blebbit.authr.group.createGroupRelationship"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = (); + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CreateGroupRelationship<'de> { + const NSID: &'static str = "app.blebbit.authr.group.createGroupRelationship"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = CreateGroupRelationshipResponse; +} + +///Endpoint type for +///app.blebbit.authr.group.createGroupRelationship +pub struct CreateGroupRelationshipRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CreateGroupRelationshipRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.group.createGroupRelationship"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = CreateGroupRelationship<'de>; + type Response = CreateGroupRelationshipResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/group/delete_group.rs b/crates/jacquard-api/src/app_blebbit/authr/group/delete_group.rs new file mode 100644 index 00000000..00794aa9 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/group/delete_group.rs @@ -0,0 +1,67 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.group.deleteGroup +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct DeleteGroupParams<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub id: std::option::Option>, +} + +/// XRPC request marker type +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] +pub struct DeleteGroup; +///Response type for +///app.blebbit.authr.group.deleteGroup +pub struct DeleteGroupResponse; +impl jacquard_common::xrpc::XrpcResp for DeleteGroupResponse { + const NSID: &'static str = "app.blebbit.authr.group.deleteGroup"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = (); + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeleteGroup { + const NSID: &'static str = "app.blebbit.authr.group.deleteGroup"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = DeleteGroupResponse; +} + +///Endpoint type for +///app.blebbit.authr.group.deleteGroup +pub struct DeleteGroupRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeleteGroupRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.group.deleteGroup"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeleteGroup; + type Response = DeleteGroupResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/group/delete_group_relationship.rs b/crates/jacquard-api/src/app_blebbit/authr/group/delete_group_relationship.rs new file mode 100644 index 00000000..56444180 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/group/delete_group_relationship.rs @@ -0,0 +1,69 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.group.deleteGroupRelationship +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct DeleteGroupRelationship<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub relation: std::option::Option>, + #[serde(borrow)] + #[builder(into)] + pub resource: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub subject: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +///Response type for +///app.blebbit.authr.group.deleteGroupRelationship +pub struct DeleteGroupRelationshipResponse; +impl jacquard_common::xrpc::XrpcResp for DeleteGroupRelationshipResponse { + const NSID: &'static str = "app.blebbit.authr.group.deleteGroupRelationship"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = (); + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeleteGroupRelationship<'de> { + const NSID: &'static str = "app.blebbit.authr.group.deleteGroupRelationship"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = DeleteGroupRelationshipResponse; +} + +///Endpoint type for +///app.blebbit.authr.group.deleteGroupRelationship +pub struct DeleteGroupRelationshipRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeleteGroupRelationshipRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.group.deleteGroupRelationship"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeleteGroupRelationship<'de>; + type Response = DeleteGroupRelationshipResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/group/get_group.rs b/crates/jacquard-api/src/app_blebbit/authr/group/get_group.rs new file mode 100644 index 00000000..f4be7dfd --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/group/get_group.rs @@ -0,0 +1,78 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.group.getGroup +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetGroup<'a> { + #[serde(borrow)] + #[builder(into)] + pub id: jacquard_common::CowStr<'a>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetGroupOutput<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cuid: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub display: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, +} + +///Response type for +///app.blebbit.authr.group.getGroup +pub struct GetGroupResponse; +impl jacquard_common::xrpc::XrpcResp for GetGroupResponse { + const NSID: &'static str = "app.blebbit.authr.group.getGroup"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetGroupOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetGroup<'de> { + const NSID: &'static str = "app.blebbit.authr.group.getGroup"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetGroupResponse; +} + +///Endpoint type for +///app.blebbit.authr.group.getGroup +pub struct GetGroupRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetGroupRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.group.getGroup"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetGroup<'de>; + type Response = GetGroupResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/group/get_groups.rs b/crates/jacquard-api/src/app_blebbit/authr/group/get_groups.rs new file mode 100644 index 00000000..40aaa405 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/group/get_groups.rs @@ -0,0 +1,72 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.group.getGroups +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetGroups<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub cursor: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub limit: std::option::Option, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetGroupsOutput<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub groups: std::option::Option< + Vec>, + >, +} + +///Response type for +///app.blebbit.authr.group.getGroups +pub struct GetGroupsResponse; +impl jacquard_common::xrpc::XrpcResp for GetGroupsResponse { + const NSID: &'static str = "app.blebbit.authr.group.getGroups"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetGroupsOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetGroups<'de> { + const NSID: &'static str = "app.blebbit.authr.group.getGroups"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetGroupsResponse; +} + +///Endpoint type for +///app.blebbit.authr.group.getGroups +pub struct GetGroupsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetGroupsRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.group.getGroups"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetGroups<'de>; + type Response = GetGroupsResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/group/record.rs b/crates/jacquard-api/src/app_blebbit/authr/group/record.rs new file mode 100644 index 00000000..f5cccf44 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/group/record.rs @@ -0,0 +1,38 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.group.record +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Record<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cuid: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub display: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, +} + +impl jacquard_common::types::collection::Collection for Record<'_> { + const NSID: &'static str = "app.blebbit.authr.group.record"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/group/update_group.rs b/crates/jacquard-api/src/app_blebbit/authr/group/update_group.rs new file mode 100644 index 00000000..106f3df5 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/group/update_group.rs @@ -0,0 +1,119 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.group.updateGroup +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct UpdateGroupParams<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub id: std::option::Option>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct UpdateGroup<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub description: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub display: std::option::Option>, + #[serde(borrow)] + #[builder(into)] + pub name: jacquard_common::CowStr<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct UpdateGroupOutput<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cuid: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub display: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, +} + +///Response type for +///app.blebbit.authr.group.updateGroup +pub struct UpdateGroupResponse; +impl jacquard_common::xrpc::XrpcResp for UpdateGroupResponse { + const NSID: &'static str = "app.blebbit.authr.group.updateGroup"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = UpdateGroupOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateGroup<'de> { + const NSID: &'static str = "app.blebbit.authr.group.updateGroup"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = UpdateGroupResponse; +} + +///Endpoint type for +///app.blebbit.authr.group.updateGroup +pub struct UpdateGroupRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateGroupRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.group.updateGroup"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateGroup<'de>; + type Response = UpdateGroupResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/group/update_group_relationship.rs b/crates/jacquard-api/src/app_blebbit/authr/group/update_group_relationship.rs new file mode 100644 index 00000000..8eb9e509 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/group/update_group_relationship.rs @@ -0,0 +1,68 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.group.updateGroupRelationship +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct UpdateGroupRelationship<'a> { + #[serde(borrow)] + #[builder(into)] + pub relation: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub resource: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub subject: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +///Response type for +///app.blebbit.authr.group.updateGroupRelationship +pub struct UpdateGroupRelationshipResponse; +impl jacquard_common::xrpc::XrpcResp for UpdateGroupRelationshipResponse { + const NSID: &'static str = "app.blebbit.authr.group.updateGroupRelationship"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = (); + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateGroupRelationship<'de> { + const NSID: &'static str = "app.blebbit.authr.group.updateGroupRelationship"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = UpdateGroupRelationshipResponse; +} + +///Endpoint type for +///app.blebbit.authr.group.updateGroupRelationship +pub struct UpdateGroupRelationshipRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateGroupRelationshipRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.group.updateGroupRelationship"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateGroupRelationship<'de>; + type Response = UpdateGroupRelationshipResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/page.rs b/crates/jacquard-api/src/app_blebbit/authr/page.rs new file mode 100644 index 00000000..860d34c3 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/page.rs @@ -0,0 +1,60 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.page.defs +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod create_page; +pub mod create_page_relationship; +pub mod delete_page; +pub mod delete_page_relationship; +pub mod get_page; +pub mod get_pages; +pub mod record; +pub mod update_page; +pub mod update_page_relationship; + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct PageForm<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct PageView<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub content: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cuid: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/page/create_page.rs b/crates/jacquard-api/src/app_blebbit/authr/page/create_page.rs new file mode 100644 index 00000000..77273306 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/page/create_page.rs @@ -0,0 +1,90 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.page.createPage +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct CreatePage<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct CreatePageOutput<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub content: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cuid: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, +} + +///Response type for +///app.blebbit.authr.page.createPage +pub struct CreatePageResponse; +impl jacquard_common::xrpc::XrpcResp for CreatePageResponse { + const NSID: &'static str = "app.blebbit.authr.page.createPage"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = CreatePageOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CreatePage<'de> { + const NSID: &'static str = "app.blebbit.authr.page.createPage"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = CreatePageResponse; +} + +///Endpoint type for +///app.blebbit.authr.page.createPage +pub struct CreatePageRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CreatePageRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.page.createPage"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = CreatePage<'de>; + type Response = CreatePageResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/page/create_page_relationship.rs b/crates/jacquard-api/src/app_blebbit/authr/page/create_page_relationship.rs new file mode 100644 index 00000000..64f11e34 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/page/create_page_relationship.rs @@ -0,0 +1,68 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.page.createPageRelationship +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct CreatePageRelationship<'a> { + #[serde(borrow)] + #[builder(into)] + pub relation: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub resource: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub subject: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +///Response type for +///app.blebbit.authr.page.createPageRelationship +pub struct CreatePageRelationshipResponse; +impl jacquard_common::xrpc::XrpcResp for CreatePageRelationshipResponse { + const NSID: &'static str = "app.blebbit.authr.page.createPageRelationship"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = (); + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CreatePageRelationship<'de> { + const NSID: &'static str = "app.blebbit.authr.page.createPageRelationship"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = CreatePageRelationshipResponse; +} + +///Endpoint type for +///app.blebbit.authr.page.createPageRelationship +pub struct CreatePageRelationshipRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CreatePageRelationshipRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.page.createPageRelationship"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = CreatePageRelationship<'de>; + type Response = CreatePageRelationshipResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/page/delete_page.rs b/crates/jacquard-api/src/app_blebbit/authr/page/delete_page.rs new file mode 100644 index 00000000..d60c232c --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/page/delete_page.rs @@ -0,0 +1,67 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.page.deletePage +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct DeletePageParams<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub id: std::option::Option>, +} + +/// XRPC request marker type +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] +pub struct DeletePage; +///Response type for +///app.blebbit.authr.page.deletePage +pub struct DeletePageResponse; +impl jacquard_common::xrpc::XrpcResp for DeletePageResponse { + const NSID: &'static str = "app.blebbit.authr.page.deletePage"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = (); + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeletePage { + const NSID: &'static str = "app.blebbit.authr.page.deletePage"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = DeletePageResponse; +} + +///Endpoint type for +///app.blebbit.authr.page.deletePage +pub struct DeletePageRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeletePageRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.page.deletePage"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeletePage; + type Response = DeletePageResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/page/delete_page_relationship.rs b/crates/jacquard-api/src/app_blebbit/authr/page/delete_page_relationship.rs new file mode 100644 index 00000000..735d181a --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/page/delete_page_relationship.rs @@ -0,0 +1,69 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.page.deletePageRelationship +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct DeletePageRelationship<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub relation: std::option::Option>, + #[serde(borrow)] + #[builder(into)] + pub resource: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub subject: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +///Response type for +///app.blebbit.authr.page.deletePageRelationship +pub struct DeletePageRelationshipResponse; +impl jacquard_common::xrpc::XrpcResp for DeletePageRelationshipResponse { + const NSID: &'static str = "app.blebbit.authr.page.deletePageRelationship"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = (); + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeletePageRelationship<'de> { + const NSID: &'static str = "app.blebbit.authr.page.deletePageRelationship"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = DeletePageRelationshipResponse; +} + +///Endpoint type for +///app.blebbit.authr.page.deletePageRelationship +pub struct DeletePageRelationshipRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeletePageRelationshipRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.page.deletePageRelationship"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeletePageRelationship<'de>; + type Response = DeletePageRelationshipResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/page/get_page.rs b/crates/jacquard-api/src/app_blebbit/authr/page/get_page.rs new file mode 100644 index 00000000..760b517c --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/page/get_page.rs @@ -0,0 +1,75 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.page.getPage +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetPage<'a> { + #[serde(borrow)] + #[builder(into)] + pub id: jacquard_common::CowStr<'a>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetPageOutput<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub content: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cuid: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, +} + +///Response type for +///app.blebbit.authr.page.getPage +pub struct GetPageResponse; +impl jacquard_common::xrpc::XrpcResp for GetPageResponse { + const NSID: &'static str = "app.blebbit.authr.page.getPage"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetPageOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetPage<'de> { + const NSID: &'static str = "app.blebbit.authr.page.getPage"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetPageResponse; +} + +///Endpoint type for +///app.blebbit.authr.page.getPage +pub struct GetPageRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetPageRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.page.getPage"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetPage<'de>; + type Response = GetPageResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/page/get_pages.rs b/crates/jacquard-api/src/app_blebbit/authr/page/get_pages.rs new file mode 100644 index 00000000..a7782c6b --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/page/get_pages.rs @@ -0,0 +1,70 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.page.getPages +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetPages<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub cursor: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub limit: std::option::Option, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetPagesOutput<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub pages: std::option::Option>>, +} + +///Response type for +///app.blebbit.authr.page.getPages +pub struct GetPagesResponse; +impl jacquard_common::xrpc::XrpcResp for GetPagesResponse { + const NSID: &'static str = "app.blebbit.authr.page.getPages"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetPagesOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetPages<'de> { + const NSID: &'static str = "app.blebbit.authr.page.getPages"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetPagesResponse; +} + +///Endpoint type for +///app.blebbit.authr.page.getPages +pub struct GetPagesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetPagesRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.page.getPages"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetPages<'de>; + type Response = GetPagesResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/page/record.rs b/crates/jacquard-api/src/app_blebbit/authr/page/record.rs new file mode 100644 index 00000000..2bb85d20 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/page/record.rs @@ -0,0 +1,35 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.page.record +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Record<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub content: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cuid: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, +} + +impl jacquard_common::types::collection::Collection for Record<'_> { + const NSID: &'static str = "app.blebbit.authr.page.record"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/page/update_page.rs b/crates/jacquard-api/src/app_blebbit/authr/page/update_page.rs new file mode 100644 index 00000000..883c5952 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/page/update_page.rs @@ -0,0 +1,109 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.page.updatePage +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct UpdatePageParams<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub id: std::option::Option>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct UpdatePage<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct UpdatePageOutput<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub content: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cuid: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub name: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub public: std::option::Option, +} + +///Response type for +///app.blebbit.authr.page.updatePage +pub struct UpdatePageResponse; +impl jacquard_common::xrpc::XrpcResp for UpdatePageResponse { + const NSID: &'static str = "app.blebbit.authr.page.updatePage"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = UpdatePageOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdatePage<'de> { + const NSID: &'static str = "app.blebbit.authr.page.updatePage"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = UpdatePageResponse; +} + +///Endpoint type for +///app.blebbit.authr.page.updatePage +pub struct UpdatePageRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdatePageRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.page.updatePage"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdatePage<'de>; + type Response = UpdatePageResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_blebbit/authr/page/update_page_relationship.rs b/crates/jacquard-api/src/app_blebbit/authr/page/update_page_relationship.rs new file mode 100644 index 00000000..b382d5e3 --- /dev/null +++ b/crates/jacquard-api/src/app_blebbit/authr/page/update_page_relationship.rs @@ -0,0 +1,68 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.blebbit.authr.page.updatePageRelationship +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct UpdatePageRelationship<'a> { + #[serde(borrow)] + #[builder(into)] + pub relation: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub resource: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub subject: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +///Response type for +///app.blebbit.authr.page.updatePageRelationship +pub struct UpdatePageRelationshipResponse; +impl jacquard_common::xrpc::XrpcResp for UpdatePageRelationshipResponse { + const NSID: &'static str = "app.blebbit.authr.page.updatePageRelationship"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = (); + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdatePageRelationship<'de> { + const NSID: &'static str = "app.blebbit.authr.page.updatePageRelationship"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = UpdatePageRelationshipResponse; +} + +///Endpoint type for +///app.blebbit.authr.page.updatePageRelationship +pub struct UpdatePageRelationshipRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdatePageRelationshipRequest { + const PATH: &'static str = "/xrpc/app.blebbit.authr.page.updatePageRelationship"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdatePageRelationship<'de>; + type Response = UpdatePageRelationshipResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/actor/get_preferences.rs b/crates/jacquard-api/src/app_bsky/actor/get_preferences.rs index 344f0083..b20b0452 100644 --- a/crates/jacquard-api/src/app_bsky/actor/get_preferences.rs +++ b/crates/jacquard-api/src/app_bsky/actor/get_preferences.rs @@ -48,4 +48,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetPreferences { const NSID: &'static str = "app.bsky.actor.getPreferences"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetPreferencesResponse; +} + +///Endpoint type for +///app.bsky.actor.getPreferences +pub struct GetPreferencesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetPreferencesRequest { + const PATH: &'static str = "/xrpc/app.bsky.actor.getPreferences"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetPreferences; + type Response = GetPreferencesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/actor/get_profile.rs b/crates/jacquard-api/src/app_bsky/actor/get_profile.rs index 4c787d51..1f47dd6a 100644 --- a/crates/jacquard-api/src/app_bsky/actor/get_profile.rs +++ b/crates/jacquard-api/src/app_bsky/actor/get_profile.rs @@ -53,4 +53,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetProfile<'de> { const NSID: &'static str = "app.bsky.actor.getProfile"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetProfileResponse; +} + +///Endpoint type for +///app.bsky.actor.getProfile +pub struct GetProfileRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetProfileRequest { + const PATH: &'static str = "/xrpc/app.bsky.actor.getProfile"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetProfile<'de>; + type Response = GetProfileResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/actor/get_profiles.rs b/crates/jacquard-api/src/app_bsky/actor/get_profiles.rs index e9169059..6e6661c9 100644 --- a/crates/jacquard-api/src/app_bsky/actor/get_profiles.rs +++ b/crates/jacquard-api/src/app_bsky/actor/get_profiles.rs @@ -52,4 +52,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetProfiles<'de> { const NSID: &'static str = "app.bsky.actor.getProfiles"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetProfilesResponse; +} + +///Endpoint type for +///app.bsky.actor.getProfiles +pub struct GetProfilesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetProfilesRequest { + const PATH: &'static str = "/xrpc/app.bsky.actor.getProfiles"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetProfiles<'de>; + type Response = GetProfilesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/actor/get_suggestions.rs b/crates/jacquard-api/src/app_bsky/actor/get_suggestions.rs index 3b666ec5..2ebb4a4f 100644 --- a/crates/jacquard-api/src/app_bsky/actor/get_suggestions.rs +++ b/crates/jacquard-api/src/app_bsky/actor/get_suggestions.rs @@ -63,4 +63,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetSuggestions<'de> { const NSID: &'static str = "app.bsky.actor.getSuggestions"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetSuggestionsResponse; +} + +///Endpoint type for +///app.bsky.actor.getSuggestions +pub struct GetSuggestionsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetSuggestionsRequest { + const PATH: &'static str = "/xrpc/app.bsky.actor.getSuggestions"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetSuggestions<'de>; + type Response = GetSuggestionsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/actor/put_preferences.rs b/crates/jacquard-api/src/app_bsky/actor/put_preferences.rs index 9f7ea3cf..c1c2f479 100644 --- a/crates/jacquard-api/src/app_bsky/actor/put_preferences.rs +++ b/crates/jacquard-api/src/app_bsky/actor/put_preferences.rs @@ -46,4 +46,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for PutPreferences<'de> { "application/json", ); type Response = PutPreferencesResponse; +} + +///Endpoint type for +///app.bsky.actor.putPreferences +pub struct PutPreferencesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for PutPreferencesRequest { + const PATH: &'static str = "/xrpc/app.bsky.actor.putPreferences"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = PutPreferences<'de>; + type Response = PutPreferencesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/actor/search_actors.rs b/crates/jacquard-api/src/app_bsky/actor/search_actors.rs index 05905e8c..30496e0e 100644 --- a/crates/jacquard-api/src/app_bsky/actor/search_actors.rs +++ b/crates/jacquard-api/src/app_bsky/actor/search_actors.rs @@ -68,4 +68,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SearchActors<'de> { const NSID: &'static str = "app.bsky.actor.searchActors"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = SearchActorsResponse; +} + +///Endpoint type for +///app.bsky.actor.searchActors +pub struct SearchActorsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SearchActorsRequest { + const PATH: &'static str = "/xrpc/app.bsky.actor.searchActors"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = SearchActors<'de>; + type Response = SearchActorsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/actor/search_actors_typeahead.rs b/crates/jacquard-api/src/app_bsky/actor/search_actors_typeahead.rs index ca04c8a9..d5c3d8a7 100644 --- a/crates/jacquard-api/src/app_bsky/actor/search_actors_typeahead.rs +++ b/crates/jacquard-api/src/app_bsky/actor/search_actors_typeahead.rs @@ -61,4 +61,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SearchActorsTypeahead<'de> const NSID: &'static str = "app.bsky.actor.searchActorsTypeahead"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = SearchActorsTypeaheadResponse; +} + +///Endpoint type for +///app.bsky.actor.searchActorsTypeahead +pub struct SearchActorsTypeaheadRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SearchActorsTypeaheadRequest { + const PATH: &'static str = "/xrpc/app.bsky.actor.searchActorsTypeahead"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = SearchActorsTypeahead<'de>; + type Response = SearchActorsTypeaheadResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/bookmark/create_bookmark.rs b/crates/jacquard-api/src/app_bsky/bookmark/create_bookmark.rs index 2726cf21..55382f48 100644 --- a/crates/jacquard-api/src/app_bsky/bookmark/create_bookmark.rs +++ b/crates/jacquard-api/src/app_bsky/bookmark/create_bookmark.rs @@ -96,4 +96,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CreateBookmark<'de> { "application/json", ); type Response = CreateBookmarkResponse; +} + +///Endpoint type for +///app.bsky.bookmark.createBookmark +pub struct CreateBookmarkRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CreateBookmarkRequest { + const PATH: &'static str = "/xrpc/app.bsky.bookmark.createBookmark"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = CreateBookmark<'de>; + type Response = CreateBookmarkResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/bookmark/delete_bookmark.rs b/crates/jacquard-api/src/app_bsky/bookmark/delete_bookmark.rs index 9ea9a181..07be7f5c 100644 --- a/crates/jacquard-api/src/app_bsky/bookmark/delete_bookmark.rs +++ b/crates/jacquard-api/src/app_bsky/bookmark/delete_bookmark.rs @@ -94,4 +94,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeleteBookmark<'de> { "application/json", ); type Response = DeleteBookmarkResponse; +} + +///Endpoint type for +///app.bsky.bookmark.deleteBookmark +pub struct DeleteBookmarkRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeleteBookmarkRequest { + const PATH: &'static str = "/xrpc/app.bsky.bookmark.deleteBookmark"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeleteBookmark<'de>; + type Response = DeleteBookmarkResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/bookmark/get_bookmarks.rs b/crates/jacquard-api/src/app_bsky/bookmark/get_bookmarks.rs index edb5c4ae..0ff2a0a5 100644 --- a/crates/jacquard-api/src/app_bsky/bookmark/get_bookmarks.rs +++ b/crates/jacquard-api/src/app_bsky/bookmark/get_bookmarks.rs @@ -60,4 +60,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetBookmarks<'de> { const NSID: &'static str = "app.bsky.bookmark.getBookmarks"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetBookmarksResponse; +} + +///Endpoint type for +///app.bsky.bookmark.getBookmarks +pub struct GetBookmarksRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetBookmarksRequest { + const PATH: &'static str = "/xrpc/app.bsky.bookmark.getBookmarks"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetBookmarks<'de>; + type Response = GetBookmarksResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/feed/describe_feed_generator.rs b/crates/jacquard-api/src/app_bsky/feed/describe_feed_generator.rs index ffd11ce7..fe0a418a 100644 --- a/crates/jacquard-api/src/app_bsky/feed/describe_feed_generator.rs +++ b/crates/jacquard-api/src/app_bsky/feed/describe_feed_generator.rs @@ -63,7 +63,16 @@ pub struct DescribeFeedGeneratorOutput<'a> { } /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct DescribeFeedGenerator; ///Response type for ///app.bsky.feed.describeFeedGenerator @@ -79,4 +88,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DescribeFeedGenerator { const NSID: &'static str = "app.bsky.feed.describeFeedGenerator"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = DescribeFeedGeneratorResponse; +} + +///Endpoint type for +///app.bsky.feed.describeFeedGenerator +pub struct DescribeFeedGeneratorRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DescribeFeedGeneratorRequest { + const PATH: &'static str = "/xrpc/app.bsky.feed.describeFeedGenerator"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = DescribeFeedGenerator; + type Response = DescribeFeedGeneratorResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/feed/get_actor_feeds.rs b/crates/jacquard-api/src/app_bsky/feed/get_actor_feeds.rs index f82ecc27..f8b0efaf 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_actor_feeds.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_actor_feeds.rs @@ -62,4 +62,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetActorFeeds<'de> { const NSID: &'static str = "app.bsky.feed.getActorFeeds"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetActorFeedsResponse; +} + +///Endpoint type for +///app.bsky.feed.getActorFeeds +pub struct GetActorFeedsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetActorFeedsRequest { + const PATH: &'static str = "/xrpc/app.bsky.feed.getActorFeeds"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetActorFeeds<'de>; + type Response = GetActorFeedsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/feed/get_actor_likes.rs b/crates/jacquard-api/src/app_bsky/feed/get_actor_likes.rs index bf32f76d..9ce2c308 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_actor_likes.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_actor_likes.rs @@ -121,4 +121,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetActorLikes<'de> { const NSID: &'static str = "app.bsky.feed.getActorLikes"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetActorLikesResponse; +} + +///Endpoint type for +///app.bsky.feed.getActorLikes +pub struct GetActorLikesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetActorLikesRequest { + const PATH: &'static str = "/xrpc/app.bsky.feed.getActorLikes"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetActorLikes<'de>; + type Response = GetActorLikesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/feed/get_author_feed.rs b/crates/jacquard-api/src/app_bsky/feed/get_author_feed.rs index b5ce047b..537214ea 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_author_feed.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_author_feed.rs @@ -129,4 +129,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetAuthorFeed<'de> { const NSID: &'static str = "app.bsky.feed.getAuthorFeed"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetAuthorFeedResponse; +} + +///Endpoint type for +///app.bsky.feed.getAuthorFeed +pub struct GetAuthorFeedRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetAuthorFeedRequest { + const PATH: &'static str = "/xrpc/app.bsky.feed.getAuthorFeed"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetAuthorFeed<'de>; + type Response = GetAuthorFeedResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/feed/get_feed.rs b/crates/jacquard-api/src/app_bsky/feed/get_feed.rs index 0b3ff304..cb498793 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_feed.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_feed.rs @@ -105,4 +105,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetFeed<'de> { const NSID: &'static str = "app.bsky.feed.getFeed"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetFeedResponse; +} + +///Endpoint type for +///app.bsky.feed.getFeed +pub struct GetFeedRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetFeedRequest { + const PATH: &'static str = "/xrpc/app.bsky.feed.getFeed"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetFeed<'de>; + type Response = GetFeedResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/feed/get_feed_generator.rs b/crates/jacquard-api/src/app_bsky/feed/get_feed_generator.rs index 3bb31e83..d533a933 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_feed_generator.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_feed_generator.rs @@ -56,4 +56,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetFeedGenerator<'de> { const NSID: &'static str = "app.bsky.feed.getFeedGenerator"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetFeedGeneratorResponse; +} + +///Endpoint type for +///app.bsky.feed.getFeedGenerator +pub struct GetFeedGeneratorRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetFeedGeneratorRequest { + const PATH: &'static str = "/xrpc/app.bsky.feed.getFeedGenerator"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetFeedGenerator<'de>; + type Response = GetFeedGeneratorResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/feed/get_feed_generators.rs b/crates/jacquard-api/src/app_bsky/feed/get_feed_generators.rs index f2cfbda7..153d6917 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_feed_generators.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_feed_generators.rs @@ -52,4 +52,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetFeedGenerators<'de> { const NSID: &'static str = "app.bsky.feed.getFeedGenerators"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetFeedGeneratorsResponse; +} + +///Endpoint type for +///app.bsky.feed.getFeedGenerators +pub struct GetFeedGeneratorsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetFeedGeneratorsRequest { + const PATH: &'static str = "/xrpc/app.bsky.feed.getFeedGenerators"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetFeedGenerators<'de>; + type Response = GetFeedGeneratorsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/feed/get_feed_skeleton.rs b/crates/jacquard-api/src/app_bsky/feed/get_feed_skeleton.rs index 9cb9bf7f..b139198d 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_feed_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_feed_skeleton.rs @@ -113,4 +113,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetFeedSkeleton<'de> { const NSID: &'static str = "app.bsky.feed.getFeedSkeleton"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetFeedSkeletonResponse; +} + +///Endpoint type for +///app.bsky.feed.getFeedSkeleton +pub struct GetFeedSkeletonRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetFeedSkeletonRequest { + const PATH: &'static str = "/xrpc/app.bsky.feed.getFeedSkeleton"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetFeedSkeleton<'de>; + type Response = GetFeedSkeletonResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/feed/get_likes.rs b/crates/jacquard-api/src/app_bsky/feed/get_likes.rs index 48158ab1..b4a6588a 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_likes.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_likes.rs @@ -88,4 +88,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetLikes<'de> { const NSID: &'static str = "app.bsky.feed.getLikes"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetLikesResponse; +} + +///Endpoint type for +///app.bsky.feed.getLikes +pub struct GetLikesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetLikesRequest { + const PATH: &'static str = "/xrpc/app.bsky.feed.getLikes"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetLikes<'de>; + type Response = GetLikesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/feed/get_list_feed.rs b/crates/jacquard-api/src/app_bsky/feed/get_list_feed.rs index 1ff31a2f..00c67818 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_list_feed.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_list_feed.rs @@ -107,4 +107,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetListFeed<'de> { const NSID: &'static str = "app.bsky.feed.getListFeed"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetListFeedResponse; +} + +///Endpoint type for +///app.bsky.feed.getListFeed +pub struct GetListFeedRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetListFeedRequest { + const PATH: &'static str = "/xrpc/app.bsky.feed.getListFeed"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetListFeed<'de>; + type Response = GetListFeedResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/feed/get_post_thread.rs b/crates/jacquard-api/src/app_bsky/feed/get_post_thread.rs index 3e7ecfc3..74a248f5 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_post_thread.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_post_thread.rs @@ -129,4 +129,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetPostThread<'de> { const NSID: &'static str = "app.bsky.feed.getPostThread"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetPostThreadResponse; +} + +///Endpoint type for +///app.bsky.feed.getPostThread +pub struct GetPostThreadRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetPostThreadRequest { + const PATH: &'static str = "/xrpc/app.bsky.feed.getPostThread"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetPostThread<'de>; + type Response = GetPostThreadResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/feed/get_posts.rs b/crates/jacquard-api/src/app_bsky/feed/get_posts.rs index dde72fdc..e27673cb 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_posts.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_posts.rs @@ -52,4 +52,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetPosts<'de> { const NSID: &'static str = "app.bsky.feed.getPosts"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetPostsResponse; +} + +///Endpoint type for +///app.bsky.feed.getPosts +pub struct GetPostsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetPostsRequest { + const PATH: &'static str = "/xrpc/app.bsky.feed.getPosts"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetPosts<'de>; + type Response = GetPostsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/feed/get_quotes.rs b/crates/jacquard-api/src/app_bsky/feed/get_quotes.rs index 8b8704ab..c35c299d 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_quotes.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_quotes.rs @@ -70,4 +70,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetQuotes<'de> { const NSID: &'static str = "app.bsky.feed.getQuotes"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetQuotesResponse; +} + +///Endpoint type for +///app.bsky.feed.getQuotes +pub struct GetQuotesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetQuotesRequest { + const PATH: &'static str = "/xrpc/app.bsky.feed.getQuotes"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetQuotes<'de>; + type Response = GetQuotesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/feed/get_reposted_by.rs b/crates/jacquard-api/src/app_bsky/feed/get_reposted_by.rs index 55bf4863..597b33e5 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_reposted_by.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_reposted_by.rs @@ -70,4 +70,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetRepostedBy<'de> { const NSID: &'static str = "app.bsky.feed.getRepostedBy"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetRepostedByResponse; +} + +///Endpoint type for +///app.bsky.feed.getRepostedBy +pub struct GetRepostedByRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetRepostedByRequest { + const PATH: &'static str = "/xrpc/app.bsky.feed.getRepostedBy"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetRepostedBy<'de>; + type Response = GetRepostedByResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/feed/get_suggested_feeds.rs b/crates/jacquard-api/src/app_bsky/feed/get_suggested_feeds.rs index 291f02cb..16a48176 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_suggested_feeds.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_suggested_feeds.rs @@ -60,4 +60,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetSuggestedFeeds<'de> { const NSID: &'static str = "app.bsky.feed.getSuggestedFeeds"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetSuggestedFeedsResponse; +} + +///Endpoint type for +///app.bsky.feed.getSuggestedFeeds +pub struct GetSuggestedFeedsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetSuggestedFeedsRequest { + const PATH: &'static str = "/xrpc/app.bsky.feed.getSuggestedFeeds"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetSuggestedFeeds<'de>; + type Response = GetSuggestedFeedsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/feed/get_timeline.rs b/crates/jacquard-api/src/app_bsky/feed/get_timeline.rs index b0b98dfb..3d94849c 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_timeline.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_timeline.rs @@ -64,4 +64,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetTimeline<'de> { const NSID: &'static str = "app.bsky.feed.getTimeline"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetTimelineResponse; +} + +///Endpoint type for +///app.bsky.feed.getTimeline +pub struct GetTimelineRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetTimelineRequest { + const PATH: &'static str = "/xrpc/app.bsky.feed.getTimeline"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetTimeline<'de>; + type Response = GetTimelineResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/feed/search_posts.rs b/crates/jacquard-api/src/app_bsky/feed/search_posts.rs index e5cfc037..bfda8327 100644 --- a/crates/jacquard-api/src/app_bsky/feed/search_posts.rs +++ b/crates/jacquard-api/src/app_bsky/feed/search_posts.rs @@ -142,4 +142,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SearchPosts<'de> { const NSID: &'static str = "app.bsky.feed.searchPosts"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = SearchPostsResponse; +} + +///Endpoint type for +///app.bsky.feed.searchPosts +pub struct SearchPostsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SearchPostsRequest { + const PATH: &'static str = "/xrpc/app.bsky.feed.searchPosts"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = SearchPosts<'de>; + type Response = SearchPostsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/feed/send_interactions.rs b/crates/jacquard-api/src/app_bsky/feed/send_interactions.rs index 70a78475..88b29b91 100644 --- a/crates/jacquard-api/src/app_bsky/feed/send_interactions.rs +++ b/crates/jacquard-api/src/app_bsky/feed/send_interactions.rs @@ -58,4 +58,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SendInteractions<'de> { "application/json", ); type Response = SendInteractionsResponse; +} + +///Endpoint type for +///app.bsky.feed.sendInteractions +pub struct SendInteractionsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SendInteractionsRequest { + const PATH: &'static str = "/xrpc/app.bsky.feed.sendInteractions"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = SendInteractions<'de>; + type Response = SendInteractionsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/get_actor_starter_packs.rs b/crates/jacquard-api/src/app_bsky/graph/get_actor_starter_packs.rs index 17377fdb..3599c4fd 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_actor_starter_packs.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_actor_starter_packs.rs @@ -62,4 +62,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetActorStarterPacks<'de> const NSID: &'static str = "app.bsky.graph.getActorStarterPacks"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetActorStarterPacksResponse; +} + +///Endpoint type for +///app.bsky.graph.getActorStarterPacks +pub struct GetActorStarterPacksRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetActorStarterPacksRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.getActorStarterPacks"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetActorStarterPacks<'de>; + type Response = GetActorStarterPacksResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/get_blocks.rs b/crates/jacquard-api/src/app_bsky/graph/get_blocks.rs index 16a883c9..252fb537 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_blocks.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_blocks.rs @@ -60,4 +60,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetBlocks<'de> { const NSID: &'static str = "app.bsky.graph.getBlocks"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetBlocksResponse; +} + +///Endpoint type for +///app.bsky.graph.getBlocks +pub struct GetBlocksRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetBlocksRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.getBlocks"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetBlocks<'de>; + type Response = GetBlocksResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/get_followers.rs b/crates/jacquard-api/src/app_bsky/graph/get_followers.rs index 342acb9e..62931338 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_followers.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_followers.rs @@ -64,4 +64,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetFollowers<'de> { const NSID: &'static str = "app.bsky.graph.getFollowers"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetFollowersResponse; +} + +///Endpoint type for +///app.bsky.graph.getFollowers +pub struct GetFollowersRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetFollowersRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.getFollowers"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetFollowers<'de>; + type Response = GetFollowersResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/get_follows.rs b/crates/jacquard-api/src/app_bsky/graph/get_follows.rs index 674f42c5..c2ca2f58 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_follows.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_follows.rs @@ -64,4 +64,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetFollows<'de> { const NSID: &'static str = "app.bsky.graph.getFollows"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetFollowsResponse; +} + +///Endpoint type for +///app.bsky.graph.getFollows +pub struct GetFollowsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetFollowsRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.getFollows"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetFollows<'de>; + type Response = GetFollowsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/get_known_followers.rs b/crates/jacquard-api/src/app_bsky/graph/get_known_followers.rs index 7bd87fed..45de8fba 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_known_followers.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_known_followers.rs @@ -64,4 +64,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetKnownFollowers<'de> { const NSID: &'static str = "app.bsky.graph.getKnownFollowers"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetKnownFollowersResponse; +} + +///Endpoint type for +///app.bsky.graph.getKnownFollowers +pub struct GetKnownFollowersRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetKnownFollowersRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.getKnownFollowers"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetKnownFollowers<'de>; + type Response = GetKnownFollowersResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/get_list.rs b/crates/jacquard-api/src/app_bsky/graph/get_list.rs index 141ff4cb..310f5cd7 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_list.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_list.rs @@ -64,4 +64,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetList<'de> { const NSID: &'static str = "app.bsky.graph.getList"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetListResponse; +} + +///Endpoint type for +///app.bsky.graph.getList +pub struct GetListRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetListRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.getList"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetList<'de>; + type Response = GetListResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/get_list_blocks.rs b/crates/jacquard-api/src/app_bsky/graph/get_list_blocks.rs index 1c73f302..c6ea277a 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_list_blocks.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_list_blocks.rs @@ -60,4 +60,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetListBlocks<'de> { const NSID: &'static str = "app.bsky.graph.getListBlocks"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetListBlocksResponse; +} + +///Endpoint type for +///app.bsky.graph.getListBlocks +pub struct GetListBlocksRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetListBlocksRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.getListBlocks"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetListBlocks<'de>; + type Response = GetListBlocksResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/get_list_mutes.rs b/crates/jacquard-api/src/app_bsky/graph/get_list_mutes.rs index 72534256..0eaf6113 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_list_mutes.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_list_mutes.rs @@ -60,4 +60,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetListMutes<'de> { const NSID: &'static str = "app.bsky.graph.getListMutes"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetListMutesResponse; +} + +///Endpoint type for +///app.bsky.graph.getListMutes +pub struct GetListMutesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetListMutesRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.getListMutes"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetListMutes<'de>; + type Response = GetListMutesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/get_lists.rs b/crates/jacquard-api/src/app_bsky/graph/get_lists.rs index c444abb2..917be984 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_lists.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_lists.rs @@ -65,4 +65,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetLists<'de> { const NSID: &'static str = "app.bsky.graph.getLists"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetListsResponse; +} + +///Endpoint type for +///app.bsky.graph.getLists +pub struct GetListsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetListsRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.getLists"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetLists<'de>; + type Response = GetListsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/get_lists_with_membership.rs b/crates/jacquard-api/src/app_bsky/graph/get_lists_with_membership.rs index 9edad3c9..f7168bd8 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_lists_with_membership.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_lists_with_membership.rs @@ -85,4 +85,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetListsWithMembership<'de const NSID: &'static str = "app.bsky.graph.getListsWithMembership"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetListsWithMembershipResponse; +} + +///Endpoint type for +///app.bsky.graph.getListsWithMembership +pub struct GetListsWithMembershipRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetListsWithMembershipRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.getListsWithMembership"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetListsWithMembership<'de>; + type Response = GetListsWithMembershipResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/get_mutes.rs b/crates/jacquard-api/src/app_bsky/graph/get_mutes.rs index af8a0c18..d1217fec 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_mutes.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_mutes.rs @@ -60,4 +60,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetMutes<'de> { const NSID: &'static str = "app.bsky.graph.getMutes"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetMutesResponse; +} + +///Endpoint type for +///app.bsky.graph.getMutes +pub struct GetMutesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetMutesRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.getMutes"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetMutes<'de>; + type Response = GetMutesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/get_relationships.rs b/crates/jacquard-api/src/app_bsky/graph/get_relationships.rs index b73ca66e..abafa0de 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_relationships.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_relationships.rs @@ -108,4 +108,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetRelationships<'de> { const NSID: &'static str = "app.bsky.graph.getRelationships"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetRelationshipsResponse; +} + +///Endpoint type for +///app.bsky.graph.getRelationships +pub struct GetRelationshipsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetRelationshipsRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.getRelationships"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetRelationships<'de>; + type Response = GetRelationshipsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/get_starter_pack.rs b/crates/jacquard-api/src/app_bsky/graph/get_starter_pack.rs index 2d8e53f0..41679fdb 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_starter_pack.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_starter_pack.rs @@ -52,4 +52,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetStarterPack<'de> { const NSID: &'static str = "app.bsky.graph.getStarterPack"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetStarterPackResponse; +} + +///Endpoint type for +///app.bsky.graph.getStarterPack +pub struct GetStarterPackRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetStarterPackRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.getStarterPack"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetStarterPack<'de>; + type Response = GetStarterPackResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/get_starter_packs.rs b/crates/jacquard-api/src/app_bsky/graph/get_starter_packs.rs index 92694bf5..4b400349 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_starter_packs.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_starter_packs.rs @@ -52,4 +52,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetStarterPacks<'de> { const NSID: &'static str = "app.bsky.graph.getStarterPacks"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetStarterPacksResponse; +} + +///Endpoint type for +///app.bsky.graph.getStarterPacks +pub struct GetStarterPacksRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetStarterPacksRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.getStarterPacks"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetStarterPacks<'de>; + type Response = GetStarterPacksResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/get_starter_packs_with_membership.rs b/crates/jacquard-api/src/app_bsky/graph/get_starter_packs_with_membership.rs index e3486379..c6c1c8ff 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_starter_packs_with_membership.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_starter_packs_with_membership.rs @@ -65,6 +65,16 @@ for GetStarterPacksWithMembership<'de> { type Response = GetStarterPacksWithMembershipResponse; } +///Endpoint type for +///app.bsky.graph.getStarterPacksWithMembership +pub struct GetStarterPacksWithMembershipRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetStarterPacksWithMembershipRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.getStarterPacksWithMembership"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetStarterPacksWithMembership<'de>; + type Response = GetStarterPacksWithMembershipResponse; +} + ///A starter pack and an optional list item indicating membership of a target user to that starter pack. #[jacquard_derive::lexicon] #[derive( diff --git a/crates/jacquard-api/src/app_bsky/graph/get_suggested_follows_by_actor.rs b/crates/jacquard-api/src/app_bsky/graph/get_suggested_follows_by_actor.rs index c7aad8af..9b5b3e79 100644 --- a/crates/jacquard-api/src/app_bsky/graph/get_suggested_follows_by_actor.rs +++ b/crates/jacquard-api/src/app_bsky/graph/get_suggested_follows_by_actor.rs @@ -58,4 +58,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetSuggestedFollowsByActor const NSID: &'static str = "app.bsky.graph.getSuggestedFollowsByActor"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetSuggestedFollowsByActorResponse; +} + +///Endpoint type for +///app.bsky.graph.getSuggestedFollowsByActor +pub struct GetSuggestedFollowsByActorRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetSuggestedFollowsByActorRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.getSuggestedFollowsByActor"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetSuggestedFollowsByActor<'de>; + type Response = GetSuggestedFollowsByActorResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/mute_actor.rs b/crates/jacquard-api/src/app_bsky/graph/mute_actor.rs index 609a590b..6b7984a7 100644 --- a/crates/jacquard-api/src/app_bsky/graph/mute_actor.rs +++ b/crates/jacquard-api/src/app_bsky/graph/mute_actor.rs @@ -46,4 +46,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for MuteActor<'de> { "application/json", ); type Response = MuteActorResponse; +} + +///Endpoint type for +///app.bsky.graph.muteActor +pub struct MuteActorRequest; +impl jacquard_common::xrpc::XrpcEndpoint for MuteActorRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.muteActor"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = MuteActor<'de>; + type Response = MuteActorResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/mute_actor_list.rs b/crates/jacquard-api/src/app_bsky/graph/mute_actor_list.rs index 91ab3db2..0cd48387 100644 --- a/crates/jacquard-api/src/app_bsky/graph/mute_actor_list.rs +++ b/crates/jacquard-api/src/app_bsky/graph/mute_actor_list.rs @@ -46,4 +46,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for MuteActorList<'de> { "application/json", ); type Response = MuteActorListResponse; +} + +///Endpoint type for +///app.bsky.graph.muteActorList +pub struct MuteActorListRequest; +impl jacquard_common::xrpc::XrpcEndpoint for MuteActorListRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.muteActorList"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = MuteActorList<'de>; + type Response = MuteActorListResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/mute_thread.rs b/crates/jacquard-api/src/app_bsky/graph/mute_thread.rs index 758409e9..95ba7f24 100644 --- a/crates/jacquard-api/src/app_bsky/graph/mute_thread.rs +++ b/crates/jacquard-api/src/app_bsky/graph/mute_thread.rs @@ -46,4 +46,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for MuteThread<'de> { "application/json", ); type Response = MuteThreadResponse; +} + +///Endpoint type for +///app.bsky.graph.muteThread +pub struct MuteThreadRequest; +impl jacquard_common::xrpc::XrpcEndpoint for MuteThreadRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.muteThread"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = MuteThread<'de>; + type Response = MuteThreadResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/search_starter_packs.rs b/crates/jacquard-api/src/app_bsky/graph/search_starter_packs.rs index e57f95b6..e290a683 100644 --- a/crates/jacquard-api/src/app_bsky/graph/search_starter_packs.rs +++ b/crates/jacquard-api/src/app_bsky/graph/search_starter_packs.rs @@ -63,4 +63,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SearchStarterPacks<'de> { const NSID: &'static str = "app.bsky.graph.searchStarterPacks"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = SearchStarterPacksResponse; +} + +///Endpoint type for +///app.bsky.graph.searchStarterPacks +pub struct SearchStarterPacksRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SearchStarterPacksRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.searchStarterPacks"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = SearchStarterPacks<'de>; + type Response = SearchStarterPacksResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/unmute_actor.rs b/crates/jacquard-api/src/app_bsky/graph/unmute_actor.rs index fba1a2e0..c1808e9e 100644 --- a/crates/jacquard-api/src/app_bsky/graph/unmute_actor.rs +++ b/crates/jacquard-api/src/app_bsky/graph/unmute_actor.rs @@ -46,4 +46,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UnmuteActor<'de> { "application/json", ); type Response = UnmuteActorResponse; +} + +///Endpoint type for +///app.bsky.graph.unmuteActor +pub struct UnmuteActorRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UnmuteActorRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.unmuteActor"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UnmuteActor<'de>; + type Response = UnmuteActorResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/unmute_actor_list.rs b/crates/jacquard-api/src/app_bsky/graph/unmute_actor_list.rs index b988f186..b9904537 100644 --- a/crates/jacquard-api/src/app_bsky/graph/unmute_actor_list.rs +++ b/crates/jacquard-api/src/app_bsky/graph/unmute_actor_list.rs @@ -46,4 +46,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UnmuteActorList<'de> { "application/json", ); type Response = UnmuteActorListResponse; +} + +///Endpoint type for +///app.bsky.graph.unmuteActorList +pub struct UnmuteActorListRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UnmuteActorListRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.unmuteActorList"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UnmuteActorList<'de>; + type Response = UnmuteActorListResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/graph/unmute_thread.rs b/crates/jacquard-api/src/app_bsky/graph/unmute_thread.rs index 6201805e..6342cc95 100644 --- a/crates/jacquard-api/src/app_bsky/graph/unmute_thread.rs +++ b/crates/jacquard-api/src/app_bsky/graph/unmute_thread.rs @@ -46,4 +46,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UnmuteThread<'de> { "application/json", ); type Response = UnmuteThreadResponse; +} + +///Endpoint type for +///app.bsky.graph.unmuteThread +pub struct UnmuteThreadRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UnmuteThreadRequest { + const PATH: &'static str = "/xrpc/app.bsky.graph.unmuteThread"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UnmuteThread<'de>; + type Response = UnmuteThreadResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/labeler/get_services.rs b/crates/jacquard-api/src/app_bsky/labeler/get_services.rs index add023ea..1f4ee75c 100644 --- a/crates/jacquard-api/src/app_bsky/labeler/get_services.rs +++ b/crates/jacquard-api/src/app_bsky/labeler/get_services.rs @@ -55,4 +55,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetServices<'de> { const NSID: &'static str = "app.bsky.labeler.getServices"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetServicesResponse; +} + +///Endpoint type for +///app.bsky.labeler.getServices +pub struct GetServicesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetServicesRequest { + const PATH: &'static str = "/xrpc/app.bsky.labeler.getServices"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetServices<'de>; + type Response = GetServicesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/notification/get_preferences.rs b/crates/jacquard-api/src/app_bsky/notification/get_preferences.rs index 278e26cb..d15b3e3e 100644 --- a/crates/jacquard-api/src/app_bsky/notification/get_preferences.rs +++ b/crates/jacquard-api/src/app_bsky/notification/get_preferences.rs @@ -48,4 +48,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetPreferences { const NSID: &'static str = "app.bsky.notification.getPreferences"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetPreferencesResponse; +} + +///Endpoint type for +///app.bsky.notification.getPreferences +pub struct GetPreferencesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetPreferencesRequest { + const PATH: &'static str = "/xrpc/app.bsky.notification.getPreferences"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetPreferences; + type Response = GetPreferencesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/notification/get_unread_count.rs b/crates/jacquard-api/src/app_bsky/notification/get_unread_count.rs index 8aa5797f..6f349de4 100644 --- a/crates/jacquard-api/src/app_bsky/notification/get_unread_count.rs +++ b/crates/jacquard-api/src/app_bsky/notification/get_unread_count.rs @@ -53,4 +53,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetUnreadCount { const NSID: &'static str = "app.bsky.notification.getUnreadCount"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetUnreadCountResponse; +} + +///Endpoint type for +///app.bsky.notification.getUnreadCount +pub struct GetUnreadCountRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetUnreadCountRequest { + const PATH: &'static str = "/xrpc/app.bsky.notification.getUnreadCount"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetUnreadCount; + type Response = GetUnreadCountResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/notification/list_activity_subscriptions.rs b/crates/jacquard-api/src/app_bsky/notification/list_activity_subscriptions.rs index be5e159f..cf83567a 100644 --- a/crates/jacquard-api/src/app_bsky/notification/list_activity_subscriptions.rs +++ b/crates/jacquard-api/src/app_bsky/notification/list_activity_subscriptions.rs @@ -60,4 +60,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ListActivitySubscriptions< const NSID: &'static str = "app.bsky.notification.listActivitySubscriptions"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = ListActivitySubscriptionsResponse; +} + +///Endpoint type for +///app.bsky.notification.listActivitySubscriptions +pub struct ListActivitySubscriptionsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ListActivitySubscriptionsRequest { + const PATH: &'static str = "/xrpc/app.bsky.notification.listActivitySubscriptions"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ListActivitySubscriptions<'de>; + type Response = ListActivitySubscriptionsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/notification/list_notifications.rs b/crates/jacquard-api/src/app_bsky/notification/list_notifications.rs index a59a5fd9..cc2708f0 100644 --- a/crates/jacquard-api/src/app_bsky/notification/list_notifications.rs +++ b/crates/jacquard-api/src/app_bsky/notification/list_notifications.rs @@ -73,6 +73,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ListNotifications<'de> { type Response = ListNotificationsResponse; } +///Endpoint type for +///app.bsky.notification.listNotifications +pub struct ListNotificationsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ListNotificationsRequest { + const PATH: &'static str = "/xrpc/app.bsky.notification.listNotifications"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ListNotifications<'de>; + type Response = ListNotificationsResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/app_bsky/notification/put_activity_subscription.rs b/crates/jacquard-api/src/app_bsky/notification/put_activity_subscription.rs index 488ed112..d76aa36b 100644 --- a/crates/jacquard-api/src/app_bsky/notification/put_activity_subscription.rs +++ b/crates/jacquard-api/src/app_bsky/notification/put_activity_subscription.rs @@ -69,4 +69,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for PutActivitySubscription<'d "application/json", ); type Response = PutActivitySubscriptionResponse; +} + +///Endpoint type for +///app.bsky.notification.putActivitySubscription +pub struct PutActivitySubscriptionRequest; +impl jacquard_common::xrpc::XrpcEndpoint for PutActivitySubscriptionRequest { + const PATH: &'static str = "/xrpc/app.bsky.notification.putActivitySubscription"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = PutActivitySubscription<'de>; + type Response = PutActivitySubscriptionResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/notification/put_preferences.rs b/crates/jacquard-api/src/app_bsky/notification/put_preferences.rs index 144ab9ba..a9fe679a 100644 --- a/crates/jacquard-api/src/app_bsky/notification/put_preferences.rs +++ b/crates/jacquard-api/src/app_bsky/notification/put_preferences.rs @@ -45,4 +45,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for PutPreferences<'de> { "application/json", ); type Response = PutPreferencesResponse; +} + +///Endpoint type for +///app.bsky.notification.putPreferences +pub struct PutPreferencesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for PutPreferencesRequest { + const PATH: &'static str = "/xrpc/app.bsky.notification.putPreferences"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = PutPreferences<'de>; + type Response = PutPreferencesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/notification/put_preferences_v2.rs b/crates/jacquard-api/src/app_bsky/notification/put_preferences_v2.rs index 40a8e8b5..bd0537c3 100644 --- a/crates/jacquard-api/src/app_bsky/notification/put_preferences_v2.rs +++ b/crates/jacquard-api/src/app_bsky/notification/put_preferences_v2.rs @@ -119,4 +119,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for PutPreferencesV2<'de> { "application/json", ); type Response = PutPreferencesV2Response; +} + +///Endpoint type for +///app.bsky.notification.putPreferencesV2 +pub struct PutPreferencesV2Request; +impl jacquard_common::xrpc::XrpcEndpoint for PutPreferencesV2Request { + const PATH: &'static str = "/xrpc/app.bsky.notification.putPreferencesV2"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = PutPreferencesV2<'de>; + type Response = PutPreferencesV2Response; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/notification/register_push.rs b/crates/jacquard-api/src/app_bsky/notification/register_push.rs index 3ae734d3..6d80e9d6 100644 --- a/crates/jacquard-api/src/app_bsky/notification/register_push.rs +++ b/crates/jacquard-api/src/app_bsky/notification/register_push.rs @@ -58,4 +58,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for RegisterPush<'de> { "application/json", ); type Response = RegisterPushResponse; +} + +///Endpoint type for +///app.bsky.notification.registerPush +pub struct RegisterPushRequest; +impl jacquard_common::xrpc::XrpcEndpoint for RegisterPushRequest { + const PATH: &'static str = "/xrpc/app.bsky.notification.registerPush"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = RegisterPush<'de>; + type Response = RegisterPushResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/notification/unregister_push.rs b/crates/jacquard-api/src/app_bsky/notification/unregister_push.rs index 5066e808..c7138a99 100644 --- a/crates/jacquard-api/src/app_bsky/notification/unregister_push.rs +++ b/crates/jacquard-api/src/app_bsky/notification/unregister_push.rs @@ -55,4 +55,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UnregisterPush<'de> { "application/json", ); type Response = UnregisterPushResponse; +} + +///Endpoint type for +///app.bsky.notification.unregisterPush +pub struct UnregisterPushRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UnregisterPushRequest { + const PATH: &'static str = "/xrpc/app.bsky.notification.unregisterPush"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UnregisterPush<'de>; + type Response = UnregisterPushResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/notification/update_seen.rs b/crates/jacquard-api/src/app_bsky/notification/update_seen.rs index 48684cef..a9e24419 100644 --- a/crates/jacquard-api/src/app_bsky/notification/update_seen.rs +++ b/crates/jacquard-api/src/app_bsky/notification/update_seen.rs @@ -45,4 +45,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateSeen<'de> { "application/json", ); type Response = UpdateSeenResponse; +} + +///Endpoint type for +///app.bsky.notification.updateSeen +pub struct UpdateSeenRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateSeenRequest { + const PATH: &'static str = "/xrpc/app.bsky.notification.updateSeen"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateSeen<'de>; + type Response = UpdateSeenResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_age_assurance_state.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_age_assurance_state.rs index b4980e56..c3affba5 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_age_assurance_state.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_age_assurance_state.rs @@ -23,7 +23,16 @@ pub struct GetAgeAssuranceStateOutput<'a> { } /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct GetAgeAssuranceState; ///Response type for ///app.bsky.unspecced.getAgeAssuranceState @@ -39,4 +48,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetAgeAssuranceState { const NSID: &'static str = "app.bsky.unspecced.getAgeAssuranceState"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetAgeAssuranceStateResponse; +} + +///Endpoint type for +///app.bsky.unspecced.getAgeAssuranceState +pub struct GetAgeAssuranceStateRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetAgeAssuranceStateRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.getAgeAssuranceState"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetAgeAssuranceState; + type Response = GetAgeAssuranceStateResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_config.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_config.rs index 997765be..0f48cfdd 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_config.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_config.rs @@ -43,7 +43,16 @@ pub struct GetConfigOutput<'a> { } /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct GetConfig; ///Response type for ///app.bsky.unspecced.getConfig @@ -59,4 +68,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetConfig { const NSID: &'static str = "app.bsky.unspecced.getConfig"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetConfigResponse; +} + +///Endpoint type for +///app.bsky.unspecced.getConfig +pub struct GetConfigRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetConfigRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.getConfig"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetConfig; + type Response = GetConfigResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs.rs index 061c5b2f..206ec35c 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs.rs @@ -54,4 +54,14 @@ for GetOnboardingSuggestedStarterPacks { const NSID: &'static str = "app.bsky.unspecced.getOnboardingSuggestedStarterPacks"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetOnboardingSuggestedStarterPacksResponse; +} + +///Endpoint type for +///app.bsky.unspecced.getOnboardingSuggestedStarterPacks +pub struct GetOnboardingSuggestedStarterPacksRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetOnboardingSuggestedStarterPacksRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.getOnboardingSuggestedStarterPacks"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetOnboardingSuggestedStarterPacks; + type Response = GetOnboardingSuggestedStarterPacksResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs_skeleton.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs_skeleton.rs index 2c2a218f..f4f5b6ee 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs_skeleton.rs @@ -58,4 +58,15 @@ for GetOnboardingSuggestedStarterPacksSkeleton<'de> { const NSID: &'static str = "app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetOnboardingSuggestedStarterPacksSkeletonResponse; +} + +///Endpoint type for +///app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton +pub struct GetOnboardingSuggestedStarterPacksSkeletonRequest; +impl jacquard_common::xrpc::XrpcEndpoint +for GetOnboardingSuggestedStarterPacksSkeletonRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetOnboardingSuggestedStarterPacksSkeleton<'de>; + type Response = GetOnboardingSuggestedStarterPacksSkeletonResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_popular_feed_generators.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_popular_feed_generators.rs index af7b2456..c60127c0 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_popular_feed_generators.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_popular_feed_generators.rs @@ -64,4 +64,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetPopularFeedGenerators<' const NSID: &'static str = "app.bsky.unspecced.getPopularFeedGenerators"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetPopularFeedGeneratorsResponse; +} + +///Endpoint type for +///app.bsky.unspecced.getPopularFeedGenerators +pub struct GetPopularFeedGeneratorsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetPopularFeedGeneratorsRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.getPopularFeedGenerators"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetPopularFeedGenerators<'de>; + type Response = GetPopularFeedGeneratorsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_other_v2.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_other_v2.rs index 3630abc3..8101e31b 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_other_v2.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_other_v2.rs @@ -58,6 +58,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetPostThreadOtherV2<'de> type Response = GetPostThreadOtherV2Response; } +///Endpoint type for +///app.bsky.unspecced.getPostThreadOtherV2 +pub struct GetPostThreadOtherV2Request; +impl jacquard_common::xrpc::XrpcEndpoint for GetPostThreadOtherV2Request { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.getPostThreadOtherV2"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetPostThreadOtherV2<'de>; + type Response = GetPostThreadOtherV2Response; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_v2.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_v2.rs index 393d4f3f..301c2c66 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_v2.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_v2.rs @@ -77,6 +77,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetPostThreadV2<'de> { type Response = GetPostThreadV2Response; } +///Endpoint type for +///app.bsky.unspecced.getPostThreadV2 +pub struct GetPostThreadV2Request; +impl jacquard_common::xrpc::XrpcEndpoint for GetPostThreadV2Request { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.getPostThreadV2"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetPostThreadV2<'de>; + type Response = GetPostThreadV2Response; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds.rs index 356d8f62..79774907 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds.rs @@ -53,4 +53,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetSuggestedFeeds { const NSID: &'static str = "app.bsky.unspecced.getSuggestedFeeds"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetSuggestedFeedsResponse; +} + +///Endpoint type for +///app.bsky.unspecced.getSuggestedFeeds +pub struct GetSuggestedFeedsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetSuggestedFeedsRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.getSuggestedFeeds"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetSuggestedFeeds; + type Response = GetSuggestedFeedsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds_skeleton.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds_skeleton.rs index c2c79c66..38d0190c 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds_skeleton.rs @@ -56,4 +56,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetSuggestedFeedsSkeleton< const NSID: &'static str = "app.bsky.unspecced.getSuggestedFeedsSkeleton"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetSuggestedFeedsSkeletonResponse; +} + +///Endpoint type for +///app.bsky.unspecced.getSuggestedFeedsSkeleton +pub struct GetSuggestedFeedsSkeletonRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetSuggestedFeedsSkeletonRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.getSuggestedFeedsSkeleton"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetSuggestedFeedsSkeleton<'de>; + type Response = GetSuggestedFeedsSkeletonResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs.rs index 447ecec0..d648eafc 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs.rs @@ -53,4 +53,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetSuggestedStarterPacks { const NSID: &'static str = "app.bsky.unspecced.getSuggestedStarterPacks"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetSuggestedStarterPacksResponse; +} + +///Endpoint type for +///app.bsky.unspecced.getSuggestedStarterPacks +pub struct GetSuggestedStarterPacksRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetSuggestedStarterPacksRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.getSuggestedStarterPacks"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetSuggestedStarterPacks; + type Response = GetSuggestedStarterPacksResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs_skeleton.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs_skeleton.rs index bbc14e88..80afb1a3 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs_skeleton.rs @@ -57,4 +57,14 @@ for GetSuggestedStarterPacksSkeleton<'de> { const NSID: &'static str = "app.bsky.unspecced.getSuggestedStarterPacksSkeleton"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetSuggestedStarterPacksSkeletonResponse; +} + +///Endpoint type for +///app.bsky.unspecced.getSuggestedStarterPacksSkeleton +pub struct GetSuggestedStarterPacksSkeletonRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetSuggestedStarterPacksSkeletonRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.getSuggestedStarterPacksSkeleton"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetSuggestedStarterPacksSkeleton<'de>; + type Response = GetSuggestedStarterPacksSkeletonResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users.rs index 8478a502..0edf671a 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users.rs @@ -57,4 +57,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetSuggestedUsers<'de> { const NSID: &'static str = "app.bsky.unspecced.getSuggestedUsers"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetSuggestedUsersResponse; +} + +///Endpoint type for +///app.bsky.unspecced.getSuggestedUsers +pub struct GetSuggestedUsersRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetSuggestedUsersRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.getSuggestedUsers"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetSuggestedUsers<'de>; + type Response = GetSuggestedUsersResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users_skeleton.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users_skeleton.rs index 30e05c9d..57d1bb94 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users_skeleton.rs @@ -60,4 +60,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetSuggestedUsersSkeleton< const NSID: &'static str = "app.bsky.unspecced.getSuggestedUsersSkeleton"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetSuggestedUsersSkeletonResponse; +} + +///Endpoint type for +///app.bsky.unspecced.getSuggestedUsersSkeleton +pub struct GetSuggestedUsersSkeletonRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetSuggestedUsersSkeletonRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.getSuggestedUsersSkeleton"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetSuggestedUsersSkeleton<'de>; + type Response = GetSuggestedUsersSkeletonResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_suggestions_skeleton.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_suggestions_skeleton.rs index a9697949..49a44644 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_suggestions_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_suggestions_skeleton.rs @@ -73,4 +73,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetSuggestionsSkeleton<'de const NSID: &'static str = "app.bsky.unspecced.getSuggestionsSkeleton"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetSuggestionsSkeletonResponse; +} + +///Endpoint type for +///app.bsky.unspecced.getSuggestionsSkeleton +pub struct GetSuggestionsSkeletonRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetSuggestionsSkeletonRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.getSuggestionsSkeleton"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetSuggestionsSkeleton<'de>; + type Response = GetSuggestionsSkeletonResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_tagged_suggestions.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_tagged_suggestions.rs index 74c1f9f4..5565b6e0 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_tagged_suggestions.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_tagged_suggestions.rs @@ -50,6 +50,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetTaggedSuggestions { type Response = GetTaggedSuggestionsResponse; } +///Endpoint type for +///app.bsky.unspecced.getTaggedSuggestions +pub struct GetTaggedSuggestionsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetTaggedSuggestionsRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.getTaggedSuggestions"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetTaggedSuggestions; + type Response = GetTaggedSuggestionsResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_trending_topics.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_trending_topics.rs index e7289bfc..77dcf701 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_trending_topics.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_trending_topics.rs @@ -58,4 +58,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetTrendingTopics<'de> { const NSID: &'static str = "app.bsky.unspecced.getTrendingTopics"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetTrendingTopicsResponse; +} + +///Endpoint type for +///app.bsky.unspecced.getTrendingTopics +pub struct GetTrendingTopicsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetTrendingTopicsRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.getTrendingTopics"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetTrendingTopics<'de>; + type Response = GetTrendingTopicsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_trends.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_trends.rs index e174e669..c1e3882e 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_trends.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_trends.rs @@ -53,4 +53,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetTrends { const NSID: &'static str = "app.bsky.unspecced.getTrends"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetTrendsResponse; +} + +///Endpoint type for +///app.bsky.unspecced.getTrends +pub struct GetTrendsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetTrendsRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.getTrends"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetTrends; + type Response = GetTrendsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_trends_skeleton.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_trends_skeleton.rs index 2e375b1b..879970ba 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_trends_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_trends_skeleton.rs @@ -56,4 +56,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetTrendsSkeleton<'de> { const NSID: &'static str = "app.bsky.unspecced.getTrendsSkeleton"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetTrendsSkeletonResponse; +} + +///Endpoint type for +///app.bsky.unspecced.getTrendsSkeleton +pub struct GetTrendsSkeletonRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetTrendsSkeletonRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.getTrendsSkeleton"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetTrendsSkeleton<'de>; + type Response = GetTrendsSkeletonResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/unspecced/init_age_assurance.rs b/crates/jacquard-api/src/app_bsky/unspecced/init_age_assurance.rs index 15cf39f5..bc668c94 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/init_age_assurance.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/init_age_assurance.rs @@ -144,4 +144,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for InitAgeAssurance<'de> { "application/json", ); type Response = InitAgeAssuranceResponse; +} + +///Endpoint type for +///app.bsky.unspecced.initAgeAssurance +pub struct InitAgeAssuranceRequest; +impl jacquard_common::xrpc::XrpcEndpoint for InitAgeAssuranceRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.initAgeAssurance"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = InitAgeAssurance<'de>; + type Response = InitAgeAssuranceResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/unspecced/search_actors_skeleton.rs b/crates/jacquard-api/src/app_bsky/unspecced/search_actors_skeleton.rs index 879fa99f..7a58effa 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/search_actors_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/search_actors_skeleton.rs @@ -118,4 +118,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SearchActorsSkeleton<'de> const NSID: &'static str = "app.bsky.unspecced.searchActorsSkeleton"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = SearchActorsSkeletonResponse; +} + +///Endpoint type for +///app.bsky.unspecced.searchActorsSkeleton +pub struct SearchActorsSkeletonRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SearchActorsSkeletonRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.searchActorsSkeleton"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = SearchActorsSkeleton<'de>; + type Response = SearchActorsSkeletonResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/unspecced/search_posts_skeleton.rs b/crates/jacquard-api/src/app_bsky/unspecced/search_posts_skeleton.rs index 20fb8ee4..4bb95464 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/search_posts_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/search_posts_skeleton.rs @@ -147,4 +147,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SearchPostsSkeleton<'de> { const NSID: &'static str = "app.bsky.unspecced.searchPostsSkeleton"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = SearchPostsSkeletonResponse; +} + +///Endpoint type for +///app.bsky.unspecced.searchPostsSkeleton +pub struct SearchPostsSkeletonRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SearchPostsSkeletonRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.searchPostsSkeleton"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = SearchPostsSkeleton<'de>; + type Response = SearchPostsSkeletonResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/unspecced/search_starter_packs_skeleton.rs b/crates/jacquard-api/src/app_bsky/unspecced/search_starter_packs_skeleton.rs index dc68d454..5a61a2c5 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/search_starter_packs_skeleton.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/search_starter_packs_skeleton.rs @@ -116,4 +116,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SearchStarterPacksSkeleton const NSID: &'static str = "app.bsky.unspecced.searchStarterPacksSkeleton"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = SearchStarterPacksSkeletonResponse; +} + +///Endpoint type for +///app.bsky.unspecced.searchStarterPacksSkeleton +pub struct SearchStarterPacksSkeletonRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SearchStarterPacksSkeletonRequest { + const PATH: &'static str = "/xrpc/app.bsky.unspecced.searchStarterPacksSkeleton"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = SearchStarterPacksSkeleton<'de>; + type Response = SearchStarterPacksSkeletonResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/video/get_job_status.rs b/crates/jacquard-api/src/app_bsky/video/get_job_status.rs index 59b768f5..bd387007 100644 --- a/crates/jacquard-api/src/app_bsky/video/get_job_status.rs +++ b/crates/jacquard-api/src/app_bsky/video/get_job_status.rs @@ -53,4 +53,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetJobStatus<'de> { const NSID: &'static str = "app.bsky.video.getJobStatus"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetJobStatusResponse; +} + +///Endpoint type for +///app.bsky.video.getJobStatus +pub struct GetJobStatusRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetJobStatusRequest { + const PATH: &'static str = "/xrpc/app.bsky.video.getJobStatus"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetJobStatus<'de>; + type Response = GetJobStatusResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/video/get_upload_limits.rs b/crates/jacquard-api/src/app_bsky/video/get_upload_limits.rs index bc942a36..255d7597 100644 --- a/crates/jacquard-api/src/app_bsky/video/get_upload_limits.rs +++ b/crates/jacquard-api/src/app_bsky/video/get_upload_limits.rs @@ -31,7 +31,16 @@ pub struct GetUploadLimitsOutput<'a> { } /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct GetUploadLimits; ///Response type for ///app.bsky.video.getUploadLimits @@ -47,4 +56,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetUploadLimits { const NSID: &'static str = "app.bsky.video.getUploadLimits"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetUploadLimitsResponse; +} + +///Endpoint type for +///app.bsky.video.getUploadLimits +pub struct GetUploadLimitsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetUploadLimitsRequest { + const PATH: &'static str = "/xrpc/app.bsky.video.getUploadLimits"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetUploadLimits; + type Response = GetUploadLimitsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_bsky/video/upload_video.rs b/crates/jacquard-api/src/app_bsky/video/upload_video.rs index 54c72812..8f61a7d6 100644 --- a/crates/jacquard-api/src/app_bsky/video/upload_video.rs +++ b/crates/jacquard-api/src/app_bsky/video/upload_video.rs @@ -65,4 +65,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UploadVideo { }), ) } +} + +///Endpoint type for +///app.bsky.video.uploadVideo +pub struct UploadVideoRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UploadVideoRequest { + const PATH: &'static str = "/xrpc/app.bsky.video.uploadVideo"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "video/mp4", + ); + type Request<'de> = UploadVideo; + type Response = UploadVideoResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho.rs b/crates/jacquard-api/src/app_ocho.rs new file mode 100644 index 00000000..8f0eb391 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho.rs @@ -0,0 +1,13 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod auth; +pub mod edu; +pub mod message; +pub mod payment; +pub mod plugin; +pub mod push; +pub mod server; +pub mod state; \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/auth.rs b/crates/jacquard-api/src/app_ocho/auth.rs new file mode 100644 index 00000000..6fdf47db --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/auth.rs @@ -0,0 +1,37 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.auth.defs +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod at_proto_callback; +pub mod authorize; +pub mod github_callback; +pub mod google_callback; +pub mod request_email_update; +pub mod update_email; +pub mod update_handle; +pub mod whoami; + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct AuthCallback<'a> { + #[serde(borrow)] + pub access_jwt: jacquard_common::CowStr<'a>, + #[serde(borrow)] + pub did: jacquard_common::types::string::Did<'a>, + #[serde(borrow)] + pub handle: jacquard_common::CowStr<'a>, + #[serde(borrow)] + pub refresh_jwt: jacquard_common::CowStr<'a>, +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/auth/at_proto_callback.rs b/crates/jacquard-api/src/app_ocho/auth/at_proto_callback.rs new file mode 100644 index 00000000..b9eca4e6 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/auth/at_proto_callback.rs @@ -0,0 +1,56 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.auth.atProtoCallback +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct AtProtoCallback<'a> { + #[serde(borrow)] + #[builder(into)] + pub code: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub iss: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub state: jacquard_common::CowStr<'a>, +} + +///Response type for +///app.ocho.auth.atProtoCallback +pub struct AtProtoCallbackResponse; +impl jacquard_common::xrpc::XrpcResp for AtProtoCallbackResponse { + const NSID: &'static str = "app.ocho.auth.atProtoCallback"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = (); + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for AtProtoCallback<'de> { + const NSID: &'static str = "app.ocho.auth.atProtoCallback"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = AtProtoCallbackResponse; +} + +///Endpoint type for +///app.ocho.auth.atProtoCallback +pub struct AtProtoCallbackRequest; +impl jacquard_common::xrpc::XrpcEndpoint for AtProtoCallbackRequest { + const PATH: &'static str = "/xrpc/app.ocho.auth.atProtoCallback"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = AtProtoCallback<'de>; + type Response = AtProtoCallbackResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/auth/authorize.rs b/crates/jacquard-api/src/app_ocho/auth/authorize.rs new file mode 100644 index 00000000..fd5f5c3a --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/auth/authorize.rs @@ -0,0 +1,80 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.auth.authorize +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct Authorize<'a> { + #[serde(borrow)] + pub authorize_options: jacquard_common::types::value::Data<'a>, + #[serde(borrow)] + #[builder(into)] + pub input: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct AuthorizeOutput<'a> { + #[serde(borrow)] + pub url: jacquard_common::CowStr<'a>, +} + +///Response type for +///app.ocho.auth.authorize +pub struct AuthorizeResponse; +impl jacquard_common::xrpc::XrpcResp for AuthorizeResponse { + const NSID: &'static str = "app.ocho.auth.authorize"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = AuthorizeOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Authorize<'de> { + const NSID: &'static str = "app.ocho.auth.authorize"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = AuthorizeResponse; +} + +///Endpoint type for +///app.ocho.auth.authorize +pub struct AuthorizeRequest; +impl jacquard_common::xrpc::XrpcEndpoint for AuthorizeRequest { + const PATH: &'static str = "/xrpc/app.ocho.auth.authorize"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = Authorize<'de>; + type Response = AuthorizeResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/auth/github_callback.rs b/crates/jacquard-api/src/app_ocho/auth/github_callback.rs new file mode 100644 index 00000000..f88a4ea4 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/auth/github_callback.rs @@ -0,0 +1,53 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.auth.githubCallback +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GithubCallback<'a> { + #[serde(borrow)] + #[builder(into)] + pub code: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub state: jacquard_common::CowStr<'a>, +} + +///Response type for +///app.ocho.auth.githubCallback +pub struct GithubCallbackResponse; +impl jacquard_common::xrpc::XrpcResp for GithubCallbackResponse { + const NSID: &'static str = "app.ocho.auth.githubCallback"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = (); + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GithubCallback<'de> { + const NSID: &'static str = "app.ocho.auth.githubCallback"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GithubCallbackResponse; +} + +///Endpoint type for +///app.ocho.auth.githubCallback +pub struct GithubCallbackRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GithubCallbackRequest { + const PATH: &'static str = "/xrpc/app.ocho.auth.githubCallback"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GithubCallback<'de>; + type Response = GithubCallbackResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/auth/google_callback.rs b/crates/jacquard-api/src/app_ocho/auth/google_callback.rs new file mode 100644 index 00000000..eab7648e --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/auth/google_callback.rs @@ -0,0 +1,53 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.auth.googleCallback +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GoogleCallback<'a> { + #[serde(borrow)] + #[builder(into)] + pub code: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub state: jacquard_common::CowStr<'a>, +} + +///Response type for +///app.ocho.auth.googleCallback +pub struct GoogleCallbackResponse; +impl jacquard_common::xrpc::XrpcResp for GoogleCallbackResponse { + const NSID: &'static str = "app.ocho.auth.googleCallback"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = (); + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GoogleCallback<'de> { + const NSID: &'static str = "app.ocho.auth.googleCallback"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GoogleCallbackResponse; +} + +///Endpoint type for +///app.ocho.auth.googleCallback +pub struct GoogleCallbackRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GoogleCallbackRequest { + const PATH: &'static str = "/xrpc/app.ocho.auth.googleCallback"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GoogleCallback<'de>; + type Response = GoogleCallbackResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/auth/request_email_update.rs b/crates/jacquard-api/src/app_ocho/auth/request_email_update.rs new file mode 100644 index 00000000..be2c3ab9 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/auth/request_email_update.rs @@ -0,0 +1,63 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.auth.requestEmailUpdate +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct RequestEmailUpdateOutput<'a> { + pub token_required: bool, +} + +/// XRPC request marker type +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] +pub struct RequestEmailUpdate; +///Response type for +///app.ocho.auth.requestEmailUpdate +pub struct RequestEmailUpdateResponse; +impl jacquard_common::xrpc::XrpcResp for RequestEmailUpdateResponse { + const NSID: &'static str = "app.ocho.auth.requestEmailUpdate"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = RequestEmailUpdateOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for RequestEmailUpdate { + const NSID: &'static str = "app.ocho.auth.requestEmailUpdate"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = RequestEmailUpdateResponse; +} + +///Endpoint type for +///app.ocho.auth.requestEmailUpdate +pub struct RequestEmailUpdateRequest; +impl jacquard_common::xrpc::XrpcEndpoint for RequestEmailUpdateRequest { + const PATH: &'static str = "/xrpc/app.ocho.auth.requestEmailUpdate"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = RequestEmailUpdate; + type Response = RequestEmailUpdateResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/auth/update_email.rs b/crates/jacquard-api/src/app_ocho/auth/update_email.rs new file mode 100644 index 00000000..2875a7dc --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/auth/update_email.rs @@ -0,0 +1,138 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.auth.updateEmail +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct UpdateEmail<'a> { + #[serde(borrow)] + #[builder(into)] + pub email: jacquard_common::CowStr<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub email_auth_factor: std::option::Option, + ///Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub token: std::option::Option>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +#[jacquard_derive::open_union] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + thiserror::Error, + miette::Diagnostic +)] +#[serde(tag = "error", content = "message")] +#[serde(bound(deserialize = "'de: 'a"))] +pub enum UpdateEmailError<'a> { + #[serde(rename = "ExpiredToken")] + ExpiredToken(std::option::Option), + #[serde(rename = "InvalidToken")] + InvalidToken(std::option::Option), + #[serde(rename = "TokenRequired")] + TokenRequired(std::option::Option), +} + +impl std::fmt::Display for UpdateEmailError<'_> { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + Self::ExpiredToken(msg) => { + write!(f, "ExpiredToken")?; + if let Some(msg) = msg { + write!(f, ": {}", msg)?; + } + Ok(()) + } + Self::InvalidToken(msg) => { + write!(f, "InvalidToken")?; + if let Some(msg) = msg { + write!(f, ": {}", msg)?; + } + Ok(()) + } + Self::TokenRequired(msg) => { + write!(f, "TokenRequired")?; + if let Some(msg) = msg { + write!(f, ": {}", msg)?; + } + Ok(()) + } + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), + } + } +} + +impl jacquard_common::IntoStatic for UpdateEmailError<'_> { + type Output = UpdateEmailError<'static>; + fn into_static(self) -> Self::Output { + match self { + UpdateEmailError::ExpiredToken(v) => { + UpdateEmailError::ExpiredToken(v.into_static()) + } + UpdateEmailError::InvalidToken(v) => { + UpdateEmailError::InvalidToken(v.into_static()) + } + UpdateEmailError::TokenRequired(v) => { + UpdateEmailError::TokenRequired(v.into_static()) + } + UpdateEmailError::Unknown(v) => UpdateEmailError::Unknown(v.into_static()), + } + } +} + +///Response type for +///app.ocho.auth.updateEmail +pub struct UpdateEmailResponse; +impl jacquard_common::xrpc::XrpcResp for UpdateEmailResponse { + const NSID: &'static str = "app.ocho.auth.updateEmail"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = (); + type Err<'de> = UpdateEmailError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateEmail<'de> { + const NSID: &'static str = "app.ocho.auth.updateEmail"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = UpdateEmailResponse; +} + +///Endpoint type for +///app.ocho.auth.updateEmail +pub struct UpdateEmailRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateEmailRequest { + const PATH: &'static str = "/xrpc/app.ocho.auth.updateEmail"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateEmail<'de>; + type Response = UpdateEmailResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/auth/update_handle.rs b/crates/jacquard-api/src/app_ocho/auth/update_handle.rs new file mode 100644 index 00000000..c27eda48 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/auth/update_handle.rs @@ -0,0 +1,62 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.auth.updateHandle +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct UpdateHandle<'a> { + ///The new handle. + #[serde(borrow)] + pub handle: jacquard_common::types::string::Handle<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +///Response type for +///app.ocho.auth.updateHandle +pub struct UpdateHandleResponse; +impl jacquard_common::xrpc::XrpcResp for UpdateHandleResponse { + const NSID: &'static str = "app.ocho.auth.updateHandle"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = (); + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateHandle<'de> { + const NSID: &'static str = "app.ocho.auth.updateHandle"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = UpdateHandleResponse; +} + +///Endpoint type for +///app.ocho.auth.updateHandle +pub struct UpdateHandleRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateHandleRequest { + const PATH: &'static str = "/xrpc/app.ocho.auth.updateHandle"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateHandle<'de>; + type Response = UpdateHandleResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/auth/whoami.rs b/crates/jacquard-api/src/app_ocho/auth/whoami.rs new file mode 100644 index 00000000..df9d0a98 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/auth/whoami.rs @@ -0,0 +1,65 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.auth.whoami +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///The session data +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct WhoamiOutput<'a> { + ///The user's DID + #[serde(borrow)] + pub did: jacquard_common::CowStr<'a>, + ///The user's ID + #[serde(borrow)] + pub handle: jacquard_common::CowStr<'a>, +} + +/// XRPC request marker type +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] +pub struct Whoami; +///Response type for +///app.ocho.auth.whoami +pub struct WhoamiResponse; +impl jacquard_common::xrpc::XrpcResp for WhoamiResponse { + const NSID: &'static str = "app.ocho.auth.whoami"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = WhoamiOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Whoami { + const NSID: &'static str = "app.ocho.auth.whoami"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = WhoamiResponse; +} + +///Endpoint type for +///app.ocho.auth.whoami +pub struct WhoamiRequest; +impl jacquard_common::xrpc::XrpcEndpoint for WhoamiRequest { + const PATH: &'static str = "/xrpc/app.ocho.auth.whoami"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = Whoami; + type Response = WhoamiResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/edu.rs b/crates/jacquard-api/src/app_ocho/edu.rs new file mode 100644 index 00000000..264ea131 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/edu.rs @@ -0,0 +1,9 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod get_verification_url; +pub mod google_callback; +pub mod is_verified; +pub mod verification; \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/edu/get_verification_url.rs b/crates/jacquard-api/src/app_ocho/edu/get_verification_url.rs new file mode 100644 index 00000000..0002c846 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/edu/get_verification_url.rs @@ -0,0 +1,67 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.edu.getVerificationUrl +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetVerificationUrl<'a> { + #[serde(borrow)] + #[builder(into)] + pub domain: jacquard_common::CowStr<'a>, +} + +///The intent data +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetVerificationUrlOutput<'a> { + #[serde(borrow)] + pub url: jacquard_common::CowStr<'a>, +} + +///Response type for +///app.ocho.edu.getVerificationUrl +pub struct GetVerificationUrlResponse; +impl jacquard_common::xrpc::XrpcResp for GetVerificationUrlResponse { + const NSID: &'static str = "app.ocho.edu.getVerificationUrl"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetVerificationUrlOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetVerificationUrl<'de> { + const NSID: &'static str = "app.ocho.edu.getVerificationUrl"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetVerificationUrlResponse; +} + +///Endpoint type for +///app.ocho.edu.getVerificationUrl +pub struct GetVerificationUrlRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetVerificationUrlRequest { + const PATH: &'static str = "/xrpc/app.ocho.edu.getVerificationUrl"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetVerificationUrl<'de>; + type Response = GetVerificationUrlResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/edu/google_callback.rs b/crates/jacquard-api/src/app_ocho/edu/google_callback.rs new file mode 100644 index 00000000..48f95480 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/edu/google_callback.rs @@ -0,0 +1,53 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.edu.googleCallback +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GoogleCallback<'a> { + #[serde(borrow)] + #[builder(into)] + pub code: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub state: jacquard_common::CowStr<'a>, +} + +///Response type for +///app.ocho.edu.googleCallback +pub struct GoogleCallbackResponse; +impl jacquard_common::xrpc::XrpcResp for GoogleCallbackResponse { + const NSID: &'static str = "app.ocho.edu.googleCallback"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = (); + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GoogleCallback<'de> { + const NSID: &'static str = "app.ocho.edu.googleCallback"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GoogleCallbackResponse; +} + +///Endpoint type for +///app.ocho.edu.googleCallback +pub struct GoogleCallbackRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GoogleCallbackRequest { + const PATH: &'static str = "/xrpc/app.ocho.edu.googleCallback"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GoogleCallback<'de>; + type Response = GoogleCallbackResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/edu/is_verified.rs b/crates/jacquard-api/src/app_ocho/edu/is_verified.rs new file mode 100644 index 00000000..7ac1d6fa --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/edu/is_verified.rs @@ -0,0 +1,66 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.edu.isVerified +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct IsVerified<'a> { + #[serde(borrow)] + #[builder(into)] + pub domain: jacquard_common::CowStr<'a>, +} + +///Whether the user is verified on that domain +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct IsVerifiedOutput<'a> { + pub verified: bool, +} + +///Response type for +///app.ocho.edu.isVerified +pub struct IsVerifiedResponse; +impl jacquard_common::xrpc::XrpcResp for IsVerifiedResponse { + const NSID: &'static str = "app.ocho.edu.isVerified"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = IsVerifiedOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for IsVerified<'de> { + const NSID: &'static str = "app.ocho.edu.isVerified"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = IsVerifiedResponse; +} + +///Endpoint type for +///app.ocho.edu.isVerified +pub struct IsVerifiedRequest; +impl jacquard_common::xrpc::XrpcEndpoint for IsVerifiedRequest { + const PATH: &'static str = "/xrpc/app.ocho.edu.isVerified"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = IsVerified<'de>; + type Response = IsVerifiedResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/edu/verification.rs b/crates/jacquard-api/src/app_ocho/edu/verification.rs new file mode 100644 index 00000000..7aa0ee60 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/edu/verification.rs @@ -0,0 +1,33 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.edu.verification +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///Record declaring a verification relationship between an account and a .edu domain. Verifications are only considered valid by an app if issued by an account the app considers trusted. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Verification<'a> { + ///Date of when the verification was created. + pub created_at: jacquard_common::types::string::Datetime, + ///The domain the subject is verified under. + #[serde(borrow)] + pub domain: jacquard_common::CowStr<'a>, + ///DID of the subject the verification applies to. + #[serde(borrow)] + pub subject: jacquard_common::types::string::Did<'a>, +} + +impl jacquard_common::types::collection::Collection for Verification<'_> { + const NSID: &'static str = "app.ocho.edu.verification"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/message.rs b/crates/jacquard-api/src/app_ocho/message.rs new file mode 100644 index 00000000..48dbc5c8 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/message.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod send; \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/message/send.rs b/crates/jacquard-api/src/app_ocho/message/send.rs new file mode 100644 index 00000000..662f16e2 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/message/send.rs @@ -0,0 +1,83 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.message.send +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct Send<'a> { + ///The user to send the message to. + #[serde(borrow)] + #[builder(into)] + pub did: jacquard_common::CowStr<'a>, + ///The message to send to the user. + #[serde(borrow)] + #[builder(into)] + pub message: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct SendOutput<'a> { + ///Whether the token was successfully registered. + pub success: bool, +} + +///Response type for +///app.ocho.message.send +pub struct SendResponse; +impl jacquard_common::xrpc::XrpcResp for SendResponse { + const NSID: &'static str = "app.ocho.message.send"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = SendOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Send<'de> { + const NSID: &'static str = "app.ocho.message.send"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = SendResponse; +} + +///Endpoint type for +///app.ocho.message.send +pub struct SendRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SendRequest { + const PATH: &'static str = "/xrpc/app.ocho.message.send"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = Send<'de>; + type Response = SendResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/payment.rs b/crates/jacquard-api/src/app_ocho/payment.rs new file mode 100644 index 00000000..09b0ba57 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/payment.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod get_stripe_intent; \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/payment/get_stripe_intent.rs b/crates/jacquard-api/src/app_ocho/payment/get_stripe_intent.rs new file mode 100644 index 00000000..76ae8df5 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/payment/get_stripe_intent.rs @@ -0,0 +1,87 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.payment.getStripeIntent +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetStripeIntent<'a> { + pub amount: i64, + #[serde(borrow)] + #[builder(into)] + pub id: jacquard_common::CowStr<'a>, + #[serde(borrow)] + pub iss: jacquard_common::types::string::Did<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub token: std::option::Option>, +} + +///The intent data +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetStripeIntentOutput<'a> { + ///The customer ID for the payment intent + #[serde(borrow)] + pub customer: jacquard_common::CowStr<'a>, + ///The customer session ID for the payment intent + #[serde(borrow)] + pub customer_session: jacquard_common::CowStr<'a>, + ///The ephemeral key for the payment intent + #[serde(borrow)] + pub ephemeral_key: jacquard_common::CowStr<'a>, + ///The payment intent ID + #[serde(borrow)] + pub payment_intent: jacquard_common::CowStr<'a>, + ///The publishable key for the payment intent + #[serde(borrow)] + pub publishable_key: jacquard_common::CowStr<'a>, +} + +///Response type for +///app.ocho.payment.getStripeIntent +pub struct GetStripeIntentResponse; +impl jacquard_common::xrpc::XrpcResp for GetStripeIntentResponse { + const NSID: &'static str = "app.ocho.payment.getStripeIntent"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetStripeIntentOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetStripeIntent<'de> { + const NSID: &'static str = "app.ocho.payment.getStripeIntent"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetStripeIntentResponse; +} + +///Endpoint type for +///app.ocho.payment.getStripeIntent +pub struct GetStripeIntentRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetStripeIntentRequest { + const PATH: &'static str = "/xrpc/app.ocho.payment.getStripeIntent"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetStripeIntent<'de>; + type Response = GetStripeIntentResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/plugin.rs b/crates/jacquard-api/src/app_ocho/plugin.rs new file mode 100644 index 00000000..9566dfa5 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/plugin.rs @@ -0,0 +1,361 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.plugin.defs +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod get_launch_asset; +pub mod get_manifest; +pub mod put_hosting_url; +pub mod service; + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct AdaptiveIcon<'a> { + ///The background color of the adaptive icon. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub background_color: std::option::Option>, + ///The URL to the foreground image of the adaptive icon. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub foreground_image: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub foreground_image_blob: std::option::Option< + jacquard_common::types::blob::Blob<'a>, + >, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Android<'a> { + ///Configuration for the adaptive icon on Android. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub adaptive_icon: std::option::Option>, + ///Whether edge-to-edge mode is enabled for the app. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub edge_to_edge_enabled: std::option::Option, +} + +///Android status bar configuration. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct AndroidStatusBar<'a> { + ///The background color of the Android status bar. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub background_color: std::option::Option>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Asset<'a> { + ///The blob of the asset + #[serde(borrow)] + pub blob: jacquard_common::types::blob::Blob<'a>, + ///The hash of the asset + #[serde(borrow)] + pub hash: jacquard_common::CowStr<'a>, + ///The type of the asset + #[serde(borrow)] + pub r#type: jacquard_common::CowStr<'a>, + ///The date and time when this asset was last updated. Used to reset the jetstream cache, among other things. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub updated_at: std::option::Option, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Db<'a> { + ///The ID of the database. + #[serde(borrow)] + pub id: jacquard_common::CowStr<'a>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Developer<'a> { + ///The tool used for development, e.g., 'expo-cli'. + #[serde(borrow)] + pub tool: jacquard_common::CowStr<'a>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct ExpoClient<'a> { + ///Android-specific configuration for the app. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub android: std::option::Option>, + ///Configuration for the Android status bar. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub android_status_bar: std::option::Option< + crate::app_ocho::plugin::AndroidStatusBar<'a>, + >, + ///Experimental features enabled for the app. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub expirements: std::option::Option>, + ///Additional configuration for the app. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub extra: std::option::Option>, + ///The URL to the app icon. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub icon: std::option::Option>, + ///ios-specific configuration for the app. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub ios: std::option::Option>, + ///Localization settings for the app. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub locales: std::option::Option>, + ///The name of the Expo client application. + #[serde(borrow)] + pub name: jacquard_common::CowStr<'a>, + ///Whether the new architecture is enabled for the app. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub new_arch_enabled: std::option::Option, + ///The default orientation of the app. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub orientation: std::option::Option>, + ///The platforms supported by the app. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub platforms: std::option::Option>>, + ///A list of plugins used by the app. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub plugins: std::option::Option>, + ///The custom URI scheme for deep linking. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub scheme: std::option::Option>, + ///The SDK version of the Expo client. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub sdk_version: std::option::Option>, + ///A URL-friendly identifier for the app. + #[serde(borrow)] + pub slug: jacquard_common::CowStr<'a>, + ///The default user interface style. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub user_interface_style: std::option::Option>, + ///The version of the app. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub version: std::option::Option>, + ///Web-specific configuration for the app. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub web: std::option::Option>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct ExpoGo<'a> { + ///Developer-specific configuration for the Expo Go app. + #[serde(borrow)] + pub developer: crate::app_ocho::plugin::Developer<'a>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Ios<'a> { + ///Whether the app supports iPad. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub supports_tablet: std::option::Option, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct LaunchAsset<'a> { + ///The MIME type of the asset, e.g., 'image/png'. + #[serde(borrow)] + pub content_type: jacquard_common::CowStr<'a>, + ///The unique key for this asset, used to reference it in the plugin. + #[serde(borrow)] + pub key: jacquard_common::CowStr<'a>, + ///The URL where the asset can be accessed. + #[serde(borrow)] + pub url: jacquard_common::types::string::Uri<'a>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Manifest<'a> { + ///The date and time when this plugin manifest was created. + pub created_at: jacquard_common::types::string::Datetime, + ///Additional metadata for the plugin, including Expo client and Go configurations. + #[serde(borrow)] + pub extra: crate::app_ocho::plugin::ManifestExtra<'a>, + ///The unique identifier for this plugin manifest. + #[serde(borrow)] + pub id: jacquard_common::CowStr<'a>, + ///The launch asset for the plugin (the main javascipt bundle). + #[serde(borrow)] + pub launch_asset: crate::app_ocho::plugin::LaunchAsset<'a>, + #[serde(borrow)] + pub metadata: jacquard_common::types::value::Data<'a>, + ///The version of the Expo runtime this plugin is compatible with. + #[serde(borrow)] + pub runtime_version: jacquard_common::CowStr<'a>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct ManifestExtra<'a> { + #[serde(borrow)] + pub expo_client: crate::app_ocho::plugin::ExpoClient<'a>, + #[serde(borrow)] + pub expo_go: crate::app_ocho::plugin::ExpoGo<'a>, +} + +pub type Plugin<'a> = Vec>; +pub type PluginConfig<'a> = jacquard_common::types::value::Data<'a>; +///A string identifier for a plugin, used to reference it in the app. +pub type StringId<'a> = jacquard_common::CowStr<'a>; +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Web<'a> { + ///The bundler used for the web app. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub bundler: std::option::Option>, + ///The URL to the favicon for the web app. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub favicon: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub favicon_blob: std::option::Option>, + ///The output directory for the web app. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub output: std::option::Option>, +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/plugin/get_launch_asset.rs b/crates/jacquard-api/src/app_ocho/plugin/get_launch_asset.rs new file mode 100644 index 00000000..c9b18407 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/plugin/get_launch_asset.rs @@ -0,0 +1,65 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.plugin.getLaunchAsset +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetLaunchAsset<'a> { + #[serde(borrow)] + pub did: jacquard_common::types::string::Did<'a>, + #[serde(borrow)] + #[builder(into)] + pub platform: jacquard_common::CowStr<'a>, +} + +///The launch asset for the plugin, which is the main JavaScript bundle. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetLaunchAssetOutput<'a> {} +///Response type for +///app.ocho.plugin.getLaunchAsset +pub struct GetLaunchAssetResponse; +impl jacquard_common::xrpc::XrpcResp for GetLaunchAssetResponse { + const NSID: &'static str = "app.ocho.plugin.getLaunchAsset"; + const ENCODING: &'static str = "text/javascript"; + type Output<'de> = GetLaunchAssetOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetLaunchAsset<'de> { + const NSID: &'static str = "app.ocho.plugin.getLaunchAsset"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetLaunchAssetResponse; +} + +///Endpoint type for +///app.ocho.plugin.getLaunchAsset +pub struct GetLaunchAssetRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetLaunchAssetRequest { + const PATH: &'static str = "/xrpc/app.ocho.plugin.getLaunchAsset"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetLaunchAsset<'de>; + type Response = GetLaunchAssetResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/plugin/get_manifest.rs b/crates/jacquard-api/src/app_ocho/plugin/get_manifest.rs new file mode 100644 index 00000000..8e9816fa --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/plugin/get_manifest.rs @@ -0,0 +1,69 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.plugin.getManifest +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetManifest<'a> { + #[serde(borrow)] + pub did: jacquard_common::types::string::Did<'a>, + #[serde(borrow)] + #[builder(into)] + pub platform: jacquard_common::CowStr<'a>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetManifestOutput<'a> { + #[serde(flatten)] + #[serde(borrow)] + pub value: crate::app_ocho::plugin::Manifest<'a>, +} + +///Response type for +///app.ocho.plugin.getManifest +pub struct GetManifestResponse; +impl jacquard_common::xrpc::XrpcResp for GetManifestResponse { + const NSID: &'static str = "app.ocho.plugin.getManifest"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetManifestOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetManifest<'de> { + const NSID: &'static str = "app.ocho.plugin.getManifest"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetManifestResponse; +} + +///Endpoint type for +///app.ocho.plugin.getManifest +pub struct GetManifestRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetManifestRequest { + const PATH: &'static str = "/xrpc/app.ocho.plugin.getManifest"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetManifest<'de>; + type Response = GetManifestResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/plugin/put_hosting_url.rs b/crates/jacquard-api/src/app_ocho/plugin/put_hosting_url.rs new file mode 100644 index 00000000..99b9bbc4 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/plugin/put_hosting_url.rs @@ -0,0 +1,78 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.plugin.putHostingUrl +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct PutHostingUrl<'a> { + ///The expo push token + #[serde(borrow)] + #[builder(into)] + pub url: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct PutHostingUrlOutput<'a> { + pub success: bool, +} + +///Response type for +///app.ocho.plugin.putHostingUrl +pub struct PutHostingUrlResponse; +impl jacquard_common::xrpc::XrpcResp for PutHostingUrlResponse { + const NSID: &'static str = "app.ocho.plugin.putHostingUrl"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = PutHostingUrlOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for PutHostingUrl<'de> { + const NSID: &'static str = "app.ocho.plugin.putHostingUrl"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = PutHostingUrlResponse; +} + +///Endpoint type for +///app.ocho.plugin.putHostingUrl +pub struct PutHostingUrlRequest; +impl jacquard_common::xrpc::XrpcEndpoint for PutHostingUrlRequest { + const PATH: &'static str = "/xrpc/app.ocho.plugin.putHostingUrl"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = PutHostingUrl<'de>; + type Response = PutHostingUrlResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/plugin/service.rs b/crates/jacquard-api/src/app_ocho/plugin/service.rs new file mode 100644 index 00000000..e1629075 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/plugin/service.rs @@ -0,0 +1,31 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.plugin.service +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///The definitions for the plugin. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Service<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub db: std::option::Option>, + ///Additional metadata for the plugin, including Expo client and Go configurations. + #[serde(borrow)] + pub permissions: Vec>, +} + +impl jacquard_common::types::collection::Collection for Service<'_> { + const NSID: &'static str = "app.ocho.plugin.service"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/push.rs b/crates/jacquard-api/src/app_ocho/push.rs new file mode 100644 index 00000000..24e77118 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/push.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod register; \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/push/register.rs b/crates/jacquard-api/src/app_ocho/push/register.rs new file mode 100644 index 00000000..e865c42d --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/push/register.rs @@ -0,0 +1,79 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.push.register +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct Register<'a> { + ///The expo push token + #[serde(borrow)] + #[builder(into)] + pub push_token: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct RegisterOutput<'a> { + ///Whether the token was successfully registered. + pub success: bool, +} + +///Response type for +///app.ocho.push.register +pub struct RegisterResponse; +impl jacquard_common::xrpc::XrpcResp for RegisterResponse { + const NSID: &'static str = "app.ocho.push.register"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = RegisterOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Register<'de> { + const NSID: &'static str = "app.ocho.push.register"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = RegisterResponse; +} + +///Endpoint type for +///app.ocho.push.register +pub struct RegisterRequest; +impl jacquard_common::xrpc::XrpcEndpoint for RegisterRequest { + const PATH: &'static str = "/xrpc/app.ocho.push.register"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = Register<'de>; + type Response = RegisterResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/server.rs b/crates/jacquard-api/src/app_ocho/server.rs new file mode 100644 index 00000000..90a79f41 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/server.rs @@ -0,0 +1,8 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod get_launch_token; +pub mod get_token; +pub mod swap_launch_token; \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/server/get_launch_token.rs b/crates/jacquard-api/src/app_ocho/server/get_launch_token.rs new file mode 100644 index 00000000..37613a08 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/server/get_launch_token.rs @@ -0,0 +1,65 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.server.getLaunchToken +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetLaunchToken<'a> { + #[serde(borrow)] + pub aud: jacquard_common::types::string::Did<'a>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetLaunchTokenOutput<'a> { + #[serde(borrow)] + pub token: jacquard_common::CowStr<'a>, +} + +///Response type for +///app.ocho.server.getLaunchToken +pub struct GetLaunchTokenResponse; +impl jacquard_common::xrpc::XrpcResp for GetLaunchTokenResponse { + const NSID: &'static str = "app.ocho.server.getLaunchToken"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetLaunchTokenOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetLaunchToken<'de> { + const NSID: &'static str = "app.ocho.server.getLaunchToken"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetLaunchTokenResponse; +} + +///Endpoint type for +///app.ocho.server.getLaunchToken +pub struct GetLaunchTokenRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetLaunchTokenRequest { + const PATH: &'static str = "/xrpc/app.ocho.server.getLaunchToken"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetLaunchToken<'de>; + type Response = GetLaunchTokenResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/server/get_token.rs b/crates/jacquard-api/src/app_ocho/server/get_token.rs new file mode 100644 index 00000000..c954c0ef --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/server/get_token.rs @@ -0,0 +1,65 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.server.getToken +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetToken<'a> { + #[serde(borrow)] + pub aud: jacquard_common::types::string::Did<'a>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetTokenOutput<'a> { + #[serde(borrow)] + pub token: jacquard_common::CowStr<'a>, +} + +///Response type for +///app.ocho.server.getToken +pub struct GetTokenResponse; +impl jacquard_common::xrpc::XrpcResp for GetTokenResponse { + const NSID: &'static str = "app.ocho.server.getToken"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetTokenOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetToken<'de> { + const NSID: &'static str = "app.ocho.server.getToken"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetTokenResponse; +} + +///Endpoint type for +///app.ocho.server.getToken +pub struct GetTokenRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetTokenRequest { + const PATH: &'static str = "/xrpc/app.ocho.server.getToken"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetToken<'de>; + type Response = GetTokenResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/server/swap_launch_token.rs b/crates/jacquard-api/src/app_ocho/server/swap_launch_token.rs new file mode 100644 index 00000000..f233bd48 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/server/swap_launch_token.rs @@ -0,0 +1,76 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.server.swapLaunchToken +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct SwapLaunchToken<'a> { + #[serde(borrow)] + #[builder(into)] + pub launch_token: jacquard_common::CowStr<'a>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct SwapLaunchTokenOutput<'a> { + ///The did of the user + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub did: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub handle: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub name: std::option::Option>, + #[serde(borrow)] + pub token: jacquard_common::CowStr<'a>, +} + +///Response type for +///app.ocho.server.swapLaunchToken +pub struct SwapLaunchTokenResponse; +impl jacquard_common::xrpc::XrpcResp for SwapLaunchTokenResponse { + const NSID: &'static str = "app.ocho.server.swapLaunchToken"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = SwapLaunchTokenOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SwapLaunchToken<'de> { + const NSID: &'static str = "app.ocho.server.swapLaunchToken"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = SwapLaunchTokenResponse; +} + +///Endpoint type for +///app.ocho.server.swapLaunchToken +pub struct SwapLaunchTokenRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SwapLaunchTokenRequest { + const PATH: &'static str = "/xrpc/app.ocho.server.swapLaunchToken"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = SwapLaunchToken<'de>; + type Response = SwapLaunchTokenResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/state.rs b/crates/jacquard-api/src/app_ocho/state.rs new file mode 100644 index 00000000..b9dad75c --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/state.rs @@ -0,0 +1,7 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod get_config; +pub mod login; \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/state/get_config.rs b/crates/jacquard-api/src/app_ocho/state/get_config.rs new file mode 100644 index 00000000..cd523f45 --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/state/get_config.rs @@ -0,0 +1,122 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.state.getConfig +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetConfigOutput<'a> { + ///The token for the InstantDB account + #[serde(borrow)] + pub account_token: jacquard_common::CowStr<'a>, + ///The InstantDB admin token + #[serde(borrow)] + pub admin_token: jacquard_common::CowStr<'a>, + ///The App ID + #[serde(borrow)] + pub id: jacquard_common::CowStr<'a>, +} + +#[jacquard_derive::open_union] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + thiserror::Error, + miette::Diagnostic +)] +#[serde(tag = "error", content = "message")] +#[serde(bound(deserialize = "'de: 'a"))] +pub enum GetConfigError<'a> { + #[serde(rename = "InvalidID")] + InvalidId(std::option::Option), + #[serde(rename = "InvalidServiceAuth")] + InvalidServiceAuth(std::option::Option), +} + +impl std::fmt::Display for GetConfigError<'_> { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + Self::InvalidId(msg) => { + write!(f, "InvalidID")?; + if let Some(msg) = msg { + write!(f, ": {}", msg)?; + } + Ok(()) + } + Self::InvalidServiceAuth(msg) => { + write!(f, "InvalidServiceAuth")?; + if let Some(msg) = msg { + write!(f, ": {}", msg)?; + } + Ok(()) + } + Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), + } + } +} + +impl jacquard_common::IntoStatic for GetConfigError<'_> { + type Output = GetConfigError<'static>; + fn into_static(self) -> Self::Output { + match self { + GetConfigError::InvalidId(v) => GetConfigError::InvalidId(v.into_static()), + GetConfigError::InvalidServiceAuth(v) => { + GetConfigError::InvalidServiceAuth(v.into_static()) + } + GetConfigError::Unknown(v) => GetConfigError::Unknown(v.into_static()), + } + } +} + +/// XRPC request marker type +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] +pub struct GetConfig; +///Response type for +///app.ocho.state.getConfig +pub struct GetConfigResponse; +impl jacquard_common::xrpc::XrpcResp for GetConfigResponse { + const NSID: &'static str = "app.ocho.state.getConfig"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetConfigOutput<'de>; + type Err<'de> = GetConfigError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetConfig { + const NSID: &'static str = "app.ocho.state.getConfig"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetConfigResponse; +} + +///Endpoint type for +///app.ocho.state.getConfig +pub struct GetConfigRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetConfigRequest { + const PATH: &'static str = "/xrpc/app.ocho.state.getConfig"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetConfig; + type Response = GetConfigResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/app_ocho/state/login.rs b/crates/jacquard-api/src/app_ocho/state/login.rs new file mode 100644 index 00000000..089295be --- /dev/null +++ b/crates/jacquard-api/src/app_ocho/state/login.rs @@ -0,0 +1,61 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: app.ocho.state.login +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct LoginOutput<'a> { + ///The code used to login on the InstantDB website + #[serde(borrow)] + pub code: jacquard_common::CowStr<'a>, +} + +/// XRPC request marker type +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] +pub struct Login; +///Response type for +///app.ocho.state.login +pub struct LoginResponse; +impl jacquard_common::xrpc::XrpcResp for LoginResponse { + const NSID: &'static str = "app.ocho.state.login"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = LoginOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Login { + const NSID: &'static str = "app.ocho.state.login"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = LoginResponse; +} + +///Endpoint type for +///app.ocho.state.login +pub struct LoginRequest; +impl jacquard_common::xrpc::XrpcEndpoint for LoginRequest { + const PATH: &'static str = "/xrpc/app.ocho.state.login"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = Login; + type Response = LoginResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/beauty_cybernetic.rs b/crates/jacquard-api/src/beauty_cybernetic.rs new file mode 100644 index 00000000..2c7fbe30 --- /dev/null +++ b/crates/jacquard-api/src/beauty_cybernetic.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod trustcow; \ No newline at end of file diff --git a/crates/jacquard-api/src/beauty_cybernetic/trustcow.rs b/crates/jacquard-api/src/beauty_cybernetic/trustcow.rs new file mode 100644 index 00000000..840b2990 --- /dev/null +++ b/crates/jacquard-api/src/beauty_cybernetic/trustcow.rs @@ -0,0 +1,8 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod review; +pub mod transaction; +pub mod warrant; \ No newline at end of file diff --git a/crates/jacquard-api/src/beauty_cybernetic/trustcow/review.rs b/crates/jacquard-api/src/beauty_cybernetic/trustcow/review.rs new file mode 100644 index 00000000..a9f6dbdd --- /dev/null +++ b/crates/jacquard-api/src/beauty_cybernetic/trustcow/review.rs @@ -0,0 +1,44 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: beauty.cybernetic.trustcow.review +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A review connected to a verified transaction, can only be created by one of the transaction parties +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Review<'a> { + ///When the review was created + pub created_at: jacquard_common::types::string::Datetime, + ///The detailed review text + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + ///Rating score from 1 to 5 + pub rating: i64, + ///Whether this review is from the service provider or consumer + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub reviewer_role: std::option::Option>, + ///The title of the review + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub title: std::option::Option>, + ///AT URI reference to the transaction record (at://did/beauty.cybernetic.trustcow.transaction/rkey) + #[serde(borrow)] + pub transaction: jacquard_common::CowStr<'a>, +} + +impl jacquard_common::types::collection::Collection for Review<'_> { + const NSID: &'static str = "beauty.cybernetic.trustcow.review"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/beauty_cybernetic/trustcow/transaction.rs b/crates/jacquard-api/src/beauty_cybernetic/trustcow/transaction.rs new file mode 100644 index 00000000..8165c631 --- /dev/null +++ b/crates/jacquard-api/src/beauty_cybernetic/trustcow/transaction.rs @@ -0,0 +1,48 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: beauty.cybernetic.trustcow.transaction +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A verified transaction between two ATProto identities that must be stored in both parties' PDS +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Transaction<'a> { + ///Transaction amount (optional, in whatever currency applies) + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub amount: std::option::Option>, + ///When the transaction occurred + pub created_at: jacquard_common::types::string::Datetime, + ///Currency code (optional, e.g. USD, EUR, BTC) + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub currency: std::option::Option>, + ///Description of the service or product transacted + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + ///DID of the service consumer identity + #[serde(borrow)] + pub service_consumer: jacquard_common::CowStr<'a>, + ///DID of the service provider identity + #[serde(borrow)] + pub service_provider: jacquard_common::CowStr<'a>, + ///Unique identifier for this transaction, must be identical in both parties' records + #[serde(borrow)] + pub transaction_id: jacquard_common::CowStr<'a>, +} + +impl jacquard_common::types::collection::Collection for Transaction<'_> { + const NSID: &'static str = "beauty.cybernetic.trustcow.transaction"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/beauty_cybernetic/trustcow/warrant.rs b/crates/jacquard-api/src/beauty_cybernetic/trustcow/warrant.rs new file mode 100644 index 00000000..697aa2a3 --- /dev/null +++ b/crates/jacquard-api/src/beauty_cybernetic/trustcow/warrant.rs @@ -0,0 +1,45 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: beauty.cybernetic.trustcow.warrant +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A warrant where one ATProto identity vouches for the trustworthiness of another identity +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Warrant<'a> { + ///When the warrant was created + pub created_at: jacquard_common::types::string::Datetime, + ///Optional description explaining the basis for this warrant + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + ///Optional expiration date for this warrant + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub expires_at: std::option::Option, + ///DID of the identity being warranted for + #[serde(borrow)] + pub subject: jacquard_common::CowStr<'a>, + ///Level of trust being warranted + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub trust_level: std::option::Option>, + ///Type of warrant being provided + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub warrant_type: std::option::Option>, +} + +impl jacquard_common::types::collection::Collection for Warrant<'_> { + const NSID: &'static str = "beauty.cybernetic.trustcow.warrant"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/blue__2048.rs b/crates/jacquard-api/src/blue__2048.rs new file mode 100644 index 00000000..d5d2943b --- /dev/null +++ b/crates/jacquard-api/src/blue__2048.rs @@ -0,0 +1,33 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: blue.2048.defs +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod game; +pub mod key; +pub mod player; +pub mod verification; + +///The sync status for a record used to help sync between your ATProto record and local record. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct SyncStatus<'a> { + pub created_at: jacquard_common::types::string::Datetime, + ///A XXH3 hash of the record to tell if anything has changed + #[serde(borrow)] + pub hash: jacquard_common::CowStr<'a>, + ///A flag to know if it has been synced with the AT repo. Used mostly client side to filter what records need syncing + pub synced_with_at_repo: bool, + pub updated_at: jacquard_common::types::string::Datetime, +} \ No newline at end of file diff --git a/crates/jacquard-api/src/blue__2048/game.rs b/crates/jacquard-api/src/blue__2048/game.rs new file mode 100644 index 00000000..f81abb36 --- /dev/null +++ b/crates/jacquard-api/src/blue__2048/game.rs @@ -0,0 +1,38 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: blue.2048.game +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A declaration of an instance of a at://2048 game +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Game<'a> { + ///The player no longer has any moves left + pub completed: bool, + pub created_at: jacquard_common::types::string::Datetime, + ///The game's current score + pub current_score: i64, + ///This is the recording of the game. Like chess notation, but for 2048 + #[serde(borrow)] + pub seeded_recording: jacquard_common::CowStr<'a>, + ///The sync status of this record with the users AT Protocol repo. + #[serde(borrow)] + pub sync_status: crate::blue__2048::SyncStatus<'a>, + ///The player has found a 2048 tile (they have won) + pub won: bool, +} + +impl jacquard_common::types::collection::Collection for Game<'_> { + const NSID: &'static str = "blue.2048.game"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/blue__2048/key.rs b/crates/jacquard-api/src/blue__2048/key.rs new file mode 100644 index 00000000..11776d7a --- /dev/null +++ b/crates/jacquard-api/src/blue__2048/key.rs @@ -0,0 +1,50 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: blue.2048.key.defs +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod game; +pub mod player; + +///A record that holds a did:key used to verify records. Use the collection to know the type of verification. Example blue.2048.key.game is for blue.2048.game records +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Key<'a> { + pub created_at: jacquard_common::types::string::Datetime, + ///A did:key used to verify records came from an at://2048 authority + #[serde(borrow)] + pub key: jacquard_common::CowStr<'a>, +} + +///a signature for an at://2048 record meaning it has been verified by a service. Most likely @2048.blue +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct SignatureRef<'a> { + ///The at://uri for the public did:key to verify this record. This also counts as the authority of the verification (example @2048.blue). As well as the type of verification by the collection name (blue.2048.key.game). + #[serde(borrow)] + pub at_uri: jacquard_common::CowStr<'a>, + pub created_at: jacquard_common::types::string::Datetime, + ///The public verifiable signature of the record. Serialization of the records value minus the signature field + #[serde(borrow)] + pub signature: jacquard_common::CowStr<'a>, +} \ No newline at end of file diff --git a/crates/jacquard-api/src/blue__2048/key/game.rs b/crates/jacquard-api/src/blue__2048/key/game.rs new file mode 100644 index 00000000..e84c386b --- /dev/null +++ b/crates/jacquard-api/src/blue__2048/key/game.rs @@ -0,0 +1,29 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: blue.2048.key.game +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A record that holds a did:key for verifying a players game. This is intended to be written at a verification authorities repo +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Game<'a> { + pub created_at: jacquard_common::types::string::Datetime, + ///A did:key that is used to verify an at://2048 authority has verified this game to a certain degree + #[serde(borrow)] + pub key: crate::blue__2048::key::Key<'a>, +} + +impl jacquard_common::types::collection::Collection for Game<'_> { + const NSID: &'static str = "blue.2048.key.game"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/blue__2048/key/player.rs b/crates/jacquard-api/src/blue__2048/key/player.rs new file mode 100644 index 00000000..9129460f --- /dev/null +++ b/crates/jacquard-api/src/blue__2048/key/player.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod stats; \ No newline at end of file diff --git a/crates/jacquard-api/src/blue__2048/key/player/stats.rs b/crates/jacquard-api/src/blue__2048/key/player/stats.rs new file mode 100644 index 00000000..39b91c07 --- /dev/null +++ b/crates/jacquard-api/src/blue__2048/key/player/stats.rs @@ -0,0 +1,29 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: blue.2048.key.player.stats +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A record that holds a did:key for verifying a players stats. This is intended to be written at a verification authorities repo +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Stats<'a> { + pub created_at: jacquard_common::types::string::Datetime, + ///A did:key that is used to verify an at://2048 authority has verified this players stats to a certain degree + #[serde(borrow)] + pub key: crate::blue__2048::key::Key<'a>, +} + +impl jacquard_common::types::collection::Collection for Stats<'_> { + const NSID: &'static str = "blue.2048.key.player.stats"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/blue__2048/player.rs b/crates/jacquard-api/src/blue__2048/player.rs new file mode 100644 index 00000000..5c6c6cb5 --- /dev/null +++ b/crates/jacquard-api/src/blue__2048/player.rs @@ -0,0 +1,7 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod profile; +pub mod stats; \ No newline at end of file diff --git a/crates/jacquard-api/src/blue__2048/player/profile.rs b/crates/jacquard-api/src/blue__2048/player/profile.rs new file mode 100644 index 00000000..92a8dd62 --- /dev/null +++ b/crates/jacquard-api/src/blue__2048/player/profile.rs @@ -0,0 +1,31 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: blue.2048.player.profile +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A declaration of a at://2048 player's profile +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Profile<'a> { + pub created_at: jacquard_common::types::string::Datetime, + ///Does not want to show up anywhere. Keep stats to your PDS. + pub solo_play: bool, + ///The sync status of this record with the users AT Protocol repo. + #[serde(borrow)] + pub sync_status: crate::blue__2048::SyncStatus<'a>, +} + +impl jacquard_common::types::collection::Collection for Profile<'_> { + const NSID: &'static str = "blue.2048.player.profile"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/blue__2048/player/stats.rs b/crates/jacquard-api/src/blue__2048/player/stats.rs new file mode 100644 index 00000000..df65693f --- /dev/null +++ b/crates/jacquard-api/src/blue__2048/player/stats.rs @@ -0,0 +1,43 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: blue.2048.player.stats +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A declaration of a at://2048 player's stats over the course of their playtime +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Stats<'a> { + ///Average score across all games + pub average_score: i64, + pub created_at: jacquard_common::types::string::Datetime, + ///Total numbers of games the user has played + pub games_played: i64, + ///The highest number block the player has fround. example 128, 256, etc + pub highest_number_block: i64, + ///The highest score the user has gotten in a game + pub highest_score: i64, + ///The smallest number of moves to get the 2048 block + pub least_moves_to_find_twenty_forty_eight: i64, + ///The sync status of this record with the users AT Protocol repo. + #[serde(borrow)] + pub sync_status: crate::blue__2048::SyncStatus<'a>, + ///Times the 2048 block has been found also count as wins + pub times_twenty_forty_eight_been_found: i64, + ///Total score across all games + pub total_score: i64, +} + +impl jacquard_common::types::collection::Collection for Stats<'_> { + const NSID: &'static str = "blue.2048.player.stats"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/blue__2048/verification.rs b/crates/jacquard-api/src/blue__2048/verification.rs new file mode 100644 index 00000000..9ff4c394 --- /dev/null +++ b/crates/jacquard-api/src/blue__2048/verification.rs @@ -0,0 +1,37 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: blue.2048.verification.defs +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod game; +pub mod stats; + +///Holds the signature for another record showing it has verified it to the best of it's ability and it should be trusted if the signatures match. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct VerificationRef<'a> { + pub created_at: jacquard_common::types::string::Datetime, + ///The at://uri for the public did:key to verify the remote record. This also counts as the authority of the verification (example @2048.blue). As well as the type of verification by the collection name (blue.2048.key.game). + #[serde(borrow)] + pub key_ref: jacquard_common::types::string::AtUri<'a>, + ///The at://uri for the record that is being verified. + #[serde(borrow)] + pub record_ref: jacquard_common::types::string::AtUri<'a>, + ///The public verifiable signature of the record. Serialization of the records valued + #[serde(borrow)] + pub signature: jacquard_common::CowStr<'a>, + ///DID of the subject the verification applies to. + #[serde(borrow)] + pub subject: jacquard_common::types::string::Did<'a>, +} \ No newline at end of file diff --git a/crates/jacquard-api/src/blue__2048/verification/game.rs b/crates/jacquard-api/src/blue__2048/verification/game.rs new file mode 100644 index 00000000..db139739 --- /dev/null +++ b/crates/jacquard-api/src/blue__2048/verification/game.rs @@ -0,0 +1,33 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: blue.2048.verification.game +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A record that holds a verification of a game record saying the owner of the repo has verified that it is a valid game played. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Game<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub created_at: std::option::Option, + ///This is the record that holds the publicly verifiable signature of a game record + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub verified_ref: std::option::Option< + crate::blue__2048::verification::VerificationRef<'a>, + >, +} + +impl jacquard_common::types::collection::Collection for Game<'_> { + const NSID: &'static str = "blue.2048.verification.game"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/blue__2048/verification/stats.rs b/crates/jacquard-api/src/blue__2048/verification/stats.rs new file mode 100644 index 00000000..8f65b915 --- /dev/null +++ b/crates/jacquard-api/src/blue__2048/verification/stats.rs @@ -0,0 +1,33 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: blue.2048.verification.stats +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A record that holds a verification of a stats record saying the owner of the repo has verified that it is a valid and most likely not tampered with. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Stats<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub created_at: std::option::Option, + ///This is the record that holds the publicly verifiable signature of a stats record + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub verified_ref: std::option::Option< + crate::blue__2048::verification::VerificationRef<'a>, + >, +} + +impl jacquard_common::types::collection::Collection for Stats<'_> { + const NSID: &'static str = "blue.2048.verification.stats"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/blue_atplane.rs b/crates/jacquard-api/src/blue_atplane.rs new file mode 100644 index 00000000..2fb1acdb --- /dev/null +++ b/crates/jacquard-api/src/blue_atplane.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod fav_client; \ No newline at end of file diff --git a/crates/jacquard-api/src/blue_atplane/fav_client.rs b/crates/jacquard-api/src/blue_atplane/fav_client.rs new file mode 100644 index 00000000..093b8fa2 --- /dev/null +++ b/crates/jacquard-api/src/blue_atplane/fav_client.rs @@ -0,0 +1,28 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: blue.atplane.favClient +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A declaration of a favorite client. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct FavClient<'a> { + ///Set to your favorite client. + #[serde(borrow)] + pub fav_client: jacquard_common::CowStr<'a>, +} + +impl jacquard_common::types::collection::Collection for FavClient<'_> { + const NSID: &'static str = "blue.atplane.favClient"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/blue_rito/service.rs b/crates/jacquard-api/src/blue_rito/service.rs index 0df04601..e1299260 100644 --- a/crates/jacquard-api/src/blue_rito/service.rs +++ b/crates/jacquard-api/src/blue_rito/service.rs @@ -3,5 +3,4 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -pub mod get_schema; -pub mod schema; \ No newline at end of file +pub mod get_schema; \ No newline at end of file diff --git a/crates/jacquard-api/src/blue_rito/service/get_schema.rs b/crates/jacquard-api/src/blue_rito/service/get_schema.rs index e3ba441b..f0e0a244 100644 --- a/crates/jacquard-api/src/blue_rito/service/get_schema.rs +++ b/crates/jacquard-api/src/blue_rito/service/get_schema.rs @@ -115,4 +115,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetSchema<'de> { "application/json", ); type Response = GetSchemaResponse; +} + +///Endpoint type for +///blue.rito.service.getSchema +pub struct GetSchemaRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetSchemaRequest { + const PATH: &'static str = "/xrpc/blue.rito.service.getSchema"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = GetSchema<'de>; + type Response = GetSchemaResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/buzz_bookhive/get_book.rs b/crates/jacquard-api/src/buzz_bookhive/get_book.rs index c89c88fe..a43d50a3 100644 --- a/crates/jacquard-api/src/buzz_bookhive/get_book.rs +++ b/crates/jacquard-api/src/buzz_bookhive/get_book.rs @@ -82,4 +82,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetBook<'de> { const NSID: &'static str = "buzz.bookhive.getBook"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetBookResponse; +} + +///Endpoint type for +///buzz.bookhive.getBook +pub struct GetBookRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetBookRequest { + const PATH: &'static str = "/xrpc/buzz.bookhive.getBook"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetBook<'de>; + type Response = GetBookResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/buzz_bookhive/get_profile.rs b/crates/jacquard-api/src/buzz_bookhive/get_profile.rs index ea751b38..21e2ea23 100644 --- a/crates/jacquard-api/src/buzz_bookhive/get_profile.rs +++ b/crates/jacquard-api/src/buzz_bookhive/get_profile.rs @@ -65,4 +65,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetProfile<'de> { const NSID: &'static str = "buzz.bookhive.getProfile"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetProfileResponse; +} + +///Endpoint type for +///buzz.bookhive.getProfile +pub struct GetProfileRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetProfileRequest { + const PATH: &'static str = "/xrpc/buzz.bookhive.getProfile"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetProfile<'de>; + type Response = GetProfileResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/buzz_bookhive/search_books.rs b/crates/jacquard-api/src/buzz_bookhive/search_books.rs index 61d645ae..d56798c0 100644 --- a/crates/jacquard-api/src/buzz_bookhive/search_books.rs +++ b/crates/jacquard-api/src/buzz_bookhive/search_books.rs @@ -65,4 +65,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SearchBooks<'de> { const NSID: &'static str = "buzz.bookhive.searchBooks"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = SearchBooksResponse; +} + +///Endpoint type for +///buzz.bookhive.searchBooks +pub struct SearchBooksRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SearchBooksRequest { + const PATH: &'static str = "/xrpc/buzz.bookhive.searchBooks"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = SearchBooks<'de>; + type Response = SearchBooksResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/actor/delete_account.rs b/crates/jacquard-api/src/chat_bsky/actor/delete_account.rs index 39f2b79b..4022f034 100644 --- a/crates/jacquard-api/src/chat_bsky/actor/delete_account.rs +++ b/crates/jacquard-api/src/chat_bsky/actor/delete_account.rs @@ -18,7 +18,16 @@ #[serde(rename_all = "camelCase")] pub struct DeleteAccountOutput<'a> {} /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct DeleteAccount; ///Response type for ///chat.bsky.actor.deleteAccount @@ -36,4 +45,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeleteAccount { "application/json", ); type Response = DeleteAccountResponse; +} + +///Endpoint type for +///chat.bsky.actor.deleteAccount +pub struct DeleteAccountRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeleteAccountRequest { + const PATH: &'static str = "/xrpc/chat.bsky.actor.deleteAccount"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeleteAccount; + type Response = DeleteAccountResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/actor/export_account_data.rs b/crates/jacquard-api/src/chat_bsky/actor/export_account_data.rs index 05e02fb0..a1ef8098 100644 --- a/crates/jacquard-api/src/chat_bsky/actor/export_account_data.rs +++ b/crates/jacquard-api/src/chat_bsky/actor/export_account_data.rs @@ -18,7 +18,16 @@ #[serde(rename_all = "camelCase")] pub struct ExportAccountDataOutput<'a> {} /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct ExportAccountData; ///Response type for ///chat.bsky.actor.exportAccountData @@ -34,4 +43,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ExportAccountData { const NSID: &'static str = "chat.bsky.actor.exportAccountData"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = ExportAccountDataResponse; +} + +///Endpoint type for +///chat.bsky.actor.exportAccountData +pub struct ExportAccountDataRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ExportAccountDataRequest { + const PATH: &'static str = "/xrpc/chat.bsky.actor.exportAccountData"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ExportAccountData; + type Response = ExportAccountDataResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/buzz_bookhive/book.rs b/crates/jacquard-api/src/chat_bsky/buzz_bookhive/book.rs new file mode 100644 index 00000000..92961da2 --- /dev/null +++ b/crates/jacquard-api/src/chat_bsky/buzz_bookhive/book.rs @@ -0,0 +1,55 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: buzz.bookhive.book +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A book in the user's library +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Book<'a> { + ///The authors of the book (tab separated) + #[serde(borrow)] + pub authors: jacquard_common::CowStr<'a>, + ///Cover image of the book + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cover: std::option::Option>, + pub created_at: jacquard_common::types::string::Datetime, + ///The date the user finished reading the book + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub finished_at: std::option::Option, + ///The book's hive id, used to correlate user's books with the hive + #[serde(borrow)] + pub hive_id: jacquard_common::CowStr<'a>, + ///The book's review + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub review: std::option::Option>, + ///Number of stars given to the book (1-10) which will be mapped to 1-5 stars + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub stars: std::option::Option, + ///The date the user started reading the book + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub started_at: std::option::Option, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub status: std::option::Option>, + ///The title of the book + #[serde(borrow)] + pub title: jacquard_common::CowStr<'a>, +} + +impl jacquard_common::types::collection::Collection for Book<'_> { + const NSID: &'static str = "buzz.bookhive.book"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/buzz_bookhive/buzz.rs b/crates/jacquard-api/src/chat_bsky/buzz_bookhive/buzz.rs new file mode 100644 index 00000000..469c3c05 --- /dev/null +++ b/crates/jacquard-api/src/chat_bsky/buzz_bookhive/buzz.rs @@ -0,0 +1,34 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: buzz.bookhive.buzz +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///Record containing a Bookhive comment. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Buzz<'a> { + #[serde(borrow)] + pub book: crate::com_atproto::repo::strong_ref::StrongRef<'a>, + ///The content of the comment. + #[serde(borrow)] + pub comment: jacquard_common::CowStr<'a>, + ///Client-declared timestamp when this comment was originally created. + pub created_at: jacquard_common::types::string::Datetime, + #[serde(borrow)] + pub parent: crate::com_atproto::repo::strong_ref::StrongRef<'a>, +} + +impl jacquard_common::types::collection::Collection for Buzz<'_> { + const NSID: &'static str = "buzz.bookhive.buzz"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/buzz_bookhive/get_book.rs b/crates/jacquard-api/src/chat_bsky/buzz_bookhive/get_book.rs new file mode 100644 index 00000000..c89c88fe --- /dev/null +++ b/crates/jacquard-api/src/chat_bsky/buzz_bookhive/get_book.rs @@ -0,0 +1,85 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: buzz.bookhive.getBook +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetBook<'a> { + #[serde(borrow)] + #[builder(into)] + pub id: jacquard_common::CowStr<'a>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetBookOutput<'a> { + ///The hive book's info + #[serde(borrow)] + pub book: jacquard_common::types::value::Data<'a>, + ///Comments on the book + #[serde(borrow)] + pub comments: Vec>, + ///Cover image of the book + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cover: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub created_at: std::option::Option, + ///The date the user finished reading the book + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub finished_at: std::option::Option, + ///The book's review + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub review: std::option::Option>, + ///Reviews of the book + #[serde(borrow)] + pub reviews: Vec>, + ///Number of stars given to the book (1-10) which will be mapped to 1-5 stars + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub stars: std::option::Option, + ///The date the user started reading the book + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub started_at: std::option::Option, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub status: std::option::Option>, +} + +///Response type for +///buzz.bookhive.getBook +pub struct GetBookResponse; +impl jacquard_common::xrpc::XrpcResp for GetBookResponse { + const NSID: &'static str = "buzz.bookhive.getBook"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetBookOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetBook<'de> { + const NSID: &'static str = "buzz.bookhive.getBook"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetBookResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/buzz_bookhive/get_profile.rs b/crates/jacquard-api/src/chat_bsky/buzz_bookhive/get_profile.rs new file mode 100644 index 00000000..ea751b38 --- /dev/null +++ b/crates/jacquard-api/src/chat_bsky/buzz_bookhive/get_profile.rs @@ -0,0 +1,68 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: buzz.bookhive.getProfile +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetProfile<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub did: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub handle: std::option::Option>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetProfileOutput<'a> { + ///The user's activity + #[serde(borrow)] + pub activity: Vec>, + ///All books in the user's library + #[serde(borrow)] + pub books: Vec>, + ///The user's profile + #[serde(borrow)] + pub profile: crate::buzz_bookhive::Profile<'a>, +} + +///Response type for +///buzz.bookhive.getProfile +pub struct GetProfileResponse; +impl jacquard_common::xrpc::XrpcResp for GetProfileResponse { + const NSID: &'static str = "buzz.bookhive.getProfile"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetProfileOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetProfile<'de> { + const NSID: &'static str = "buzz.bookhive.getProfile"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetProfileResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/buzz_bookhive/hive_book.rs b/crates/jacquard-api/src/chat_bsky/buzz_bookhive/hive_book.rs new file mode 100644 index 00000000..448ff651 --- /dev/null +++ b/crates/jacquard-api/src/chat_bsky/buzz_bookhive/hive_book.rs @@ -0,0 +1,65 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: buzz.bookhive.hiveBook +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A book within the hive +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct HiveBook<'a> { + ///The authors of the book (tab separated) + #[serde(borrow)] + pub authors: jacquard_common::CowStr<'a>, + ///URL to full-size cover image + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cover: std::option::Option>, + pub created_at: jacquard_common::types::string::Datetime, + ///Book description/summary + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + ///The book's hive id, used to correlate user's books with the hive + #[serde(borrow)] + pub id: jacquard_common::CowStr<'a>, + ///Average rating (0-1000) + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub rating: std::option::Option, + ///Number of ratings + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub ratings_count: std::option::Option, + ///The source service name (e.g. Goodreads) + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub source: std::option::Option>, + ///ID of the book in the source service + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub source_id: std::option::Option>, + ///URL to the book on the source service + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub source_url: std::option::Option>, + ///URL to thumbnail image + #[serde(borrow)] + pub thumbnail: jacquard_common::CowStr<'a>, + ///The title of the book + #[serde(borrow)] + pub title: jacquard_common::CowStr<'a>, + pub updated_at: jacquard_common::types::string::Datetime, +} + +impl jacquard_common::types::collection::Collection for HiveBook<'_> { + const NSID: &'static str = "buzz.bookhive.hiveBook"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/buzz_bookhive/search_books.rs b/crates/jacquard-api/src/chat_bsky/buzz_bookhive/search_books.rs new file mode 100644 index 00000000..61d645ae --- /dev/null +++ b/crates/jacquard-api/src/chat_bsky/buzz_bookhive/search_books.rs @@ -0,0 +1,68 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: buzz.bookhive.searchBooks +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct SearchBooks<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub id: std::option::Option>, + ///(default: 25, min: 1, max: 100) + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub limit: std::option::Option, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub offset: std::option::Option, + #[serde(borrow)] + #[builder(into)] + pub q: jacquard_common::CowStr<'a>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct SearchBooksOutput<'a> { + #[serde(borrow)] + pub books: Vec>, + ///The next offset to use for pagination (result of limit + offset) + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub offset: std::option::Option, +} + +///Response type for +///buzz.bookhive.searchBooks +pub struct SearchBooksResponse; +impl jacquard_common::xrpc::XrpcResp for SearchBooksResponse { + const NSID: &'static str = "buzz.bookhive.searchBooks"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = SearchBooksOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SearchBooks<'de> { + const NSID: &'static str = "buzz.bookhive.searchBooks"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = SearchBooksResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/convo/accept_convo.rs b/crates/jacquard-api/src/chat_bsky/convo/accept_convo.rs index f790f887..f147901a 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/accept_convo.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/accept_convo.rs @@ -65,4 +65,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for AcceptConvo<'de> { "application/json", ); type Response = AcceptConvoResponse; +} + +///Endpoint type for +///chat.bsky.convo.acceptConvo +pub struct AcceptConvoRequest; +impl jacquard_common::xrpc::XrpcEndpoint for AcceptConvoRequest { + const PATH: &'static str = "/xrpc/chat.bsky.convo.acceptConvo"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = AcceptConvo<'de>; + type Response = AcceptConvoResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/convo/add_reaction.rs b/crates/jacquard-api/src/chat_bsky/convo/add_reaction.rs index 3e9357f3..f6ad6749 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/add_reaction.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/add_reaction.rs @@ -141,4 +141,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for AddReaction<'de> { "application/json", ); type Response = AddReactionResponse; +} + +///Endpoint type for +///chat.bsky.convo.addReaction +pub struct AddReactionRequest; +impl jacquard_common::xrpc::XrpcEndpoint for AddReactionRequest { + const PATH: &'static str = "/xrpc/chat.bsky.convo.addReaction"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = AddReaction<'de>; + type Response = AddReactionResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/convo/delete_message_for_self.rs b/crates/jacquard-api/src/chat_bsky/convo/delete_message_for_self.rs index 200687ad..ae253983 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/delete_message_for_self.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/delete_message_for_self.rs @@ -67,4 +67,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeleteMessageForSelf<'de> "application/json", ); type Response = DeleteMessageForSelfResponse; +} + +///Endpoint type for +///chat.bsky.convo.deleteMessageForSelf +pub struct DeleteMessageForSelfRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeleteMessageForSelfRequest { + const PATH: &'static str = "/xrpc/chat.bsky.convo.deleteMessageForSelf"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeleteMessageForSelf<'de>; + type Response = DeleteMessageForSelfResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/convo/get_convo.rs b/crates/jacquard-api/src/chat_bsky/convo/get_convo.rs index e5ff24ee..e0707acf 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/get_convo.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/get_convo.rs @@ -53,4 +53,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetConvo<'de> { const NSID: &'static str = "chat.bsky.convo.getConvo"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetConvoResponse; +} + +///Endpoint type for +///chat.bsky.convo.getConvo +pub struct GetConvoRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetConvoRequest { + const PATH: &'static str = "/xrpc/chat.bsky.convo.getConvo"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetConvo<'de>; + type Response = GetConvoResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/convo/get_convo_availability.rs b/crates/jacquard-api/src/chat_bsky/convo/get_convo_availability.rs index 63e89e87..0e453d6d 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/get_convo_availability.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/get_convo_availability.rs @@ -54,4 +54,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetConvoAvailability<'de> const NSID: &'static str = "chat.bsky.convo.getConvoAvailability"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetConvoAvailabilityResponse; +} + +///Endpoint type for +///chat.bsky.convo.getConvoAvailability +pub struct GetConvoAvailabilityRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetConvoAvailabilityRequest { + const PATH: &'static str = "/xrpc/chat.bsky.convo.getConvoAvailability"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetConvoAvailability<'de>; + type Response = GetConvoAvailabilityResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/convo/get_convo_for_members.rs b/crates/jacquard-api/src/chat_bsky/convo/get_convo_for_members.rs index c3c6d01b..93aa2abf 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/get_convo_for_members.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/get_convo_for_members.rs @@ -52,4 +52,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetConvoForMembers<'de> { const NSID: &'static str = "chat.bsky.convo.getConvoForMembers"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetConvoForMembersResponse; +} + +///Endpoint type for +///chat.bsky.convo.getConvoForMembers +pub struct GetConvoForMembersRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetConvoForMembersRequest { + const PATH: &'static str = "/xrpc/chat.bsky.convo.getConvoForMembers"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetConvoForMembers<'de>; + type Response = GetConvoForMembersResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/convo/get_log.rs b/crates/jacquard-api/src/chat_bsky/convo/get_log.rs index 12a5fd4b..7eec24fa 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/get_log.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/get_log.rs @@ -57,4 +57,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetLog<'de> { const NSID: &'static str = "chat.bsky.convo.getLog"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetLogResponse; +} + +///Endpoint type for +///chat.bsky.convo.getLog +pub struct GetLogRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetLogRequest { + const PATH: &'static str = "/xrpc/chat.bsky.convo.getLog"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetLog<'de>; + type Response = GetLogResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/convo/get_messages.rs b/crates/jacquard-api/src/chat_bsky/convo/get_messages.rs index 1a0b9f77..6aa2f70c 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/get_messages.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/get_messages.rs @@ -63,4 +63,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetMessages<'de> { const NSID: &'static str = "chat.bsky.convo.getMessages"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetMessagesResponse; +} + +///Endpoint type for +///chat.bsky.convo.getMessages +pub struct GetMessagesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetMessagesRequest { + const PATH: &'static str = "/xrpc/chat.bsky.convo.getMessages"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetMessages<'de>; + type Response = GetMessagesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/convo/leave_convo.rs b/crates/jacquard-api/src/chat_bsky/convo/leave_convo.rs index 81f7454b..023ba33c 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/leave_convo.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/leave_convo.rs @@ -65,4 +65,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for LeaveConvo<'de> { "application/json", ); type Response = LeaveConvoResponse; +} + +///Endpoint type for +///chat.bsky.convo.leaveConvo +pub struct LeaveConvoRequest; +impl jacquard_common::xrpc::XrpcEndpoint for LeaveConvoRequest { + const PATH: &'static str = "/xrpc/chat.bsky.convo.leaveConvo"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = LeaveConvo<'de>; + type Response = LeaveConvoResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/convo/list_convos.rs b/crates/jacquard-api/src/chat_bsky/convo/list_convos.rs index f338316a..4a8206a3 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/list_convos.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/list_convos.rs @@ -68,4 +68,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ListConvos<'de> { const NSID: &'static str = "chat.bsky.convo.listConvos"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = ListConvosResponse; +} + +///Endpoint type for +///chat.bsky.convo.listConvos +pub struct ListConvosRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ListConvosRequest { + const PATH: &'static str = "/xrpc/chat.bsky.convo.listConvos"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ListConvos<'de>; + type Response = ListConvosResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/convo/mute_convo.rs b/crates/jacquard-api/src/chat_bsky/convo/mute_convo.rs index 5103a647..0ea49c36 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/mute_convo.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/mute_convo.rs @@ -63,4 +63,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for MuteConvo<'de> { "application/json", ); type Response = MuteConvoResponse; +} + +///Endpoint type for +///chat.bsky.convo.muteConvo +pub struct MuteConvoRequest; +impl jacquard_common::xrpc::XrpcEndpoint for MuteConvoRequest { + const PATH: &'static str = "/xrpc/chat.bsky.convo.muteConvo"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = MuteConvo<'de>; + type Response = MuteConvoResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/convo/remove_reaction.rs b/crates/jacquard-api/src/chat_bsky/convo/remove_reaction.rs index 1794b25e..06a639c7 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/remove_reaction.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/remove_reaction.rs @@ -130,4 +130,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for RemoveReaction<'de> { "application/json", ); type Response = RemoveReactionResponse; +} + +///Endpoint type for +///chat.bsky.convo.removeReaction +pub struct RemoveReactionRequest; +impl jacquard_common::xrpc::XrpcEndpoint for RemoveReactionRequest { + const PATH: &'static str = "/xrpc/chat.bsky.convo.removeReaction"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = RemoveReaction<'de>; + type Response = RemoveReactionResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/convo/send_message.rs b/crates/jacquard-api/src/chat_bsky/convo/send_message.rs index 2af77d76..add44413 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/send_message.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/send_message.rs @@ -66,4 +66,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SendMessage<'de> { "application/json", ); type Response = SendMessageResponse; +} + +///Endpoint type for +///chat.bsky.convo.sendMessage +pub struct SendMessageRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SendMessageRequest { + const PATH: &'static str = "/xrpc/chat.bsky.convo.sendMessage"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = SendMessage<'de>; + type Response = SendMessageResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/convo/send_message_batch.rs b/crates/jacquard-api/src/chat_bsky/convo/send_message_batch.rs index e13fabcd..2dc4b25d 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/send_message_batch.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/send_message_batch.rs @@ -80,4 +80,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SendMessageBatch<'de> { "application/json", ); type Response = SendMessageBatchResponse; +} + +///Endpoint type for +///chat.bsky.convo.sendMessageBatch +pub struct SendMessageBatchRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SendMessageBatchRequest { + const PATH: &'static str = "/xrpc/chat.bsky.convo.sendMessageBatch"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = SendMessageBatch<'de>; + type Response = SendMessageBatchResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/convo/unmute_convo.rs b/crates/jacquard-api/src/chat_bsky/convo/unmute_convo.rs index 0d7e2f56..1bc75841 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/unmute_convo.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/unmute_convo.rs @@ -63,4 +63,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UnmuteConvo<'de> { "application/json", ); type Response = UnmuteConvoResponse; +} + +///Endpoint type for +///chat.bsky.convo.unmuteConvo +pub struct UnmuteConvoRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UnmuteConvoRequest { + const PATH: &'static str = "/xrpc/chat.bsky.convo.unmuteConvo"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UnmuteConvo<'de>; + type Response = UnmuteConvoResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/convo/update_all_read.rs b/crates/jacquard-api/src/chat_bsky/convo/update_all_read.rs index 385f7bd6..25170f44 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/update_all_read.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/update_all_read.rs @@ -64,4 +64,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateAllRead<'de> { "application/json", ); type Response = UpdateAllReadResponse; +} + +///Endpoint type for +///chat.bsky.convo.updateAllRead +pub struct UpdateAllReadRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateAllReadRequest { + const PATH: &'static str = "/xrpc/chat.bsky.convo.updateAllRead"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateAllRead<'de>; + type Response = UpdateAllReadResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/convo/update_read.rs b/crates/jacquard-api/src/chat_bsky/convo/update_read.rs index 1e8bc7fb..568df68f 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/update_read.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/update_read.rs @@ -67,4 +67,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateRead<'de> { "application/json", ); type Response = UpdateReadResponse; +} + +///Endpoint type for +///chat.bsky.convo.updateRead +pub struct UpdateReadRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateReadRequest { + const PATH: &'static str = "/xrpc/chat.bsky.convo.updateRead"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateRead<'de>; + type Response = UpdateReadResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/moderation/get_actor_metadata.rs b/crates/jacquard-api/src/chat_bsky/moderation/get_actor_metadata.rs index da9aa77f..4e2a4d77 100644 --- a/crates/jacquard-api/src/chat_bsky/moderation/get_actor_metadata.rs +++ b/crates/jacquard-api/src/chat_bsky/moderation/get_actor_metadata.rs @@ -58,6 +58,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetActorMetadata<'de> { type Response = GetActorMetadataResponse; } +///Endpoint type for +///chat.bsky.moderation.getActorMetadata +pub struct GetActorMetadataRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetActorMetadataRequest { + const PATH: &'static str = "/xrpc/chat.bsky.moderation.getActorMetadata"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetActorMetadata<'de>; + type Response = GetActorMetadataResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/chat_bsky/moderation/get_message_context.rs b/crates/jacquard-api/src/chat_bsky/moderation/get_message_context.rs index ce95e322..0783f5b5 100644 --- a/crates/jacquard-api/src/chat_bsky/moderation/get_message_context.rs +++ b/crates/jacquard-api/src/chat_bsky/moderation/get_message_context.rs @@ -63,4 +63,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetMessageContext<'de> { const NSID: &'static str = "chat.bsky.moderation.getMessageContext"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetMessageContextResponse; +} + +///Endpoint type for +///chat.bsky.moderation.getMessageContext +pub struct GetMessageContextRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetMessageContextRequest { + const PATH: &'static str = "/xrpc/chat.bsky.moderation.getMessageContext"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetMessageContext<'de>; + type Response = GetMessageContextResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/chat_bsky/moderation/update_actor_access.rs b/crates/jacquard-api/src/chat_bsky/moderation/update_actor_access.rs index 38f29f9f..1cc33563 100644 --- a/crates/jacquard-api/src/chat_bsky/moderation/update_actor_access.rs +++ b/crates/jacquard-api/src/chat_bsky/moderation/update_actor_access.rs @@ -51,4 +51,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateActorAccess<'de> { "application/json", ); type Response = UpdateActorAccessResponse; +} + +///Endpoint type for +///chat.bsky.moderation.updateActorAccess +pub struct UpdateActorAccessRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateActorAccessRequest { + const PATH: &'static str = "/xrpc/chat.bsky.moderation.updateActorAccess"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateActorAccess<'de>; + type Response = UpdateActorAccessResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/club_stellz.rs b/crates/jacquard-api/src/club_stellz.rs new file mode 100644 index 00000000..98f3c485 --- /dev/null +++ b/crates/jacquard-api/src/club_stellz.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod evm; \ No newline at end of file diff --git a/crates/jacquard-api/src/club_stellz/evm.rs b/crates/jacquard-api/src/club_stellz/evm.rs new file mode 100644 index 00000000..d90cc9cd --- /dev/null +++ b/crates/jacquard-api/src/club_stellz/evm.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod address_control; \ No newline at end of file diff --git a/crates/jacquard-api/src/club_stellz/evm/address_control.rs b/crates/jacquard-api/src/club_stellz/evm/address_control.rs new file mode 100644 index 00000000..47fa0583 --- /dev/null +++ b/crates/jacquard-api/src/club_stellz/evm/address_control.rs @@ -0,0 +1,65 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: club.stellz.evm.addressControl +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct AddressControl<'a> { + ///Ethereum address as bytes (20 bytes) + pub address: bytes::Bytes, + ///List of all Chain IDs (besides the one in the sign-in message, though you can include it) that the holder of this address is also active on & accepts tokens thru. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub also_on: std::option::Option>, + ///Sign in With Ethereum message signature as bytes + pub signature: bytes::Bytes, + #[serde(borrow)] + pub siwe: crate::club_stellz::evm::address_control::SiweMessage<'a>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct SiweMessage<'a> { + ///Ethereum address in 0x-prefixed, checksummed hex format + #[serde(borrow)] + pub address: jacquard_common::CowStr<'a>, + ///Chain ID of the Ethereum VM network the address is on + pub chain_id: i64, + ///Domain of the application requesting the signature, e.g. 'wallet-link.stellz.club' + #[serde(borrow)] + pub domain: jacquard_common::CowStr<'a>, + ///Timestamp when the message was signed + pub issued_at: jacquard_common::types::string::Datetime, + ///Random nonce the message was signed with + #[serde(borrow)] + pub nonce: jacquard_common::CowStr<'a>, + ///The message shown to the user in their wallet before signing, which MUST be of the format 'Prove control of ${address} to link it to ${did}', where ${address} is the linked Ethereum address in 0x-prefixed, checksummed hex format, and ${did} is the DID of the user. + #[serde(borrow)] + pub statement: jacquard_common::CowStr<'a>, + ///URI of the application requesting the signature, e.g. 'https://wallet-link.stellz.club' + #[serde(borrow)] + pub uri: jacquard_common::types::string::Uri<'a>, + ///Sign in With Ethereum message version + #[serde(borrow)] + pub version: jacquard_common::CowStr<'a>, +} \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/admin/delete_account.rs b/crates/jacquard-api/src/com_atproto/admin/delete_account.rs index 977d252f..8ce1ab2c 100644 --- a/crates/jacquard-api/src/com_atproto/admin/delete_account.rs +++ b/crates/jacquard-api/src/com_atproto/admin/delete_account.rs @@ -46,4 +46,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeleteAccount<'de> { "application/json", ); type Response = DeleteAccountResponse; +} + +///Endpoint type for +///com.atproto.admin.deleteAccount +pub struct DeleteAccountRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeleteAccountRequest { + const PATH: &'static str = "/xrpc/com.atproto.admin.deleteAccount"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeleteAccount<'de>; + type Response = DeleteAccountResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/admin/disable_account_invites.rs b/crates/jacquard-api/src/com_atproto/admin/disable_account_invites.rs index d7d3c21b..8071b935 100644 --- a/crates/jacquard-api/src/com_atproto/admin/disable_account_invites.rs +++ b/crates/jacquard-api/src/com_atproto/admin/disable_account_invites.rs @@ -51,4 +51,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DisableAccountInvites<'de> "application/json", ); type Response = DisableAccountInvitesResponse; +} + +///Endpoint type for +///com.atproto.admin.disableAccountInvites +pub struct DisableAccountInvitesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DisableAccountInvitesRequest { + const PATH: &'static str = "/xrpc/com.atproto.admin.disableAccountInvites"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DisableAccountInvites<'de>; + type Response = DisableAccountInvitesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/admin/disable_invite_codes.rs b/crates/jacquard-api/src/com_atproto/admin/disable_invite_codes.rs index 79064d04..cea9b5a5 100644 --- a/crates/jacquard-api/src/com_atproto/admin/disable_invite_codes.rs +++ b/crates/jacquard-api/src/com_atproto/admin/disable_invite_codes.rs @@ -50,4 +50,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DisableInviteCodes<'de> { "application/json", ); type Response = DisableInviteCodesResponse; +} + +///Endpoint type for +///com.atproto.admin.disableInviteCodes +pub struct DisableInviteCodesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DisableInviteCodesRequest { + const PATH: &'static str = "/xrpc/com.atproto.admin.disableInviteCodes"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DisableInviteCodes<'de>; + type Response = DisableInviteCodesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/admin/enable_account_invites.rs b/crates/jacquard-api/src/com_atproto/admin/enable_account_invites.rs index 8861c7a9..e261a103 100644 --- a/crates/jacquard-api/src/com_atproto/admin/enable_account_invites.rs +++ b/crates/jacquard-api/src/com_atproto/admin/enable_account_invites.rs @@ -51,4 +51,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for EnableAccountInvites<'de> "application/json", ); type Response = EnableAccountInvitesResponse; +} + +///Endpoint type for +///com.atproto.admin.enableAccountInvites +pub struct EnableAccountInvitesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for EnableAccountInvitesRequest { + const PATH: &'static str = "/xrpc/com.atproto.admin.enableAccountInvites"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = EnableAccountInvites<'de>; + type Response = EnableAccountInvitesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/admin/get_account_info.rs b/crates/jacquard-api/src/com_atproto/admin/get_account_info.rs index 5ec294ef..49c2672a 100644 --- a/crates/jacquard-api/src/com_atproto/admin/get_account_info.rs +++ b/crates/jacquard-api/src/com_atproto/admin/get_account_info.rs @@ -53,4 +53,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetAccountInfo<'de> { const NSID: &'static str = "com.atproto.admin.getAccountInfo"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetAccountInfoResponse; +} + +///Endpoint type for +///com.atproto.admin.getAccountInfo +pub struct GetAccountInfoRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetAccountInfoRequest { + const PATH: &'static str = "/xrpc/com.atproto.admin.getAccountInfo"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetAccountInfo<'de>; + type Response = GetAccountInfoResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/admin/get_account_infos.rs b/crates/jacquard-api/src/com_atproto/admin/get_account_infos.rs index b9e12d4b..2d9a47a1 100644 --- a/crates/jacquard-api/src/com_atproto/admin/get_account_infos.rs +++ b/crates/jacquard-api/src/com_atproto/admin/get_account_infos.rs @@ -52,4 +52,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetAccountInfos<'de> { const NSID: &'static str = "com.atproto.admin.getAccountInfos"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetAccountInfosResponse; +} + +///Endpoint type for +///com.atproto.admin.getAccountInfos +pub struct GetAccountInfosRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetAccountInfosRequest { + const PATH: &'static str = "/xrpc/com.atproto.admin.getAccountInfos"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetAccountInfos<'de>; + type Response = GetAccountInfosResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/admin/get_invite_codes.rs b/crates/jacquard-api/src/com_atproto/admin/get_invite_codes.rs index 183d2885..0395a5fc 100644 --- a/crates/jacquard-api/src/com_atproto/admin/get_invite_codes.rs +++ b/crates/jacquard-api/src/com_atproto/admin/get_invite_codes.rs @@ -65,4 +65,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetInviteCodes<'de> { const NSID: &'static str = "com.atproto.admin.getInviteCodes"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetInviteCodesResponse; +} + +///Endpoint type for +///com.atproto.admin.getInviteCodes +pub struct GetInviteCodesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetInviteCodesRequest { + const PATH: &'static str = "/xrpc/com.atproto.admin.getInviteCodes"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetInviteCodes<'de>; + type Response = GetInviteCodesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/admin/get_subject_status.rs b/crates/jacquard-api/src/com_atproto/admin/get_subject_status.rs index 503b0cf7..83e65faa 100644 --- a/crates/jacquard-api/src/com_atproto/admin/get_subject_status.rs +++ b/crates/jacquard-api/src/com_atproto/admin/get_subject_status.rs @@ -86,4 +86,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetSubjectStatus<'de> { const NSID: &'static str = "com.atproto.admin.getSubjectStatus"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetSubjectStatusResponse; +} + +///Endpoint type for +///com.atproto.admin.getSubjectStatus +pub struct GetSubjectStatusRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetSubjectStatusRequest { + const PATH: &'static str = "/xrpc/com.atproto.admin.getSubjectStatus"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetSubjectStatus<'de>; + type Response = GetSubjectStatusResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/admin/search_accounts.rs b/crates/jacquard-api/src/com_atproto/admin/search_accounts.rs index f3b29033..da333923 100644 --- a/crates/jacquard-api/src/com_atproto/admin/search_accounts.rs +++ b/crates/jacquard-api/src/com_atproto/admin/search_accounts.rs @@ -64,4 +64,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SearchAccounts<'de> { const NSID: &'static str = "com.atproto.admin.searchAccounts"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = SearchAccountsResponse; +} + +///Endpoint type for +///com.atproto.admin.searchAccounts +pub struct SearchAccountsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SearchAccountsRequest { + const PATH: &'static str = "/xrpc/com.atproto.admin.searchAccounts"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = SearchAccounts<'de>; + type Response = SearchAccountsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/admin/send_email.rs b/crates/jacquard-api/src/com_atproto/admin/send_email.rs index 11997acd..dd4e8eb2 100644 --- a/crates/jacquard-api/src/com_atproto/admin/send_email.rs +++ b/crates/jacquard-api/src/com_atproto/admin/send_email.rs @@ -75,4 +75,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SendEmail<'de> { "application/json", ); type Response = SendEmailResponse; +} + +///Endpoint type for +///com.atproto.admin.sendEmail +pub struct SendEmailRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SendEmailRequest { + const PATH: &'static str = "/xrpc/com.atproto.admin.sendEmail"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = SendEmail<'de>; + type Response = SendEmailResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/admin/update_account_email.rs b/crates/jacquard-api/src/com_atproto/admin/update_account_email.rs index 3ec00809..e1f47827 100644 --- a/crates/jacquard-api/src/com_atproto/admin/update_account_email.rs +++ b/crates/jacquard-api/src/com_atproto/admin/update_account_email.rs @@ -50,4 +50,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateAccountEmail<'de> { "application/json", ); type Response = UpdateAccountEmailResponse; +} + +///Endpoint type for +///com.atproto.admin.updateAccountEmail +pub struct UpdateAccountEmailRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateAccountEmailRequest { + const PATH: &'static str = "/xrpc/com.atproto.admin.updateAccountEmail"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateAccountEmail<'de>; + type Response = UpdateAccountEmailResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/admin/update_account_handle.rs b/crates/jacquard-api/src/com_atproto/admin/update_account_handle.rs index f5fbd6bb..118dc18f 100644 --- a/crates/jacquard-api/src/com_atproto/admin/update_account_handle.rs +++ b/crates/jacquard-api/src/com_atproto/admin/update_account_handle.rs @@ -48,4 +48,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateAccountHandle<'de> { "application/json", ); type Response = UpdateAccountHandleResponse; +} + +///Endpoint type for +///com.atproto.admin.updateAccountHandle +pub struct UpdateAccountHandleRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateAccountHandleRequest { + const PATH: &'static str = "/xrpc/com.atproto.admin.updateAccountHandle"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateAccountHandle<'de>; + type Response = UpdateAccountHandleResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/admin/update_account_password.rs b/crates/jacquard-api/src/com_atproto/admin/update_account_password.rs index fe29d830..20434981 100644 --- a/crates/jacquard-api/src/com_atproto/admin/update_account_password.rs +++ b/crates/jacquard-api/src/com_atproto/admin/update_account_password.rs @@ -49,4 +49,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateAccountPassword<'de> "application/json", ); type Response = UpdateAccountPasswordResponse; +} + +///Endpoint type for +///com.atproto.admin.updateAccountPassword +pub struct UpdateAccountPasswordRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateAccountPasswordRequest { + const PATH: &'static str = "/xrpc/com.atproto.admin.updateAccountPassword"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateAccountPassword<'de>; + type Response = UpdateAccountPasswordResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/admin/update_account_signing_key.rs b/crates/jacquard-api/src/com_atproto/admin/update_account_signing_key.rs index 7ebfae6f..681b6cb0 100644 --- a/crates/jacquard-api/src/com_atproto/admin/update_account_signing_key.rs +++ b/crates/jacquard-api/src/com_atproto/admin/update_account_signing_key.rs @@ -49,4 +49,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateAccountSigningKey<'d "application/json", ); type Response = UpdateAccountSigningKeyResponse; +} + +///Endpoint type for +///com.atproto.admin.updateAccountSigningKey +pub struct UpdateAccountSigningKeyRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateAccountSigningKeyRequest { + const PATH: &'static str = "/xrpc/com.atproto.admin.updateAccountSigningKey"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateAccountSigningKey<'de>; + type Response = UpdateAccountSigningKeyResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/admin/update_subject_status.rs b/crates/jacquard-api/src/com_atproto/admin/update_subject_status.rs index 16557a1a..3808c178 100644 --- a/crates/jacquard-api/src/com_atproto/admin/update_subject_status.rs +++ b/crates/jacquard-api/src/com_atproto/admin/update_subject_status.rs @@ -113,4 +113,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateSubjectStatus<'de> { "application/json", ); type Response = UpdateSubjectStatusResponse; +} + +///Endpoint type for +///com.atproto.admin.updateSubjectStatus +pub struct UpdateSubjectStatusRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateSubjectStatusRequest { + const PATH: &'static str = "/xrpc/com.atproto.admin.updateSubjectStatus"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateSubjectStatus<'de>; + type Response = UpdateSubjectStatusResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/identity/get_recommended_did_credentials.rs b/crates/jacquard-api/src/com_atproto/identity/get_recommended_did_credentials.rs index 32ca2ac8..3cab0b4d 100644 --- a/crates/jacquard-api/src/com_atproto/identity/get_recommended_did_credentials.rs +++ b/crates/jacquard-api/src/com_atproto/identity/get_recommended_did_credentials.rs @@ -35,7 +35,16 @@ pub struct GetRecommendedDidCredentialsOutput<'a> { } /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct GetRecommendedDidCredentials; ///Response type for ///com.atproto.identity.getRecommendedDidCredentials @@ -51,4 +60,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetRecommendedDidCredentia const NSID: &'static str = "com.atproto.identity.getRecommendedDidCredentials"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetRecommendedDidCredentialsResponse; +} + +///Endpoint type for +///com.atproto.identity.getRecommendedDidCredentials +pub struct GetRecommendedDidCredentialsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetRecommendedDidCredentialsRequest { + const PATH: &'static str = "/xrpc/com.atproto.identity.getRecommendedDidCredentials"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetRecommendedDidCredentials; + type Response = GetRecommendedDidCredentialsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/identity/refresh_identity.rs b/crates/jacquard-api/src/com_atproto/identity/refresh_identity.rs index 59b0c941..b632c44b 100644 --- a/crates/jacquard-api/src/com_atproto/identity/refresh_identity.rs +++ b/crates/jacquard-api/src/com_atproto/identity/refresh_identity.rs @@ -137,4 +137,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for RefreshIdentity<'de> { "application/json", ); type Response = RefreshIdentityResponse; +} + +///Endpoint type for +///com.atproto.identity.refreshIdentity +pub struct RefreshIdentityRequest; +impl jacquard_common::xrpc::XrpcEndpoint for RefreshIdentityRequest { + const PATH: &'static str = "/xrpc/com.atproto.identity.refreshIdentity"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = RefreshIdentity<'de>; + type Response = RefreshIdentityResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/identity/request_plc_operation_signature.rs b/crates/jacquard-api/src/com_atproto/identity/request_plc_operation_signature.rs index ec4d74a3..1b32c045 100644 --- a/crates/jacquard-api/src/com_atproto/identity/request_plc_operation_signature.rs +++ b/crates/jacquard-api/src/com_atproto/identity/request_plc_operation_signature.rs @@ -6,7 +6,16 @@ // Any manual changes will be overwritten on the next regeneration. /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct RequestPlcOperationSignature; ///Response type for ///com.atproto.identity.requestPlcOperationSignature @@ -24,4 +33,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for RequestPlcOperationSignatu "application/json", ); type Response = RequestPlcOperationSignatureResponse; +} + +///Endpoint type for +///com.atproto.identity.requestPlcOperationSignature +pub struct RequestPlcOperationSignatureRequest; +impl jacquard_common::xrpc::XrpcEndpoint for RequestPlcOperationSignatureRequest { + const PATH: &'static str = "/xrpc/com.atproto.identity.requestPlcOperationSignature"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = RequestPlcOperationSignature; + type Response = RequestPlcOperationSignatureResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/identity/resolve_did.rs b/crates/jacquard-api/src/com_atproto/identity/resolve_did.rs index b4d102ee..f3b0d6d5 100644 --- a/crates/jacquard-api/src/com_atproto/identity/resolve_did.rs +++ b/crates/jacquard-api/src/com_atproto/identity/resolve_did.rs @@ -112,4 +112,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ResolveDid<'de> { const NSID: &'static str = "com.atproto.identity.resolveDid"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = ResolveDidResponse; +} + +///Endpoint type for +///com.atproto.identity.resolveDid +pub struct ResolveDidRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ResolveDidRequest { + const PATH: &'static str = "/xrpc/com.atproto.identity.resolveDid"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ResolveDid<'de>; + type Response = ResolveDidResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/identity/resolve_handle.rs b/crates/jacquard-api/src/com_atproto/identity/resolve_handle.rs index e168b08f..11d540b6 100644 --- a/crates/jacquard-api/src/com_atproto/identity/resolve_handle.rs +++ b/crates/jacquard-api/src/com_atproto/identity/resolve_handle.rs @@ -100,4 +100,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ResolveHandle<'de> { const NSID: &'static str = "com.atproto.identity.resolveHandle"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = ResolveHandleResponse; +} + +///Endpoint type for +///com.atproto.identity.resolveHandle +pub struct ResolveHandleRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ResolveHandleRequest { + const PATH: &'static str = "/xrpc/com.atproto.identity.resolveHandle"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ResolveHandle<'de>; + type Response = ResolveHandleResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/identity/resolve_identity.rs b/crates/jacquard-api/src/com_atproto/identity/resolve_identity.rs index 03beb700..9fbbe809 100644 --- a/crates/jacquard-api/src/com_atproto/identity/resolve_identity.rs +++ b/crates/jacquard-api/src/com_atproto/identity/resolve_identity.rs @@ -127,4 +127,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ResolveIdentity<'de> { const NSID: &'static str = "com.atproto.identity.resolveIdentity"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = ResolveIdentityResponse; +} + +///Endpoint type for +///com.atproto.identity.resolveIdentity +pub struct ResolveIdentityRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ResolveIdentityRequest { + const PATH: &'static str = "/xrpc/com.atproto.identity.resolveIdentity"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ResolveIdentity<'de>; + type Response = ResolveIdentityResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/identity/sign_plc_operation.rs b/crates/jacquard-api/src/com_atproto/identity/sign_plc_operation.rs index 9a9d90f7..3add4ab2 100644 --- a/crates/jacquard-api/src/com_atproto/identity/sign_plc_operation.rs +++ b/crates/jacquard-api/src/com_atproto/identity/sign_plc_operation.rs @@ -80,4 +80,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SignPlcOperation<'de> { "application/json", ); type Response = SignPlcOperationResponse; +} + +///Endpoint type for +///com.atproto.identity.signPlcOperation +pub struct SignPlcOperationRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SignPlcOperationRequest { + const PATH: &'static str = "/xrpc/com.atproto.identity.signPlcOperation"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = SignPlcOperation<'de>; + type Response = SignPlcOperationResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/identity/submit_plc_operation.rs b/crates/jacquard-api/src/com_atproto/identity/submit_plc_operation.rs index cfc00b66..1d436ccf 100644 --- a/crates/jacquard-api/src/com_atproto/identity/submit_plc_operation.rs +++ b/crates/jacquard-api/src/com_atproto/identity/submit_plc_operation.rs @@ -46,4 +46,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SubmitPlcOperation<'de> { "application/json", ); type Response = SubmitPlcOperationResponse; +} + +///Endpoint type for +///com.atproto.identity.submitPlcOperation +pub struct SubmitPlcOperationRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SubmitPlcOperationRequest { + const PATH: &'static str = "/xrpc/com.atproto.identity.submitPlcOperation"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = SubmitPlcOperation<'de>; + type Response = SubmitPlcOperationResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/identity/update_handle.rs b/crates/jacquard-api/src/com_atproto/identity/update_handle.rs index a0b9f0fc..66e00509 100644 --- a/crates/jacquard-api/src/com_atproto/identity/update_handle.rs +++ b/crates/jacquard-api/src/com_atproto/identity/update_handle.rs @@ -47,4 +47,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateHandle<'de> { "application/json", ); type Response = UpdateHandleResponse; +} + +///Endpoint type for +///com.atproto.identity.updateHandle +pub struct UpdateHandleRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateHandleRequest { + const PATH: &'static str = "/xrpc/com.atproto.identity.updateHandle"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateHandle<'de>; + type Response = UpdateHandleResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/label/query_labels.rs b/crates/jacquard-api/src/com_atproto/label/query_labels.rs index 5298fafa..23cf4ad1 100644 --- a/crates/jacquard-api/src/com_atproto/label/query_labels.rs +++ b/crates/jacquard-api/src/com_atproto/label/query_labels.rs @@ -65,4 +65,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for QueryLabels<'de> { const NSID: &'static str = "com.atproto.label.queryLabels"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = QueryLabelsResponse; +} + +///Endpoint type for +///com.atproto.label.queryLabels +pub struct QueryLabelsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for QueryLabelsRequest { + const PATH: &'static str = "/xrpc/com.atproto.label.queryLabels"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = QueryLabels<'de>; + type Response = QueryLabelsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/moderation/create_report.rs b/crates/jacquard-api/src/com_atproto/moderation/create_report.rs index 129e09ad..cb8bfaeb 100644 --- a/crates/jacquard-api/src/com_atproto/moderation/create_report.rs +++ b/crates/jacquard-api/src/com_atproto/moderation/create_report.rs @@ -122,6 +122,18 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CreateReport<'de> { type Response = CreateReportResponse; } +///Endpoint type for +///com.atproto.moderation.createReport +pub struct CreateReportRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CreateReportRequest { + const PATH: &'static str = "/xrpc/com.atproto.moderation.createReport"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = CreateReport<'de>; + type Response = CreateReportResponse; +} + ///Moderation tool information for tracing the source of the action #[jacquard_derive::lexicon] #[derive( diff --git a/crates/jacquard-api/src/com_atproto/repo/apply_writes.rs b/crates/jacquard-api/src/com_atproto/repo/apply_writes.rs index 3ea23ae8..fc44084a 100644 --- a/crates/jacquard-api/src/com_atproto/repo/apply_writes.rs +++ b/crates/jacquard-api/src/com_atproto/repo/apply_writes.rs @@ -205,6 +205,18 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ApplyWrites<'de> { type Response = ApplyWritesResponse; } +///Endpoint type for +///com.atproto.repo.applyWrites +pub struct ApplyWritesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ApplyWritesRequest { + const PATH: &'static str = "/xrpc/com.atproto.repo.applyWrites"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = ApplyWrites<'de>; + type Response = ApplyWritesResponse; +} + ///Operation which updates an existing record. #[jacquard_derive::lexicon] #[derive( diff --git a/crates/jacquard-api/src/com_atproto/repo/create_record.rs b/crates/jacquard-api/src/com_atproto/repo/create_record.rs index ff70e246..c82bfe7b 100644 --- a/crates/jacquard-api/src/com_atproto/repo/create_record.rs +++ b/crates/jacquard-api/src/com_atproto/repo/create_record.rs @@ -138,4 +138,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CreateRecord<'de> { "application/json", ); type Response = CreateRecordResponse; +} + +///Endpoint type for +///com.atproto.repo.createRecord +pub struct CreateRecordRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CreateRecordRequest { + const PATH: &'static str = "/xrpc/com.atproto.repo.createRecord"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = CreateRecord<'de>; + type Response = CreateRecordResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/repo/delete_record.rs b/crates/jacquard-api/src/com_atproto/repo/delete_record.rs index 0bb8b269..f820c448 100644 --- a/crates/jacquard-api/src/com_atproto/repo/delete_record.rs +++ b/crates/jacquard-api/src/com_atproto/repo/delete_record.rs @@ -125,4 +125,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeleteRecord<'de> { "application/json", ); type Response = DeleteRecordResponse; +} + +///Endpoint type for +///com.atproto.repo.deleteRecord +pub struct DeleteRecordRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeleteRecordRequest { + const PATH: &'static str = "/xrpc/com.atproto.repo.deleteRecord"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeleteRecord<'de>; + type Response = DeleteRecordResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/repo/describe_repo.rs b/crates/jacquard-api/src/com_atproto/repo/describe_repo.rs index c4f4ca3f..aa7d0442 100644 --- a/crates/jacquard-api/src/com_atproto/repo/describe_repo.rs +++ b/crates/jacquard-api/src/com_atproto/repo/describe_repo.rs @@ -62,4 +62,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DescribeRepo<'de> { const NSID: &'static str = "com.atproto.repo.describeRepo"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = DescribeRepoResponse; +} + +///Endpoint type for +///com.atproto.repo.describeRepo +pub struct DescribeRepoRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DescribeRepoRequest { + const PATH: &'static str = "/xrpc/com.atproto.repo.describeRepo"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = DescribeRepo<'de>; + type Response = DescribeRepoResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/repo/get_record.rs b/crates/jacquard-api/src/com_atproto/repo/get_record.rs index 9b63ce57..24cb0c0b 100644 --- a/crates/jacquard-api/src/com_atproto/repo/get_record.rs +++ b/crates/jacquard-api/src/com_atproto/repo/get_record.rs @@ -111,4 +111,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetRecord<'de> { const NSID: &'static str = "com.atproto.repo.getRecord"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetRecordResponse; +} + +///Endpoint type for +///com.atproto.repo.getRecord +pub struct GetRecordRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetRecordRequest { + const PATH: &'static str = "/xrpc/com.atproto.repo.getRecord"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetRecord<'de>; + type Response = GetRecordResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/repo/import_repo.rs b/crates/jacquard-api/src/com_atproto/repo/import_repo.rs index 1340c6d3..99a19532 100644 --- a/crates/jacquard-api/src/com_atproto/repo/import_repo.rs +++ b/crates/jacquard-api/src/com_atproto/repo/import_repo.rs @@ -49,4 +49,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ImportRepo { }), ) } +} + +///Endpoint type for +///com.atproto.repo.importRepo +pub struct ImportRepoRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ImportRepoRequest { + const PATH: &'static str = "/xrpc/com.atproto.repo.importRepo"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/vnd.ipld.car", + ); + type Request<'de> = ImportRepo; + type Response = ImportRepoResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/repo/list_missing_blobs.rs b/crates/jacquard-api/src/com_atproto/repo/list_missing_blobs.rs index ee539099..e8e02825 100644 --- a/crates/jacquard-api/src/com_atproto/repo/list_missing_blobs.rs +++ b/crates/jacquard-api/src/com_atproto/repo/list_missing_blobs.rs @@ -62,6 +62,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ListMissingBlobs<'de> { type Response = ListMissingBlobsResponse; } +///Endpoint type for +///com.atproto.repo.listMissingBlobs +pub struct ListMissingBlobsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ListMissingBlobsRequest { + const PATH: &'static str = "/xrpc/com.atproto.repo.listMissingBlobs"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ListMissingBlobs<'de>; + type Response = ListMissingBlobsResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/com_atproto/repo/list_records.rs b/crates/jacquard-api/src/com_atproto/repo/list_records.rs index aa3f42e7..9314ad5c 100644 --- a/crates/jacquard-api/src/com_atproto/repo/list_records.rs +++ b/crates/jacquard-api/src/com_atproto/repo/list_records.rs @@ -68,6 +68,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ListRecords<'de> { type Response = ListRecordsResponse; } +///Endpoint type for +///com.atproto.repo.listRecords +pub struct ListRecordsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ListRecordsRequest { + const PATH: &'static str = "/xrpc/com.atproto.repo.listRecords"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ListRecords<'de>; + type Response = ListRecordsResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/com_atproto/repo/put_record.rs b/crates/jacquard-api/src/com_atproto/repo/put_record.rs index 6d31b583..e763e40b 100644 --- a/crates/jacquard-api/src/com_atproto/repo/put_record.rs +++ b/crates/jacquard-api/src/com_atproto/repo/put_record.rs @@ -138,4 +138,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for PutRecord<'de> { "application/json", ); type Response = PutRecordResponse; +} + +///Endpoint type for +///com.atproto.repo.putRecord +pub struct PutRecordRequest; +impl jacquard_common::xrpc::XrpcEndpoint for PutRecordRequest { + const PATH: &'static str = "/xrpc/com.atproto.repo.putRecord"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = PutRecord<'de>; + type Response = PutRecordResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/repo/upload_blob.rs b/crates/jacquard-api/src/com_atproto/repo/upload_blob.rs index 38100ddc..89bf1eee 100644 --- a/crates/jacquard-api/src/com_atproto/repo/upload_blob.rs +++ b/crates/jacquard-api/src/com_atproto/repo/upload_blob.rs @@ -65,4 +65,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UploadBlob { }), ) } +} + +///Endpoint type for +///com.atproto.repo.uploadBlob +pub struct UploadBlobRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UploadBlobRequest { + const PATH: &'static str = "/xrpc/com.atproto.repo.uploadBlob"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "*/*", + ); + type Request<'de> = UploadBlob; + type Response = UploadBlobResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/activate_account.rs b/crates/jacquard-api/src/com_atproto/server/activate_account.rs index e26eead4..cec46e63 100644 --- a/crates/jacquard-api/src/com_atproto/server/activate_account.rs +++ b/crates/jacquard-api/src/com_atproto/server/activate_account.rs @@ -6,7 +6,16 @@ // Any manual changes will be overwritten on the next regeneration. /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct ActivateAccount; ///Response type for ///com.atproto.server.activateAccount @@ -24,4 +33,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ActivateAccount { "application/json", ); type Response = ActivateAccountResponse; +} + +///Endpoint type for +///com.atproto.server.activateAccount +pub struct ActivateAccountRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ActivateAccountRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.activateAccount"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = ActivateAccount; + type Response = ActivateAccountResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/check_account_status.rs b/crates/jacquard-api/src/com_atproto/server/check_account_status.rs index 6f3c4186..48d67d22 100644 --- a/crates/jacquard-api/src/com_atproto/server/check_account_status.rs +++ b/crates/jacquard-api/src/com_atproto/server/check_account_status.rs @@ -31,7 +31,16 @@ pub struct CheckAccountStatusOutput<'a> { } /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct CheckAccountStatus; ///Response type for ///com.atproto.server.checkAccountStatus @@ -47,4 +56,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CheckAccountStatus { const NSID: &'static str = "com.atproto.server.checkAccountStatus"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = CheckAccountStatusResponse; +} + +///Endpoint type for +///com.atproto.server.checkAccountStatus +pub struct CheckAccountStatusRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CheckAccountStatusRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.checkAccountStatus"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = CheckAccountStatus; + type Response = CheckAccountStatusResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/confirm_email.rs b/crates/jacquard-api/src/com_atproto/server/confirm_email.rs index b5ff5139..c88652ae 100644 --- a/crates/jacquard-api/src/com_atproto/server/confirm_email.rs +++ b/crates/jacquard-api/src/com_atproto/server/confirm_email.rs @@ -131,4 +131,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ConfirmEmail<'de> { "application/json", ); type Response = ConfirmEmailResponse; +} + +///Endpoint type for +///com.atproto.server.confirmEmail +pub struct ConfirmEmailRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ConfirmEmailRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.confirmEmail"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = ConfirmEmail<'de>; + type Response = ConfirmEmailResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/create_account.rs b/crates/jacquard-api/src/com_atproto/server/create_account.rs index 18977120..965173aa 100644 --- a/crates/jacquard-api/src/com_atproto/server/create_account.rs +++ b/crates/jacquard-api/src/com_atproto/server/create_account.rs @@ -227,4 +227,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CreateAccount<'de> { "application/json", ); type Response = CreateAccountResponse; +} + +///Endpoint type for +///com.atproto.server.createAccount +pub struct CreateAccountRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CreateAccountRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.createAccount"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = CreateAccount<'de>; + type Response = CreateAccountResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/create_app_password.rs b/crates/jacquard-api/src/com_atproto/server/create_app_password.rs index 027cd2f0..c56ec3a1 100644 --- a/crates/jacquard-api/src/com_atproto/server/create_app_password.rs +++ b/crates/jacquard-api/src/com_atproto/server/create_app_password.rs @@ -136,4 +136,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CreateAppPassword<'de> { "application/json", ); type Response = CreateAppPasswordResponse; +} + +///Endpoint type for +///com.atproto.server.createAppPassword +pub struct CreateAppPasswordRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CreateAppPasswordRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.createAppPassword"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = CreateAppPassword<'de>; + type Response = CreateAppPasswordResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/create_invite_code.rs b/crates/jacquard-api/src/com_atproto/server/create_invite_code.rs index 2bdb0da2..80492c7c 100644 --- a/crates/jacquard-api/src/com_atproto/server/create_invite_code.rs +++ b/crates/jacquard-api/src/com_atproto/server/create_invite_code.rs @@ -64,4 +64,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CreateInviteCode<'de> { "application/json", ); type Response = CreateInviteCodeResponse; +} + +///Endpoint type for +///com.atproto.server.createInviteCode +pub struct CreateInviteCodeRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CreateInviteCodeRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.createInviteCode"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = CreateInviteCode<'de>; + type Response = CreateInviteCodeResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/create_invite_codes.rs b/crates/jacquard-api/src/com_atproto/server/create_invite_codes.rs index f527a04f..ab3f5219 100644 --- a/crates/jacquard-api/src/com_atproto/server/create_invite_codes.rs +++ b/crates/jacquard-api/src/com_atproto/server/create_invite_codes.rs @@ -83,4 +83,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CreateInviteCodes<'de> { "application/json", ); type Response = CreateInviteCodesResponse; +} + +///Endpoint type for +///com.atproto.server.createInviteCodes +pub struct CreateInviteCodesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CreateInviteCodesRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.createInviteCodes"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = CreateInviteCodes<'de>; + type Response = CreateInviteCodesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/create_session.rs b/crates/jacquard-api/src/com_atproto/server/create_session.rs index 4b586543..9bc6f9fa 100644 --- a/crates/jacquard-api/src/com_atproto/server/create_session.rs +++ b/crates/jacquard-api/src/com_atproto/server/create_session.rs @@ -155,4 +155,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CreateSession<'de> { "application/json", ); type Response = CreateSessionResponse; +} + +///Endpoint type for +///com.atproto.server.createSession +pub struct CreateSessionRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CreateSessionRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.createSession"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = CreateSession<'de>; + type Response = CreateSessionResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/deactivate_account.rs b/crates/jacquard-api/src/com_atproto/server/deactivate_account.rs index d8562b10..98ea5a91 100644 --- a/crates/jacquard-api/src/com_atproto/server/deactivate_account.rs +++ b/crates/jacquard-api/src/com_atproto/server/deactivate_account.rs @@ -47,4 +47,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeactivateAccount<'de> { "application/json", ); type Response = DeactivateAccountResponse; +} + +///Endpoint type for +///com.atproto.server.deactivateAccount +pub struct DeactivateAccountRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeactivateAccountRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.deactivateAccount"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeactivateAccount<'de>; + type Response = DeactivateAccountResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/delete_account.rs b/crates/jacquard-api/src/com_atproto/server/delete_account.rs index 02a478fc..7da324a9 100644 --- a/crates/jacquard-api/src/com_atproto/server/delete_account.rs +++ b/crates/jacquard-api/src/com_atproto/server/delete_account.rs @@ -111,4 +111,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeleteAccount<'de> { "application/json", ); type Response = DeleteAccountResponse; +} + +///Endpoint type for +///com.atproto.server.deleteAccount +pub struct DeleteAccountRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeleteAccountRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.deleteAccount"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeleteAccount<'de>; + type Response = DeleteAccountResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/delete_session.rs b/crates/jacquard-api/src/com_atproto/server/delete_session.rs index 72b83525..991cb80c 100644 --- a/crates/jacquard-api/src/com_atproto/server/delete_session.rs +++ b/crates/jacquard-api/src/com_atproto/server/delete_session.rs @@ -6,7 +6,16 @@ // Any manual changes will be overwritten on the next regeneration. /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct DeleteSession; ///Response type for ///com.atproto.server.deleteSession @@ -24,4 +33,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeleteSession { "application/json", ); type Response = DeleteSessionResponse; +} + +///Endpoint type for +///com.atproto.server.deleteSession +pub struct DeleteSessionRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeleteSessionRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.deleteSession"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeleteSession; + type Response = DeleteSessionResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/describe_server.rs b/crates/jacquard-api/src/com_atproto/server/describe_server.rs index a89ed227..977fa7a9 100644 --- a/crates/jacquard-api/src/com_atproto/server/describe_server.rs +++ b/crates/jacquard-api/src/com_atproto/server/describe_server.rs @@ -76,7 +76,16 @@ pub struct DescribeServerOutput<'a> { } /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct DescribeServer; ///Response type for ///com.atproto.server.describeServer @@ -92,4 +101,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DescribeServer { const NSID: &'static str = "com.atproto.server.describeServer"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = DescribeServerResponse; +} + +///Endpoint type for +///com.atproto.server.describeServer +pub struct DescribeServerRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DescribeServerRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.describeServer"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = DescribeServer; + type Response = DescribeServerResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/get_account_invite_codes.rs b/crates/jacquard-api/src/com_atproto/server/get_account_invite_codes.rs index 0edac4f0..b0c04566 100644 --- a/crates/jacquard-api/src/com_atproto/server/get_account_invite_codes.rs +++ b/crates/jacquard-api/src/com_atproto/server/get_account_invite_codes.rs @@ -103,4 +103,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetAccountInviteCodes { const NSID: &'static str = "com.atproto.server.getAccountInviteCodes"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetAccountInviteCodesResponse; +} + +///Endpoint type for +///com.atproto.server.getAccountInviteCodes +pub struct GetAccountInviteCodesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetAccountInviteCodesRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.getAccountInviteCodes"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetAccountInviteCodes; + type Response = GetAccountInviteCodesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/get_service_auth.rs b/crates/jacquard-api/src/com_atproto/server/get_service_auth.rs index 85418810..77853c29 100644 --- a/crates/jacquard-api/src/com_atproto/server/get_service_auth.rs +++ b/crates/jacquard-api/src/com_atproto/server/get_service_auth.rs @@ -105,4 +105,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetServiceAuth<'de> { const NSID: &'static str = "com.atproto.server.getServiceAuth"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetServiceAuthResponse; +} + +///Endpoint type for +///com.atproto.server.getServiceAuth +pub struct GetServiceAuthRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetServiceAuthRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.getServiceAuth"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetServiceAuth<'de>; + type Response = GetServiceAuthResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/get_session.rs b/crates/jacquard-api/src/com_atproto/server/get_session.rs index 275f71f8..f2fbf05f 100644 --- a/crates/jacquard-api/src/com_atproto/server/get_session.rs +++ b/crates/jacquard-api/src/com_atproto/server/get_session.rs @@ -40,7 +40,16 @@ pub struct GetSessionOutput<'a> { } /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct GetSession; ///Response type for ///com.atproto.server.getSession @@ -56,4 +65,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetSession { const NSID: &'static str = "com.atproto.server.getSession"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetSessionResponse; +} + +///Endpoint type for +///com.atproto.server.getSession +pub struct GetSessionRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetSessionRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.getSession"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetSession; + type Response = GetSessionResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/list_app_passwords.rs b/crates/jacquard-api/src/com_atproto/server/list_app_passwords.rs index 01c754c3..90a5c007 100644 --- a/crates/jacquard-api/src/com_atproto/server/list_app_passwords.rs +++ b/crates/jacquard-api/src/com_atproto/server/list_app_passwords.rs @@ -88,7 +88,16 @@ impl jacquard_common::IntoStatic for ListAppPasswordsError<'_> { } /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct ListAppPasswords; ///Response type for ///com.atproto.server.listAppPasswords @@ -104,4 +113,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ListAppPasswords { const NSID: &'static str = "com.atproto.server.listAppPasswords"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = ListAppPasswordsResponse; +} + +///Endpoint type for +///com.atproto.server.listAppPasswords +pub struct ListAppPasswordsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ListAppPasswordsRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.listAppPasswords"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ListAppPasswords; + type Response = ListAppPasswordsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/refresh_session.rs b/crates/jacquard-api/src/com_atproto/server/refresh_session.rs index bcccf8d2..c8443d1f 100644 --- a/crates/jacquard-api/src/com_atproto/server/refresh_session.rs +++ b/crates/jacquard-api/src/com_atproto/server/refresh_session.rs @@ -84,7 +84,16 @@ impl jacquard_common::IntoStatic for RefreshSessionError<'_> { } /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct RefreshSession; ///Response type for ///com.atproto.server.refreshSession @@ -102,4 +111,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for RefreshSession { "application/json", ); type Response = RefreshSessionResponse; +} + +///Endpoint type for +///com.atproto.server.refreshSession +pub struct RefreshSessionRequest; +impl jacquard_common::xrpc::XrpcEndpoint for RefreshSessionRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.refreshSession"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = RefreshSession; + type Response = RefreshSessionResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/request_account_delete.rs b/crates/jacquard-api/src/com_atproto/server/request_account_delete.rs index ad9e1e3a..5582c2c6 100644 --- a/crates/jacquard-api/src/com_atproto/server/request_account_delete.rs +++ b/crates/jacquard-api/src/com_atproto/server/request_account_delete.rs @@ -6,7 +6,16 @@ // Any manual changes will be overwritten on the next regeneration. /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct RequestAccountDelete; ///Response type for ///com.atproto.server.requestAccountDelete @@ -24,4 +33,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for RequestAccountDelete { "application/json", ); type Response = RequestAccountDeleteResponse; +} + +///Endpoint type for +///com.atproto.server.requestAccountDelete +pub struct RequestAccountDeleteRequest; +impl jacquard_common::xrpc::XrpcEndpoint for RequestAccountDeleteRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.requestAccountDelete"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = RequestAccountDelete; + type Response = RequestAccountDeleteResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/request_email_confirmation.rs b/crates/jacquard-api/src/com_atproto/server/request_email_confirmation.rs index af898796..527f2a9d 100644 --- a/crates/jacquard-api/src/com_atproto/server/request_email_confirmation.rs +++ b/crates/jacquard-api/src/com_atproto/server/request_email_confirmation.rs @@ -6,7 +6,16 @@ // Any manual changes will be overwritten on the next regeneration. /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct RequestEmailConfirmation; ///Response type for ///com.atproto.server.requestEmailConfirmation @@ -24,4 +33,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for RequestEmailConfirmation { "application/json", ); type Response = RequestEmailConfirmationResponse; +} + +///Endpoint type for +///com.atproto.server.requestEmailConfirmation +pub struct RequestEmailConfirmationRequest; +impl jacquard_common::xrpc::XrpcEndpoint for RequestEmailConfirmationRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.requestEmailConfirmation"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = RequestEmailConfirmation; + type Response = RequestEmailConfirmationResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/request_email_update.rs b/crates/jacquard-api/src/com_atproto/server/request_email_update.rs index 2e0b301d..9216699e 100644 --- a/crates/jacquard-api/src/com_atproto/server/request_email_update.rs +++ b/crates/jacquard-api/src/com_atproto/server/request_email_update.rs @@ -21,7 +21,16 @@ pub struct RequestEmailUpdateOutput<'a> { } /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct RequestEmailUpdate; ///Response type for ///com.atproto.server.requestEmailUpdate @@ -39,4 +48,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for RequestEmailUpdate { "application/json", ); type Response = RequestEmailUpdateResponse; +} + +///Endpoint type for +///com.atproto.server.requestEmailUpdate +pub struct RequestEmailUpdateRequest; +impl jacquard_common::xrpc::XrpcEndpoint for RequestEmailUpdateRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.requestEmailUpdate"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = RequestEmailUpdate; + type Response = RequestEmailUpdateResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/request_password_reset.rs b/crates/jacquard-api/src/com_atproto/server/request_password_reset.rs index 81edf705..8f63ea8f 100644 --- a/crates/jacquard-api/src/com_atproto/server/request_password_reset.rs +++ b/crates/jacquard-api/src/com_atproto/server/request_password_reset.rs @@ -47,4 +47,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for RequestPasswordReset<'de> "application/json", ); type Response = RequestPasswordResetResponse; +} + +///Endpoint type for +///com.atproto.server.requestPasswordReset +pub struct RequestPasswordResetRequest; +impl jacquard_common::xrpc::XrpcEndpoint for RequestPasswordResetRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.requestPasswordReset"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = RequestPasswordReset<'de>; + type Response = RequestPasswordResetResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/reserve_signing_key.rs b/crates/jacquard-api/src/com_atproto/server/reserve_signing_key.rs index 6581873e..7a2164ea 100644 --- a/crates/jacquard-api/src/com_atproto/server/reserve_signing_key.rs +++ b/crates/jacquard-api/src/com_atproto/server/reserve_signing_key.rs @@ -65,4 +65,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ReserveSigningKey<'de> { "application/json", ); type Response = ReserveSigningKeyResponse; +} + +///Endpoint type for +///com.atproto.server.reserveSigningKey +pub struct ReserveSigningKeyRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ReserveSigningKeyRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.reserveSigningKey"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = ReserveSigningKey<'de>; + type Response = ReserveSigningKeyResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/reset_password.rs b/crates/jacquard-api/src/com_atproto/server/reset_password.rs index 756d998d..ac7f6af8 100644 --- a/crates/jacquard-api/src/com_atproto/server/reset_password.rs +++ b/crates/jacquard-api/src/com_atproto/server/reset_password.rs @@ -109,4 +109,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ResetPassword<'de> { "application/json", ); type Response = ResetPasswordResponse; +} + +///Endpoint type for +///com.atproto.server.resetPassword +pub struct ResetPasswordRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ResetPasswordRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.resetPassword"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = ResetPassword<'de>; + type Response = ResetPasswordResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/revoke_app_password.rs b/crates/jacquard-api/src/com_atproto/server/revoke_app_password.rs index 2dd1a705..938e1661 100644 --- a/crates/jacquard-api/src/com_atproto/server/revoke_app_password.rs +++ b/crates/jacquard-api/src/com_atproto/server/revoke_app_password.rs @@ -47,4 +47,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for RevokeAppPassword<'de> { "application/json", ); type Response = RevokeAppPasswordResponse; +} + +///Endpoint type for +///com.atproto.server.revokeAppPassword +pub struct RevokeAppPasswordRequest; +impl jacquard_common::xrpc::XrpcEndpoint for RevokeAppPasswordRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.revokeAppPassword"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = RevokeAppPassword<'de>; + type Response = RevokeAppPasswordResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/server/update_email.rs b/crates/jacquard-api/src/com_atproto/server/update_email.rs index 2cfa05d4..cb116c91 100644 --- a/crates/jacquard-api/src/com_atproto/server/update_email.rs +++ b/crates/jacquard-api/src/com_atproto/server/update_email.rs @@ -123,4 +123,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateEmail<'de> { "application/json", ); type Response = UpdateEmailResponse; +} + +///Endpoint type for +///com.atproto.server.updateEmail +pub struct UpdateEmailRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateEmailRequest { + const PATH: &'static str = "/xrpc/com.atproto.server.updateEmail"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateEmail<'de>; + type Response = UpdateEmailResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/sync/get_blob.rs b/crates/jacquard-api/src/com_atproto/sync/get_blob.rs index af4e3fef..8bff07b9 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_blob.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_blob.rs @@ -139,4 +139,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetBlob<'de> { const NSID: &'static str = "com.atproto.sync.getBlob"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetBlobResponse; +} + +///Endpoint type for +///com.atproto.sync.getBlob +pub struct GetBlobRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetBlobRequest { + const PATH: &'static str = "/xrpc/com.atproto.sync.getBlob"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetBlob<'de>; + type Response = GetBlobResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/sync/get_blocks.rs b/crates/jacquard-api/src/com_atproto/sync/get_blocks.rs index 9048933f..2268dfde 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_blocks.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_blocks.rs @@ -143,4 +143,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetBlocks<'de> { const NSID: &'static str = "com.atproto.sync.getBlocks"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetBlocksResponse; +} + +///Endpoint type for +///com.atproto.sync.getBlocks +pub struct GetBlocksRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetBlocksRequest { + const PATH: &'static str = "/xrpc/com.atproto.sync.getBlocks"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetBlocks<'de>; + type Response = GetBlocksResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/sync/get_checkout.rs b/crates/jacquard-api/src/com_atproto/sync/get_checkout.rs index 67f974b8..e2c19a90 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_checkout.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_checkout.rs @@ -48,4 +48,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetCheckout<'de> { const NSID: &'static str = "com.atproto.sync.getCheckout"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetCheckoutResponse; +} + +///Endpoint type for +///com.atproto.sync.getCheckout +pub struct GetCheckoutRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetCheckoutRequest { + const PATH: &'static str = "/xrpc/com.atproto.sync.getCheckout"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetCheckout<'de>; + type Response = GetCheckoutResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/sync/get_head.rs b/crates/jacquard-api/src/com_atproto/sync/get_head.rs index a5959a2d..7a12d620 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_head.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_head.rs @@ -95,4 +95,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetHead<'de> { const NSID: &'static str = "com.atproto.sync.getHead"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetHeadResponse; +} + +///Endpoint type for +///com.atproto.sync.getHead +pub struct GetHeadRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetHeadRequest { + const PATH: &'static str = "/xrpc/com.atproto.sync.getHead"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetHead<'de>; + type Response = GetHeadResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/sync/get_host_status.rs b/crates/jacquard-api/src/com_atproto/sync/get_host_status.rs index 3785b6b1..3a757725 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_host_status.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_host_status.rs @@ -109,4 +109,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetHostStatus<'de> { const NSID: &'static str = "com.atproto.sync.getHostStatus"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetHostStatusResponse; +} + +///Endpoint type for +///com.atproto.sync.getHostStatus +pub struct GetHostStatusRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetHostStatusRequest { + const PATH: &'static str = "/xrpc/com.atproto.sync.getHostStatus"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetHostStatus<'de>; + type Response = GetHostStatusResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/sync/get_latest_commit.rs b/crates/jacquard-api/src/com_atproto/sync/get_latest_commit.rs index ebd4eb81..2d8a3450 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_latest_commit.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_latest_commit.rs @@ -136,4 +136,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetLatestCommit<'de> { const NSID: &'static str = "com.atproto.sync.getLatestCommit"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetLatestCommitResponse; +} + +///Endpoint type for +///com.atproto.sync.getLatestCommit +pub struct GetLatestCommitRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetLatestCommitRequest { + const PATH: &'static str = "/xrpc/com.atproto.sync.getLatestCommit"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetLatestCommit<'de>; + type Response = GetLatestCommitResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/sync/get_record.rs b/crates/jacquard-api/src/com_atproto/sync/get_record.rs index d1e15404..b3140af7 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_record.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_record.rs @@ -147,4 +147,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetRecord<'de> { const NSID: &'static str = "com.atproto.sync.getRecord"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetRecordResponse; +} + +///Endpoint type for +///com.atproto.sync.getRecord +pub struct GetRecordRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetRecordRequest { + const PATH: &'static str = "/xrpc/com.atproto.sync.getRecord"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetRecord<'de>; + type Response = GetRecordResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/sync/get_repo.rs b/crates/jacquard-api/src/com_atproto/sync/get_repo.rs index c04901a0..a3c9ca97 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_repo.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_repo.rs @@ -129,4 +129,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetRepo<'de> { const NSID: &'static str = "com.atproto.sync.getRepo"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetRepoResponse; +} + +///Endpoint type for +///com.atproto.sync.getRepo +pub struct GetRepoRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetRepoRequest { + const PATH: &'static str = "/xrpc/com.atproto.sync.getRepo"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetRepo<'de>; + type Response = GetRepoResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/sync/get_repo_status.rs b/crates/jacquard-api/src/com_atproto/sync/get_repo_status.rs index 7ddb1949..416b63f9 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_repo_status.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_repo_status.rs @@ -107,4 +107,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetRepoStatus<'de> { const NSID: &'static str = "com.atproto.sync.getRepoStatus"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetRepoStatusResponse; +} + +///Endpoint type for +///com.atproto.sync.getRepoStatus +pub struct GetRepoStatusRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetRepoStatusRequest { + const PATH: &'static str = "/xrpc/com.atproto.sync.getRepoStatus"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetRepoStatus<'de>; + type Response = GetRepoStatusResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/sync/list_blobs.rs b/crates/jacquard-api/src/com_atproto/sync/list_blobs.rs index 88c63ff3..3c3bfaaa 100644 --- a/crates/jacquard-api/src/com_atproto/sync/list_blobs.rs +++ b/crates/jacquard-api/src/com_atproto/sync/list_blobs.rs @@ -145,4 +145,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ListBlobs<'de> { const NSID: &'static str = "com.atproto.sync.listBlobs"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = ListBlobsResponse; +} + +///Endpoint type for +///com.atproto.sync.listBlobs +pub struct ListBlobsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ListBlobsRequest { + const PATH: &'static str = "/xrpc/com.atproto.sync.listBlobs"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ListBlobs<'de>; + type Response = ListBlobsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/sync/list_hosts.rs b/crates/jacquard-api/src/com_atproto/sync/list_hosts.rs index a26ec1ee..318ed6bf 100644 --- a/crates/jacquard-api/src/com_atproto/sync/list_hosts.rs +++ b/crates/jacquard-api/src/com_atproto/sync/list_hosts.rs @@ -86,4 +86,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ListHosts<'de> { const NSID: &'static str = "com.atproto.sync.listHosts"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = ListHostsResponse; +} + +///Endpoint type for +///com.atproto.sync.listHosts +pub struct ListHostsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ListHostsRequest { + const PATH: &'static str = "/xrpc/com.atproto.sync.listHosts"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ListHosts<'de>; + type Response = ListHostsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/sync/list_repos.rs b/crates/jacquard-api/src/com_atproto/sync/list_repos.rs index 62e2355d..7f7e7690 100644 --- a/crates/jacquard-api/src/com_atproto/sync/list_repos.rs +++ b/crates/jacquard-api/src/com_atproto/sync/list_repos.rs @@ -62,6 +62,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ListRepos<'de> { type Response = ListReposResponse; } +///Endpoint type for +///com.atproto.sync.listRepos +pub struct ListReposRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ListReposRequest { + const PATH: &'static str = "/xrpc/com.atproto.sync.listRepos"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ListRepos<'de>; + type Response = ListReposResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/com_atproto/sync/list_repos_by_collection.rs b/crates/jacquard-api/src/com_atproto/sync/list_repos_by_collection.rs index 758a8ef3..048afb72 100644 --- a/crates/jacquard-api/src/com_atproto/sync/list_repos_by_collection.rs +++ b/crates/jacquard-api/src/com_atproto/sync/list_repos_by_collection.rs @@ -64,6 +64,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ListReposByCollection<'de> type Response = ListReposByCollectionResponse; } +///Endpoint type for +///com.atproto.sync.listReposByCollection +pub struct ListReposByCollectionRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ListReposByCollectionRequest { + const PATH: &'static str = "/xrpc/com.atproto.sync.listReposByCollection"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ListReposByCollection<'de>; + type Response = ListReposByCollectionResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/com_atproto/sync/notify_of_update.rs b/crates/jacquard-api/src/com_atproto/sync/notify_of_update.rs index 519597bf..d2e317a2 100644 --- a/crates/jacquard-api/src/com_atproto/sync/notify_of_update.rs +++ b/crates/jacquard-api/src/com_atproto/sync/notify_of_update.rs @@ -48,4 +48,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for NotifyOfUpdate<'de> { "application/json", ); type Response = NotifyOfUpdateResponse; +} + +///Endpoint type for +///com.atproto.sync.notifyOfUpdate +pub struct NotifyOfUpdateRequest; +impl jacquard_common::xrpc::XrpcEndpoint for NotifyOfUpdateRequest { + const PATH: &'static str = "/xrpc/com.atproto.sync.notifyOfUpdate"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = NotifyOfUpdate<'de>; + type Response = NotifyOfUpdateResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/sync/request_crawl.rs b/crates/jacquard-api/src/com_atproto/sync/request_crawl.rs index cf395800..76f17fed 100644 --- a/crates/jacquard-api/src/com_atproto/sync/request_crawl.rs +++ b/crates/jacquard-api/src/com_atproto/sync/request_crawl.rs @@ -93,4 +93,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for RequestCrawl<'de> { "application/json", ); type Response = RequestCrawlResponse; +} + +///Endpoint type for +///com.atproto.sync.requestCrawl +pub struct RequestCrawlRequest; +impl jacquard_common::xrpc::XrpcEndpoint for RequestCrawlRequest { + const PATH: &'static str = "/xrpc/com.atproto.sync.requestCrawl"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = RequestCrawl<'de>; + type Response = RequestCrawlResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/temp/add_reserved_handle.rs b/crates/jacquard-api/src/com_atproto/temp/add_reserved_handle.rs index a8eaf871..d89fc10f 100644 --- a/crates/jacquard-api/src/com_atproto/temp/add_reserved_handle.rs +++ b/crates/jacquard-api/src/com_atproto/temp/add_reserved_handle.rs @@ -59,4 +59,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for AddReservedHandle<'de> { "application/json", ); type Response = AddReservedHandleResponse; +} + +///Endpoint type for +///com.atproto.temp.addReservedHandle +pub struct AddReservedHandleRequest; +impl jacquard_common::xrpc::XrpcEndpoint for AddReservedHandleRequest { + const PATH: &'static str = "/xrpc/com.atproto.temp.addReservedHandle"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = AddReservedHandle<'de>; + type Response = AddReservedHandleResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/temp/check_handle_availability.rs b/crates/jacquard-api/src/com_atproto/temp/check_handle_availability.rs index 6829b17d..c2e7ee43 100644 --- a/crates/jacquard-api/src/com_atproto/temp/check_handle_availability.rs +++ b/crates/jacquard-api/src/com_atproto/temp/check_handle_availability.rs @@ -124,6 +124,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CheckHandleAvailability<'d type Response = CheckHandleAvailabilityResponse; } +///Endpoint type for +///com.atproto.temp.checkHandleAvailability +pub struct CheckHandleAvailabilityRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CheckHandleAvailabilityRequest { + const PATH: &'static str = "/xrpc/com.atproto.temp.checkHandleAvailability"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = CheckHandleAvailability<'de>; + type Response = CheckHandleAvailabilityResponse; +} + ///Indicates the provided handle is available. #[jacquard_derive::lexicon] #[derive( diff --git a/crates/jacquard-api/src/com_atproto/temp/check_signup_queue.rs b/crates/jacquard-api/src/com_atproto/temp/check_signup_queue.rs index 14ebe247..ea8d49d6 100644 --- a/crates/jacquard-api/src/com_atproto/temp/check_signup_queue.rs +++ b/crates/jacquard-api/src/com_atproto/temp/check_signup_queue.rs @@ -25,7 +25,16 @@ pub struct CheckSignupQueueOutput<'a> { } /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct CheckSignupQueue; ///Response type for ///com.atproto.temp.checkSignupQueue @@ -41,4 +50,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CheckSignupQueue { const NSID: &'static str = "com.atproto.temp.checkSignupQueue"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = CheckSignupQueueResponse; +} + +///Endpoint type for +///com.atproto.temp.checkSignupQueue +pub struct CheckSignupQueueRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CheckSignupQueueRequest { + const PATH: &'static str = "/xrpc/com.atproto.temp.checkSignupQueue"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = CheckSignupQueue; + type Response = CheckSignupQueueResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/temp/dereference_scope.rs b/crates/jacquard-api/src/com_atproto/temp/dereference_scope.rs index bbdd063d..8ff01623 100644 --- a/crates/jacquard-api/src/com_atproto/temp/dereference_scope.rs +++ b/crates/jacquard-api/src/com_atproto/temp/dereference_scope.rs @@ -102,4 +102,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DereferenceScope<'de> { const NSID: &'static str = "com.atproto.temp.dereferenceScope"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = DereferenceScopeResponse; +} + +///Endpoint type for +///com.atproto.temp.dereferenceScope +pub struct DereferenceScopeRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DereferenceScopeRequest { + const PATH: &'static str = "/xrpc/com.atproto.temp.dereferenceScope"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = DereferenceScope<'de>; + type Response = DereferenceScopeResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/temp/fetch_labels.rs b/crates/jacquard-api/src/com_atproto/temp/fetch_labels.rs index 709d77b6..7363070d 100644 --- a/crates/jacquard-api/src/com_atproto/temp/fetch_labels.rs +++ b/crates/jacquard-api/src/com_atproto/temp/fetch_labels.rs @@ -55,4 +55,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for FetchLabels { const NSID: &'static str = "com.atproto.temp.fetchLabels"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = FetchLabelsResponse; +} + +///Endpoint type for +///com.atproto.temp.fetchLabels +pub struct FetchLabelsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for FetchLabelsRequest { + const PATH: &'static str = "/xrpc/com.atproto.temp.fetchLabels"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = FetchLabels; + type Response = FetchLabelsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/temp/request_phone_verification.rs b/crates/jacquard-api/src/com_atproto/temp/request_phone_verification.rs index d8fc4d96..25dd5892 100644 --- a/crates/jacquard-api/src/com_atproto/temp/request_phone_verification.rs +++ b/crates/jacquard-api/src/com_atproto/temp/request_phone_verification.rs @@ -47,4 +47,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for RequestPhoneVerification<' "application/json", ); type Response = RequestPhoneVerificationResponse; +} + +///Endpoint type for +///com.atproto.temp.requestPhoneVerification +pub struct RequestPhoneVerificationRequest; +impl jacquard_common::xrpc::XrpcEndpoint for RequestPhoneVerificationRequest { + const PATH: &'static str = "/xrpc/com.atproto.temp.requestPhoneVerification"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = RequestPhoneVerification<'de>; + type Response = RequestPhoneVerificationResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_atproto/temp/revoke_account_credentials.rs b/crates/jacquard-api/src/com_atproto/temp/revoke_account_credentials.rs index bd8b9828..6ae3d952 100644 --- a/crates/jacquard-api/src/com_atproto/temp/revoke_account_credentials.rs +++ b/crates/jacquard-api/src/com_atproto/temp/revoke_account_credentials.rs @@ -46,4 +46,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for RevokeAccountCredentials<' "application/json", ); type Response = RevokeAccountCredentialsResponse; +} + +///Endpoint type for +///com.atproto.temp.revokeAccountCredentials +pub struct RevokeAccountCredentialsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for RevokeAccountCredentialsRequest { + const PATH: &'static str = "/xrpc/com.atproto.temp.revokeAccountCredentials"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = RevokeAccountCredentials<'de>; + type Response = RevokeAccountCredentialsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_bad_example/identity/resolve_mini_doc.rs b/crates/jacquard-api/src/com_bad_example/identity/resolve_mini_doc.rs index 78c7f3ee..f6f34f34 100644 --- a/crates/jacquard-api/src/com_bad_example/identity/resolve_mini_doc.rs +++ b/crates/jacquard-api/src/com_bad_example/identity/resolve_mini_doc.rs @@ -66,4 +66,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ResolveMiniDoc<'de> { const NSID: &'static str = "com.bad-example.identity.resolveMiniDoc"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = ResolveMiniDocResponse; +} + +///Endpoint type for +///com.bad-example.identity.resolveMiniDoc +pub struct ResolveMiniDocRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ResolveMiniDocRequest { + const PATH: &'static str = "/xrpc/com.bad-example.identity.resolveMiniDoc"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ResolveMiniDoc<'de>; + type Response = ResolveMiniDocResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_crabdance.rs b/crates/jacquard-api/src/com_crabdance.rs new file mode 100644 index 00000000..9fcf4882 --- /dev/null +++ b/crates/jacquard-api/src/com_crabdance.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod nandi; \ No newline at end of file diff --git a/crates/jacquard-api/src/com_crabdance/nandi.rs b/crates/jacquard-api/src/com_crabdance/nandi.rs new file mode 100644 index 00000000..16034acd --- /dev/null +++ b/crates/jacquard-api/src/com_crabdance/nandi.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod post; \ No newline at end of file diff --git a/crates/jacquard-api/src/com_crabdance/nandi/post.rs b/crates/jacquard-api/src/com_crabdance/nandi/post.rs new file mode 100644 index 00000000..1f68b4c6 --- /dev/null +++ b/crates/jacquard-api/src/com_crabdance/nandi/post.rs @@ -0,0 +1,44 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: com.crabdance.nandi.post +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Post<'a> { + ///The main content of the blog post in markdown + #[serde(borrow)] + pub content: jacquard_common::CowStr<'a>, + pub created_at: jacquard_common::types::string::Datetime, + ///Whether the post is published or draft + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub published: std::option::Option, + ///Optional summary/excerpt of the post + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub summary: std::option::Option>, + ///Tags for categorizing the post + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub tags: std::option::Option>>, + ///The title of the blog post + #[serde(borrow)] + pub title: jacquard_common::CowStr<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub updated_at: std::option::Option, +} + +impl jacquard_common::types::collection::Collection for Post<'_> { + const NSID: &'static str = "com.crabdance.nandi.post"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/com_shinolabs/pinksea/get_author_feed.rs b/crates/jacquard-api/src/com_shinolabs/pinksea/get_author_feed.rs index d817537a..c76e8d1c 100644 --- a/crates/jacquard-api/src/com_shinolabs/pinksea/get_author_feed.rs +++ b/crates/jacquard-api/src/com_shinolabs/pinksea/get_author_feed.rs @@ -57,4 +57,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetAuthorFeed<'de> { const NSID: &'static str = "com.shinolabs.pinksea.getAuthorFeed"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetAuthorFeedResponse; +} + +///Endpoint type for +///com.shinolabs.pinksea.getAuthorFeed +pub struct GetAuthorFeedRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetAuthorFeedRequest { + const PATH: &'static str = "/xrpc/com.shinolabs.pinksea.getAuthorFeed"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetAuthorFeed<'de>; + type Response = GetAuthorFeedResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_shinolabs/pinksea/get_author_replies.rs b/crates/jacquard-api/src/com_shinolabs/pinksea/get_author_replies.rs index d7430664..c1675eee 100644 --- a/crates/jacquard-api/src/com_shinolabs/pinksea/get_author_replies.rs +++ b/crates/jacquard-api/src/com_shinolabs/pinksea/get_author_replies.rs @@ -57,4 +57,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetAuthorReplies<'de> { const NSID: &'static str = "com.shinolabs.pinksea.getAuthorReplies"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetAuthorRepliesResponse; +} + +///Endpoint type for +///com.shinolabs.pinksea.getAuthorReplies +pub struct GetAuthorRepliesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetAuthorRepliesRequest { + const PATH: &'static str = "/xrpc/com.shinolabs.pinksea.getAuthorReplies"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetAuthorReplies<'de>; + type Response = GetAuthorRepliesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_shinolabs/pinksea/get_handle_from_did.rs b/crates/jacquard-api/src/com_shinolabs/pinksea/get_handle_from_did.rs index 9720f1ae..42590986 100644 --- a/crates/jacquard-api/src/com_shinolabs/pinksea/get_handle_from_did.rs +++ b/crates/jacquard-api/src/com_shinolabs/pinksea/get_handle_from_did.rs @@ -53,4 +53,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetHandleFromDid<'de> { const NSID: &'static str = "com.shinolabs.pinksea.getHandleFromDid"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetHandleFromDidResponse; +} + +///Endpoint type for +///com.shinolabs.pinksea.getHandleFromDid +pub struct GetHandleFromDidRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetHandleFromDidRequest { + const PATH: &'static str = "/xrpc/com.shinolabs.pinksea.getHandleFromDid"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetHandleFromDid<'de>; + type Response = GetHandleFromDidResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_shinolabs/pinksea/get_identity.rs b/crates/jacquard-api/src/com_shinolabs/pinksea/get_identity.rs index 1eb7b245..54f759fc 100644 --- a/crates/jacquard-api/src/com_shinolabs/pinksea/get_identity.rs +++ b/crates/jacquard-api/src/com_shinolabs/pinksea/get_identity.rs @@ -52,4 +52,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetIdentity { const NSID: &'static str = "com.shinolabs.pinksea.getIdentity"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetIdentityResponse; +} + +///Endpoint type for +///com.shinolabs.pinksea.getIdentity +pub struct GetIdentityRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetIdentityRequest { + const PATH: &'static str = "/xrpc/com.shinolabs.pinksea.getIdentity"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetIdentity; + type Response = GetIdentityResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_shinolabs/pinksea/get_oekaki.rs b/crates/jacquard-api/src/com_shinolabs/pinksea/get_oekaki.rs index 2e40addb..54a30dc6 100644 --- a/crates/jacquard-api/src/com_shinolabs/pinksea/get_oekaki.rs +++ b/crates/jacquard-api/src/com_shinolabs/pinksea/get_oekaki.rs @@ -80,4 +80,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetOekaki<'de> { const NSID: &'static str = "com.shinolabs.pinksea.getOekaki"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetOekakiResponse; +} + +///Endpoint type for +///com.shinolabs.pinksea.getOekaki +pub struct GetOekakiRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetOekakiRequest { + const PATH: &'static str = "/xrpc/com.shinolabs.pinksea.getOekaki"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetOekaki<'de>; + type Response = GetOekakiResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_shinolabs/pinksea/get_parent_for_reply.rs b/crates/jacquard-api/src/com_shinolabs/pinksea/get_parent_for_reply.rs index 38f7d17a..385af849 100644 --- a/crates/jacquard-api/src/com_shinolabs/pinksea/get_parent_for_reply.rs +++ b/crates/jacquard-api/src/com_shinolabs/pinksea/get_parent_for_reply.rs @@ -59,4 +59,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetParentForReply<'de> { const NSID: &'static str = "com.shinolabs.pinksea.getParentForReply"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetParentForReplyResponse; +} + +///Endpoint type for +///com.shinolabs.pinksea.getParentForReply +pub struct GetParentForReplyRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetParentForReplyRequest { + const PATH: &'static str = "/xrpc/com.shinolabs.pinksea.getParentForReply"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetParentForReply<'de>; + type Response = GetParentForReplyResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_shinolabs/pinksea/get_recent.rs b/crates/jacquard-api/src/com_shinolabs/pinksea/get_recent.rs index b1b75116..4da377f2 100644 --- a/crates/jacquard-api/src/com_shinolabs/pinksea/get_recent.rs +++ b/crates/jacquard-api/src/com_shinolabs/pinksea/get_recent.rs @@ -55,4 +55,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetRecent { const NSID: &'static str = "com.shinolabs.pinksea.getRecent"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetRecentResponse; +} + +///Endpoint type for +///com.shinolabs.pinksea.getRecent +pub struct GetRecentRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetRecentRequest { + const PATH: &'static str = "/xrpc/com.shinolabs.pinksea.getRecent"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetRecent; + type Response = GetRecentResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_shinolabs/pinksea/get_tag_feed.rs b/crates/jacquard-api/src/com_shinolabs/pinksea/get_tag_feed.rs index 3e662ca6..09c874d6 100644 --- a/crates/jacquard-api/src/com_shinolabs/pinksea/get_tag_feed.rs +++ b/crates/jacquard-api/src/com_shinolabs/pinksea/get_tag_feed.rs @@ -58,4 +58,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetTagFeed<'de> { const NSID: &'static str = "com.shinolabs.pinksea.getTagFeed"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetTagFeedResponse; +} + +///Endpoint type for +///com.shinolabs.pinksea.getTagFeed +pub struct GetTagFeedRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetTagFeedRequest { + const PATH: &'static str = "/xrpc/com.shinolabs.pinksea.getTagFeed"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetTagFeed<'de>; + type Response = GetTagFeedResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_whtwnd/blog/get_author_posts.rs b/crates/jacquard-api/src/com_whtwnd/blog/get_author_posts.rs index 6b633193..9e35c5d7 100644 --- a/crates/jacquard-api/src/com_whtwnd/blog/get_author_posts.rs +++ b/crates/jacquard-api/src/com_whtwnd/blog/get_author_posts.rs @@ -52,4 +52,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetAuthorPosts<'de> { const NSID: &'static str = "com.whtwnd.blog.getAuthorPosts"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetAuthorPostsResponse; +} + +///Endpoint type for +///com.whtwnd.blog.getAuthorPosts +pub struct GetAuthorPostsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetAuthorPostsRequest { + const PATH: &'static str = "/xrpc/com.whtwnd.blog.getAuthorPosts"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetAuthorPosts<'de>; + type Response = GetAuthorPostsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_whtwnd/blog/get_entry_metadata_by_name.rs b/crates/jacquard-api/src/com_whtwnd/blog/get_entry_metadata_by_name.rs index ed0edf99..e53d82f0 100644 --- a/crates/jacquard-api/src/com_whtwnd/blog/get_entry_metadata_by_name.rs +++ b/crates/jacquard-api/src/com_whtwnd/blog/get_entry_metadata_by_name.rs @@ -108,4 +108,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetEntryMetadataByName<'de const NSID: &'static str = "com.whtwnd.blog.getEntryMetadataByName"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetEntryMetadataByNameResponse; +} + +///Endpoint type for +///com.whtwnd.blog.getEntryMetadataByName +pub struct GetEntryMetadataByNameRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetEntryMetadataByNameRequest { + const PATH: &'static str = "/xrpc/com.whtwnd.blog.getEntryMetadataByName"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetEntryMetadataByName<'de>; + type Response = GetEntryMetadataByNameResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_whtwnd/blog/get_mentions_by_entry.rs b/crates/jacquard-api/src/com_whtwnd/blog/get_mentions_by_entry.rs index 063869c0..96e2cd69 100644 --- a/crates/jacquard-api/src/com_whtwnd/blog/get_mentions_by_entry.rs +++ b/crates/jacquard-api/src/com_whtwnd/blog/get_mentions_by_entry.rs @@ -52,4 +52,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetMentionsByEntry<'de> { const NSID: &'static str = "com.whtwnd.blog.getMentionsByEntry"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetMentionsByEntryResponse; +} + +///Endpoint type for +///com.whtwnd.blog.getMentionsByEntry +pub struct GetMentionsByEntryRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetMentionsByEntryRequest { + const PATH: &'static str = "/xrpc/com.whtwnd.blog.getMentionsByEntry"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetMentionsByEntry<'de>; + type Response = GetMentionsByEntryResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/com_whtwnd/blog/notify_of_new_entry.rs b/crates/jacquard-api/src/com_whtwnd/blog/notify_of_new_entry.rs index b2425c3c..dd69d1dc 100644 --- a/crates/jacquard-api/src/com_whtwnd/blog/notify_of_new_entry.rs +++ b/crates/jacquard-api/src/com_whtwnd/blog/notify_of_new_entry.rs @@ -91,4 +91,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for NotifyOfNewEntry<'de> { "application/json", ); type Response = NotifyOfNewEntryResponse; +} + +///Endpoint type for +///com.whtwnd.blog.notifyOfNewEntry +pub struct NotifyOfNewEntryRequest; +impl jacquard_common::xrpc::XrpcEndpoint for NotifyOfNewEntryRequest { + const PATH: &'static str = "/xrpc/com.whtwnd.blog.notifyOfNewEntry"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = NotifyOfNewEntry<'de>; + type Response = NotifyOfNewEntryResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/community_lexicon/bookmarks/get_actor_bookmarks.rs b/crates/jacquard-api/src/community_lexicon/bookmarks/get_actor_bookmarks.rs index 04cd9c55..accf934a 100644 --- a/crates/jacquard-api/src/community_lexicon/bookmarks/get_actor_bookmarks.rs +++ b/crates/jacquard-api/src/community_lexicon/bookmarks/get_actor_bookmarks.rs @@ -63,4 +63,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetActorBookmarks<'de> { const NSID: &'static str = "community.lexicon.bookmarks.getActorBookmarks"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetActorBookmarksResponse; +} + +///Endpoint type for +///community.lexicon.bookmarks.getActorBookmarks +pub struct GetActorBookmarksRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetActorBookmarksRequest { + const PATH: &'static str = "/xrpc/community.lexicon.bookmarks.getActorBookmarks"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetActorBookmarks<'de>; + type Response = GetActorBookmarksResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/dev_baileytownsend.rs b/crates/jacquard-api/src/dev_baileytownsend.rs new file mode 100644 index 00000000..3963dcbd --- /dev/null +++ b/crates/jacquard-api/src/dev_baileytownsend.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod health; \ No newline at end of file diff --git a/crates/jacquard-api/src/dev_baileytownsend/health.rs b/crates/jacquard-api/src/dev_baileytownsend/health.rs new file mode 100644 index 00000000..eb5cff9d --- /dev/null +++ b/crates/jacquard-api/src/dev_baileytownsend/health.rs @@ -0,0 +1,9 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod calories; +pub mod rings; +pub mod steps; +pub mod workout; \ No newline at end of file diff --git a/crates/jacquard-api/src/dev_baileytownsend/health/calories.rs b/crates/jacquard-api/src/dev_baileytownsend/health/calories.rs new file mode 100644 index 00000000..17e7c366 --- /dev/null +++ b/crates/jacquard-api/src/dev_baileytownsend/health/calories.rs @@ -0,0 +1,28 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: dev.baileytownsend.health.calories +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A record of daily intake and burned calories. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Calories<'a> { + pub burned: i64, + pub created_at: jacquard_common::types::string::Datetime, + pub intake: i64, +} + +impl jacquard_common::types::collection::Collection for Calories<'_> { + const NSID: &'static str = "dev.baileytownsend.health.calories"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/dev_baileytownsend/health/rings.rs b/crates/jacquard-api/src/dev_baileytownsend/health/rings.rs new file mode 100644 index 00000000..cb0a2736 --- /dev/null +++ b/crates/jacquard-api/src/dev_baileytownsend/health/rings.rs @@ -0,0 +1,38 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: dev.baileytownsend.health.rings +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A record of daily activity rings (Apple Fitness), including move, exercise, and stand goals. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Rings<'a> { + pub created_at: jacquard_common::types::string::Datetime, + ///The total minutes of exercise completed. + pub exercise: i64, + ///The daily exercise goal in minutes. + pub exercise_goal: i64, + ///The total active calories burned for the day. + pub r#move: i64, + ///The daily move goal in calories. + pub move_goal: i64, + ///The daily stand goal in hours. + pub stand_goal: i64, + ///The number of hours the user stood up and moved around. + pub stand_hours: i64, +} + +impl jacquard_common::types::collection::Collection for Rings<'_> { + const NSID: &'static str = "dev.baileytownsend.health.rings"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/dev_baileytownsend/health/steps.rs b/crates/jacquard-api/src/dev_baileytownsend/health/steps.rs new file mode 100644 index 00000000..1419885b --- /dev/null +++ b/crates/jacquard-api/src/dev_baileytownsend/health/steps.rs @@ -0,0 +1,26 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: dev.baileytownsend.health.steps +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Steps<'a> { + pub created_at: jacquard_common::types::string::Datetime, + pub steps: i64, +} + +impl jacquard_common::types::collection::Collection for Steps<'_> { + const NSID: &'static str = "dev.baileytownsend.health.steps"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/dev_baileytownsend/health/workout.rs b/crates/jacquard-api/src/dev_baileytownsend/health/workout.rs new file mode 100644 index 00000000..776eecb1 --- /dev/null +++ b/crates/jacquard-api/src/dev_baileytownsend/health/workout.rs @@ -0,0 +1,39 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: dev.baileytownsend.health.workout +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Workout<'a> { + ///Type of activity. Walking, running, weights, etc. + #[serde(borrow)] + pub activity: jacquard_common::CowStr<'a>, + ///Active calories burned during the workout. + pub calories_burned: i64, + pub created_at: jacquard_common::types::string::Datetime, + ///Distance covered during the workout (optional). + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub distance: std::option::Option>, + ///How long the workout lasted in minutes. + #[serde(borrow)] + pub duration: jacquard_common::CowStr<'a>, + pub end_time: jacquard_common::types::string::Datetime, + pub start_time: jacquard_common::types::string::Datetime, +} + +impl jacquard_common::types::collection::Collection for Workout<'_> { + const NSID: &'static str = "dev.baileytownsend.health.workout"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1.rs b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1.rs index 72d5ac7f..5ce5d0af 100644 --- a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1.rs +++ b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1.rs @@ -3,4 +3,5 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -pub mod feed; \ No newline at end of file +pub mod feed; +pub mod forum; \ No newline at end of file diff --git a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed.rs b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed.rs index 0a08f83f..9e449eec 100644 --- a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed.rs +++ b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed.rs @@ -3,4 +3,5 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. +pub mod post; pub mod reply; \ No newline at end of file diff --git a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed/post.rs b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed/post.rs new file mode 100644 index 00000000..72763492 --- /dev/null +++ b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed/post.rs @@ -0,0 +1,41 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: dev.fudgeu.experimental.atforumv1.feed.post +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///An initial post that starts a discussion +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Post<'a> { + #[serde(borrow)] + pub category: jacquard_common::types::string::AtUri<'a>, + #[serde(borrow)] + pub content: jacquard_common::CowStr<'a>, + pub created_at: jacquard_common::types::string::Datetime, + #[serde(borrow)] + pub forum: jacquard_common::types::ident::AtIdentifier<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub solution: std::option::Option>, + #[serde(borrow)] + pub tags: Vec>, + #[serde(borrow)] + pub title: jacquard_common::CowStr<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub updated_at: std::option::Option, +} + +impl jacquard_common::types::collection::Collection for Post<'_> { + const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.feed.post"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum.rs b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum.rs new file mode 100644 index 00000000..7129302c --- /dev/null +++ b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum.rs @@ -0,0 +1,9 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod announcement; +pub mod category; +pub mod group; +pub mod identity; \ No newline at end of file diff --git a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/announcement.rs b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/announcement.rs new file mode 100644 index 00000000..5138e620 --- /dev/null +++ b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/announcement.rs @@ -0,0 +1,31 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: dev.fudgeu.experimental.atforumv1.forum.announcement +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A forum-wide announcement +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Announcement<'a> { + #[serde(borrow)] + pub body: jacquard_common::CowStr<'a>, + pub created_at: jacquard_common::types::string::Datetime, + pub expires_at: jacquard_common::types::string::Datetime, + #[serde(borrow)] + pub title: jacquard_common::CowStr<'a>, +} + +impl jacquard_common::types::collection::Collection for Announcement<'_> { + const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.forum.announcement"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/category.rs b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/category.rs new file mode 100644 index 00000000..9893c1dd --- /dev/null +++ b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/category.rs @@ -0,0 +1,34 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: dev.fudgeu.experimental.atforumv1.forum.category +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A method of grouping posts into a single 'category' +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Category<'a> { + #[serde(borrow)] + pub category_type: jacquard_common::CowStr<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + #[serde(borrow)] + pub group: jacquard_common::types::string::AtUri<'a>, + #[serde(borrow)] + pub name: jacquard_common::CowStr<'a>, +} + +impl jacquard_common::types::collection::Collection for Category<'_> { + const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.forum.category"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/group.rs b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/group.rs new file mode 100644 index 00000000..b73906f6 --- /dev/null +++ b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/group.rs @@ -0,0 +1,30 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: dev.fudgeu.experimental.atforumv1.forum.group +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///Defines a group of categories +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Group<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + #[serde(borrow)] + pub name: jacquard_common::CowStr<'a>, +} + +impl jacquard_common::types::collection::Collection for Group<'_> { + const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.forum.group"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/identity.rs b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/identity.rs new file mode 100644 index 00000000..ae1d2441 --- /dev/null +++ b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/identity.rs @@ -0,0 +1,33 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: dev.fudgeu.experimental.atforumv1.forum.identity +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///Defines what the forum is - name, description, etc. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Identity<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub accent: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + #[serde(borrow)] + pub name: jacquard_common::CowStr<'a>, +} + +impl jacquard_common::types::collection::Collection for Identity<'_> { + const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.forum.identity"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/dev_ocbwoy3.rs b/crates/jacquard-api/src/dev_ocbwoy3.rs index bab15d8b..e5624c85 100644 --- a/crates/jacquard-api/src/dev_ocbwoy3.rs +++ b/crates/jacquard-api/src/dev_ocbwoy3.rs @@ -3,5 +3,4 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -pub mod blueboard; -pub mod dotsyncd; \ No newline at end of file +pub mod blueboard; \ No newline at end of file diff --git a/crates/jacquard-api/src/dev_regnault/webfishing.rs b/crates/jacquard-api/src/dev_regnault/webfishing.rs index 1fb994bc..490fc20e 100644 --- a/crates/jacquard-api/src/dev_regnault/webfishing.rs +++ b/crates/jacquard-api/src/dev_regnault/webfishing.rs @@ -3,5 +3,4 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -pub mod save; pub mod savefile; \ No newline at end of file diff --git a/crates/jacquard-api/src/events_smokesignal/automation/invoke_webhook.rs b/crates/jacquard-api/src/events_smokesignal/automation/invoke_webhook.rs index a455f5a3..41b44d99 100644 --- a/crates/jacquard-api/src/events_smokesignal/automation/invoke_webhook.rs +++ b/crates/jacquard-api/src/events_smokesignal/automation/invoke_webhook.rs @@ -63,4 +63,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for InvokeWebhook<'de> { "application/json", ); type Response = InvokeWebhookResponse; +} + +///Endpoint type for +///events.smokesignal.automation.InvokeWebhook +pub struct InvokeWebhookRequest; +impl jacquard_common::xrpc::XrpcEndpoint for InvokeWebhookRequest { + const PATH: &'static str = "/xrpc/events.smokesignal.automation.InvokeWebhook"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = InvokeWebhook<'de>; + type Response = InvokeWebhookResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/garden_lexicon.rs b/crates/jacquard-api/src/garden_lexicon.rs new file mode 100644 index 00000000..9f9a3ae0 --- /dev/null +++ b/crates/jacquard-api/src/garden_lexicon.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod ngerakines; \ No newline at end of file diff --git a/crates/jacquard-api/src/garden_lexicon/ngerakines.rs b/crates/jacquard-api/src/garden_lexicon/ngerakines.rs new file mode 100644 index 00000000..6098fca6 --- /dev/null +++ b/crates/jacquard-api/src/garden_lexicon/ngerakines.rs @@ -0,0 +1,7 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod helloworld; +pub mod semeion; \ No newline at end of file diff --git a/crates/jacquard-api/src/garden_lexicon/ngerakines/helloworld.rs b/crates/jacquard-api/src/garden_lexicon/ngerakines/helloworld.rs new file mode 100644 index 00000000..02092a52 --- /dev/null +++ b/crates/jacquard-api/src/garden_lexicon/ngerakines/helloworld.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod hello; \ No newline at end of file diff --git a/crates/jacquard-api/src/garden_lexicon/ngerakines/helloworld/hello.rs b/crates/jacquard-api/src/garden_lexicon/ngerakines/helloworld/hello.rs new file mode 100644 index 00000000..0efb536f --- /dev/null +++ b/crates/jacquard-api/src/garden_lexicon/ngerakines/helloworld/hello.rs @@ -0,0 +1,68 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: garden.lexicon.ngerakines.helloworld.Hello +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct Hello<'a> { + ///(max length: 55) + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub subject: std::option::Option>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct HelloOutput<'a> { + #[serde(borrow)] + pub message: jacquard_common::CowStr<'a>, +} + +///Response type for +///garden.lexicon.ngerakines.helloworld.Hello +pub struct HelloResponse; +impl jacquard_common::xrpc::XrpcResp for HelloResponse { + const NSID: &'static str = "garden.lexicon.ngerakines.helloworld.Hello"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = HelloOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Hello<'de> { + const NSID: &'static str = "garden.lexicon.ngerakines.helloworld.Hello"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = HelloResponse; +} + +///Endpoint type for +///garden.lexicon.ngerakines.helloworld.Hello +pub struct HelloRequest; +impl jacquard_common::xrpc::XrpcEndpoint for HelloRequest { + const PATH: &'static str = "/xrpc/garden.lexicon.ngerakines.helloworld.Hello"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = Hello<'de>; + type Response = HelloResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/garden_lexicon/ngerakines/semeion.rs b/crates/jacquard-api/src/garden_lexicon/ngerakines/semeion.rs new file mode 100644 index 00000000..929ca136 --- /dev/null +++ b/crates/jacquard-api/src/garden_lexicon/ngerakines/semeion.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod sign; \ No newline at end of file diff --git a/crates/jacquard-api/src/garden_lexicon/ngerakines/semeion/sign.rs b/crates/jacquard-api/src/garden_lexicon/ngerakines/semeion/sign.rs new file mode 100644 index 00000000..02616e3d --- /dev/null +++ b/crates/jacquard-api/src/garden_lexicon/ngerakines/semeion/sign.rs @@ -0,0 +1,76 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: garden.lexicon.ngerakines.semeion.Sign +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct Sign { + pub body: bytes::Bytes, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct SignOutput<'a> {} +///Response type for +///garden.lexicon.ngerakines.semeion.Sign +pub struct SignResponse; +impl jacquard_common::xrpc::XrpcResp for SignResponse { + const NSID: &'static str = "garden.lexicon.ngerakines.semeion.Sign"; + const ENCODING: &'static str = "application/octet-stream"; + type Output<'de> = SignOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Sign { + const NSID: &'static str = "garden.lexicon.ngerakines.semeion.Sign"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "*/*", + ); + type Response = SignResponse; + fn encode_body(&self) -> Result, jacquard_common::xrpc::EncodeError> { + Ok(self.body.to_vec()) + } + fn decode_body( + body: &'de [u8], + ) -> Result, jacquard_common::error::DecodeError> { + Ok( + Box::new(Self { + body: bytes::Bytes::copy_from_slice(body), + }), + ) + } +} + +///Endpoint type for +///garden.lexicon.ngerakines.semeion.Sign +pub struct SignRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SignRequest { + const PATH: &'static str = "/xrpc/garden.lexicon.ngerakines.semeion.Sign"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "*/*", + ); + type Request<'de> = Sign; + type Response = SignResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/lib.rs b/crates/jacquard-api/src/lib.rs index c0f09ca4..8c105feb 100644 --- a/crates/jacquard-api/src/lib.rs +++ b/crates/jacquard-api/src/lib.rs @@ -3,18 +3,30 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. +#[cfg(feature = "app_blebbit")] +pub mod app_blebbit; + #[cfg(feature = "app_bsky")] pub mod app_bsky; +#[cfg(feature = "app_ocho")] +pub mod app_ocho; + +#[cfg(feature = "beauty_cybernetic")] +pub mod beauty_cybernetic; + #[cfg(feature = "blog_pckt")] pub mod blog_pckt; +#[cfg(feature = "blue__2048")] +pub mod blue__2048; + +#[cfg(feature = "blue_atplane")] +pub mod blue_atplane; + #[cfg(feature = "blue_linkat")] pub mod blue_linkat; -#[cfg(feature = "blue_rito")] -pub mod blue_rito; - #[cfg(feature = "blue_zio")] pub mod blue_zio; @@ -24,24 +36,30 @@ pub mod buzz_bookhive; #[cfg(feature = "chat_bsky")] pub mod chat_bsky; +#[cfg(feature = "club_stellz")] +pub mod club_stellz; + #[cfg(feature = "com_atproto")] pub mod com_atproto; #[cfg(feature = "com_bad_example")] pub mod com_bad_example; +#[cfg(feature = "com_crabdance")] +pub mod com_crabdance; + #[cfg(feature = "com_shinolabs")] pub mod com_shinolabs; -#[cfg(feature = "com_welistskyblue")] -pub mod com_welistskyblue; - #[cfg(feature = "com_whtwnd")] pub mod com_whtwnd; #[cfg(feature = "community_lexicon")] pub mod community_lexicon; +#[cfg(feature = "dev_baileytownsend")] +pub mod dev_baileytownsend; + #[cfg(feature = "dev_fudgeu")] pub mod dev_fudgeu; @@ -51,26 +69,11 @@ pub mod dev_ocbwoy3; #[cfg(feature = "dev_regnault")] pub mod dev_regnault; -#[cfg(feature = "did_plc_jh6yfs5dk47kykvhp7r6qwrb")] -pub mod did_plc_jh6yfs5dk47kykvhp7r6qwrb; - -#[cfg(feature = "events_smokesignal")] -pub mod events_smokesignal; - #[cfg(feature = "fyi_unravel")] pub mod fyi_unravel; -#[cfg(feature = "how_bun")] -pub mod how_bun; - -#[cfg(feature = "inc_toronto")] -pub mod inc_toronto; - -#[cfg(feature = "lol_atmo")] -pub mod lol_atmo; - -#[cfg(feature = "lol_skittr")] -pub mod lol_skittr; +#[cfg(feature = "garden_lexicon")] +pub mod garden_lexicon; #[cfg(feature = "moe_karashiiro")] pub mod moe_karashiiro; @@ -78,15 +81,27 @@ pub mod moe_karashiiro; #[cfg(feature = "my_skylights")] pub mod my_skylights; +#[cfg(feature = "net_aftertheinter")] +pub mod net_aftertheinter; + #[cfg(feature = "net_anisota")] pub mod net_anisota; #[cfg(feature = "net_bnewbold")] pub mod net_bnewbold; +#[cfg(feature = "net_mmatt")] +pub mod net_mmatt; + #[cfg(feature = "network_slices")] pub mod network_slices; +#[cfg(feature = "org_devcon")] +pub mod org_devcon; + +#[cfg(feature = "org_robocracy")] +pub mod org_robocracy; + #[cfg(feature = "place_atwork")] pub mod place_atwork; @@ -102,6 +117,15 @@ pub mod sh_tangled; #[cfg(feature = "sh_weaver")] pub mod sh_weaver; +#[cfg(feature = "social_clippr")] +pub mod social_clippr; + +#[cfg(feature = "social_grain")] +pub mod social_grain; + +#[cfg(feature = "social_pmsky")] +pub mod social_pmsky; + #[cfg(feature = "social_psky")] pub mod social_psky; @@ -114,8 +138,11 @@ pub mod tools_smokesignal; #[cfg(feature = "uk_ewancroft")] pub mod uk_ewancroft; +#[cfg(feature = "uk_skyblur")] +pub mod uk_skyblur; + +#[cfg(feature = "us_polhem")] +pub mod us_polhem; + #[cfg(feature = "win_tomo_x")] pub mod win_tomo_x; - -#[cfg(feature = "xyz_autonomylab")] -pub mod xyz_autonomylab; \ No newline at end of file diff --git a/crates/jacquard-api/src/lol_skittr/actor/get_theme.rs b/crates/jacquard-api/src/lol_skittr/actor/get_theme.rs index 49252bb4..83dfb578 100644 --- a/crates/jacquard-api/src/lol_skittr/actor/get_theme.rs +++ b/crates/jacquard-api/src/lol_skittr/actor/get_theme.rs @@ -53,4 +53,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetTheme<'de> { const NSID: &'static str = "lol.skittr.actor.getTheme"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetThemeResponse; +} + +///Endpoint type for +///lol.skittr.actor.getTheme +pub struct GetThemeRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetThemeRequest { + const PATH: &'static str = "/xrpc/lol.skittr.actor.getTheme"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetTheme<'de>; + type Response = GetThemeResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/lol_skittr/server/get_meta.rs b/crates/jacquard-api/src/lol_skittr/server/get_meta.rs index d912af55..13411256 100644 --- a/crates/jacquard-api/src/lol_skittr/server/get_meta.rs +++ b/crates/jacquard-api/src/lol_skittr/server/get_meta.rs @@ -29,7 +29,16 @@ pub struct GetMetaOutput<'a> { } /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct GetMeta; ///Response type for ///lol.skittr.server.getMeta @@ -45,4 +54,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetMeta { const NSID: &'static str = "lol.skittr.server.getMeta"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetMetaResponse; +} + +///Endpoint type for +///lol.skittr.server.getMeta +pub struct GetMetaRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetMetaRequest { + const PATH: &'static str = "/xrpc/lol.skittr.server.getMeta"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetMeta; + type Response = GetMetaResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/net_aftertheinter.rs b/crates/jacquard-api/src/net_aftertheinter.rs new file mode 100644 index 00000000..1a413b64 --- /dev/null +++ b/crates/jacquard-api/src/net_aftertheinter.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod coolthingtwo; \ No newline at end of file diff --git a/crates/jacquard-api/src/did_plc_jh6yfs5dk47kykvhp7r6qwrb.rs b/crates/jacquard-api/src/net_aftertheinter/coolthingtwo.rs similarity index 61% rename from crates/jacquard-api/src/did_plc_jh6yfs5dk47kykvhp7r6qwrb.rs rename to crates/jacquard-api/src/net_aftertheinter/coolthingtwo.rs index 7f5cf9c0..de183de4 100644 --- a/crates/jacquard-api/src/did_plc_jh6yfs5dk47kykvhp7r6qwrb.rs +++ b/crates/jacquard-api/src/net_aftertheinter/coolthingtwo.rs @@ -1,6 +1,6 @@ // @generated by jacquard-lexicon. DO NOT EDIT. // -// Lexicon: did:plc:jh6yfs5dk47kykvhp7r6qwrb +// Lexicon: net.aftertheinter.coolthingtwo // // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. @@ -16,13 +16,12 @@ jacquard_derive::IntoStatic )] #[serde(rename_all = "camelCase")] -pub struct DidPlcJh6yfs5dk47kykvhp7r6qwrb<'a> { +pub struct Coolthingtwo<'a> { pub created_at: jacquard_common::types::string::Datetime, #[serde(borrow)] - pub text: jacquard_common::CowStr<'a>, + pub status: jacquard_common::CowStr<'a>, } -impl jacquard_common::types::collection::Collection -for DidPlcJh6yfs5dk47kykvhp7r6qwrb<'_> { - const NSID: &'static str = "did:plc:jh6yfs5dk47kykvhp7r6qwrb"; +impl jacquard_common::types::collection::Collection for Coolthingtwo<'_> { + const NSID: &'static str = "net.aftertheinter.coolthingtwo"; } \ No newline at end of file diff --git a/crates/jacquard-api/src/net_bnewbold.rs b/crates/jacquard-api/src/net_bnewbold.rs index 9c6258d2..fafe9d7d 100644 --- a/crates/jacquard-api/src/net_bnewbold.rs +++ b/crates/jacquard-api/src/net_bnewbold.rs @@ -3,4 +3,5 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -pub mod demo; \ No newline at end of file +pub mod demo; +pub mod m; \ No newline at end of file diff --git a/crates/jacquard-api/src/net_bnewbold/demo.rs b/crates/jacquard-api/src/net_bnewbold/demo.rs index 50f1fd75..5f640ce3 100644 --- a/crates/jacquard-api/src/net_bnewbold/demo.rs +++ b/crates/jacquard-api/src/net_bnewbold/demo.rs @@ -4,4 +4,4 @@ // Any manual changes will be overwritten on the next regeneration. pub mod mushies; -pub mod nested; \ No newline at end of file +pub mod mushroom; \ No newline at end of file diff --git a/crates/jacquard-api/src/net_bnewbold/demo/mushroom.rs b/crates/jacquard-api/src/net_bnewbold/demo/mushroom.rs new file mode 100644 index 00000000..d2478baa --- /dev/null +++ b/crates/jacquard-api/src/net_bnewbold/demo/mushroom.rs @@ -0,0 +1,32 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: net.bnewbold.demo.mushroom +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///it's a kind of fungus +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Mushroom<'a> { + #[serde(borrow)] + pub common_name: jacquard_common::CowStr<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub edible: std::option::Option, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub species: std::option::Option>, +} + +impl jacquard_common::types::collection::Collection for Mushroom<'_> { + const NSID: &'static str = "net.bnewbold.demo.mushroom"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/net_bnewbold/m.rs b/crates/jacquard-api/src/net_bnewbold/m.rs new file mode 100644 index 00000000..4a4731ef --- /dev/null +++ b/crates/jacquard-api/src/net_bnewbold/m.rs @@ -0,0 +1,32 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: net.bnewbold.m +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///it's a kind of fungus +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct M<'a> { + #[serde(borrow)] + pub common_name: jacquard_common::CowStr<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub edible: std::option::Option, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub species: std::option::Option>, +} + +impl jacquard_common::types::collection::Collection for M<'_> { + const NSID: &'static str = "net.bnewbold.m"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/net_mmatt.rs b/crates/jacquard-api/src/net_mmatt.rs new file mode 100644 index 00000000..19155af2 --- /dev/null +++ b/crates/jacquard-api/src/net_mmatt.rs @@ -0,0 +1,7 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod right; +pub mod vitals; \ No newline at end of file diff --git a/crates/jacquard-api/src/net_mmatt/right.rs b/crates/jacquard-api/src/net_mmatt/right.rs new file mode 100644 index 00000000..351b1f7d --- /dev/null +++ b/crates/jacquard-api/src/net_mmatt/right.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod now; \ No newline at end of file diff --git a/crates/jacquard-api/src/net_mmatt/right/now.rs b/crates/jacquard-api/src/net_mmatt/right/now.rs new file mode 100644 index 00000000..e9128b75 --- /dev/null +++ b/crates/jacquard-api/src/net_mmatt/right/now.rs @@ -0,0 +1,34 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: net.mmatt.right.now +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A personal lexicon for mmatt's statuslog. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Now<'a> { + ///The unix timestamp of when the status was recorded + pub created_at: jacquard_common::types::string::Datetime, + ///The emoji of the status update + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub emoji: std::option::Option>, + ///The text of the status update + #[serde(borrow)] + pub text: jacquard_common::CowStr<'a>, +} + +impl jacquard_common::types::collection::Collection for Now<'_> { + const NSID: &'static str = "net.mmatt.right.now"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/net_mmatt/vitals.rs b/crates/jacquard-api/src/net_mmatt/vitals.rs new file mode 100644 index 00000000..58e8d14f --- /dev/null +++ b/crates/jacquard-api/src/net_mmatt/vitals.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod car; \ No newline at end of file diff --git a/crates/jacquard-api/src/net_mmatt/vitals/car.rs b/crates/jacquard-api/src/net_mmatt/vitals/car.rs new file mode 100644 index 00000000..6e38900e --- /dev/null +++ b/crates/jacquard-api/src/net_mmatt/vitals/car.rs @@ -0,0 +1,47 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: net.mmatt.vitals.car +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Car<'a> { + ///The car fuel amount remaining value (floating point string) + #[serde(borrow)] + pub amount_remaining: jacquard_common::CowStr<'a>, + ///The car fuel range value in miles + pub car_fuel_range: i64, + ///The car make value + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub car_make: std::option::Option>, + ///The car model value + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub car_model: std::option::Option>, + ///The car fuel level value in percentage (floating point string) + #[serde(borrow)] + pub car_percent_fuel_remaining: jacquard_common::CowStr<'a>, + ///The car traveled distance value + pub car_traveled_distance: i64, + ///The car year value + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub car_year: std::option::Option, + ///The unix timestamp of when the vital was recorded + pub created_at: jacquard_common::types::string::Datetime, +} + +impl jacquard_common::types::collection::Collection for Car<'_> { + const NSID: &'static str = "net.mmatt.vitals.car"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/network_slices/slice/clear_slice_records.rs b/crates/jacquard-api/src/network_slices/slice/clear_slice_records.rs index 3812f617..44f39dfd 100644 --- a/crates/jacquard-api/src/network_slices/slice/clear_slice_records.rs +++ b/crates/jacquard-api/src/network_slices/slice/clear_slice_records.rs @@ -65,4 +65,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ClearSliceRecords<'de> { "application/json", ); type Response = ClearSliceRecordsResponse; +} + +///Endpoint type for +///network.slices.slice.clearSliceRecords +pub struct ClearSliceRecordsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ClearSliceRecordsRequest { + const PATH: &'static str = "/xrpc/network.slices.slice.clearSliceRecords"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = ClearSliceRecords<'de>; + type Response = ClearSliceRecordsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/network_slices/slice/create_o_auth_client.rs b/crates/jacquard-api/src/network_slices/slice/create_o_auth_client.rs index 7024148a..64b2c614 100644 --- a/crates/jacquard-api/src/network_slices/slice/create_o_auth_client.rs +++ b/crates/jacquard-api/src/network_slices/slice/create_o_auth_client.rs @@ -101,4 +101,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CreateOAuthClient<'de> { "application/json", ); type Response = CreateOAuthClientResponse; +} + +///Endpoint type for +///network.slices.slice.createOAuthClient +pub struct CreateOAuthClientRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CreateOAuthClientRequest { + const PATH: &'static str = "/xrpc/network.slices.slice.createOAuthClient"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = CreateOAuthClient<'de>; + type Response = CreateOAuthClientResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/network_slices/slice/delete_o_auth_client.rs b/crates/jacquard-api/src/network_slices/slice/delete_o_auth_client.rs index 928ed46f..53489e4f 100644 --- a/crates/jacquard-api/src/network_slices/slice/delete_o_auth_client.rs +++ b/crates/jacquard-api/src/network_slices/slice/delete_o_auth_client.rs @@ -65,4 +65,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeleteOAuthClient<'de> { "application/json", ); type Response = DeleteOAuthClientResponse; +} + +///Endpoint type for +///network.slices.slice.deleteOAuthClient +pub struct DeleteOAuthClientRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeleteOAuthClientRequest { + const PATH: &'static str = "/xrpc/network.slices.slice.deleteOAuthClient"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeleteOAuthClient<'de>; + type Response = DeleteOAuthClientResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/network_slices/slice/get_actors.rs b/crates/jacquard-api/src/network_slices/slice/get_actors.rs index 9aa3232c..140a157d 100644 --- a/crates/jacquard-api/src/network_slices/slice/get_actors.rs +++ b/crates/jacquard-api/src/network_slices/slice/get_actors.rs @@ -106,4 +106,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetActors<'de> { "application/json", ); type Response = GetActorsResponse; +} + +///Endpoint type for +///network.slices.slice.getActors +pub struct GetActorsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetActorsRequest { + const PATH: &'static str = "/xrpc/network.slices.slice.getActors"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = GetActors<'de>; + type Response = GetActorsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/network_slices/slice/get_jetstream_logs.rs b/crates/jacquard-api/src/network_slices/slice/get_jetstream_logs.rs index a798a1f5..29f62383 100644 --- a/crates/jacquard-api/src/network_slices/slice/get_jetstream_logs.rs +++ b/crates/jacquard-api/src/network_slices/slice/get_jetstream_logs.rs @@ -57,4 +57,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetJetstreamLogs<'de> { const NSID: &'static str = "network.slices.slice.getJetstreamLogs"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetJetstreamLogsResponse; +} + +///Endpoint type for +///network.slices.slice.getJetstreamLogs +pub struct GetJetstreamLogsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetJetstreamLogsRequest { + const PATH: &'static str = "/xrpc/network.slices.slice.getJetstreamLogs"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetJetstreamLogs<'de>; + type Response = GetJetstreamLogsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/network_slices/slice/get_jetstream_status.rs b/crates/jacquard-api/src/network_slices/slice/get_jetstream_status.rs index ba2671ca..9a82c116 100644 --- a/crates/jacquard-api/src/network_slices/slice/get_jetstream_status.rs +++ b/crates/jacquard-api/src/network_slices/slice/get_jetstream_status.rs @@ -48,4 +48,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetJetstreamStatus { const NSID: &'static str = "network.slices.slice.getJetstreamStatus"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetJetstreamStatusResponse; +} + +///Endpoint type for +///network.slices.slice.getJetstreamStatus +pub struct GetJetstreamStatusRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetJetstreamStatusRequest { + const PATH: &'static str = "/xrpc/network.slices.slice.getJetstreamStatus"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetJetstreamStatus; + type Response = GetJetstreamStatusResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/network_slices/slice/get_job_logs.rs b/crates/jacquard-api/src/network_slices/slice/get_job_logs.rs index 8ce6bb4e..cdde68c0 100644 --- a/crates/jacquard-api/src/network_slices/slice/get_job_logs.rs +++ b/crates/jacquard-api/src/network_slices/slice/get_job_logs.rs @@ -99,4 +99,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetJobLogs<'de> { const NSID: &'static str = "network.slices.slice.getJobLogs"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetJobLogsResponse; +} + +///Endpoint type for +///network.slices.slice.getJobLogs +pub struct GetJobLogsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetJobLogsRequest { + const PATH: &'static str = "/xrpc/network.slices.slice.getJobLogs"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetJobLogs<'de>; + type Response = GetJobLogsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/network_slices/slice/get_job_status.rs b/crates/jacquard-api/src/network_slices/slice/get_job_status.rs index fc9b8333..1125ff14 100644 --- a/crates/jacquard-api/src/network_slices/slice/get_job_status.rs +++ b/crates/jacquard-api/src/network_slices/slice/get_job_status.rs @@ -96,6 +96,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetJobStatus<'de> { type Response = GetJobStatusResponse; } +///Endpoint type for +///network.slices.slice.getJobStatus +pub struct GetJobStatusRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetJobStatusRequest { + const PATH: &'static str = "/xrpc/network.slices.slice.getJobStatus"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetJobStatus<'de>; + type Response = GetJobStatusResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/network_slices/slice/get_o_auth_clients.rs b/crates/jacquard-api/src/network_slices/slice/get_o_auth_clients.rs index 5eb3842b..f77dba45 100644 --- a/crates/jacquard-api/src/network_slices/slice/get_o_auth_clients.rs +++ b/crates/jacquard-api/src/network_slices/slice/get_o_auth_clients.rs @@ -55,6 +55,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetOAuthClients<'de> { type Response = GetOAuthClientsResponse; } +///Endpoint type for +///network.slices.slice.getOAuthClients +pub struct GetOAuthClientsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetOAuthClientsRequest { + const PATH: &'static str = "/xrpc/network.slices.slice.getOAuthClients"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetOAuthClients<'de>; + type Response = GetOAuthClientsResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/network_slices/slice/get_slice_records.rs b/crates/jacquard-api/src/network_slices/slice/get_slice_records.rs index 4eccd953..f79ffaeb 100644 --- a/crates/jacquard-api/src/network_slices/slice/get_slice_records.rs +++ b/crates/jacquard-api/src/network_slices/slice/get_slice_records.rs @@ -115,4 +115,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetSliceRecords<'de> { "application/json", ); type Response = GetSliceRecordsResponse; +} + +///Endpoint type for +///network.slices.slice.getSliceRecords +pub struct GetSliceRecordsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetSliceRecordsRequest { + const PATH: &'static str = "/xrpc/network.slices.slice.getSliceRecords"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = GetSliceRecords<'de>; + type Response = GetSliceRecordsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/network_slices/slice/get_sparklines.rs b/crates/jacquard-api/src/network_slices/slice/get_sparklines.rs index c4b4c366..e0f7f338 100644 --- a/crates/jacquard-api/src/network_slices/slice/get_sparklines.rs +++ b/crates/jacquard-api/src/network_slices/slice/get_sparklines.rs @@ -76,6 +76,18 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetSparklines<'de> { type Response = GetSparklinesResponse; } +///Endpoint type for +///network.slices.slice.getSparklines +pub struct GetSparklinesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetSparklinesRequest { + const PATH: &'static str = "/xrpc/network.slices.slice.getSparklines"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = GetSparklines<'de>; + type Response = GetSparklinesResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/network_slices/slice/get_sync_summary.rs b/crates/jacquard-api/src/network_slices/slice/get_sync_summary.rs index 347f155c..d2047cdb 100644 --- a/crates/jacquard-api/src/network_slices/slice/get_sync_summary.rs +++ b/crates/jacquard-api/src/network_slices/slice/get_sync_summary.rs @@ -88,4 +88,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetSyncSummary<'de> { const NSID: &'static str = "network.slices.slice.getSyncSummary"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetSyncSummaryResponse; +} + +///Endpoint type for +///network.slices.slice.getSyncSummary +pub struct GetSyncSummaryRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetSyncSummaryRequest { + const PATH: &'static str = "/xrpc/network.slices.slice.getSyncSummary"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetSyncSummary<'de>; + type Response = GetSyncSummaryResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/network_slices/slice/start_sync.rs b/crates/jacquard-api/src/network_slices/slice/start_sync.rs index b1000107..da465ab0 100644 --- a/crates/jacquard-api/src/network_slices/slice/start_sync.rs +++ b/crates/jacquard-api/src/network_slices/slice/start_sync.rs @@ -88,4 +88,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for StartSync<'de> { "application/json", ); type Response = StartSyncResponse; +} + +///Endpoint type for +///network.slices.slice.startSync +pub struct StartSyncRequest; +impl jacquard_common::xrpc::XrpcEndpoint for StartSyncRequest { + const PATH: &'static str = "/xrpc/network.slices.slice.startSync"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = StartSync<'de>; + type Response = StartSyncResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/network_slices/slice/stats.rs b/crates/jacquard-api/src/network_slices/slice/stats.rs index 79b949ac..935a029e 100644 --- a/crates/jacquard-api/src/network_slices/slice/stats.rs +++ b/crates/jacquard-api/src/network_slices/slice/stats.rs @@ -84,4 +84,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Stats<'de> { const NSID: &'static str = "network.slices.slice.stats"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = StatsResponse; +} + +///Endpoint type for +///network.slices.slice.stats +pub struct StatsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for StatsRequest { + const PATH: &'static str = "/xrpc/network.slices.slice.stats"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = Stats<'de>; + type Response = StatsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/network_slices/slice/sync_user_collections.rs b/crates/jacquard-api/src/network_slices/slice/sync_user_collections.rs index 0194147f..02766430 100644 --- a/crates/jacquard-api/src/network_slices/slice/sync_user_collections.rs +++ b/crates/jacquard-api/src/network_slices/slice/sync_user_collections.rs @@ -71,4 +71,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SyncUserCollections<'de> { "application/json", ); type Response = SyncUserCollectionsResponse; +} + +///Endpoint type for +///network.slices.slice.syncUserCollections +pub struct SyncUserCollectionsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SyncUserCollectionsRequest { + const PATH: &'static str = "/xrpc/network.slices.slice.syncUserCollections"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = SyncUserCollections<'de>; + type Response = SyncUserCollectionsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/network_slices/slice/update_o_auth_client.rs b/crates/jacquard-api/src/network_slices/slice/update_o_auth_client.rs index 3c8d0faa..765507c5 100644 --- a/crates/jacquard-api/src/network_slices/slice/update_o_auth_client.rs +++ b/crates/jacquard-api/src/network_slices/slice/update_o_auth_client.rs @@ -95,4 +95,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateOAuthClient<'de> { "application/json", ); type Response = UpdateOAuthClientResponse; +} + +///Endpoint type for +///network.slices.slice.updateOAuthClient +pub struct UpdateOAuthClientRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateOAuthClientRequest { + const PATH: &'static str = "/xrpc/network.slices.slice.updateOAuthClient"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateOAuthClient<'de>; + type Response = UpdateOAuthClientResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/org_devcon.rs b/crates/jacquard-api/src/org_devcon.rs new file mode 100644 index 00000000..16dfce64 --- /dev/null +++ b/crates/jacquard-api/src/org_devcon.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod event; \ No newline at end of file diff --git a/crates/jacquard-api/src/org_devcon/event.rs b/crates/jacquard-api/src/org_devcon/event.rs new file mode 100644 index 00000000..c7b0a859 --- /dev/null +++ b/crates/jacquard-api/src/org_devcon/event.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod test; \ No newline at end of file diff --git a/crates/jacquard-api/src/org_devcon/event/test.rs b/crates/jacquard-api/src/org_devcon/event/test.rs new file mode 100644 index 00000000..2dc9d3ff --- /dev/null +++ b/crates/jacquard-api/src/org_devcon/event/test.rs @@ -0,0 +1,45 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: org.devcon.event.test +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Test<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub created_at: std::option::Option, + ///Description of the event + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + ///End time of the event + pub end: jacquard_common::types::string::Datetime, + ///Location of the event + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub location: std::option::Option>, + ///Start time of the event + pub start: jacquard_common::types::string::Datetime, + ///Title of the event + #[serde(borrow)] + pub title: jacquard_common::CowStr<'a>, + ///URL of the event + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub url: std::option::Option>, +} + +impl jacquard_common::types::collection::Collection for Test<'_> { + const NSID: &'static str = "org.devcon.event.test"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/org_robocracy.rs b/crates/jacquard-api/src/org_robocracy.rs new file mode 100644 index 00000000..9c6258d2 --- /dev/null +++ b/crates/jacquard-api/src/org_robocracy.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod demo; \ No newline at end of file diff --git a/crates/jacquard-api/src/org_robocracy/demo.rs b/crates/jacquard-api/src/org_robocracy/demo.rs new file mode 100644 index 00000000..9a9cb2be --- /dev/null +++ b/crates/jacquard-api/src/org_robocracy/demo.rs @@ -0,0 +1,7 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod fungus; +pub mod mushies; \ No newline at end of file diff --git a/crates/jacquard-api/src/org_robocracy/demo/fungus.rs b/crates/jacquard-api/src/org_robocracy/demo/fungus.rs new file mode 100644 index 00000000..c3cb89fc --- /dev/null +++ b/crates/jacquard-api/src/org_robocracy/demo/fungus.rs @@ -0,0 +1,32 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: org.robocracy.demo.fungus +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///it's a kind of fungus! +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Fungus<'a> { + #[serde(borrow)] + pub common_name: jacquard_common::CowStr<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub edible: std::option::Option, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub species: std::option::Option>, +} + +impl jacquard_common::types::collection::Collection for Fungus<'_> { + const NSID: &'static str = "org.robocracy.demo.fungus"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/org_robocracy/demo/mushies.rs b/crates/jacquard-api/src/org_robocracy/demo/mushies.rs new file mode 100644 index 00000000..f8fd025a --- /dev/null +++ b/crates/jacquard-api/src/org_robocracy/demo/mushies.rs @@ -0,0 +1,32 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: org.robocracy.demo.mushies +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///it's a kind of fungus! +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Mushies<'a> { + #[serde(borrow)] + pub common_name: jacquard_common::CowStr<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub edible: std::option::Option, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub species: std::option::Option>, +} + +impl jacquard_common::types::collection::Collection for Mushies<'_> { + const NSID: &'static str = "org.robocracy.demo.mushies"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/place_atwork.rs b/crates/jacquard-api/src/place_atwork.rs index 0cd02243..39a73497 100644 --- a/crates/jacquard-api/src/place_atwork.rs +++ b/crates/jacquard-api/src/place_atwork.rs @@ -3,6 +3,8 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. +pub mod endorsement; +pub mod endorsement_proof; pub mod get_listing; pub mod get_listings; pub mod listing; diff --git a/crates/jacquard-api/src/place_atwork/endorsement.rs b/crates/jacquard-api/src/place_atwork/endorsement.rs new file mode 100644 index 00000000..5cfd1d9c --- /dev/null +++ b/crates/jacquard-api/src/place_atwork/endorsement.rs @@ -0,0 +1,40 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: place.atwork.endorsement +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A cryptographically-verified professional endorsement between two identities. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Endorsement<'a> { + ///Timestamp when the endorsement was created. + pub created_at: jacquard_common::types::string::Datetime, + ///The DID of the identity giving the endorsement. + #[serde(borrow)] + pub giver: jacquard_common::types::string::Did<'a>, + ///The DID of the identity receiving the endorsement. + #[serde(borrow)] + pub receiver: jacquard_common::types::string::Did<'a>, + ///Verified signatures from endorsement proofs (strong references). + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub signatures: std::option::Option>>, + ///The endorsement text content. + #[serde(borrow)] + pub text: jacquard_common::CowStr<'a>, +} + +impl jacquard_common::types::collection::Collection for Endorsement<'_> { + const NSID: &'static str = "place.atwork.endorsement"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/place_atwork/endorsement_proof.rs b/crates/jacquard-api/src/place_atwork/endorsement_proof.rs new file mode 100644 index 00000000..fe6525aa --- /dev/null +++ b/crates/jacquard-api/src/place_atwork/endorsement_proof.rs @@ -0,0 +1,28 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: place.atwork.endorsementProof +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A cryptographic proof record that validates an endorsement by containing the CID of the endorsement content. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct EndorsementProof<'a> { + ///The CID (Content Identifier) of the endorsement content that this proof validates. The endorsement's signatures array references this proof record. + #[serde(borrow)] + pub cid: jacquard_common::types::string::Cid<'a>, +} + +impl jacquard_common::types::collection::Collection for EndorsementProof<'_> { + const NSID: &'static str = "place.atwork.endorsementProof"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/place_atwork/get_listing.rs b/crates/jacquard-api/src/place_atwork/get_listing.rs index 7667ae73..1abcad3d 100644 --- a/crates/jacquard-api/src/place_atwork/get_listing.rs +++ b/crates/jacquard-api/src/place_atwork/get_listing.rs @@ -135,4 +135,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetListing<'de> { const NSID: &'static str = "place.atwork.getListing"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetListingResponse; +} + +///Endpoint type for +///place.atwork.getListing +pub struct GetListingRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetListingRequest { + const PATH: &'static str = "/xrpc/place.atwork.getListing"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetListing<'de>; + type Response = GetListingResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/place_atwork/get_listings.rs b/crates/jacquard-api/src/place_atwork/get_listings.rs index 4ff5372b..110d2f7e 100644 --- a/crates/jacquard-api/src/place_atwork/get_listings.rs +++ b/crates/jacquard-api/src/place_atwork/get_listings.rs @@ -43,6 +43,10 @@ pub struct ListingRecord<'a> { #[builder(start_fn = new)] #[serde(rename_all = "camelCase")] pub struct GetListings<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub identity: std::option::Option>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] #[builder(into)] @@ -79,4 +83,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetListings<'de> { const NSID: &'static str = "place.atwork.getListings"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetListingsResponse; +} + +///Endpoint type for +///place.atwork.getListings +pub struct GetListingsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetListingsRequest { + const PATH: &'static str = "/xrpc/place.atwork.getListings"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetListings<'de>; + type Response = GetListingsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/place_atwork/listing.rs b/crates/jacquard-api/src/place_atwork/listing.rs index 68905d5b..8a799320 100644 --- a/crates/jacquard-api/src/place_atwork/listing.rs +++ b/crates/jacquard-api/src/place_atwork/listing.rs @@ -22,6 +22,10 @@ pub struct Listing<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub apply_link: std::option::Option>, + ///Larger horizontal image to display behind job listing view. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub banner: std::option::Option>, ///The description of the job listing. #[serde(borrow)] pub description: jacquard_common::CowStr<'a>, diff --git a/crates/jacquard-api/src/place_atwork/profile.rs b/crates/jacquard-api/src/place_atwork/profile.rs index 6a59738d..2e83c651 100644 --- a/crates/jacquard-api/src/place_atwork/profile.rs +++ b/crates/jacquard-api/src/place_atwork/profile.rs @@ -18,6 +18,14 @@ )] #[serde(rename_all = "camelCase")] pub struct Profile<'a> { + ///Small image to be displayed next to job listings from account. AKA, 'profile picture' + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub avatar: std::option::Option>, + ///Larger horizontal image to display behind profile view. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub banner: std::option::Option>, ///A free text description of the identity. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] @@ -30,6 +38,14 @@ pub struct Profile<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub facets: std::option::Option>>, + ///The service used for profile links + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub profile_host: std::option::Option>, + ///The identity's resume. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub resume: std::option::Option>, ///The current status of the identity. #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] diff --git a/crates/jacquard-api/src/place_atwork/search_listings.rs b/crates/jacquard-api/src/place_atwork/search_listings.rs index d05283d8..eff939c4 100644 --- a/crates/jacquard-api/src/place_atwork/search_listings.rs +++ b/crates/jacquard-api/src/place_atwork/search_listings.rs @@ -126,4 +126,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SearchListings<'de> { const NSID: &'static str = "place.atwork.searchListings"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = SearchListingsResponse; +} + +///Endpoint type for +///place.atwork.searchListings +pub struct SearchListingsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SearchListingsRequest { + const PATH: &'static str = "/xrpc/place.atwork.searchListings"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = SearchListings<'de>; + type Response = SearchListingsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/place_stream/graph/get_following_user.rs b/crates/jacquard-api/src/place_stream/graph/get_following_user.rs index 0e293f45..e2c98bb8 100644 --- a/crates/jacquard-api/src/place_stream/graph/get_following_user.rs +++ b/crates/jacquard-api/src/place_stream/graph/get_following_user.rs @@ -55,4 +55,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetFollowingUser<'de> { const NSID: &'static str = "place.stream.graph.getFollowingUser"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetFollowingUserResponse; +} + +///Endpoint type for +///place.stream.graph.getFollowingUser +pub struct GetFollowingUserRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetFollowingUserRequest { + const PATH: &'static str = "/xrpc/place.stream.graph.getFollowingUser"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetFollowingUser<'de>; + type Response = GetFollowingUserResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/place_stream/live/get_live_users.rs b/crates/jacquard-api/src/place_stream/live/get_live_users.rs index 954c6ed4..3690762f 100644 --- a/crates/jacquard-api/src/place_stream/live/get_live_users.rs +++ b/crates/jacquard-api/src/place_stream/live/get_live_users.rs @@ -58,4 +58,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetLiveUsers { const NSID: &'static str = "place.stream.live.getLiveUsers"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetLiveUsersResponse; +} + +///Endpoint type for +///place.stream.live.getLiveUsers +pub struct GetLiveUsersRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetLiveUsersRequest { + const PATH: &'static str = "/xrpc/place.stream.live.getLiveUsers"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetLiveUsers; + type Response = GetLiveUsersResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/place_stream/live/get_profile_card.rs b/crates/jacquard-api/src/place_stream/live/get_profile_card.rs index 906ab46b..eb301a76 100644 --- a/crates/jacquard-api/src/place_stream/live/get_profile_card.rs +++ b/crates/jacquard-api/src/place_stream/live/get_profile_card.rs @@ -96,4 +96,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetProfileCard<'de> { const NSID: &'static str = "place.stream.live.getProfileCard"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetProfileCardResponse; +} + +///Endpoint type for +///place.stream.live.getProfileCard +pub struct GetProfileCardRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetProfileCardRequest { + const PATH: &'static str = "/xrpc/place.stream.live.getProfileCard"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetProfileCard<'de>; + type Response = GetProfileCardResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/place_stream/live/get_segments.rs b/crates/jacquard-api/src/place_stream/live/get_segments.rs index 47ff58a1..604b0cc9 100644 --- a/crates/jacquard-api/src/place_stream/live/get_segments.rs +++ b/crates/jacquard-api/src/place_stream/live/get_segments.rs @@ -60,4 +60,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetSegments<'de> { const NSID: &'static str = "place.stream.live.getSegments"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetSegmentsResponse; +} + +///Endpoint type for +///place.stream.live.getSegments +pub struct GetSegmentsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetSegmentsRequest { + const PATH: &'static str = "/xrpc/place.stream.live.getSegments"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetSegments<'de>; + type Response = GetSegmentsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/place_stream/server/create_webhook.rs b/crates/jacquard-api/src/place_stream/server/create_webhook.rs index 10370bd1..80e5aaa2 100644 --- a/crates/jacquard-api/src/place_stream/server/create_webhook.rs +++ b/crates/jacquard-api/src/place_stream/server/create_webhook.rs @@ -167,4 +167,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CreateWebhook<'de> { "application/json", ); type Response = CreateWebhookResponse; +} + +///Endpoint type for +///place.stream.server.createWebhook +pub struct CreateWebhookRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CreateWebhookRequest { + const PATH: &'static str = "/xrpc/place.stream.server.createWebhook"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = CreateWebhook<'de>; + type Response = CreateWebhookResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/place_stream/server/delete_webhook.rs b/crates/jacquard-api/src/place_stream/server/delete_webhook.rs index 8374a553..c5c3cb1c 100644 --- a/crates/jacquard-api/src/place_stream/server/delete_webhook.rs +++ b/crates/jacquard-api/src/place_stream/server/delete_webhook.rs @@ -125,4 +125,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeleteWebhook<'de> { "application/json", ); type Response = DeleteWebhookResponse; +} + +///Endpoint type for +///place.stream.server.deleteWebhook +pub struct DeleteWebhookRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeleteWebhookRequest { + const PATH: &'static str = "/xrpc/place.stream.server.deleteWebhook"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeleteWebhook<'de>; + type Response = DeleteWebhookResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/place_stream/server/get_webhook.rs b/crates/jacquard-api/src/place_stream/server/get_webhook.rs index 32ec8f85..37f1140d 100644 --- a/crates/jacquard-api/src/place_stream/server/get_webhook.rs +++ b/crates/jacquard-api/src/place_stream/server/get_webhook.rs @@ -112,4 +112,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetWebhook<'de> { const NSID: &'static str = "place.stream.server.getWebhook"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetWebhookResponse; +} + +///Endpoint type for +///place.stream.server.getWebhook +pub struct GetWebhookRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetWebhookRequest { + const PATH: &'static str = "/xrpc/place.stream.server.getWebhook"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetWebhook<'de>; + type Response = GetWebhookResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/place_stream/server/list_webhooks.rs b/crates/jacquard-api/src/place_stream/server/list_webhooks.rs index 3455c0d6..726fb03d 100644 --- a/crates/jacquard-api/src/place_stream/server/list_webhooks.rs +++ b/crates/jacquard-api/src/place_stream/server/list_webhooks.rs @@ -113,4 +113,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ListWebhooks<'de> { const NSID: &'static str = "place.stream.server.listWebhooks"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = ListWebhooksResponse; +} + +///Endpoint type for +///place.stream.server.listWebhooks +pub struct ListWebhooksRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ListWebhooksRequest { + const PATH: &'static str = "/xrpc/place.stream.server.listWebhooks"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ListWebhooks<'de>; + type Response = ListWebhooksResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/place_stream/server/update_webhook.rs b/crates/jacquard-api/src/place_stream/server/update_webhook.rs index cbb3b88b..476999f4 100644 --- a/crates/jacquard-api/src/place_stream/server/update_webhook.rs +++ b/crates/jacquard-api/src/place_stream/server/update_webhook.rs @@ -186,4 +186,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateWebhook<'de> { "application/json", ); type Response = UpdateWebhookResponse; +} + +///Endpoint type for +///place.stream.server.updateWebhook +pub struct UpdateWebhookRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateWebhookRequest { + const PATH: &'static str = "/xrpc/place.stream.server.updateWebhook"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateWebhook<'de>; + type Response = UpdateWebhookResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/knot/list_keys.rs b/crates/jacquard-api/src/sh_tangled/knot/list_keys.rs index c37f6d28..c4b77c42 100644 --- a/crates/jacquard-api/src/sh_tangled/knot/list_keys.rs +++ b/crates/jacquard-api/src/sh_tangled/knot/list_keys.rs @@ -109,6 +109,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ListKeys<'de> { type Response = ListKeysResponse; } +///Endpoint type for +///sh.tangled.knot.listKeys +pub struct ListKeysRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ListKeysRequest { + const PATH: &'static str = "/xrpc/sh.tangled.knot.listKeys"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ListKeys<'de>; + type Response = ListKeysResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/sh_tangled/knot/version.rs b/crates/jacquard-api/src/sh_tangled/knot/version.rs index 33a40376..75505a29 100644 --- a/crates/jacquard-api/src/sh_tangled/knot/version.rs +++ b/crates/jacquard-api/src/sh_tangled/knot/version.rs @@ -53,7 +53,16 @@ impl jacquard_common::IntoStatic for VersionError<'_> { } /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct Version; ///Response type for ///sh.tangled.knot.version @@ -69,4 +78,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Version { const NSID: &'static str = "sh.tangled.knot.version"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = VersionResponse; +} + +///Endpoint type for +///sh.tangled.knot.version +pub struct VersionRequest; +impl jacquard_common::xrpc::XrpcEndpoint for VersionRequest { + const PATH: &'static str = "/xrpc/sh.tangled.knot.version"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = Version; + type Response = VersionResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/owner.rs b/crates/jacquard-api/src/sh_tangled/owner.rs index 4548cd2d..47db122b 100644 --- a/crates/jacquard-api/src/sh_tangled/owner.rs +++ b/crates/jacquard-api/src/sh_tangled/owner.rs @@ -66,7 +66,16 @@ impl jacquard_common::IntoStatic for OwnerError<'_> { } /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct Owner; ///Response type for ///sh.tangled.owner @@ -82,4 +91,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Owner { const NSID: &'static str = "sh.tangled.owner"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = OwnerResponse; +} + +///Endpoint type for +///sh.tangled.owner +pub struct OwnerRequest; +impl jacquard_common::xrpc::XrpcEndpoint for OwnerRequest { + const PATH: &'static str = "/xrpc/sh.tangled.owner"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = Owner; + type Response = OwnerResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/repo/add_secret.rs b/crates/jacquard-api/src/sh_tangled/repo/add_secret.rs index 1b3a29aa..18fd3003 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/add_secret.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/add_secret.rs @@ -52,4 +52,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for AddSecret<'de> { "application/json", ); type Response = AddSecretResponse; +} + +///Endpoint type for +///sh.tangled.repo.addSecret +pub struct AddSecretRequest; +impl jacquard_common::xrpc::XrpcEndpoint for AddSecretRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.addSecret"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = AddSecret<'de>; + type Response = AddSecretResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/repo/archive.rs b/crates/jacquard-api/src/sh_tangled/repo/archive.rs index 455c4fb5..03c844f3 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/archive.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/archive.rs @@ -141,4 +141,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Archive<'de> { const NSID: &'static str = "sh.tangled.repo.archive"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = ArchiveResponse; +} + +///Endpoint type for +///sh.tangled.repo.archive +pub struct ArchiveRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ArchiveRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.archive"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = Archive<'de>; + type Response = ArchiveResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/repo/blob.rs b/crates/jacquard-api/src/sh_tangled/repo/blob.rs index 99a1bf63..83822bf8 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/blob.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/blob.rs @@ -194,6 +194,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Blob<'de> { type Response = BlobResponse; } +///Endpoint type for +///sh.tangled.repo.blob +pub struct BlobRequest; +impl jacquard_common::xrpc::XrpcEndpoint for BlobRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.blob"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = Blob<'de>; + type Response = BlobResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/sh_tangled/repo/branch.rs b/crates/jacquard-api/src/sh_tangled/repo/branch.rs index 85620140..9b3b7547 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/branch.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/branch.rs @@ -148,6 +148,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Branch<'de> { type Response = BranchResponse; } +///Endpoint type for +///sh.tangled.repo.branch +pub struct BranchRequest; +impl jacquard_common::xrpc::XrpcEndpoint for BranchRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.branch"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = Branch<'de>; + type Response = BranchResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/sh_tangled/repo/branches.rs b/crates/jacquard-api/src/sh_tangled/repo/branches.rs index 93ae72f0..64706433 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/branches.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/branches.rs @@ -115,4 +115,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Branches<'de> { const NSID: &'static str = "sh.tangled.repo.branches"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = BranchesResponse; +} + +///Endpoint type for +///sh.tangled.repo.branches +pub struct BranchesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for BranchesRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.branches"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = Branches<'de>; + type Response = BranchesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/repo/compare.rs b/crates/jacquard-api/src/sh_tangled/repo/compare.rs index c3940fc7..5b30b94b 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/compare.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/compare.rs @@ -137,4 +137,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Compare<'de> { const NSID: &'static str = "sh.tangled.repo.compare"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = CompareResponse; +} + +///Endpoint type for +///sh.tangled.repo.compare +pub struct CompareRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CompareRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.compare"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = Compare<'de>; + type Response = CompareResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/repo/create.rs b/crates/jacquard-api/src/sh_tangled/repo/create.rs index 9a380a9f..64587f53 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/create.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/create.rs @@ -58,4 +58,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Create<'de> { "application/json", ); type Response = CreateResponse; +} + +///Endpoint type for +///sh.tangled.repo.create +pub struct CreateRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CreateRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.create"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = Create<'de>; + type Response = CreateResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/repo/delete.rs b/crates/jacquard-api/src/sh_tangled/repo/delete.rs index 0e0f3d41..3d65de35 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/delete.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/delete.rs @@ -55,4 +55,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Delete<'de> { "application/json", ); type Response = DeleteResponse; +} + +///Endpoint type for +///sh.tangled.repo.delete +pub struct DeleteRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeleteRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.delete"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = Delete<'de>; + type Response = DeleteResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/repo/delete_branch.rs b/crates/jacquard-api/src/sh_tangled/repo/delete_branch.rs index 909db920..3f324d8f 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/delete_branch.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/delete_branch.rs @@ -49,4 +49,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeleteBranch<'de> { "application/json", ); type Response = DeleteBranchResponse; +} + +///Endpoint type for +///sh.tangled.repo.deleteBranch +pub struct DeleteBranchRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeleteBranchRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.deleteBranch"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeleteBranch<'de>; + type Response = DeleteBranchResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/repo/diff.rs b/crates/jacquard-api/src/sh_tangled/repo/diff.rs index e972ef2c..51ce4b2f 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/diff.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/diff.rs @@ -118,4 +118,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Diff<'de> { const NSID: &'static str = "sh.tangled.repo.diff"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = DiffResponse; +} + +///Endpoint type for +///sh.tangled.repo.diff +pub struct DiffRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DiffRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.diff"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = Diff<'de>; + type Response = DiffResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/repo/fork_status.rs b/crates/jacquard-api/src/sh_tangled/repo/fork_status.rs index bbaa9d38..6120dcae 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/fork_status.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/fork_status.rs @@ -79,4 +79,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ForkStatus<'de> { "application/json", ); type Response = ForkStatusResponse; +} + +///Endpoint type for +///sh.tangled.repo.forkStatus +pub struct ForkStatusRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ForkStatusRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.forkStatus"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = ForkStatus<'de>; + type Response = ForkStatusResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/repo/fork_sync.rs b/crates/jacquard-api/src/sh_tangled/repo/fork_sync.rs index 08db2106..09673ad7 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/fork_sync.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/fork_sync.rs @@ -58,4 +58,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ForkSync<'de> { "application/json", ); type Response = ForkSyncResponse; +} + +///Endpoint type for +///sh.tangled.repo.forkSync +pub struct ForkSyncRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ForkSyncRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.forkSync"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = ForkSync<'de>; + type Response = ForkSyncResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/repo/get_default_branch.rs b/crates/jacquard-api/src/sh_tangled/repo/get_default_branch.rs index f53f054f..85ace645 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/get_default_branch.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/get_default_branch.rs @@ -133,6 +133,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetDefaultBranch<'de> { type Response = GetDefaultBranchResponse; } +///Endpoint type for +///sh.tangled.repo.getDefaultBranch +pub struct GetDefaultBranchRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetDefaultBranchRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.getDefaultBranch"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetDefaultBranch<'de>; + type Response = GetDefaultBranchResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/sh_tangled/repo/hidden_ref.rs b/crates/jacquard-api/src/sh_tangled/repo/hidden_ref.rs index 6fa47801..62a5404d 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/hidden_ref.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/hidden_ref.rs @@ -79,4 +79,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for HiddenRef<'de> { "application/json", ); type Response = HiddenRefResponse; +} + +///Endpoint type for +///sh.tangled.repo.hiddenRef +pub struct HiddenRefRequest; +impl jacquard_common::xrpc::XrpcEndpoint for HiddenRefRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.hiddenRef"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = HiddenRef<'de>; + type Response = HiddenRefResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/repo/languages.rs b/crates/jacquard-api/src/sh_tangled/repo/languages.rs index 52872f40..1e34ca75 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/languages.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/languages.rs @@ -171,4 +171,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Languages<'de> { const NSID: &'static str = "sh.tangled.repo.languages"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = LanguagesResponse; +} + +///Endpoint type for +///sh.tangled.repo.languages +pub struct LanguagesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for LanguagesRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.languages"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = Languages<'de>; + type Response = LanguagesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/repo/list_secrets.rs b/crates/jacquard-api/src/sh_tangled/repo/list_secrets.rs index aeebbe65..7bd3f5c5 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/list_secrets.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/list_secrets.rs @@ -54,6 +54,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ListSecrets<'de> { type Response = ListSecretsResponse; } +///Endpoint type for +///sh.tangled.repo.listSecrets +pub struct ListSecretsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ListSecretsRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.listSecrets"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ListSecrets<'de>; + type Response = ListSecretsResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/sh_tangled/repo/log.rs b/crates/jacquard-api/src/sh_tangled/repo/log.rs index 43aa4ebb..5ead5642 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/log.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/log.rs @@ -141,4 +141,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Log<'de> { const NSID: &'static str = "sh.tangled.repo.log"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = LogResponse; +} + +///Endpoint type for +///sh.tangled.repo.log +pub struct LogRequest; +impl jacquard_common::xrpc::XrpcEndpoint for LogRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.log"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = Log<'de>; + type Response = LogResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/repo/merge.rs b/crates/jacquard-api/src/sh_tangled/repo/merge.rs index a6131ec1..87609459 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/merge.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/merge.rs @@ -79,4 +79,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Merge<'de> { "application/json", ); type Response = MergeResponse; +} + +///Endpoint type for +///sh.tangled.repo.merge +pub struct MergeRequest; +impl jacquard_common::xrpc::XrpcEndpoint for MergeRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.merge"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = Merge<'de>; + type Response = MergeResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/repo/merge_check.rs b/crates/jacquard-api/src/sh_tangled/repo/merge_check.rs index 501ad3df..7e1d18e0 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/merge_check.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/merge_check.rs @@ -107,4 +107,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for MergeCheck<'de> { "application/json", ); type Response = MergeCheckResponse; +} + +///Endpoint type for +///sh.tangled.repo.mergeCheck +pub struct MergeCheckRequest; +impl jacquard_common::xrpc::XrpcEndpoint for MergeCheckRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.mergeCheck"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = MergeCheck<'de>; + type Response = MergeCheckResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/repo/remove_secret.rs b/crates/jacquard-api/src/sh_tangled/repo/remove_secret.rs index b455e9c1..b4535bb0 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/remove_secret.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/remove_secret.rs @@ -49,4 +49,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for RemoveSecret<'de> { "application/json", ); type Response = RemoveSecretResponse; +} + +///Endpoint type for +///sh.tangled.repo.removeSecret +pub struct RemoveSecretRequest; +impl jacquard_common::xrpc::XrpcEndpoint for RemoveSecretRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.removeSecret"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = RemoveSecret<'de>; + type Response = RemoveSecretResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/repo/set_default_branch.rs b/crates/jacquard-api/src/sh_tangled/repo/set_default_branch.rs index adc59f11..e827f40c 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/set_default_branch.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/set_default_branch.rs @@ -49,4 +49,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SetDefaultBranch<'de> { "application/json", ); type Response = SetDefaultBranchResponse; +} + +///Endpoint type for +///sh.tangled.repo.setDefaultBranch +pub struct SetDefaultBranchRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SetDefaultBranchRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.setDefaultBranch"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = SetDefaultBranch<'de>; + type Response = SetDefaultBranchResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/repo/tags.rs b/crates/jacquard-api/src/sh_tangled/repo/tags.rs index 92abf971..a82151bc 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/tags.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/tags.rs @@ -111,4 +111,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Tags<'de> { const NSID: &'static str = "sh.tangled.repo.tags"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = TagsResponse; +} + +///Endpoint type for +///sh.tangled.repo.tags +pub struct TagsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for TagsRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.tags"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = Tags<'de>; + type Response = TagsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/sh_tangled/repo/tree.rs b/crates/jacquard-api/src/sh_tangled/repo/tree.rs index 555b128f..6a75c350 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/tree.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/tree.rs @@ -177,6 +177,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Tree<'de> { type Response = TreeResponse; } +///Endpoint type for +///sh.tangled.repo.tree +pub struct TreeRequest; +impl jacquard_common::xrpc::XrpcEndpoint for TreeRequest { + const PATH: &'static str = "/xrpc/sh.tangled.repo.tree"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = Tree<'de>; + type Response = TreeResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/sh_weaver/actor/get_profile.rs b/crates/jacquard-api/src/sh_weaver/actor/get_profile.rs index aea59719..eeffc309 100644 --- a/crates/jacquard-api/src/sh_weaver/actor/get_profile.rs +++ b/crates/jacquard-api/src/sh_weaver/actor/get_profile.rs @@ -53,4 +53,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetProfile<'de> { const NSID: &'static str = "sh.weaver.actor.getProfile"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetProfileResponse; +} + +///Endpoint type for +///sh.weaver.actor.getProfile +pub struct GetProfileRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetProfileRequest { + const PATH: &'static str = "/xrpc/sh.weaver.actor.getProfile"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetProfile<'de>; + type Response = GetProfileResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/social_clippr.rs b/crates/jacquard-api/src/social_clippr.rs new file mode 100644 index 00000000..cd9ae06a --- /dev/null +++ b/crates/jacquard-api/src/social_clippr.rs @@ -0,0 +1,7 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod actor; +pub mod feed; \ No newline at end of file diff --git a/crates/jacquard-api/src/social_clippr/actor.rs b/crates/jacquard-api/src/social_clippr/actor.rs new file mode 100644 index 00000000..1dbda506 --- /dev/null +++ b/crates/jacquard-api/src/social_clippr/actor.rs @@ -0,0 +1,69 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.clippr.actor.defs +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod get_preferences; +pub mod get_profile; +pub mod profile; +pub mod put_preferences; +pub mod search_clips; +pub mod search_profiles; +pub mod search_tags; + +///An array of refs to various preferences. +pub type Preferences<'a> = Vec>; +///A view of an actor's profile. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct ProfileView<'a> { + ///A link to the profile's avatar + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub avatar: std::option::Option>, + ///When the profile record was first created + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub created_at: std::option::Option, + ///The biography associated to the profile + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + ///The DID of the profile + #[serde(borrow)] + pub did: jacquard_common::types::string::Did<'a>, + ///The display name associated to the profile + #[serde(borrow)] + pub display_name: jacquard_common::CowStr<'a>, + ///The handle of the profile + #[serde(borrow)] + pub handle: jacquard_common::types::string::Handle<'a>, +} + +///Preferences for an user's publishing scopes. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct PublishingScopesPref<'a> { + ///What publishing scope to mark a clip as by default + #[serde(borrow)] + pub default_scope: jacquard_common::CowStr<'a>, +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_clippr/actor/get_preferences.rs b/crates/jacquard-api/src/social_clippr/actor/get_preferences.rs new file mode 100644 index 00000000..22b6b493 --- /dev/null +++ b/crates/jacquard-api/src/social_clippr/actor/get_preferences.rs @@ -0,0 +1,62 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.clippr.actor.getPreferences +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetPreferences {} +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetPreferencesOutput<'a> { + ///A ref to the user's preferences + #[serde(borrow)] + pub preferences: crate::social_clippr::actor::Preferences<'a>, +} + +///Response type for +///social.clippr.actor.getPreferences +pub struct GetPreferencesResponse; +impl jacquard_common::xrpc::XrpcResp for GetPreferencesResponse { + const NSID: &'static str = "social.clippr.actor.getPreferences"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetPreferencesOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetPreferences { + const NSID: &'static str = "social.clippr.actor.getPreferences"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetPreferencesResponse; +} + +///Endpoint type for +///social.clippr.actor.getPreferences +pub struct GetPreferencesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetPreferencesRequest { + const PATH: &'static str = "/xrpc/social.clippr.actor.getPreferences"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetPreferences; + type Response = GetPreferencesResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_clippr/actor/get_profile.rs b/crates/jacquard-api/src/social_clippr/actor/get_profile.rs new file mode 100644 index 00000000..2c29ef22 --- /dev/null +++ b/crates/jacquard-api/src/social_clippr/actor/get_profile.rs @@ -0,0 +1,66 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.clippr.actor.getProfile +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetProfile<'a> { + #[serde(borrow)] + pub actor: jacquard_common::types::ident::AtIdentifier<'a>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetProfileOutput<'a> { + #[serde(flatten)] + #[serde(borrow)] + pub value: crate::social_clippr::actor::ProfileView<'a>, +} + +///Response type for +///social.clippr.actor.getProfile +pub struct GetProfileResponse; +impl jacquard_common::xrpc::XrpcResp for GetProfileResponse { + const NSID: &'static str = "social.clippr.actor.getProfile"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetProfileOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetProfile<'de> { + const NSID: &'static str = "social.clippr.actor.getProfile"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetProfileResponse; +} + +///Endpoint type for +///social.clippr.actor.getProfile +pub struct GetProfileRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetProfileRequest { + const PATH: &'static str = "/xrpc/social.clippr.actor.getProfile"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetProfile<'de>; + type Response = GetProfileResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_clippr/actor/profile.rs b/crates/jacquard-api/src/social_clippr/actor/profile.rs new file mode 100644 index 00000000..3163a9e2 --- /dev/null +++ b/crates/jacquard-api/src/social_clippr/actor/profile.rs @@ -0,0 +1,38 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.clippr.actor.profile +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A declaration of a Clippr account's profile. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Profile<'a> { + ///Image to show on user's profiles + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub avatar: std::option::Option>, + ///The creation date of the profile + pub created_at: jacquard_common::types::string::Datetime, + ///Text for user to describe themselves + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + ///A display name to be shown on a profile + #[serde(borrow)] + pub display_name: jacquard_common::CowStr<'a>, +} + +impl jacquard_common::types::collection::Collection for Profile<'_> { + const NSID: &'static str = "social.clippr.actor.profile"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_clippr/actor/put_preferences.rs b/crates/jacquard-api/src/social_clippr/actor/put_preferences.rs new file mode 100644 index 00000000..da53fc86 --- /dev/null +++ b/crates/jacquard-api/src/social_clippr/actor/put_preferences.rs @@ -0,0 +1,62 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.clippr.actor.putPreferences +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct PutPreferences<'a> { + ///A ref to the user's preferences + #[serde(borrow)] + pub preferences: crate::social_clippr::actor::Preferences<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +///Response type for +///social.clippr.actor.putPreferences +pub struct PutPreferencesResponse; +impl jacquard_common::xrpc::XrpcResp for PutPreferencesResponse { + const NSID: &'static str = "social.clippr.actor.putPreferences"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = (); + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for PutPreferences<'de> { + const NSID: &'static str = "social.clippr.actor.putPreferences"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = PutPreferencesResponse; +} + +///Endpoint type for +///social.clippr.actor.putPreferences +pub struct PutPreferencesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for PutPreferencesRequest { + const PATH: &'static str = "/xrpc/social.clippr.actor.putPreferences"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = PutPreferences<'de>; + type Response = PutPreferencesResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_clippr/actor/search_clips.rs b/crates/jacquard-api/src/social_clippr/actor/search_clips.rs new file mode 100644 index 00000000..47fdc1b6 --- /dev/null +++ b/crates/jacquard-api/src/social_clippr/actor/search_clips.rs @@ -0,0 +1,81 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.clippr.actor.searchClips +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct SearchClips<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub actor: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub cursor: std::option::Option>, + ///(default: 25, min: 1, max: 100) + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub limit: std::option::Option, + #[serde(borrow)] + #[builder(into)] + pub q: jacquard_common::CowStr<'a>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct SearchClipsOutput<'a> { + ///A list of clips and their associated details + #[serde(borrow)] + pub clips: Vec>, + ///A parameter to paginate results + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cursor: std::option::Option>, +} + +///Response type for +///social.clippr.actor.searchClips +pub struct SearchClipsResponse; +impl jacquard_common::xrpc::XrpcResp for SearchClipsResponse { + const NSID: &'static str = "social.clippr.actor.searchClips"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = SearchClipsOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SearchClips<'de> { + const NSID: &'static str = "social.clippr.actor.searchClips"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = SearchClipsResponse; +} + +///Endpoint type for +///social.clippr.actor.searchClips +pub struct SearchClipsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SearchClipsRequest { + const PATH: &'static str = "/xrpc/social.clippr.actor.searchClips"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = SearchClips<'de>; + type Response = SearchClipsResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_clippr/actor/search_profiles.rs b/crates/jacquard-api/src/social_clippr/actor/search_profiles.rs new file mode 100644 index 00000000..65984b5f --- /dev/null +++ b/crates/jacquard-api/src/social_clippr/actor/search_profiles.rs @@ -0,0 +1,78 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.clippr.actor.searchProfiles +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct SearchProfiles<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub cursor: std::option::Option>, + ///(default: 25, min: 1, max: 100) + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub limit: std::option::Option, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub q: std::option::Option>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct SearchProfilesOutput<'a> { + #[serde(borrow)] + pub actors: Vec>, + ///A parameter used for pagination + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cursor: std::option::Option>, +} + +///Response type for +///social.clippr.actor.searchProfiles +pub struct SearchProfilesResponse; +impl jacquard_common::xrpc::XrpcResp for SearchProfilesResponse { + const NSID: &'static str = "social.clippr.actor.searchProfiles"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = SearchProfilesOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SearchProfiles<'de> { + const NSID: &'static str = "social.clippr.actor.searchProfiles"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = SearchProfilesResponse; +} + +///Endpoint type for +///social.clippr.actor.searchProfiles +pub struct SearchProfilesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SearchProfilesRequest { + const PATH: &'static str = "/xrpc/social.clippr.actor.searchProfiles"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = SearchProfiles<'de>; + type Response = SearchProfilesResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_clippr/actor/search_tags.rs b/crates/jacquard-api/src/social_clippr/actor/search_tags.rs new file mode 100644 index 00000000..aa8bc856 --- /dev/null +++ b/crates/jacquard-api/src/social_clippr/actor/search_tags.rs @@ -0,0 +1,81 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.clippr.actor.searchTags +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct SearchTags<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub actor: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub cursor: std::option::Option>, + ///(default: 25, min: 1, max: 100) + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub limit: std::option::Option, + #[serde(borrow)] + #[builder(into)] + pub q: jacquard_common::CowStr<'a>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct SearchTagsOutput<'a> { + ///A parameter to paginate results + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cursor: std::option::Option>, + ///A list of tags and their associated details + #[serde(borrow)] + pub tags: Vec>, +} + +///Response type for +///social.clippr.actor.searchTags +pub struct SearchTagsResponse; +impl jacquard_common::xrpc::XrpcResp for SearchTagsResponse { + const NSID: &'static str = "social.clippr.actor.searchTags"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = SearchTagsOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SearchTags<'de> { + const NSID: &'static str = "social.clippr.actor.searchTags"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = SearchTagsResponse; +} + +///Endpoint type for +///social.clippr.actor.searchTags +pub struct SearchTagsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SearchTagsRequest { + const PATH: &'static str = "/xrpc/social.clippr.actor.searchTags"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = SearchTags<'de>; + type Response = SearchTagsResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_clippr/feed.rs b/crates/jacquard-api/src/social_clippr/feed.rs new file mode 100644 index 00000000..4fc73e31 --- /dev/null +++ b/crates/jacquard-api/src/social_clippr/feed.rs @@ -0,0 +1,72 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.clippr.feed.defs +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod clip; +pub mod get_clips; +pub mod get_profile_clips; +pub mod get_profile_tags; +pub mod get_tag_list; +pub mod get_tags; +pub mod tag; + +///A view of a single bookmark (or 'clip'). +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct ClipView<'a> { + ///A reference to the actor's profile + #[serde(borrow)] + pub author: crate::social_clippr::actor::ProfileView<'a>, + ///The CID of the clip + #[serde(borrow)] + pub cid: jacquard_common::types::string::Cid<'a>, + ///When the tag was first indexed by the AppView + pub indexed_at: jacquard_common::types::string::Datetime, + ///The raw record of the clip + #[serde(borrow)] + pub record: jacquard_common::types::value::Data<'a>, + ///The AT-URI of the clip + #[serde(borrow)] + pub uri: jacquard_common::types::string::AtUri<'a>, +} + +///A view of a single tag. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct TagView<'a> { + ///A reference to the actor's profile + #[serde(borrow)] + pub author: crate::social_clippr::actor::ProfileView<'a>, + ///The CID of the tag + #[serde(borrow)] + pub cid: jacquard_common::types::string::Cid<'a>, + ///When the tag was first indexed by the AppView + pub indexed_at: jacquard_common::types::string::Datetime, + ///The raw record of the tag + #[serde(borrow)] + pub record: jacquard_common::types::value::Data<'a>, + ///The AT-URI to the tag + #[serde(borrow)] + pub uri: jacquard_common::types::string::AtUri<'a>, +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_clippr/feed/clip.rs b/crates/jacquard-api/src/social_clippr/feed/clip.rs new file mode 100644 index 00000000..cc5d7bda --- /dev/null +++ b/crates/jacquard-api/src/social_clippr/feed/clip.rs @@ -0,0 +1,54 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.clippr.feed.clip +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///Record containing a bookmarked item, or 'clip'. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Clip<'a> { + ///Client-declared timestamp when the bookmark is created + pub created_at: jacquard_common::types::string::Datetime, + ///A description of the bookmark's content. This should be ripped from the URL metadata and be static for all records using the URL. + #[serde(borrow)] + pub description: jacquard_common::CowStr<'a>, + ///Indicates human language of the given URL + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub languages: std::option::Option>, + ///User-written notes for the bookmark. Public and personal. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub notes: std::option::Option>, + ///An array of tags. A format of solely alphanumeric characters and dashes should be used. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub tags: std::option::Option< + Vec>, + >, + ///The title of the bookmark. If left empty, reuse the URL. + #[serde(borrow)] + pub title: jacquard_common::CowStr<'a>, + ///Whether the bookmark can be used for feed indexing and aggregation + pub unlisted: bool, + ///Whether the bookmark has been read by the user + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub unread: std::option::Option, + ///The URL of the bookmark. Cannot be left empty or be modified after creation. + #[serde(borrow)] + pub url: jacquard_common::types::string::Uri<'a>, +} + +impl jacquard_common::types::collection::Collection for Clip<'_> { + const NSID: &'static str = "social.clippr.feed.clip"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_clippr/feed/get_clips.rs b/crates/jacquard-api/src/social_clippr/feed/get_clips.rs new file mode 100644 index 00000000..d6f9b591 --- /dev/null +++ b/crates/jacquard-api/src/social_clippr/feed/get_clips.rs @@ -0,0 +1,66 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.clippr.feed.getClips +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetClips<'a> { + #[serde(borrow)] + pub uris: Vec>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetClipsOutput<'a> { + ///An array of hydrated clip views + #[serde(borrow)] + pub clips: Vec>, +} + +///Response type for +///social.clippr.feed.getClips +pub struct GetClipsResponse; +impl jacquard_common::xrpc::XrpcResp for GetClipsResponse { + const NSID: &'static str = "social.clippr.feed.getClips"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetClipsOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetClips<'de> { + const NSID: &'static str = "social.clippr.feed.getClips"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetClipsResponse; +} + +///Endpoint type for +///social.clippr.feed.getClips +pub struct GetClipsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetClipsRequest { + const PATH: &'static str = "/xrpc/social.clippr.feed.getClips"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetClips<'de>; + type Response = GetClipsResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_clippr/feed/get_profile_clips.rs b/crates/jacquard-api/src/social_clippr/feed/get_profile_clips.rs new file mode 100644 index 00000000..6e729956 --- /dev/null +++ b/crates/jacquard-api/src/social_clippr/feed/get_profile_clips.rs @@ -0,0 +1,80 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.clippr.feed.getProfileClips +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetProfileClips<'a> { + #[serde(borrow)] + pub actor: jacquard_common::types::ident::AtIdentifier<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub cursor: std::option::Option>, + ///(default: "all_clips") + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub filter: std::option::Option>, + ///(default: 50, min: 1, max: 100) + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub limit: std::option::Option, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetProfileClipsOutput<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cursor: std::option::Option>, + #[serde(borrow)] + pub feed: Vec>, +} + +///Response type for +///social.clippr.feed.getProfileClips +pub struct GetProfileClipsResponse; +impl jacquard_common::xrpc::XrpcResp for GetProfileClipsResponse { + const NSID: &'static str = "social.clippr.feed.getProfileClips"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetProfileClipsOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetProfileClips<'de> { + const NSID: &'static str = "social.clippr.feed.getProfileClips"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetProfileClipsResponse; +} + +///Endpoint type for +///social.clippr.feed.getProfileClips +pub struct GetProfileClipsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetProfileClipsRequest { + const PATH: &'static str = "/xrpc/social.clippr.feed.getProfileClips"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetProfileClips<'de>; + type Response = GetProfileClipsResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_clippr/feed/get_profile_tags.rs b/crates/jacquard-api/src/social_clippr/feed/get_profile_tags.rs new file mode 100644 index 00000000..4bb8a200 --- /dev/null +++ b/crates/jacquard-api/src/social_clippr/feed/get_profile_tags.rs @@ -0,0 +1,75 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.clippr.feed.getProfileTags +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetProfileTags<'a> { + #[serde(borrow)] + pub actor: jacquard_common::types::ident::AtIdentifier<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub cursor: std::option::Option>, + ///(default: 50, min: 1, max: 100) + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub limit: std::option::Option, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetProfileTagsOutput<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cursor: std::option::Option>, + #[serde(borrow)] + pub feed: Vec>, +} + +///Response type for +///social.clippr.feed.getProfileTags +pub struct GetProfileTagsResponse; +impl jacquard_common::xrpc::XrpcResp for GetProfileTagsResponse { + const NSID: &'static str = "social.clippr.feed.getProfileTags"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetProfileTagsOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetProfileTags<'de> { + const NSID: &'static str = "social.clippr.feed.getProfileTags"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetProfileTagsResponse; +} + +///Endpoint type for +///social.clippr.feed.getProfileTags +pub struct GetProfileTagsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetProfileTagsRequest { + const PATH: &'static str = "/xrpc/social.clippr.feed.getProfileTags"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetProfileTags<'de>; + type Response = GetProfileTagsResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_clippr/feed/get_tag_list.rs b/crates/jacquard-api/src/social_clippr/feed/get_tag_list.rs new file mode 100644 index 00000000..696408a4 --- /dev/null +++ b/crates/jacquard-api/src/social_clippr/feed/get_tag_list.rs @@ -0,0 +1,67 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.clippr.feed.getTagList +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetTagList<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub actor: std::option::Option>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetTagListOutput<'a> { + ///A list of tags and their associated details + #[serde(borrow)] + pub tags: Vec>, +} + +///Response type for +///social.clippr.feed.getTagList +pub struct GetTagListResponse; +impl jacquard_common::xrpc::XrpcResp for GetTagListResponse { + const NSID: &'static str = "social.clippr.feed.getTagList"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetTagListOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetTagList<'de> { + const NSID: &'static str = "social.clippr.feed.getTagList"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetTagListResponse; +} + +///Endpoint type for +///social.clippr.feed.getTagList +pub struct GetTagListRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetTagListRequest { + const PATH: &'static str = "/xrpc/social.clippr.feed.getTagList"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetTagList<'de>; + type Response = GetTagListResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_clippr/feed/get_tags.rs b/crates/jacquard-api/src/social_clippr/feed/get_tags.rs new file mode 100644 index 00000000..e3ebf86b --- /dev/null +++ b/crates/jacquard-api/src/social_clippr/feed/get_tags.rs @@ -0,0 +1,66 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.clippr.feed.getTags +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[builder(start_fn = new)] +#[serde(rename_all = "camelCase")] +pub struct GetTags<'a> { + #[serde(borrow)] + pub uris: Vec>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetTagsOutput<'a> { + ///An array of hydrated tag views + #[serde(borrow)] + pub tags: Vec>, +} + +///Response type for +///social.clippr.feed.getTags +pub struct GetTagsResponse; +impl jacquard_common::xrpc::XrpcResp for GetTagsResponse { + const NSID: &'static str = "social.clippr.feed.getTags"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetTagsOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetTags<'de> { + const NSID: &'static str = "social.clippr.feed.getTags"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Response = GetTagsResponse; +} + +///Endpoint type for +///social.clippr.feed.getTags +pub struct GetTagsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetTagsRequest { + const PATH: &'static str = "/xrpc/social.clippr.feed.getTags"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetTags<'de>; + type Response = GetTagsResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_clippr/feed/tag.rs b/crates/jacquard-api/src/social_clippr/feed/tag.rs new file mode 100644 index 00000000..2f146670 --- /dev/null +++ b/crates/jacquard-api/src/social_clippr/feed/tag.rs @@ -0,0 +1,38 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.clippr.feed.tag +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A record containing a bookmark tag for organization. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Tag<'a> { + ///A hexadecimal color code + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub color: std::option::Option>, + ///A client-defined timestamp for the creation of the tag + pub created_at: jacquard_common::types::string::Datetime, + ///A description of the tag for additional context + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + ///A de-duplicated string containing the name of the tag + #[serde(borrow)] + pub name: jacquard_common::CowStr<'a>, +} + +impl jacquard_common::types::collection::Collection for Tag<'_> { + const NSID: &'static str = "social.clippr.feed.tag"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_grain.rs b/crates/jacquard-api/src/social_grain.rs new file mode 100644 index 00000000..07d27d45 --- /dev/null +++ b/crates/jacquard-api/src/social_grain.rs @@ -0,0 +1,28 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.grain.defs +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod actor; +pub mod favorite; +pub mod gallery; +pub mod photo; + +///width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct AspectRatio<'a> { + pub height: i64, + pub width: i64, +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_grain/actor.rs b/crates/jacquard-api/src/social_grain/actor.rs new file mode 100644 index 00000000..8aeb758a --- /dev/null +++ b/crates/jacquard-api/src/social_grain/actor.rs @@ -0,0 +1,40 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.grain.actor.defs +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod profile; + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct ProfileView<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub avatar: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub created_at: std::option::Option, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + #[serde(borrow)] + pub did: jacquard_common::types::string::Did<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub display_name: std::option::Option>, + #[serde(borrow)] + pub handle: jacquard_common::types::string::Handle<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub labels: std::option::Option>>, +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_grain/actor/profile.rs b/crates/jacquard-api/src/social_grain/actor/profile.rs new file mode 100644 index 00000000..74b6f6ba --- /dev/null +++ b/crates/jacquard-api/src/social_grain/actor/profile.rs @@ -0,0 +1,38 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.grain.actor.profile +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A declaration of a basic account profile. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Profile<'a> { + ///Small image to be displayed next to posts from account. AKA, 'profile picture' + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub avatar: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub created_at: std::option::Option, + ///Free-form profile description text. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub display_name: std::option::Option>, +} + +impl jacquard_common::types::collection::Collection for Profile<'_> { + const NSID: &'static str = "social.grain.actor.profile"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_grain/favorite.rs b/crates/jacquard-api/src/social_grain/favorite.rs new file mode 100644 index 00000000..bfa9e277 --- /dev/null +++ b/crates/jacquard-api/src/social_grain/favorite.rs @@ -0,0 +1,27 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.grain.favorite +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Favorite<'a> { + pub created_at: jacquard_common::types::string::Datetime, + #[serde(borrow)] + pub subject: jacquard_common::types::string::AtUri<'a>, +} + +impl jacquard_common::types::collection::Collection for Favorite<'_> { + const NSID: &'static str = "social.grain.favorite"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_grain/gallery.rs b/crates/jacquard-api/src/social_grain/gallery.rs new file mode 100644 index 00000000..871cb276 --- /dev/null +++ b/crates/jacquard-api/src/social_grain/gallery.rs @@ -0,0 +1,82 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.grain.gallery.defs +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod item; + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Gallery<'a> { + pub created_at: jacquard_common::types::string::Datetime, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + ///Self-label values for this post. Effectively content warnings. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub labels: std::option::Option>, + #[serde(borrow)] + pub title: jacquard_common::CowStr<'a>, +} + +#[jacquard_derive::open_union] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(tag = "$type")] +#[serde(bound(deserialize = "'de: 'a"))] +pub enum GalleryRecordLabels<'a> { + #[serde(rename = "com.atproto.label.defs#selfLabels")] + DefsSelfLabels(Box>), +} + +impl jacquard_common::types::collection::Collection for Gallery<'_> { + const NSID: &'static str = "social.grain.gallery"; +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GalleryView<'a> { + #[serde(borrow)] + pub cid: jacquard_common::types::string::Cid<'a>, + #[serde(borrow)] + pub creator: crate::social_grain::actor::ProfileView<'a>, + pub indexed_at: jacquard_common::types::string::Datetime, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub items: std::option::Option>>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub labels: std::option::Option>>, + #[serde(borrow)] + pub record: jacquard_common::types::value::Data<'a>, + #[serde(borrow)] + pub uri: jacquard_common::types::string::AtUri<'a>, +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_grain/gallery/item.rs b/crates/jacquard-api/src/social_grain/gallery/item.rs new file mode 100644 index 00000000..6b2f61d3 --- /dev/null +++ b/crates/jacquard-api/src/social_grain/gallery/item.rs @@ -0,0 +1,31 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.grain.gallery.item +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Item<'a> { + pub created_at: jacquard_common::types::string::Datetime, + #[serde(borrow)] + pub gallery: jacquard_common::types::string::AtUri<'a>, + #[serde(borrow)] + pub item: jacquard_common::types::string::AtUri<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub position: std::option::Option, +} + +impl jacquard_common::types::collection::Collection for Item<'_> { + const NSID: &'static str = "social.grain.gallery.item"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_grain/photo.rs b/crates/jacquard-api/src/social_grain/photo.rs new file mode 100644 index 00000000..1507be6a --- /dev/null +++ b/crates/jacquard-api/src/social_grain/photo.rs @@ -0,0 +1,122 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.grain.photo.defs +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod exif; + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Photo<'a> { + ///Alt text description of the image, for accessibility. + #[serde(borrow)] + pub alt: jacquard_common::CowStr<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub aspect_ratio: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub created_at: std::option::Option, + #[serde(borrow)] + pub photo: jacquard_common::types::blob::Blob<'a>, +} + +impl jacquard_common::types::collection::Collection for Photo<'_> { + const NSID: &'static str = "social.grain.photo"; +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct ExifView<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cid: std::option::Option>, + pub created_at: jacquard_common::types::string::Datetime, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub date_time_original: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub exposure_time: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub f_number: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub flash: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub focal_length_in35mm_format: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub i_so: std::option::Option, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub lens_make: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub lens_model: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub make: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub model: std::option::Option>, + #[serde(borrow)] + pub photo: jacquard_common::types::string::AtUri<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub uri: std::option::Option>, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct PhotoView<'a> { + ///Alt text description of the image, for accessibility. + #[serde(borrow)] + pub alt: jacquard_common::CowStr<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub aspect_ratio: std::option::Option>, + #[serde(borrow)] + pub cid: jacquard_common::types::string::Cid<'a>, + ///EXIF metadata for the photo, if available. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub exif: std::option::Option>, + ///Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View. + #[serde(borrow)] + pub fullsize: jacquard_common::types::string::Uri<'a>, + ///Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View. + #[serde(borrow)] + pub thumb: jacquard_common::types::string::Uri<'a>, + #[serde(borrow)] + pub uri: jacquard_common::types::string::AtUri<'a>, +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_grain/photo/exif.rs b/crates/jacquard-api/src/social_grain/photo/exif.rs new file mode 100644 index 00000000..d743da79 --- /dev/null +++ b/crates/jacquard-api/src/social_grain/photo/exif.rs @@ -0,0 +1,55 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.grain.photo.exif +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///Basic EXIF metadata for a photo. Integers are scaled by 1000000 to accommodate decimal values and potentially other tags in the future. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Exif<'a> { + pub created_at: jacquard_common::types::string::Datetime, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub date_time_original: std::option::Option< + jacquard_common::types::string::Datetime, + >, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub exposure_time: std::option::Option, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub f_number: std::option::Option, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub flash: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub focal_length_in35mm_format: std::option::Option, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub i_so: std::option::Option, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub lens_make: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub lens_model: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub make: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub model: std::option::Option>, + #[serde(borrow)] + pub photo: jacquard_common::types::string::AtUri<'a>, +} + +impl jacquard_common::types::collection::Collection for Exif<'_> { + const NSID: &'static str = "social.grain.photo.exif"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_pmsky.rs b/crates/jacquard-api/src/social_pmsky.rs new file mode 100644 index 00000000..aad80e07 --- /dev/null +++ b/crates/jacquard-api/src/social_pmsky.rs @@ -0,0 +1,7 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod proposal; +pub mod vote; \ No newline at end of file diff --git a/crates/jacquard-api/src/social_pmsky/proposal.rs b/crates/jacquard-api/src/social_pmsky/proposal.rs new file mode 100644 index 00000000..7324b929 --- /dev/null +++ b/crates/jacquard-api/src/social_pmsky/proposal.rs @@ -0,0 +1,60 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.pmsky.proposal +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Proposal<'a> { + ///The persistent, anonymous identifier for the user creating the proposal. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub aid: std::option::Option>, + ///Optionally, CID specifying the specific version of 'uri' resource this proposal applies to. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cid: std::option::Option>, + ///Timestamp when this proposal was created. + pub cts: jacquard_common::types::string::Datetime, + ///For 'label' proposals where 'val' is 'needs-context', the full text of any proposed annotation (e.g. community note) to be shown below the post. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub note: std::option::Option>, + ///An optional array of predefined reasons justifying the moderation action. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub reasons: std::option::Option>>, + ///Signature of dag-cbor encoded proposal. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub sig: std::option::Option, + ///DID of the actor who created this proposal. + #[serde(borrow)] + pub src: jacquard_common::types::string::Did<'a>, + ///The type of moderation action being proposed. Currently expected values are 'allowed_user' or 'label' + #[serde(borrow)] + pub typ: jacquard_common::CowStr<'a>, + ///AT URI of the record, repository (account), or other resource that this proposal applies to. + #[serde(borrow)] + pub uri: jacquard_common::types::string::Uri<'a>, + ///For 'label' proposals, the short string name of the value of the proposed label. + #[serde(borrow)] + pub val: jacquard_common::CowStr<'a>, + ///The AT Protocol version of the proposal object. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub ver: std::option::Option, +} + +impl jacquard_common::types::collection::Collection for Proposal<'_> { + const NSID: &'static str = "social.pmsky.proposal"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/social_pmsky/vote.rs b/crates/jacquard-api/src/social_pmsky/vote.rs new file mode 100644 index 00000000..7f2aeacb --- /dev/null +++ b/crates/jacquard-api/src/social_pmsky/vote.rs @@ -0,0 +1,49 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: social.pmsky.vote +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Vote<'a> { + ///The persistent, anonymous identifier for the user casting the vote. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub aid: std::option::Option>, + ///Optionally, CID specifying the specific version of 'uri' resource this vote applies to. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub cid: std::option::Option>, + ///Timestamp when this vote was created. + pub cts: jacquard_common::types::string::Datetime, + ///An optional array of predefined reasons justifying the vote. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub reasons: std::option::Option>>, + ///Signature of dag-cbor encoded vote. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + pub sig: std::option::Option, + ///the account creating the vote, not necessarily the same as the user who voted + #[serde(borrow)] + pub src: jacquard_common::types::string::Did<'a>, + ///AT URI of the record, repository (account), or other resource that this vote applies to. + #[serde(borrow)] + pub uri: jacquard_common::types::string::Uri<'a>, + ///The value of the vote. The exact meaning depends on what is being voted on, but generally '+1' means 'approval', -1 means 'disapproval', and 0 indicates 'neutrality'. + pub val: i64, +} + +impl jacquard_common::types::collection::Collection for Vote<'_> { + const NSID: &'static str = "social.pmsky.vote"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/communication/create_template.rs b/crates/jacquard-api/src/tools_ozone/communication/create_template.rs index 417984d5..c653708e 100644 --- a/crates/jacquard-api/src/tools_ozone/communication/create_template.rs +++ b/crates/jacquard-api/src/tools_ozone/communication/create_template.rs @@ -127,4 +127,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CreateTemplate<'de> { "application/json", ); type Response = CreateTemplateResponse; +} + +///Endpoint type for +///tools.ozone.communication.createTemplate +pub struct CreateTemplateRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CreateTemplateRequest { + const PATH: &'static str = "/xrpc/tools.ozone.communication.createTemplate"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = CreateTemplate<'de>; + type Response = CreateTemplateResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/communication/delete_template.rs b/crates/jacquard-api/src/tools_ozone/communication/delete_template.rs index f15c51d6..25d88c28 100644 --- a/crates/jacquard-api/src/tools_ozone/communication/delete_template.rs +++ b/crates/jacquard-api/src/tools_ozone/communication/delete_template.rs @@ -47,4 +47,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeleteTemplate<'de> { "application/json", ); type Response = DeleteTemplateResponse; +} + +///Endpoint type for +///tools.ozone.communication.deleteTemplate +pub struct DeleteTemplateRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeleteTemplateRequest { + const PATH: &'static str = "/xrpc/tools.ozone.communication.deleteTemplate"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeleteTemplate<'de>; + type Response = DeleteTemplateResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/communication/list_templates.rs b/crates/jacquard-api/src/tools_ozone/communication/list_templates.rs index 6a87059a..ac7b2afb 100644 --- a/crates/jacquard-api/src/tools_ozone/communication/list_templates.rs +++ b/crates/jacquard-api/src/tools_ozone/communication/list_templates.rs @@ -24,7 +24,16 @@ pub struct ListTemplatesOutput<'a> { } /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct ListTemplates; ///Response type for ///tools.ozone.communication.listTemplates @@ -40,4 +49,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ListTemplates { const NSID: &'static str = "tools.ozone.communication.listTemplates"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = ListTemplatesResponse; +} + +///Endpoint type for +///tools.ozone.communication.listTemplates +pub struct ListTemplatesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ListTemplatesRequest { + const PATH: &'static str = "/xrpc/tools.ozone.communication.listTemplates"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ListTemplates; + type Response = ListTemplatesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/communication/update_template.rs b/crates/jacquard-api/src/tools_ozone/communication/update_template.rs index 14da0226..a4fb6803 100644 --- a/crates/jacquard-api/src/tools_ozone/communication/update_template.rs +++ b/crates/jacquard-api/src/tools_ozone/communication/update_template.rs @@ -136,4 +136,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateTemplate<'de> { "application/json", ); type Response = UpdateTemplateResponse; +} + +///Endpoint type for +///tools.ozone.communication.updateTemplate +pub struct UpdateTemplateRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateTemplateRequest { + const PATH: &'static str = "/xrpc/tools.ozone.communication.updateTemplate"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateTemplate<'de>; + type Response = UpdateTemplateResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/hosting/get_account_history.rs b/crates/jacquard-api/src/tools_ozone/hosting/get_account_history.rs index 2dd0a26b..f7378dec 100644 --- a/crates/jacquard-api/src/tools_ozone/hosting/get_account_history.rs +++ b/crates/jacquard-api/src/tools_ozone/hosting/get_account_history.rs @@ -167,6 +167,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetAccountHistory<'de> { type Response = GetAccountHistoryResponse; } +///Endpoint type for +///tools.ozone.hosting.getAccountHistory +pub struct GetAccountHistoryRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetAccountHistoryRequest { + const PATH: &'static str = "/xrpc/tools.ozone.hosting.getAccountHistory"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetAccountHistory<'de>; + type Response = GetAccountHistoryResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/tools_ozone/moderation/cancel_scheduled_actions.rs b/crates/jacquard-api/src/tools_ozone/moderation/cancel_scheduled_actions.rs index edc7dcf5..8d0a1f88 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/cancel_scheduled_actions.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/cancel_scheduled_actions.rs @@ -112,4 +112,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for CancelScheduledActions<'de "application/json", ); type Response = CancelScheduledActionsResponse; +} + +///Endpoint type for +///tools.ozone.moderation.cancelScheduledActions +pub struct CancelScheduledActionsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for CancelScheduledActionsRequest { + const PATH: &'static str = "/xrpc/tools.ozone.moderation.cancelScheduledActions"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = CancelScheduledActions<'de>; + type Response = CancelScheduledActionsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/moderation/emit_event.rs b/crates/jacquard-api/src/tools_ozone/moderation/emit_event.rs index 2aa904c6..9c69870e 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/emit_event.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/emit_event.rs @@ -240,4 +240,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for EmitEvent<'de> { "application/json", ); type Response = EmitEventResponse; +} + +///Endpoint type for +///tools.ozone.moderation.emitEvent +pub struct EmitEventRequest; +impl jacquard_common::xrpc::XrpcEndpoint for EmitEventRequest { + const PATH: &'static str = "/xrpc/tools.ozone.moderation.emitEvent"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = EmitEvent<'de>; + type Response = EmitEventResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/moderation/get_account_timeline.rs b/crates/jacquard-api/src/tools_ozone/moderation/get_account_timeline.rs index 1c2076fc..ccac42b6 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/get_account_timeline.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/get_account_timeline.rs @@ -101,6 +101,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetAccountTimeline<'de> { type Response = GetAccountTimelineResponse; } +///Endpoint type for +///tools.ozone.moderation.getAccountTimeline +pub struct GetAccountTimelineRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetAccountTimelineRequest { + const PATH: &'static str = "/xrpc/tools.ozone.moderation.getAccountTimeline"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetAccountTimeline<'de>; + type Response = GetAccountTimelineResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/tools_ozone/moderation/get_event.rs b/crates/jacquard-api/src/tools_ozone/moderation/get_event.rs index 980770b6..70a81b34 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/get_event.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/get_event.rs @@ -52,4 +52,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetEvent { const NSID: &'static str = "tools.ozone.moderation.getEvent"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetEventResponse; +} + +///Endpoint type for +///tools.ozone.moderation.getEvent +pub struct GetEventRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetEventRequest { + const PATH: &'static str = "/xrpc/tools.ozone.moderation.getEvent"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetEvent; + type Response = GetEventResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/moderation/get_record.rs b/crates/jacquard-api/src/tools_ozone/moderation/get_record.rs index 5500bc28..e8da948a 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/get_record.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/get_record.rs @@ -101,4 +101,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetRecord<'de> { const NSID: &'static str = "tools.ozone.moderation.getRecord"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetRecordResponse; +} + +///Endpoint type for +///tools.ozone.moderation.getRecord +pub struct GetRecordRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetRecordRequest { + const PATH: &'static str = "/xrpc/tools.ozone.moderation.getRecord"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetRecord<'de>; + type Response = GetRecordResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/moderation/get_records.rs b/crates/jacquard-api/src/tools_ozone/moderation/get_records.rs index 5881295d..102f319b 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/get_records.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/get_records.rs @@ -52,4 +52,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetRecords<'de> { const NSID: &'static str = "tools.ozone.moderation.getRecords"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetRecordsResponse; +} + +///Endpoint type for +///tools.ozone.moderation.getRecords +pub struct GetRecordsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetRecordsRequest { + const PATH: &'static str = "/xrpc/tools.ozone.moderation.getRecords"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetRecords<'de>; + type Response = GetRecordsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/moderation/get_repo.rs b/crates/jacquard-api/src/tools_ozone/moderation/get_repo.rs index 8ff06211..bf118568 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/get_repo.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/get_repo.rs @@ -96,4 +96,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetRepo<'de> { const NSID: &'static str = "tools.ozone.moderation.getRepo"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetRepoResponse; +} + +///Endpoint type for +///tools.ozone.moderation.getRepo +pub struct GetRepoRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetRepoRequest { + const PATH: &'static str = "/xrpc/tools.ozone.moderation.getRepo"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetRepo<'de>; + type Response = GetRepoResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/moderation/get_reporter_stats.rs b/crates/jacquard-api/src/tools_ozone/moderation/get_reporter_stats.rs index 20eca2f8..0999a831 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/get_reporter_stats.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/get_reporter_stats.rs @@ -52,4 +52,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetReporterStats<'de> { const NSID: &'static str = "tools.ozone.moderation.getReporterStats"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetReporterStatsResponse; +} + +///Endpoint type for +///tools.ozone.moderation.getReporterStats +pub struct GetReporterStatsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetReporterStatsRequest { + const PATH: &'static str = "/xrpc/tools.ozone.moderation.getReporterStats"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetReporterStats<'de>; + type Response = GetReporterStatsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/moderation/get_repos.rs b/crates/jacquard-api/src/tools_ozone/moderation/get_repos.rs index 413ab8d7..5e64e5b5 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/get_repos.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/get_repos.rs @@ -52,4 +52,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetRepos<'de> { const NSID: &'static str = "tools.ozone.moderation.getRepos"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetReposResponse; +} + +///Endpoint type for +///tools.ozone.moderation.getRepos +pub struct GetReposRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetReposRequest { + const PATH: &'static str = "/xrpc/tools.ozone.moderation.getRepos"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetRepos<'de>; + type Response = GetReposResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/moderation/get_subjects.rs b/crates/jacquard-api/src/tools_ozone/moderation/get_subjects.rs index 820ba025..3860f686 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/get_subjects.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/get_subjects.rs @@ -52,4 +52,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetSubjects<'de> { const NSID: &'static str = "tools.ozone.moderation.getSubjects"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetSubjectsResponse; +} + +///Endpoint type for +///tools.ozone.moderation.getSubjects +pub struct GetSubjectsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetSubjectsRequest { + const PATH: &'static str = "/xrpc/tools.ozone.moderation.getSubjects"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetSubjects<'de>; + type Response = GetSubjectsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/moderation/list_scheduled_actions.rs b/crates/jacquard-api/src/tools_ozone/moderation/list_scheduled_actions.rs index d437433a..15b6d203 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/list_scheduled_actions.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/list_scheduled_actions.rs @@ -85,4 +85,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ListScheduledActions<'de> "application/json", ); type Response = ListScheduledActionsResponse; +} + +///Endpoint type for +///tools.ozone.moderation.listScheduledActions +pub struct ListScheduledActionsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ListScheduledActionsRequest { + const PATH: &'static str = "/xrpc/tools.ozone.moderation.listScheduledActions"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = ListScheduledActions<'de>; + type Response = ListScheduledActionsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/moderation/query_events.rs b/crates/jacquard-api/src/tools_ozone/moderation/query_events.rs index 7e549efa..e1a88d30 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/query_events.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/query_events.rs @@ -123,4 +123,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for QueryEvents<'de> { const NSID: &'static str = "tools.ozone.moderation.queryEvents"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = QueryEventsResponse; +} + +///Endpoint type for +///tools.ozone.moderation.queryEvents +pub struct QueryEventsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for QueryEventsRequest { + const PATH: &'static str = "/xrpc/tools.ozone.moderation.queryEvents"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = QueryEvents<'de>; + type Response = QueryEventsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/moderation/query_statuses.rs b/crates/jacquard-api/src/tools_ozone/moderation/query_statuses.rs index 1c6b11c6..37a29b56 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/query_statuses.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/query_statuses.rs @@ -160,4 +160,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for QueryStatuses<'de> { const NSID: &'static str = "tools.ozone.moderation.queryStatuses"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = QueryStatusesResponse; +} + +///Endpoint type for +///tools.ozone.moderation.queryStatuses +pub struct QueryStatusesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for QueryStatusesRequest { + const PATH: &'static str = "/xrpc/tools.ozone.moderation.queryStatuses"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = QueryStatuses<'de>; + type Response = QueryStatusesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/moderation/schedule_action.rs b/crates/jacquard-api/src/tools_ozone/moderation/schedule_action.rs index 9b6c6913..59a0b0ad 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/schedule_action.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/schedule_action.rs @@ -110,6 +110,18 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ScheduleAction<'de> { type Response = ScheduleActionResponse; } +///Endpoint type for +///tools.ozone.moderation.scheduleAction +pub struct ScheduleActionRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ScheduleActionRequest { + const PATH: &'static str = "/xrpc/tools.ozone.moderation.scheduleAction"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = ScheduleAction<'de>; + type Response = ScheduleActionResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/tools_ozone/moderation/search_repos.rs b/crates/jacquard-api/src/tools_ozone/moderation/search_repos.rs index fa5b1978..210a05ee 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/search_repos.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/search_repos.rs @@ -68,4 +68,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SearchRepos<'de> { const NSID: &'static str = "tools.ozone.moderation.searchRepos"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = SearchReposResponse; +} + +///Endpoint type for +///tools.ozone.moderation.searchRepos +pub struct SearchReposRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SearchReposRequest { + const PATH: &'static str = "/xrpc/tools.ozone.moderation.searchRepos"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = SearchRepos<'de>; + type Response = SearchReposResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/safelink/add_rule.rs b/crates/jacquard-api/src/tools_ozone/safelink/add_rule.rs index 106404a5..461dd01f 100644 --- a/crates/jacquard-api/src/tools_ozone/safelink/add_rule.rs +++ b/crates/jacquard-api/src/tools_ozone/safelink/add_rule.rs @@ -137,4 +137,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for AddRule<'de> { "application/json", ); type Response = AddRuleResponse; +} + +///Endpoint type for +///tools.ozone.safelink.addRule +pub struct AddRuleRequest; +impl jacquard_common::xrpc::XrpcEndpoint for AddRuleRequest { + const PATH: &'static str = "/xrpc/tools.ozone.safelink.addRule"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = AddRule<'de>; + type Response = AddRuleResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/safelink/query_events.rs b/crates/jacquard-api/src/tools_ozone/safelink/query_events.rs index c23254c4..45a08e55 100644 --- a/crates/jacquard-api/src/tools_ozone/safelink/query_events.rs +++ b/crates/jacquard-api/src/tools_ozone/safelink/query_events.rs @@ -86,4 +86,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for QueryEvents<'de> { "application/json", ); type Response = QueryEventsResponse; +} + +///Endpoint type for +///tools.ozone.safelink.queryEvents +pub struct QueryEventsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for QueryEventsRequest { + const PATH: &'static str = "/xrpc/tools.ozone.safelink.queryEvents"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = QueryEvents<'de>; + type Response = QueryEventsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/safelink/query_rules.rs b/crates/jacquard-api/src/tools_ozone/safelink/query_rules.rs index 9e5c494f..1a092a2a 100644 --- a/crates/jacquard-api/src/tools_ozone/safelink/query_rules.rs +++ b/crates/jacquard-api/src/tools_ozone/safelink/query_rules.rs @@ -99,4 +99,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for QueryRules<'de> { "application/json", ); type Response = QueryRulesResponse; +} + +///Endpoint type for +///tools.ozone.safelink.queryRules +pub struct QueryRulesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for QueryRulesRequest { + const PATH: &'static str = "/xrpc/tools.ozone.safelink.queryRules"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = QueryRules<'de>; + type Response = QueryRulesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/safelink/remove_rule.rs b/crates/jacquard-api/src/tools_ozone/safelink/remove_rule.rs index 93196eee..fc07cbd7 100644 --- a/crates/jacquard-api/src/tools_ozone/safelink/remove_rule.rs +++ b/crates/jacquard-api/src/tools_ozone/safelink/remove_rule.rs @@ -122,4 +122,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for RemoveRule<'de> { "application/json", ); type Response = RemoveRuleResponse; +} + +///Endpoint type for +///tools.ozone.safelink.removeRule +pub struct RemoveRuleRequest; +impl jacquard_common::xrpc::XrpcEndpoint for RemoveRuleRequest { + const PATH: &'static str = "/xrpc/tools.ozone.safelink.removeRule"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = RemoveRule<'de>; + type Response = RemoveRuleResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/safelink/update_rule.rs b/crates/jacquard-api/src/tools_ozone/safelink/update_rule.rs index 717cb542..1df69a8d 100644 --- a/crates/jacquard-api/src/tools_ozone/safelink/update_rule.rs +++ b/crates/jacquard-api/src/tools_ozone/safelink/update_rule.rs @@ -126,4 +126,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateRule<'de> { "application/json", ); type Response = UpdateRuleResponse; +} + +///Endpoint type for +///tools.ozone.safelink.updateRule +pub struct UpdateRuleRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateRuleRequest { + const PATH: &'static str = "/xrpc/tools.ozone.safelink.updateRule"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateRule<'de>; + type Response = UpdateRuleResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/server/get_config.rs b/crates/jacquard-api/src/tools_ozone/server/get_config.rs index ddad8bcf..70a7eb9a 100644 --- a/crates/jacquard-api/src/tools_ozone/server/get_config.rs +++ b/crates/jacquard-api/src/tools_ozone/server/get_config.rs @@ -39,7 +39,16 @@ pub struct GetConfigOutput<'a> { } /// XRPC request marker type -#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[derive( + Debug, + Clone, + Copy, + PartialEq, + Eq, + serde::Serialize, + serde::Deserialize, + jacquard_derive::IntoStatic +)] pub struct GetConfig; ///Response type for ///tools.ozone.server.getConfig @@ -57,6 +66,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetConfig { type Response = GetConfigResponse; } +///Endpoint type for +///tools.ozone.server.getConfig +pub struct GetConfigRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetConfigRequest { + const PATH: &'static str = "/xrpc/tools.ozone.server.getConfig"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetConfig; + type Response = GetConfigResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/tools_ozone/set/add_values.rs b/crates/jacquard-api/src/tools_ozone/set/add_values.rs index 7ffeda96..077b2d5a 100644 --- a/crates/jacquard-api/src/tools_ozone/set/add_values.rs +++ b/crates/jacquard-api/src/tools_ozone/set/add_values.rs @@ -51,4 +51,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for AddValues<'de> { "application/json", ); type Response = AddValuesResponse; +} + +///Endpoint type for +///tools.ozone.set.addValues +pub struct AddValuesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for AddValuesRequest { + const PATH: &'static str = "/xrpc/tools.ozone.set.addValues"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = AddValues<'de>; + type Response = AddValuesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/set/delete_set.rs b/crates/jacquard-api/src/tools_ozone/set/delete_set.rs index 388b7b11..acf59b0c 100644 --- a/crates/jacquard-api/src/tools_ozone/set/delete_set.rs +++ b/crates/jacquard-api/src/tools_ozone/set/delete_set.rs @@ -106,4 +106,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeleteSet<'de> { "application/json", ); type Response = DeleteSetResponse; +} + +///Endpoint type for +///tools.ozone.set.deleteSet +pub struct DeleteSetRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeleteSetRequest { + const PATH: &'static str = "/xrpc/tools.ozone.set.deleteSet"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeleteSet<'de>; + type Response = DeleteSetResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/set/delete_values.rs b/crates/jacquard-api/src/tools_ozone/set/delete_values.rs index 89f82155..e9d4336f 100644 --- a/crates/jacquard-api/src/tools_ozone/set/delete_values.rs +++ b/crates/jacquard-api/src/tools_ozone/set/delete_values.rs @@ -97,4 +97,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeleteValues<'de> { "application/json", ); type Response = DeleteValuesResponse; +} + +///Endpoint type for +///tools.ozone.set.deleteValues +pub struct DeleteValuesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeleteValuesRequest { + const PATH: &'static str = "/xrpc/tools.ozone.set.deleteValues"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeleteValues<'de>; + type Response = DeleteValuesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/set/get_values.rs b/crates/jacquard-api/src/tools_ozone/set/get_values.rs index 098c3549..b2d7fd98 100644 --- a/crates/jacquard-api/src/tools_ozone/set/get_values.rs +++ b/crates/jacquard-api/src/tools_ozone/set/get_values.rs @@ -111,4 +111,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetValues<'de> { const NSID: &'static str = "tools.ozone.set.getValues"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = GetValuesResponse; +} + +///Endpoint type for +///tools.ozone.set.getValues +pub struct GetValuesRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetValuesRequest { + const PATH: &'static str = "/xrpc/tools.ozone.set.getValues"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = GetValues<'de>; + type Response = GetValuesResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/set/query_sets.rs b/crates/jacquard-api/src/tools_ozone/set/query_sets.rs index b4f7c4b9..3447f904 100644 --- a/crates/jacquard-api/src/tools_ozone/set/query_sets.rs +++ b/crates/jacquard-api/src/tools_ozone/set/query_sets.rs @@ -74,4 +74,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for QuerySets<'de> { const NSID: &'static str = "tools.ozone.set.querySets"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = QuerySetsResponse; +} + +///Endpoint type for +///tools.ozone.set.querySets +pub struct QuerySetsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for QuerySetsRequest { + const PATH: &'static str = "/xrpc/tools.ozone.set.querySets"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = QuerySets<'de>; + type Response = QuerySetsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/set/upsert_set.rs b/crates/jacquard-api/src/tools_ozone/set/upsert_set.rs index 4c9056a0..f808d5d3 100644 --- a/crates/jacquard-api/src/tools_ozone/set/upsert_set.rs +++ b/crates/jacquard-api/src/tools_ozone/set/upsert_set.rs @@ -64,4 +64,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpsertSet<'de> { "application/json", ); type Response = UpsertSetResponse; +} + +///Endpoint type for +///tools.ozone.set.upsertSet +pub struct UpsertSetRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpsertSetRequest { + const PATH: &'static str = "/xrpc/tools.ozone.set.upsertSet"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpsertSet<'de>; + type Response = UpsertSetResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/setting/list_options.rs b/crates/jacquard-api/src/tools_ozone/setting/list_options.rs index 4265c9fc..4f06dc36 100644 --- a/crates/jacquard-api/src/tools_ozone/setting/list_options.rs +++ b/crates/jacquard-api/src/tools_ozone/setting/list_options.rs @@ -72,4 +72,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ListOptions<'de> { const NSID: &'static str = "tools.ozone.setting.listOptions"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = ListOptionsResponse; +} + +///Endpoint type for +///tools.ozone.setting.listOptions +pub struct ListOptionsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ListOptionsRequest { + const PATH: &'static str = "/xrpc/tools.ozone.setting.listOptions"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ListOptions<'de>; + type Response = ListOptionsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/setting/remove_options.rs b/crates/jacquard-api/src/tools_ozone/setting/remove_options.rs index 125a2455..0ef2b219 100644 --- a/crates/jacquard-api/src/tools_ozone/setting/remove_options.rs +++ b/crates/jacquard-api/src/tools_ozone/setting/remove_options.rs @@ -61,4 +61,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for RemoveOptions<'de> { "application/json", ); type Response = RemoveOptionsResponse; +} + +///Endpoint type for +///tools.ozone.setting.removeOptions +pub struct RemoveOptionsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for RemoveOptionsRequest { + const PATH: &'static str = "/xrpc/tools.ozone.setting.removeOptions"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = RemoveOptions<'de>; + type Response = RemoveOptionsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/setting/upsert_option.rs b/crates/jacquard-api/src/tools_ozone/setting/upsert_option.rs index 7f5749ae..64741a94 100644 --- a/crates/jacquard-api/src/tools_ozone/setting/upsert_option.rs +++ b/crates/jacquard-api/src/tools_ozone/setting/upsert_option.rs @@ -75,4 +75,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpsertOption<'de> { "application/json", ); type Response = UpsertOptionResponse; +} + +///Endpoint type for +///tools.ozone.setting.upsertOption +pub struct UpsertOptionRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpsertOptionRequest { + const PATH: &'static str = "/xrpc/tools.ozone.setting.upsertOption"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpsertOption<'de>; + type Response = UpsertOptionResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/signature/find_correlation.rs b/crates/jacquard-api/src/tools_ozone/signature/find_correlation.rs index 08de2ddf..5b002d31 100644 --- a/crates/jacquard-api/src/tools_ozone/signature/find_correlation.rs +++ b/crates/jacquard-api/src/tools_ozone/signature/find_correlation.rs @@ -52,4 +52,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for FindCorrelation<'de> { const NSID: &'static str = "tools.ozone.signature.findCorrelation"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = FindCorrelationResponse; +} + +///Endpoint type for +///tools.ozone.signature.findCorrelation +pub struct FindCorrelationRequest; +impl jacquard_common::xrpc::XrpcEndpoint for FindCorrelationRequest { + const PATH: &'static str = "/xrpc/tools.ozone.signature.findCorrelation"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = FindCorrelation<'de>; + type Response = FindCorrelationResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/signature/find_related_accounts.rs b/crates/jacquard-api/src/tools_ozone/signature/find_related_accounts.rs index 63cb43e3..9c5c2e89 100644 --- a/crates/jacquard-api/src/tools_ozone/signature/find_related_accounts.rs +++ b/crates/jacquard-api/src/tools_ozone/signature/find_related_accounts.rs @@ -64,6 +64,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for FindRelatedAccounts<'de> { type Response = FindRelatedAccountsResponse; } +///Endpoint type for +///tools.ozone.signature.findRelatedAccounts +pub struct FindRelatedAccountsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for FindRelatedAccountsRequest { + const PATH: &'static str = "/xrpc/tools.ozone.signature.findRelatedAccounts"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = FindRelatedAccounts<'de>; + type Response = FindRelatedAccountsResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/tools_ozone/signature/search_accounts.rs b/crates/jacquard-api/src/tools_ozone/signature/search_accounts.rs index bdcd8343..5a6b07c5 100644 --- a/crates/jacquard-api/src/tools_ozone/signature/search_accounts.rs +++ b/crates/jacquard-api/src/tools_ozone/signature/search_accounts.rs @@ -62,4 +62,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for SearchAccounts<'de> { const NSID: &'static str = "tools.ozone.signature.searchAccounts"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = SearchAccountsResponse; +} + +///Endpoint type for +///tools.ozone.signature.searchAccounts +pub struct SearchAccountsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for SearchAccountsRequest { + const PATH: &'static str = "/xrpc/tools.ozone.signature.searchAccounts"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = SearchAccounts<'de>; + type Response = SearchAccountsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/team/add_member.rs b/crates/jacquard-api/src/tools_ozone/team/add_member.rs index 3ae93ac5..e2d32119 100644 --- a/crates/jacquard-api/src/tools_ozone/team/add_member.rs +++ b/crates/jacquard-api/src/tools_ozone/team/add_member.rs @@ -112,4 +112,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for AddMember<'de> { "application/json", ); type Response = AddMemberResponse; +} + +///Endpoint type for +///tools.ozone.team.addMember +pub struct AddMemberRequest; +impl jacquard_common::xrpc::XrpcEndpoint for AddMemberRequest { + const PATH: &'static str = "/xrpc/tools.ozone.team.addMember"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = AddMember<'de>; + type Response = AddMemberResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/team/delete_member.rs b/crates/jacquard-api/src/tools_ozone/team/delete_member.rs index 58995b02..2ad70326 100644 --- a/crates/jacquard-api/src/tools_ozone/team/delete_member.rs +++ b/crates/jacquard-api/src/tools_ozone/team/delete_member.rs @@ -105,4 +105,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DeleteMember<'de> { "application/json", ); type Response = DeleteMemberResponse; +} + +///Endpoint type for +///tools.ozone.team.deleteMember +pub struct DeleteMemberRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DeleteMemberRequest { + const PATH: &'static str = "/xrpc/tools.ozone.team.deleteMember"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DeleteMember<'de>; + type Response = DeleteMemberResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/team/list_members.rs b/crates/jacquard-api/src/tools_ozone/team/list_members.rs index 2858e487..3651fba3 100644 --- a/crates/jacquard-api/src/tools_ozone/team/list_members.rs +++ b/crates/jacquard-api/src/tools_ozone/team/list_members.rs @@ -69,4 +69,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ListMembers<'de> { const NSID: &'static str = "tools.ozone.team.listMembers"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = ListMembersResponse; +} + +///Endpoint type for +///tools.ozone.team.listMembers +pub struct ListMembersRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ListMembersRequest { + const PATH: &'static str = "/xrpc/tools.ozone.team.listMembers"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ListMembers<'de>; + type Response = ListMembersResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/team/update_member.rs b/crates/jacquard-api/src/tools_ozone/team/update_member.rs index d07bf5de..cc861ec2 100644 --- a/crates/jacquard-api/src/tools_ozone/team/update_member.rs +++ b/crates/jacquard-api/src/tools_ozone/team/update_member.rs @@ -115,4 +115,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for UpdateMember<'de> { "application/json", ); type Response = UpdateMemberResponse; +} + +///Endpoint type for +///tools.ozone.team.updateMember +pub struct UpdateMemberRequest; +impl jacquard_common::xrpc::XrpcEndpoint for UpdateMemberRequest { + const PATH: &'static str = "/xrpc/tools.ozone.team.updateMember"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = UpdateMember<'de>; + type Response = UpdateMemberResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/verification/grant_verifications.rs b/crates/jacquard-api/src/tools_ozone/verification/grant_verifications.rs index b21426ee..c3926251 100644 --- a/crates/jacquard-api/src/tools_ozone/verification/grant_verifications.rs +++ b/crates/jacquard-api/src/tools_ozone/verification/grant_verifications.rs @@ -88,6 +88,18 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GrantVerifications<'de> { type Response = GrantVerificationsResponse; } +///Endpoint type for +///tools.ozone.verification.grantVerifications +pub struct GrantVerificationsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GrantVerificationsRequest { + const PATH: &'static str = "/xrpc/tools.ozone.verification.grantVerifications"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = GrantVerifications<'de>; + type Response = GrantVerificationsResponse; +} + #[jacquard_derive::lexicon] #[derive( serde::Serialize, diff --git a/crates/jacquard-api/src/tools_ozone/verification/list_verifications.rs b/crates/jacquard-api/src/tools_ozone/verification/list_verifications.rs index 6d9776ab..afc970ed 100644 --- a/crates/jacquard-api/src/tools_ozone/verification/list_verifications.rs +++ b/crates/jacquard-api/src/tools_ozone/verification/list_verifications.rs @@ -77,4 +77,14 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for ListVerifications<'de> { const NSID: &'static str = "tools.ozone.verification.listVerifications"; const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; type Response = ListVerificationsResponse; +} + +///Endpoint type for +///tools.ozone.verification.listVerifications +pub struct ListVerificationsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for ListVerificationsRequest { + const PATH: &'static str = "/xrpc/tools.ozone.verification.listVerifications"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query; + type Request<'de> = ListVerifications<'de>; + type Response = ListVerificationsResponse; } \ No newline at end of file diff --git a/crates/jacquard-api/src/tools_ozone/verification/revoke_verifications.rs b/crates/jacquard-api/src/tools_ozone/verification/revoke_verifications.rs index 63900468..9aa8ba4b 100644 --- a/crates/jacquard-api/src/tools_ozone/verification/revoke_verifications.rs +++ b/crates/jacquard-api/src/tools_ozone/verification/revoke_verifications.rs @@ -74,6 +74,18 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for RevokeVerifications<'de> { type Response = RevokeVerificationsResponse; } +///Endpoint type for +///tools.ozone.verification.revokeVerifications +pub struct RevokeVerificationsRequest; +impl jacquard_common::xrpc::XrpcEndpoint for RevokeVerificationsRequest { + const PATH: &'static str = "/xrpc/tools.ozone.verification.revokeVerifications"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = RevokeVerifications<'de>; + type Response = RevokeVerificationsResponse; +} + ///Error object for failed revocations #[jacquard_derive::lexicon] #[derive( diff --git a/crates/jacquard-api/src/uk_ewancroft.rs b/crates/jacquard-api/src/uk_ewancroft.rs index abd90075..351b1f7d 100644 --- a/crates/jacquard-api/src/uk_ewancroft.rs +++ b/crates/jacquard-api/src/uk_ewancroft.rs @@ -3,6 +3,4 @@ // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. -pub mod now; -pub mod site; -pub mod snake; \ No newline at end of file +pub mod now; \ No newline at end of file diff --git a/crates/jacquard-api/src/uk_skyblur.rs b/crates/jacquard-api/src/uk_skyblur.rs new file mode 100644 index 00000000..4b0f41f0 --- /dev/null +++ b/crates/jacquard-api/src/uk_skyblur.rs @@ -0,0 +1,7 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod post; +pub mod preference; \ No newline at end of file diff --git a/crates/jacquard-api/src/uk_skyblur/post.rs b/crates/jacquard-api/src/uk_skyblur/post.rs new file mode 100644 index 00000000..9782bed0 --- /dev/null +++ b/crates/jacquard-api/src/uk_skyblur/post.rs @@ -0,0 +1,47 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: uk.skyblur.post +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod decrypt_by_cid; +pub mod encrypt; +pub mod get_post; + +///Record containing a Skyblur post. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Post<'a> { + ///The post additional contents. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub additional: std::option::Option>, + ///Created date assigned by client + pub created_at: jacquard_common::types::string::Datetime, + ///Encrypted post body. It shoud be decrypted by the client with AES-256. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub encrypt_body: std::option::Option>, + ///The post main contents. Blurred text must be enclosed in brackets []. + #[serde(borrow)] + pub text: jacquard_common::CowStr<'a>, + #[serde(borrow)] + pub uri: jacquard_common::types::string::AtUri<'a>, + ///For 'password', the text only contains blurred text, and additional is always empty. The unblurred text and additional are included in the encryptBody. + #[serde(borrow)] + pub visibility: jacquard_common::CowStr<'a>, +} + +impl jacquard_common::types::collection::Collection for Post<'_> { + const NSID: &'static str = "uk.skyblur.post"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/uk_skyblur/post/decrypt_by_cid.rs b/crates/jacquard-api/src/uk_skyblur/post/decrypt_by_cid.rs new file mode 100644 index 00000000..07db21ec --- /dev/null +++ b/crates/jacquard-api/src/uk_skyblur/post/decrypt_by_cid.rs @@ -0,0 +1,91 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: uk.skyblur.post.decryptByCid +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct DecryptByCid<'a> { + #[serde(borrow)] + pub cid: jacquard_common::types::string::Cid<'a>, + #[serde(borrow)] + #[builder(into)] + pub password: jacquard_common::CowStr<'a>, + #[serde(borrow)] + pub pds: jacquard_common::types::string::Uri<'a>, + #[serde(borrow)] + pub repo: jacquard_common::types::string::Did<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +///Returns the encrypted result. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct DecryptByCidOutput<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub additional: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub message: std::option::Option>, + #[serde(borrow)] + pub text: jacquard_common::CowStr<'a>, +} + +///Response type for +///uk.skyblur.post.decryptByCid +pub struct DecryptByCidResponse; +impl jacquard_common::xrpc::XrpcResp for DecryptByCidResponse { + const NSID: &'static str = "uk.skyblur.post.decryptByCid"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = DecryptByCidOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for DecryptByCid<'de> { + const NSID: &'static str = "uk.skyblur.post.decryptByCid"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = DecryptByCidResponse; +} + +///Endpoint type for +///uk.skyblur.post.decryptByCid +pub struct DecryptByCidRequest; +impl jacquard_common::xrpc::XrpcEndpoint for DecryptByCidRequest { + const PATH: &'static str = "/xrpc/uk.skyblur.post.decryptByCid"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = DecryptByCid<'de>; + type Response = DecryptByCidResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/uk_skyblur/post/encrypt.rs b/crates/jacquard-api/src/uk_skyblur/post/encrypt.rs new file mode 100644 index 00000000..bdec8abf --- /dev/null +++ b/crates/jacquard-api/src/uk_skyblur/post/encrypt.rs @@ -0,0 +1,85 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: uk.skyblur.post.encrypt +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct Encrypt<'a> { + #[serde(borrow)] + #[builder(into)] + pub body: jacquard_common::CowStr<'a>, + #[serde(borrow)] + #[builder(into)] + pub password: jacquard_common::CowStr<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +///Returns the encrypted result. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct EncryptOutput<'a> { + #[serde(borrow)] + pub body: jacquard_common::CowStr<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub message: std::option::Option>, +} + +///Response type for +///uk.skyblur.post.encrypt +pub struct EncryptResponse; +impl jacquard_common::xrpc::XrpcResp for EncryptResponse { + const NSID: &'static str = "uk.skyblur.post.encrypt"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = EncryptOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for Encrypt<'de> { + const NSID: &'static str = "uk.skyblur.post.encrypt"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = EncryptResponse; +} + +///Endpoint type for +///uk.skyblur.post.encrypt +pub struct EncryptRequest; +impl jacquard_common::xrpc::XrpcEndpoint for EncryptRequest { + const PATH: &'static str = "/xrpc/uk.skyblur.post.encrypt"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = Encrypt<'de>; + type Response = EncryptResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/uk_skyblur/post/get_post.rs b/crates/jacquard-api/src/uk_skyblur/post/get_post.rs new file mode 100644 index 00000000..daacc69f --- /dev/null +++ b/crates/jacquard-api/src/uk_skyblur/post/get_post.rs @@ -0,0 +1,89 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: uk.skyblur.post.getPost +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + bon::Builder, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +#[builder(start_fn = new)] +pub struct GetPost<'a> { + ///If the specified uri is password-protected, please provide the password. If no password is specified, the non-protected content will be returned. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + #[builder(into)] + pub password: std::option::Option>, + ///Skyblur post at-uri. It shoud be uk.skyblur.post collection. + #[serde(borrow)] + pub uri: jacquard_common::types::string::AtUri<'a>, + #[serde(flatten)] + #[serde(borrow)] + #[builder(default)] + pub extra_data: ::std::collections::BTreeMap< + ::jacquard_common::smol_str::SmolStr, + ::jacquard_common::types::value::Data<'a>, + >, +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct GetPostOutput<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub additional: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub message: std::option::Option>, + #[serde(borrow)] + pub text: jacquard_common::CowStr<'a>, +} + +///Response type for +///uk.skyblur.post.getPost +pub struct GetPostResponse; +impl jacquard_common::xrpc::XrpcResp for GetPostResponse { + const NSID: &'static str = "uk.skyblur.post.getPost"; + const ENCODING: &'static str = "application/json"; + type Output<'de> = GetPostOutput<'de>; + type Err<'de> = jacquard_common::xrpc::GenericError<'de>; +} + +impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for GetPost<'de> { + const NSID: &'static str = "uk.skyblur.post.getPost"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Response = GetPostResponse; +} + +///Endpoint type for +///uk.skyblur.post.getPost +pub struct GetPostRequest; +impl jacquard_common::xrpc::XrpcEndpoint for GetPostRequest { + const PATH: &'static str = "/xrpc/uk.skyblur.post.getPost"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = GetPost<'de>; + type Response = GetPostResponse; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/uk_skyblur/preference.rs b/crates/jacquard-api/src/uk_skyblur/preference.rs new file mode 100644 index 00000000..8c8c9c2c --- /dev/null +++ b/crates/jacquard-api/src/uk_skyblur/preference.rs @@ -0,0 +1,64 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: uk.skyblur.preference +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///A declaration of a Skyblur account. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Preference<'a> { + #[serde(borrow)] + pub my_page: PreferenceRecordMyPage<'a>, +} + +#[jacquard_derive::open_union] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(tag = "$type")] +#[serde(bound(deserialize = "'de: 'a"))] +pub enum PreferenceRecordMyPage<'a> { + #[serde(rename = "uk.skyblur.preference#myPage")] + PreferenceMyPage(Box>), +} + +impl jacquard_common::types::collection::Collection for Preference<'_> { + const NSID: &'static str = "uk.skyblur.preference"; +} + +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct MyPage<'a> { + ///Define the description displayed on MyPage. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub description: std::option::Option>, + ///If this item is true, MyPage will be displayed. + pub is_use_my_page: bool, +} \ No newline at end of file diff --git a/crates/jacquard-api/src/us_polhem.rs b/crates/jacquard-api/src/us_polhem.rs new file mode 100644 index 00000000..cefb4e14 --- /dev/null +++ b/crates/jacquard-api/src/us_polhem.rs @@ -0,0 +1,6 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod blog; \ No newline at end of file diff --git a/crates/jacquard-api/src/us_polhem/blog.rs b/crates/jacquard-api/src/us_polhem/blog.rs new file mode 100644 index 00000000..11f96956 --- /dev/null +++ b/crates/jacquard-api/src/us_polhem/blog.rs @@ -0,0 +1,27 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: us.polhem.blog.defs +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +pub mod content; +pub mod post; +pub mod tag; + +///width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct AspectRatio<'a> { + pub height: i64, + pub width: i64, +} \ No newline at end of file diff --git a/crates/jacquard-api/src/us_polhem/blog/content.rs b/crates/jacquard-api/src/us_polhem/blog/content.rs new file mode 100644 index 00000000..df5e793b --- /dev/null +++ b/crates/jacquard-api/src/us_polhem/blog/content.rs @@ -0,0 +1,33 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: us.polhem.blog.content +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///Record describing a page content block. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Content<'a> { + #[serde(borrow)] + pub content: jacquard_common::CowStr<'a>, + pub created_at: jacquard_common::types::string::Datetime, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub images: std::option::Option>>, + #[serde(borrow)] + pub slug: jacquard_common::CowStr<'a>, +} + +impl jacquard_common::types::collection::Collection for Content<'_> { + const NSID: &'static str = "us.polhem.blog.content"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/us_polhem/blog/post.rs b/crates/jacquard-api/src/us_polhem/blog/post.rs new file mode 100644 index 00000000..740db404 --- /dev/null +++ b/crates/jacquard-api/src/us_polhem/blog/post.rs @@ -0,0 +1,48 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: us.polhem.blog.post +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///Record describing a blog post. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Post<'a> { + #[serde(borrow)] + pub content: jacquard_common::CowStr<'a>, + pub created_at: jacquard_common::types::string::Datetime, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub excerpt: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub featured_image: std::option::Option>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub images: std::option::Option>>, + #[serde(borrow)] + pub slug: jacquard_common::CowStr<'a>, + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub tags: std::option::Option>>, + #[serde(borrow)] + pub title: jacquard_common::CowStr<'a>, + ///Tells the visibility of the article to AppView. + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub visibility: std::option::Option>, +} + +impl jacquard_common::types::collection::Collection for Post<'_> { + const NSID: &'static str = "us.polhem.blog.post"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/us_polhem/blog/tag.rs b/crates/jacquard-api/src/us_polhem/blog/tag.rs new file mode 100644 index 00000000..9b09b1f4 --- /dev/null +++ b/crates/jacquard-api/src/us_polhem/blog/tag.rs @@ -0,0 +1,32 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: us.polhem.blog.tag +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///Record describing a blog tag. +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Tag<'a> { + pub created_at: jacquard_common::types::string::Datetime, + #[serde(borrow)] + pub description: jacquard_common::CowStr<'a>, + #[serde(borrow)] + pub name: jacquard_common::CowStr<'a>, + #[serde(borrow)] + pub slug: jacquard_common::CowStr<'a>, +} + +impl jacquard_common::types::collection::Collection for Tag<'_> { + const NSID: &'static str = "us.polhem.blog.tag"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/win_tomo_x/pushat/allow.rs b/crates/jacquard-api/src/win_tomo_x/pushat/allow.rs new file mode 100644 index 00000000..ac68fdc7 --- /dev/null +++ b/crates/jacquard-api/src/win_tomo_x/pushat/allow.rs @@ -0,0 +1,29 @@ +// @generated by jacquard-lexicon. DO NOT EDIT. +// +// Lexicon: win.tomo-x.pushat.allow +// +// This file was automatically generated from Lexicon schemas. +// Any manual changes will be overwritten on the next regeneration. + +///allow service to push. key must be did +#[jacquard_derive::lexicon] +#[derive( + serde::Serialize, + serde::Deserialize, + Debug, + Clone, + PartialEq, + Eq, + jacquard_derive::IntoStatic +)] +#[serde(rename_all = "camelCase")] +pub struct Allow<'a> { + #[serde(skip_serializing_if = "std::option::Option::is_none")] + #[serde(borrow)] + pub config: std::option::Option>, + pub created_at: jacquard_common::types::string::Datetime, +} + +impl jacquard_common::types::collection::Collection for Allow<'_> { + const NSID: &'static str = "win.tomo-x.pushat.allow"; +} \ No newline at end of file diff --git a/crates/jacquard-api/src/win_tomo_x/pushat/push_notify.rs b/crates/jacquard-api/src/win_tomo_x/pushat/push_notify.rs index 384488de..e345acc2 100644 --- a/crates/jacquard-api/src/win_tomo_x/pushat/push_notify.rs +++ b/crates/jacquard-api/src/win_tomo_x/pushat/push_notify.rs @@ -60,4 +60,16 @@ impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for PushNotify<'de> { "application/json", ); type Response = PushNotifyResponse; +} + +///Endpoint type for +///win.tomo-x.pushat.pushNotify +pub struct PushNotifyRequest; +impl jacquard_common::xrpc::XrpcEndpoint for PushNotifyRequest { + const PATH: &'static str = "/xrpc/win.tomo-x.pushat.pushNotify"; + const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( + "application/json", + ); + type Request<'de> = PushNotify<'de>; + type Response = PushNotifyResponse; } \ No newline at end of file diff --git a/crates/jacquard-axum/Cargo.toml b/crates/jacquard-axum/Cargo.toml index 0e513145..fad99ca5 100644 --- a/crates/jacquard-axum/Cargo.toml +++ b/crates/jacquard-axum/Cargo.toml @@ -12,8 +12,17 @@ homepage.workspace = true license.workspace = true description = "Axum server helpers for Jacquard" +[lib] +path = "src/lib.rs" + +[[bin]] +name = "jacquard_axum" +path = "src/main.rs" + + [dependencies] axum = "0.8.6" +axum-macros = "0.5.0" bytes.workspace = true jacquard = { version = "0.3.0", path = "../jacquard" } jacquard-common = { version = "0.3.0", path = "../jacquard-common", features = ["reqwest-client"] } @@ -24,6 +33,9 @@ serde_ipld_dagcbor.workspace = true serde_json.workspace = true thiserror.workspace = true tokio.workspace = true +tower-http = { version = "0.6.6", features = ["trace", "tracing"] } +tracing = "0.1.41" +tracing-subscriber = { version = "0.3.20", features = ["env-filter", "time"] } [dev-dependencies] axum-test = "18.1.0" diff --git a/crates/jacquard-axum/src/lib.rs b/crates/jacquard-axum/src/lib.rs index 68d6bb8e..2e026a02 100644 --- a/crates/jacquard-axum/src/lib.rs +++ b/crates/jacquard-axum/src/lib.rs @@ -1,74 +1,54 @@ use axum::{ - Router, - body::{Body, Bytes}, + body::Bytes, extract::{FromRequest, Request}, - http::{ - StatusCode, - header::{HeaderValue, USER_AGENT}, - uri::PathAndQuery, - }, - response::{ErrorResponse, IntoResponse, Response}, - routing::get, + http::StatusCode, + response::{IntoResponse, Response}, +}; +use jacquard::{ + IntoStatic, + xrpc::{XrpcEndpoint, XrpcMethod, XrpcRequest}, }; -use jacquard::xrpc::{XrpcError, XrpcMethod, XrpcRequest}; -use serde::Serialize; use serde_json::json; -pub struct ExtractXrpc>(Option); +pub struct ExtractXrpc(pub E::Request<'static>); impl FromRequest for ExtractXrpc where - Bytes: FromRequest, S: Send + Sync, - R: for<'de> XrpcRequest<'de> + for<'de> serde::Deserialize<'de>, + R: XrpcEndpoint, + for<'a> R::Request<'a>: IntoStatic>, { type Rejection = Response; - async fn from_request(req: Request, state: &S) -> Result { - match R::METHOD { - XrpcMethod::Procedure(encoding) => { - let body = Bytes::from_request(req, state) - .await - .map_err(IntoResponse::into_response)?; - match encoding { - "application/json" => { - let value: R = serde_json::from_slice::(&body).map_err(|e| { - ( - StatusCode::BAD_REQUEST, - serde_json::to_string(&json!({ - "error": "InvalidRequest", - "message": XrpcRequestError::JsonDecodeError(e).to_string() - })) - .expect("Failed to serialize error response"), - ) - .into_response() - })?; - Ok(ExtractXrpc(Some(value))) - } - "*/*" => { - let decoded = R::decode_body(&body); - match decoded { - Ok(value) => Ok(ExtractXrpc(Some(*value))), - Err(err) => Err(( - StatusCode::BAD_REQUEST, - serde_json::to_string(&json!({ - "error": "InvalidRequest", - "message": format!("failed to decode request: {}", err) - })) - .expect("Failed to serialize error response"), - ) - .into_response()), - } + fn from_request( + req: Request, + state: &S, + ) -> impl Future> + Send { + async { + match R::METHOD { + XrpcMethod::Procedure(_) => { + let body = Bytes::from_request(req, state) + .await + .map_err(IntoResponse::into_response)?; + let decoded = R::Request::decode_body(&body); + match decoded { + Ok(value) => Ok(ExtractXrpc(*value.into_static())), + Err(err) => Err(( + StatusCode::BAD_REQUEST, + serde_json::to_string(&json!({ + "error": "InvalidRequest", + "message": format!("failed to decode request: {}", err) + })) + .expect("Failed to serialize error response"), + ) + .into_response()), } - _ => todo!("handle other encodings"), } - } - XrpcMethod::Query => { - if let Some(path_query) = req.uri().path_and_query() { - let path = path_query.path(); - if path.ends_with(R::NSID) { - if let Some(query) = path_query.query() { - let value: R = serde_html_form::from_str(query).map_err(|e| { + XrpcMethod::Query => { + if let Some(path_query) = req.uri().path_and_query() { + let query = path_query.query().unwrap_or(""); + let value: R::Request<'_> = + serde_html_form::from_str::>(query).map_err(|e| { ( StatusCode::BAD_REQUEST, serde_json::to_string(&json!({ @@ -79,10 +59,7 @@ where ) .into_response() })?; - Ok(ExtractXrpc(Some(value))) - } else { - Ok(ExtractXrpc(None)) - } + Ok(ExtractXrpc(value.into_static())) } else { Err(( StatusCode::BAD_REQUEST, @@ -94,16 +71,6 @@ where ) .into_response()) } - } else { - Err(( - StatusCode::BAD_REQUEST, - serde_json::to_string(&json!({ - "error": "InvalidRequest", - "message": "wrong nsid for wherever this ended up" - })) - .expect("Failed to serialize error response"), - ) - .into_response()) } } } diff --git a/crates/jacquard-axum/src/main.rs b/crates/jacquard-axum/src/main.rs new file mode 100644 index 00000000..c34e8a72 --- /dev/null +++ b/crates/jacquard-axum/src/main.rs @@ -0,0 +1,73 @@ +use axum::{Router, response::IntoResponse}; +use jacquard::{ + IntoStatic, + api::com_atproto::identity::resolve_did::{ResolveDid, ResolveDidOutput, ResolveDidRequest}, + identity::resolver::IdentityResolver, + types::value::Data, + xrpc::XrpcEndpoint, +}; +use jacquard_axum::ExtractXrpc; +use jacquard_common::xrpc::XrpcMethod; +use miette::{IntoDiagnostic, Result}; +use tracing_subscriber::EnvFilter; + +trait IntoRouter { + fn into_router(handler: U) -> Router + where + T: 'static, + S: Clone + Send + Sync + 'static, + U: axum::handler::Handler; +} + +impl IntoRouter for X +where + X: XrpcEndpoint, +{ + /// Creates an axum router that will invoke `handler` in response to xrpc + /// request `X`. + fn into_router(handler: U) -> Router + where + T: 'static, + S: Clone + Send + Sync + 'static, + U: axum::handler::Handler, + { + Router::new().route( + X::PATH, + (match X::METHOD { + XrpcMethod::Query => axum::routing::get, + XrpcMethod::Procedure(_) => axum::routing::post, + })(handler), + ) + } +} + +#[axum_macros::debug_handler] +async fn handler(ExtractXrpc(args): ExtractXrpc) -> &'static str { + "hello world!" + // let res = jacquard::identity::slingshot_resolver_default(); + // let doc = res.resolve_did_doc(&args.did).await?; + // let valid_doc = doc.parse()?; + // let doc_value = serde_json::to_value(valid_doc).unwrap(); + // Ok(ResolveDidOutput { + // did_doc: Data::from_json(&doc_value).unwrap().into_static(), + // extra_data: Default::default(), + // } + // .into()) +} + +#[tokio::main] +async fn main() -> Result<()> { + tracing_subscriber::fmt() + .with_timer(tracing_subscriber::fmt::time::UtcTime::rfc_3339()) + .with_env_filter(EnvFilter::from_env("QDPDS_LOG")) + .init(); + let app = Router::new() + .route("/", axum::routing::get(|| async { "hello world!" })) + .merge(ResolveDidRequest::into_router(handler)) + .layer(tower_http::trace::TraceLayer::new_for_http()); + let listener = tokio::net::TcpListener::bind("0.0.0.0:3000") + .await + .into_diagnostic()?; + axum::serve(listener, app).await.unwrap(); + Ok(()) +} diff --git a/crates/jacquard-common/src/xrpc.rs b/crates/jacquard-common/src/xrpc.rs index a1545eea..edfb9214 100644 --- a/crates/jacquard-common/src/xrpc.rs +++ b/crates/jacquard-common/src/xrpc.rs @@ -483,13 +483,20 @@ where .map_err(|e| TransportError::InvalidRequest(e.to_string())) } +pub trait XrpcEndpoint { + const PATH: &'static str; + const METHOD: XrpcMethod; + type Request<'de>: XrpcRequest<'de> + IntoStatic; + type Response: XrpcResp; +} + /// XRPC response wrapper that owns the response buffer /// /// Allows borrowing from the buffer when parsing to avoid unnecessary allocations. /// Generic over the response marker type (e.g., `GetAuthorFeedResponse`), not the request. pub struct Response where - Resp: for<'any> XrpcResp, // HRTB: Resp works with any lifetime + Resp: XrpcResp, // HRTB: Resp works with any lifetime { _marker: PhantomData Resp>, buffer: Bytes, @@ -498,7 +505,7 @@ where impl Response where - Resp: for<'any> XrpcResp, + Resp: XrpcResp, { /// Create a new response from a buffer and status code pub fn new(buffer: Bytes, status: StatusCode) -> Self { diff --git a/crates/jacquard-lexicon/src/codegen.rs b/crates/jacquard-lexicon/src/codegen.rs index 3832cc61..2a59bb71 100644 --- a/crates/jacquard-lexicon/src/codegen.rs +++ b/crates/jacquard-lexicon/src/codegen.rs @@ -34,11 +34,21 @@ fn sanitize_name(s: &str) -> String { // Replace invalid characters with underscores let mut sanitized: String = s .chars() - .map(|c| if c.is_alphanumeric() || c == '_' { c } else { '_' }) + .map(|c| { + if c.is_alphanumeric() || c == '_' { + c + } else { + '_' + } + }) .collect(); // Ensure it doesn't start with a digit - if sanitized.chars().next().map_or(false, |c| c.is_ascii_digit()) { + if sanitized + .chars() + .next() + .map_or(false, |c| c.is_ascii_digit()) + { sanitized = format!("_{}", sanitized); } @@ -55,11 +65,13 @@ fn make_ident(s: &str) -> syn::Ident { let sanitized = sanitize_name(s); // Try to parse as ident, fall back to raw ident if needed - syn::parse_str::(&sanitized) - .unwrap_or_else(|_| { - eprintln!("Warning: Invalid identifier '{}' sanitized to '{}'", s, sanitized); - syn::Ident::new_raw(&sanitized, proc_macro2::Span::call_site()) - }) + syn::parse_str::(&sanitized).unwrap_or_else(|_| { + eprintln!( + "Warning: Invalid identifier '{}' sanitized to '{}'", + s, sanitized + ); + syn::Ident::new_raw(&sanitized, proc_macro2::Span::call_site()) + }) } /// Code generator for lexicon types @@ -634,13 +646,17 @@ impl<'c> CodeGenerator<'c> { let path_str = if *last_segment == "defs" && parts.len() >= 3 { // defs types go in parent module - let first_two = format!("{}_{}", parts[0], parts[1]); + let first_two = format!("{}_{}", sanitize_name(parts[0]), sanitize_name(parts[1])); if parts.len() == 3 { // com.atproto.defs -> com_atproto::TypeName format!("{}::{}::{}", self.root_module, first_two, type_name) } else { // app.bsky.actor.defs -> app_bsky::actor::TypeName - let middle: Vec<&str> = parts[2..parts.len() - 1].iter().copied().collect(); + let middle: Vec<_> = parts[2..parts.len() - 1] + .iter() + .copied() + .map(|s| sanitize_name(s)) + .collect(); format!( "{}::{}::{}::{}", self.root_module, @@ -653,12 +669,16 @@ impl<'c> CodeGenerator<'c> { // Regular types go in their own module file let (module_path, file_module) = if parts.len() >= 3 { // Join first two segments with underscore - let first_two = format!("{}_{}", parts[0], parts[1]); - let file_name = last_segment.to_snake_case(); + let first_two = format!("{}_{}", sanitize_name(parts[0]), sanitize_name(parts[1])); + let file_name = sanitize_name(last_segment).to_snake_case(); if parts.len() > 3 { // Middle segments form the module path - let middle: Vec<&str> = parts[2..parts.len() - 1].iter().copied().collect(); + let middle: Vec<_> = parts[2..parts.len() - 1] + .iter() + .copied() + .map(|s| sanitize_name(s)) + .collect(); let base_path = format!("{}::{}", first_two, middle.join("::")); (base_path, file_name) } else { @@ -667,8 +687,8 @@ impl<'c> CodeGenerator<'c> { } } else if parts.len() == 2 { // e.g., "com.example" -> "com_example", file: example - let first = parts[0].to_string(); - let file_name = parts[1].to_snake_case(); + let first = sanitize_name(parts[0]); + let file_name = sanitize_name(parts[1]).to_snake_case(); (first, file_name) } else { (parts[0].to_string(), "main".to_string()) @@ -681,7 +701,7 @@ impl<'c> CodeGenerator<'c> { }; let path: syn::Path = syn::parse_str(&path_str).map_err(|e| CodegenError::Other { - message: format!("Failed to parse path: {}", e), + message: format!("Failed to parse path: {} {}", path_str, e), source: None, })?; @@ -2108,6 +2128,12 @@ impl<'c> CodeGenerator<'c> { proc_macro2::Span::call_site(), ); + // Generate the endpoint type that implements XrpcEndpoint + let endpoint_ident = syn::Ident::new( + &format!("{}Request", type_base), + proc_macro2::Span::call_site(), + ); + let response_type = quote! { #[doc = "Response type for "] #[doc = #nsid] @@ -2147,6 +2173,8 @@ impl<'c> CodeGenerator<'c> { quote! {} }; + let endpoint_path = format!("/xrpc/{}", nsid); + if has_params { // Implement on the params/input struct itself let request_ident = syn::Ident::new(type_base, proc_macro2::Span::call_site()); @@ -2168,6 +2196,18 @@ impl<'c> CodeGenerator<'c> { #encode_body_method #decode_body_method } + + #[doc = "Endpoint type for "] + #[doc = #nsid] + pub struct #endpoint_ident; + + impl jacquard_common::xrpc::XrpcEndpoint for #endpoint_ident { + const PATH: &'static str = #endpoint_path; + const METHOD: jacquard_common::xrpc::XrpcMethod = #method; + + type Request<'de> = #impl_target; + type Response = #response_ident; + } }) } else { // No params - generate a marker struct @@ -2175,7 +2215,7 @@ impl<'c> CodeGenerator<'c> { Ok(quote! { /// XRPC request marker type - #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize, jacquard_derive::IntoStatic)] pub struct #request_ident; #response_type @@ -2186,6 +2226,18 @@ impl<'c> CodeGenerator<'c> { type Response = #response_ident; } + + #[doc = "Endpoint type for "] + #[doc = #nsid] + pub struct #endpoint_ident; + + impl jacquard_common::xrpc::XrpcEndpoint for #endpoint_ident { + const PATH: &'static str = #endpoint_path; + const METHOD: jacquard_common::xrpc::XrpcMethod = #method; + + type Request<'de> = #request_ident; + type Response = #response_ident; + } }) } } diff --git a/crates/jacquard-lexicon/src/fetch/config.rs b/crates/jacquard-lexicon/src/fetch/config.rs index 042703d3..554ab4cf 100644 --- a/crates/jacquard-lexicon/src/fetch/config.rs +++ b/crates/jacquard-lexicon/src/fetch/config.rs @@ -1,4 +1,7 @@ -use super::sources::{AtProtoSource, GitSource, HttpSource, JsonFileSource, LocalSource, SlicesSource, Source, SourceType}; +use super::sources::{ + AtProtoSource, GitSource, HttpSource, JsonFileSource, LocalSource, SlicesSource, Source, + SourceType, +}; use miette::{Result, miette}; use std::path::PathBuf; @@ -249,6 +252,7 @@ fn parse_jsonfile_source(children: &kdl::KdlDocument) -> Result { .ok_or_else(|| miette!("path expects a string value"))?; path = Some(PathBuf::from(val)); } + other => { return Err(miette!("Unknown jsonfile source field: {}", other)); } @@ -286,6 +290,7 @@ fn parse_slices_source(children: &kdl::KdlDocument) -> Result { fn parse_local_source(children: &kdl::KdlDocument) -> Result { let mut path: Option = None; + let mut pattern: Option = None; for child in children.nodes() { match child.name().value() { @@ -297,6 +302,14 @@ fn parse_local_source(children: &kdl::KdlDocument) -> Result { .ok_or_else(|| miette!("path expects a string value"))?; path = Some(PathBuf::from(val)); } + "pattern" => { + let val = child + .entries() + .get(0) + .and_then(|e| e.value().as_string()) + .ok_or_else(|| miette!("pattern expects a string value"))?; + pattern = Some(val.to_string()); + } other => { return Err(miette!("Unknown local source field: {}", other)); } @@ -305,5 +318,6 @@ fn parse_local_source(children: &kdl::KdlDocument) -> Result { Ok(SourceType::Local(LocalSource { path: path.ok_or_else(|| miette!("Missing path"))?, + pattern, })) } diff --git a/crates/jacquard-lexicon/src/fetch/sources.rs b/crates/jacquard-lexicon/src/fetch/sources.rs index 2003c4c9..1a8fa0c2 100644 --- a/crates/jacquard-lexicon/src/fetch/sources.rs +++ b/crates/jacquard-lexicon/src/fetch/sources.rs @@ -8,13 +8,14 @@ mod slices; pub use atproto::AtProtoSource; pub use git::GitSource; pub use http::HttpSource; +use jacquard_common::IntoStatic; pub use jsonfile::JsonFileSource; pub use local::LocalSource; pub use slices::SlicesSource; use crate::lexicon::LexiconDoc; use async_trait::async_trait; -use miette::Result; +use miette::{IntoDiagnostic, Result}; use std::collections::HashMap; #[derive(Debug, Clone)] @@ -33,12 +34,12 @@ impl Source { // Default priorities match &self.source_type { - SourceType::Local(_) => 100, // Highest - dev work - SourceType::JsonFile(_) => 75, // High - bundled exports - SourceType::Slices(_) => 60, // High-middle - slices network - SourceType::AtProto(_) => 50, // Middle - canonical published - SourceType::Http(_) => 25, // Lower middle - indexed samples - SourceType::Git(_) => 0, // Lowest - might be stale + SourceType::Local(_) => 100, // Highest - dev work + SourceType::JsonFile(_) => 75, // High - bundled exports + SourceType::Slices(_) => 60, // High-middle - slices network + SourceType::AtProto(_) => 50, // Middle - canonical published + SourceType::Http(_) => 25, // Lower middle - indexed samples + SourceType::Git(_) => 0, // Lowest - might be stale } } @@ -74,3 +75,45 @@ impl LexiconSource for SourceType { } } } + +pub fn parse_from_index_or_lexicon_file( + content: &str, +) -> miette::Result<(String, LexiconDoc<'static>)> { + let value: serde_json::Value = serde_json::from_str(content).into_diagnostic()?; + if let Some(map) = value.as_object() { + if map.contains_key("schema") && map.contains_key("authority") { + if let Some(schema) = map.get("schema") { + let schema = serde_json::to_string(schema).into_diagnostic()?; + match serde_json::from_str::(&schema) { + Ok(doc) => { + let nsid = doc.id.to_string(); + let doc = doc.into_static(); + Ok((nsid, doc)) + } + Err(_) => { + // Not a lexicon, skip + Err(miette::miette!("Invalid lexicon file")) + } + } + } else { + Err(miette::miette!("Invalid lexicon file")) + } + } else if map.contains_key("id") && map.contains_key("lexicon") { + match serde_json::from_str::(&content) { + Ok(doc) => { + let nsid = doc.id.to_string(); + let doc = doc.into_static(); + Ok((nsid, doc)) + } + Err(_) => { + // Not a lexicon, skip + Err(miette::miette!("Invalid lexicon file")) + } + } + } else { + Err(miette::miette!("Invalid lexicon file")) + } + } else { + Err(miette::miette!("Invalid lexicon file")) + } +} diff --git a/crates/jacquard-lexicon/src/fetch/sources/git.rs b/crates/jacquard-lexicon/src/fetch/sources/git.rs index adcfa367..a8d0e7cd 100644 --- a/crates/jacquard-lexicon/src/fetch/sources/git.rs +++ b/crates/jacquard-lexicon/src/fetch/sources/git.rs @@ -1,5 +1,5 @@ use super::LexiconSource; -use crate::lexicon::LexiconDoc; +use crate::{fetch::sources::parse_from_index_or_lexicon_file, lexicon::LexiconDoc}; use jacquard_common::IntoStatic; use miette::{IntoDiagnostic, Result, miette}; use std::collections::HashMap; @@ -50,9 +50,8 @@ impl LexiconSource for GitSource { // Try to parse as lexicon let content = tokio::fs::read_to_string(&entry).await.into_diagnostic()?; - match serde_json::from_str::(&content) { - Ok(doc) => { - let nsid = doc.id.to_string(); + match parse_from_index_or_lexicon_file(&content) { + Ok((nsid, doc)) => { let doc = doc.into_static(); lexicons.insert(nsid, doc); } diff --git a/crates/jacquard-lexicon/src/fetch/sources/local.rs b/crates/jacquard-lexicon/src/fetch/sources/local.rs index 951a2fbd..76acee5f 100644 --- a/crates/jacquard-lexicon/src/fetch/sources/local.rs +++ b/crates/jacquard-lexicon/src/fetch/sources/local.rs @@ -1,4 +1,5 @@ use super::LexiconSource; +use crate::fetch::sources::parse_from_index_or_lexicon_file; use crate::lexicon::LexiconDoc; use jacquard_common::IntoStatic; use miette::{IntoDiagnostic, Result}; @@ -8,6 +9,7 @@ use std::path::PathBuf; #[derive(Debug, Clone)] pub struct LocalSource { pub path: PathBuf, + pub pattern: Option, } impl LexiconSource for LocalSource { @@ -28,10 +30,8 @@ impl LexiconSource for LocalSource { // Try to parse as lexicon let content = std::fs::read_to_string(path).into_diagnostic()?; - - match serde_json::from_str::(&content) { - Ok(doc) => { - let nsid = doc.id.to_string(); + match parse_from_index_or_lexicon_file(&content) { + Ok((nsid, doc)) => { let doc = doc.into_static(); lexicons.insert(nsid, doc); } diff --git a/lexicons.kdl b/lexicons.kdl index 252e6824..aa2669d0 100644 --- a/lexicons.kdl +++ b/lexicons.kdl @@ -32,13 +32,18 @@ source "anisota" type="atproto" { endpoint "did:plc:lcieujcfkv4jx7gehsvok3pr" } -source "slices-api" type="slices" { - slice "at://did:plc:fpruhuo22xkm5o7ttr2ktxdo/network.slices.slice/3m2f7adwhp22a" +source "mary" type="git" priority=70 { + repo "https://github.com/mary-ext/atproto-lexicon-scraping" + pattern "**/*.json" } -source "ufos" type="http" { - url "https://ufos-api.microcosm.blue/records?collection=com.atproto.lexicon.schema" -} +// source "slices-api" type="slices" { +// slice "at://did:plc:fpruhuo22xkm5o7ttr2ktxdo/network.slices.slice/3m2f7adwhp22a" +// } + +// source "ufos" type="http" { +// url "https://ufos-api.microcosm.blue/records?collection=com.atproto.lexicon.schema" +// } // source "bluemoji" type="git" priority=50 { // repo "https://github.com/aendra-rininsland/bluemoji"