A better Rust ATProto crate

reworked some traits and codegen a bit

Orual a4368e0c 7daab148

Changed files
+5202 -491
crates
jacquard
jacquard-api
src
app_bsky
actor
bookmark
embed
feed
graph
labeler
notification
richtext
unspecced
video
chat_bsky
com_atproto
admin
identity
label
lexicon
moderation
repo
server
sync
temp
tools_ozone
jacquard-common
jacquard-derive
jacquard-lexicon
nix
+29 -4
CLAUDE.md
··· 15 15 16 16 This is a Cargo workspace with several crates: 17 17 18 + - **jacquard**: Main library crate with XRPC client and public API surface (re-exports jacquard-api and jacquard-common) 18 19 - **jacquard-common**: Core AT Protocol types (DIDs, handles, at-URIs, NSIDs, TIDs, CIDs, etc.) and the `CowStr` type for efficient string handling 19 20 - **jacquard-lexicon**: Lexicon parsing and Rust code generation from lexicon schemas 20 - - **jacquard-api**: Generated API bindings (currently empty/in development) 21 - - **jacquard-derive**: Derive macros for lexicon structures 22 - - **jacquard**: Main binary (currently minimal) 21 + - **jacquard-api**: Generated API bindings from lexicon schemas (implementation detail, not directly used by consumers) 22 + - **jacquard-derive**: Attribute macros (`#[lexicon]`, `#[open_union]`) for lexicon structures 23 23 24 24 ## Development Commands 25 25 ··· 57 57 58 58 # Format and lint all 59 59 just pre-commit-all 60 + 61 + # Generate API bindings from lexicon schemas 62 + cargo run -p jacquard-lexicon --bin jacquard-codegen -- -i <input_dir> -o <output_dir> [-r <root_module>] 63 + # Example: 64 + cargo run -p jacquard-lexicon --bin jacquard-codegen -- -i crates/jacquard-lexicon/tests/fixtures/lexicons/atproto/lexicons -o crates/jacquard-api/src -r crate 60 65 ``` 61 66 62 67 ## String Type Pattern ··· 101 106 - Use `cargo test <name>` to run specific tests 102 107 - Current test coverage: 89 tests in jacquard-common 103 108 109 + ## Lexicon Code Generation 110 + 111 + The `jacquard-codegen` binary generates Rust types from AT Protocol Lexicon schemas: 112 + 113 + - Generates structs with `#[lexicon]` attribute for forward compatibility (captures unknown fields in `extra_data`) 114 + - Generates enums with `#[open_union]` attribute for handling unknown variants (unless marked `closed` in lexicon) 115 + - Resolves local refs (e.g., `#image` becomes `Image<'a>`) 116 + - Extracts doc comments from lexicon `description` fields 117 + - Adds header comments with `@generated` marker and lexicon NSID 118 + - Handles XRPC queries, procedures, subscriptions, and errors 119 + - Generates proper module tree with Rust 2018 style 120 + 104 121 ## Current State & Next Steps 105 122 106 123 ### Completed ··· 110 127 - ✅ Data serialization: Full serialize/deserialize for `Data<'_>`, `Array`, `Object` with format-specific handling (JSON vs CBOR) 111 128 - ✅ CidLink wrapper type with automatic `{"$link": "cid"}` serialization in JSON 112 129 - ✅ Integration test with real Bluesky thread data validates round-trip correctness 130 + - ✅ Lexicon code generation with forward compatibility and proper lifetime handling 113 131 114 132 ### Next Steps 115 - 1. **Lexicon Code Generation**: Begin work on lexicon-to-Rust code generation now that core types are stable 133 + 1. **Lexicon Resolution**: Fetch lexicons from web sources (atproto authorities, git repositories) and parse into corpus 134 + 2. **Custom Lexicon Support**: Allow users to plug in their own generated lexicons alongside jacquard-api types in the client/server layer 135 + 3. **Client Implementation**: Build HTTP client layer for XRPC operations in the main `jacquard` crate 136 + 4. **Public API**: Design the main API surface in `jacquard` that re-exports and wraps generated types 137 + 5. **DID Document Support**: Parsing, validation, and resolution of DID documents 138 + 6. **OAuth Implementation**: OAuth flow support for authentication 139 + 7. **Examples & Documentation**: Create examples and improve documentation 140 + 8. **Testing**: Comprehensive tests for generated code and round-trip serialization
+925 -21
Cargo.lock
··· 22 22 ] 23 23 24 24 [[package]] 25 + name = "addr2line" 26 + version = "0.25.1" 27 + source = "registry+https://github.com/rust-lang/crates.io-index" 28 + checksum = "1b5d307320b3181d6d7954e663bd7c774a838b8220fe0593c86d9fb09f498b4b" 29 + dependencies = [ 30 + "gimli", 31 + ] 32 + 33 + [[package]] 34 + name = "adler2" 35 + version = "2.0.1" 36 + source = "registry+https://github.com/rust-lang/crates.io-index" 37 + checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" 38 + 39 + [[package]] 25 40 name = "aho-corasick" 26 41 version = "1.1.3" 27 42 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 81 96 source = "registry+https://github.com/rust-lang/crates.io-index" 82 97 checksum = "9e231f6134f61b71076a3eab506c379d4f36122f2af15a9ff04415ea4c3339e2" 83 98 dependencies = [ 84 - "windows-sys", 99 + "windows-sys 0.60.2", 85 100 ] 86 101 87 102 [[package]] ··· 92 107 dependencies = [ 93 108 "anstyle", 94 109 "once_cell_polyfill", 95 - "windows-sys", 110 + "windows-sys 0.60.2", 96 111 ] 97 112 98 113 [[package]] 114 + name = "async-compression" 115 + version = "0.4.30" 116 + source = "registry+https://github.com/rust-lang/crates.io-index" 117 + checksum = "977eb15ea9efd848bb8a4a1a2500347ed7f0bf794edf0dc3ddcf439f43d36b23" 118 + dependencies = [ 119 + "compression-codecs", 120 + "compression-core", 121 + "futures-core", 122 + "pin-project-lite", 123 + "tokio", 124 + ] 125 + 126 + [[package]] 127 + name = "atomic-waker" 128 + version = "1.1.2" 129 + source = "registry+https://github.com/rust-lang/crates.io-index" 130 + checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" 131 + 132 + [[package]] 99 133 name = "autocfg" 100 134 version = "1.5.0" 101 135 source = "registry+https://github.com/rust-lang/crates.io-index" 102 136 checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" 103 137 104 138 [[package]] 139 + name = "backtrace" 140 + version = "0.3.76" 141 + source = "registry+https://github.com/rust-lang/crates.io-index" 142 + checksum = "bb531853791a215d7c62a30daf0dde835f381ab5de4589cfe7c649d2cbe92bd6" 143 + dependencies = [ 144 + "addr2line", 145 + "cfg-if", 146 + "libc", 147 + "miniz_oxide", 148 + "object", 149 + "rustc-demangle", 150 + "windows-link 0.2.0", 151 + ] 152 + 153 + [[package]] 105 154 name = "base-x" 106 155 version = "0.2.11" 107 156 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 112 161 version = "0.22.1" 113 162 source = "registry+https://github.com/rust-lang/crates.io-index" 114 163 checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" 164 + 165 + [[package]] 166 + name = "bitflags" 167 + version = "2.9.4" 168 + source = "registry+https://github.com/rust-lang/crates.io-index" 169 + checksum = "2261d10cca569e4643e526d8dc2e62e433cc8aba21ab764233731f8d369bf394" 115 170 116 171 [[package]] 117 172 name = "block-buffer" ··· 212 267 "num-traits", 213 268 "serde", 214 269 "wasm-bindgen", 215 - "windows-link", 270 + "windows-link 0.2.0", 216 271 ] 217 272 218 273 [[package]] ··· 303 358 checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75" 304 359 305 360 [[package]] 361 + name = "compression-codecs" 362 + version = "0.4.30" 363 + source = "registry+https://github.com/rust-lang/crates.io-index" 364 + checksum = "485abf41ac0c8047c07c87c72c8fb3eb5197f6e9d7ded615dfd1a00ae00a0f64" 365 + dependencies = [ 366 + "compression-core", 367 + "flate2", 368 + "memchr", 369 + ] 370 + 371 + [[package]] 372 + name = "compression-core" 373 + version = "0.4.29" 374 + source = "registry+https://github.com/rust-lang/crates.io-index" 375 + checksum = "e47641d3deaf41fb1538ac1f54735925e275eaf3bf4d55c81b137fba797e5cbb" 376 + 377 + [[package]] 378 + name = "core-foundation" 379 + version = "0.9.4" 380 + source = "registry+https://github.com/rust-lang/crates.io-index" 381 + checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" 382 + dependencies = [ 383 + "core-foundation-sys", 384 + "libc", 385 + ] 386 + 387 + [[package]] 306 388 name = "core-foundation-sys" 307 389 version = "0.8.7" 308 390 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 327 409 ] 328 410 329 411 [[package]] 412 + name = "crc32fast" 413 + version = "1.5.0" 414 + source = "registry+https://github.com/rust-lang/crates.io-index" 415 + checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" 416 + dependencies = [ 417 + "cfg-if", 418 + ] 419 + 420 + [[package]] 330 421 name = "crunchy" 331 422 version = "0.2.4" 332 423 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 447 538 checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" 448 539 449 540 [[package]] 541 + name = "encoding_rs" 542 + version = "0.8.35" 543 + source = "registry+https://github.com/rust-lang/crates.io-index" 544 + checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" 545 + dependencies = [ 546 + "cfg-if", 547 + ] 548 + 549 + [[package]] 450 550 name = "enum_dispatch" 451 551 version = "0.3.13" 452 552 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 471 571 checksum = "1ced73b1dacfc750a6db6c0a0c3a3853c8b41997e2e2c563dc90804ae6867959" 472 572 473 573 [[package]] 574 + name = "flate2" 575 + version = "1.1.2" 576 + source = "registry+https://github.com/rust-lang/crates.io-index" 577 + checksum = "4a3d7db9596fecd151c5f638c0ee5d5bd487b6e0ea232e5dc96d5250f6f94b1d" 578 + dependencies = [ 579 + "crc32fast", 580 + "miniz_oxide", 581 + ] 582 + 583 + [[package]] 474 584 name = "fnv" 475 585 version = "1.0.7" 476 586 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 486 596 ] 487 597 488 598 [[package]] 599 + name = "futures-channel" 600 + version = "0.3.31" 601 + source = "registry+https://github.com/rust-lang/crates.io-index" 602 + checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" 603 + dependencies = [ 604 + "futures-core", 605 + ] 606 + 607 + [[package]] 608 + name = "futures-core" 609 + version = "0.3.31" 610 + source = "registry+https://github.com/rust-lang/crates.io-index" 611 + checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" 612 + 613 + [[package]] 614 + name = "futures-sink" 615 + version = "0.3.31" 616 + source = "registry+https://github.com/rust-lang/crates.io-index" 617 + checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" 618 + 619 + [[package]] 620 + name = "futures-task" 621 + version = "0.3.31" 622 + source = "registry+https://github.com/rust-lang/crates.io-index" 623 + checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" 624 + 625 + [[package]] 626 + name = "futures-util" 627 + version = "0.3.31" 628 + source = "registry+https://github.com/rust-lang/crates.io-index" 629 + checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" 630 + dependencies = [ 631 + "futures-core", 632 + "futures-task", 633 + "pin-project-lite", 634 + "pin-utils", 635 + ] 636 + 637 + [[package]] 489 638 name = "generic-array" 490 639 version = "0.14.7" 491 640 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 497 646 498 647 [[package]] 499 648 name = "getrandom" 649 + version = "0.2.16" 650 + source = "registry+https://github.com/rust-lang/crates.io-index" 651 + checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592" 652 + dependencies = [ 653 + "cfg-if", 654 + "js-sys", 655 + "libc", 656 + "wasi 0.11.1+wasi-snapshot-preview1", 657 + "wasm-bindgen", 658 + ] 659 + 660 + [[package]] 661 + name = "getrandom" 500 662 version = "0.3.3" 501 663 source = "registry+https://github.com/rust-lang/crates.io-index" 502 664 checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4" 503 665 dependencies = [ 504 666 "cfg-if", 667 + "js-sys", 505 668 "libc", 506 669 "r-efi", 507 - "wasi", 670 + "wasi 0.14.7+wasi-0.2.4", 671 + "wasm-bindgen", 672 + ] 673 + 674 + [[package]] 675 + name = "gimli" 676 + version = "0.32.3" 677 + source = "registry+https://github.com/rust-lang/crates.io-index" 678 + checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7" 679 + 680 + [[package]] 681 + name = "h2" 682 + version = "0.4.12" 683 + source = "registry+https://github.com/rust-lang/crates.io-index" 684 + checksum = "f3c0b69cfcb4e1b9f1bf2f53f95f766e4661169728ec61cd3fe5a0166f2d1386" 685 + dependencies = [ 686 + "atomic-waker", 687 + "bytes", 688 + "fnv", 689 + "futures-core", 690 + "futures-sink", 691 + "http", 692 + "indexmap 2.11.4", 693 + "slab", 694 + "tokio", 695 + "tokio-util", 696 + "tracing", 508 697 ] 509 698 510 699 [[package]] ··· 554 743 checksum = "b07f60793ff0a4d9cef0f18e63b5357e06209987153a64648c972c1e5aff336f" 555 744 556 745 [[package]] 746 + name = "http" 747 + version = "1.3.1" 748 + source = "registry+https://github.com/rust-lang/crates.io-index" 749 + checksum = "f4a85d31aea989eead29a3aaf9e1115a180df8282431156e533de47660892565" 750 + dependencies = [ 751 + "bytes", 752 + "fnv", 753 + "itoa", 754 + ] 755 + 756 + [[package]] 757 + name = "http-body" 758 + version = "1.0.1" 759 + source = "registry+https://github.com/rust-lang/crates.io-index" 760 + checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" 761 + dependencies = [ 762 + "bytes", 763 + "http", 764 + ] 765 + 766 + [[package]] 767 + name = "http-body-util" 768 + version = "0.1.3" 769 + source = "registry+https://github.com/rust-lang/crates.io-index" 770 + checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" 771 + dependencies = [ 772 + "bytes", 773 + "futures-core", 774 + "http", 775 + "http-body", 776 + "pin-project-lite", 777 + ] 778 + 779 + [[package]] 780 + name = "httparse" 781 + version = "1.10.1" 782 + source = "registry+https://github.com/rust-lang/crates.io-index" 783 + checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" 784 + 785 + [[package]] 786 + name = "hyper" 787 + version = "1.7.0" 788 + source = "registry+https://github.com/rust-lang/crates.io-index" 789 + checksum = "eb3aa54a13a0dfe7fbe3a59e0c76093041720fdc77b110cc0fc260fafb4dc51e" 790 + dependencies = [ 791 + "atomic-waker", 792 + "bytes", 793 + "futures-channel", 794 + "futures-core", 795 + "h2", 796 + "http", 797 + "http-body", 798 + "httparse", 799 + "itoa", 800 + "pin-project-lite", 801 + "pin-utils", 802 + "smallvec", 803 + "tokio", 804 + "want", 805 + ] 806 + 807 + [[package]] 808 + name = "hyper-rustls" 809 + version = "0.27.7" 810 + source = "registry+https://github.com/rust-lang/crates.io-index" 811 + checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58" 812 + dependencies = [ 813 + "http", 814 + "hyper", 815 + "hyper-util", 816 + "rustls", 817 + "rustls-pki-types", 818 + "tokio", 819 + "tokio-rustls", 820 + "tower-service", 821 + "webpki-roots", 822 + ] 823 + 824 + [[package]] 825 + name = "hyper-util" 826 + version = "0.1.17" 827 + source = "registry+https://github.com/rust-lang/crates.io-index" 828 + checksum = "3c6995591a8f1380fcb4ba966a252a4b29188d51d2b89e3a252f5305be65aea8" 829 + dependencies = [ 830 + "base64", 831 + "bytes", 832 + "futures-channel", 833 + "futures-core", 834 + "futures-util", 835 + "http", 836 + "http-body", 837 + "hyper", 838 + "ipnet", 839 + "libc", 840 + "percent-encoding", 841 + "pin-project-lite", 842 + "socket2", 843 + "system-configuration", 844 + "tokio", 845 + "tower-service", 846 + "tracing", 847 + "windows-registry", 848 + ] 849 + 850 + [[package]] 557 851 name = "iana-time-zone" 558 852 version = "0.1.64" 559 853 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 720 1014 checksum = "f4c7245a08504955605670dbf141fceab975f15ca21570696aebe9d2e71576bd" 721 1015 722 1016 [[package]] 1017 + name = "io-uring" 1018 + version = "0.7.10" 1019 + source = "registry+https://github.com/rust-lang/crates.io-index" 1020 + checksum = "046fa2d4d00aea763528b4950358d0ead425372445dc8ff86312b3c69ff7727b" 1021 + dependencies = [ 1022 + "bitflags", 1023 + "cfg-if", 1024 + "libc", 1025 + ] 1026 + 1027 + [[package]] 723 1028 name = "ipld-core" 724 1029 version = "0.4.2" 725 1030 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 731 1036 ] 732 1037 733 1038 [[package]] 1039 + name = "ipnet" 1040 + version = "2.11.0" 1041 + source = "registry+https://github.com/rust-lang/crates.io-index" 1042 + checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" 1043 + 1044 + [[package]] 1045 + name = "iri-string" 1046 + version = "0.7.8" 1047 + source = "registry+https://github.com/rust-lang/crates.io-index" 1048 + checksum = "dbc5ebe9c3a1a7a5127f920a418f7585e9e758e911d0466ed004f393b0e380b2" 1049 + dependencies = [ 1050 + "memchr", 1051 + "serde", 1052 + ] 1053 + 1054 + [[package]] 734 1055 name = "is_terminal_polyfill" 735 1056 version = "1.70.1" 736 1057 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 756 1077 version = "0.1.0" 757 1078 dependencies = [ 758 1079 "clap", 1080 + "jacquard-api", 759 1081 "jacquard-common", 1082 + "reqwest", 760 1083 ] 761 1084 762 1085 [[package]] ··· 805 1128 "heck 0.5.0", 806 1129 "itertools", 807 1130 "jacquard-common", 808 - "jacquard-lexicon", 809 1131 "prettyplease", 810 1132 "proc-macro2", 811 1133 "quote", ··· 876 1198 checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432" 877 1199 878 1200 [[package]] 1201 + name = "lru-slab" 1202 + version = "0.1.2" 1203 + source = "registry+https://github.com/rust-lang/crates.io-index" 1204 + checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" 1205 + 1206 + [[package]] 879 1207 name = "memchr" 880 1208 version = "2.7.6" 881 1209 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 904 1232 ] 905 1233 906 1234 [[package]] 1235 + name = "mime" 1236 + version = "0.3.17" 1237 + source = "registry+https://github.com/rust-lang/crates.io-index" 1238 + checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" 1239 + 1240 + [[package]] 907 1241 name = "minimal-lexical" 908 1242 version = "0.2.1" 909 1243 source = "registry+https://github.com/rust-lang/crates.io-index" 910 1244 checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" 911 1245 912 1246 [[package]] 1247 + name = "miniz_oxide" 1248 + version = "0.8.9" 1249 + source = "registry+https://github.com/rust-lang/crates.io-index" 1250 + checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" 1251 + dependencies = [ 1252 + "adler2", 1253 + ] 1254 + 1255 + [[package]] 1256 + name = "mio" 1257 + version = "1.0.4" 1258 + source = "registry+https://github.com/rust-lang/crates.io-index" 1259 + checksum = "78bed444cc8a2160f01cbcf811ef18cac863ad68ae8ca62092e8db51d51c761c" 1260 + dependencies = [ 1261 + "libc", 1262 + "wasi 0.11.1+wasi-snapshot-preview1", 1263 + "windows-sys 0.59.0", 1264 + ] 1265 + 1266 + [[package]] 913 1267 name = "multibase" 914 1268 version = "0.9.1" 915 1269 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 957 1311 ] 958 1312 959 1313 [[package]] 1314 + name = "object" 1315 + version = "0.37.3" 1316 + source = "registry+https://github.com/rust-lang/crates.io-index" 1317 + checksum = "ff76201f031d8863c38aa7f905eca4f53abbfa15f609db4277d44cd8938f33fe" 1318 + dependencies = [ 1319 + "memchr", 1320 + ] 1321 + 1322 + [[package]] 960 1323 name = "once_cell" 961 1324 version = "1.21.3" 962 1325 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 997 1360 version = "2.3.2" 998 1361 source = "registry+https://github.com/rust-lang/crates.io-index" 999 1362 checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" 1363 + 1364 + [[package]] 1365 + name = "pin-project-lite" 1366 + version = "0.2.16" 1367 + source = "registry+https://github.com/rust-lang/crates.io-index" 1368 + checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" 1369 + 1370 + [[package]] 1371 + name = "pin-utils" 1372 + version = "0.1.0" 1373 + source = "registry+https://github.com/rust-lang/crates.io-index" 1374 + checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" 1000 1375 1001 1376 [[package]] 1002 1377 name = "potential_utf" ··· 1079 1454 ] 1080 1455 1081 1456 [[package]] 1457 + name = "quinn" 1458 + version = "0.11.9" 1459 + source = "registry+https://github.com/rust-lang/crates.io-index" 1460 + checksum = "b9e20a958963c291dc322d98411f541009df2ced7b5a4f2bd52337638cfccf20" 1461 + dependencies = [ 1462 + "bytes", 1463 + "cfg_aliases", 1464 + "pin-project-lite", 1465 + "quinn-proto", 1466 + "quinn-udp", 1467 + "rustc-hash", 1468 + "rustls", 1469 + "socket2", 1470 + "thiserror 2.0.17", 1471 + "tokio", 1472 + "tracing", 1473 + "web-time", 1474 + ] 1475 + 1476 + [[package]] 1477 + name = "quinn-proto" 1478 + version = "0.11.13" 1479 + source = "registry+https://github.com/rust-lang/crates.io-index" 1480 + checksum = "f1906b49b0c3bc04b5fe5d86a77925ae6524a19b816ae38ce1e426255f1d8a31" 1481 + dependencies = [ 1482 + "bytes", 1483 + "getrandom 0.3.3", 1484 + "lru-slab", 1485 + "rand", 1486 + "ring", 1487 + "rustc-hash", 1488 + "rustls", 1489 + "rustls-pki-types", 1490 + "slab", 1491 + "thiserror 2.0.17", 1492 + "tinyvec", 1493 + "tracing", 1494 + "web-time", 1495 + ] 1496 + 1497 + [[package]] 1498 + name = "quinn-udp" 1499 + version = "0.5.14" 1500 + source = "registry+https://github.com/rust-lang/crates.io-index" 1501 + checksum = "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd" 1502 + dependencies = [ 1503 + "cfg_aliases", 1504 + "libc", 1505 + "once_cell", 1506 + "socket2", 1507 + "tracing", 1508 + "windows-sys 0.52.0", 1509 + ] 1510 + 1511 + [[package]] 1082 1512 name = "quote" 1083 1513 version = "1.0.41" 1084 1514 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1119 1549 source = "registry+https://github.com/rust-lang/crates.io-index" 1120 1550 checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" 1121 1551 dependencies = [ 1122 - "getrandom", 1552 + "getrandom 0.3.3", 1123 1553 ] 1124 1554 1125 1555 [[package]] ··· 1178 1608 checksum = "caf4aa5b0f434c91fe5c7f1ecb6a5ece2130b02ad2a590589dda5146df959001" 1179 1609 1180 1610 [[package]] 1611 + name = "reqwest" 1612 + version = "0.12.23" 1613 + source = "registry+https://github.com/rust-lang/crates.io-index" 1614 + checksum = "d429f34c8092b2d42c7c93cec323bb4adeb7c67698f70839adec842ec10c7ceb" 1615 + dependencies = [ 1616 + "async-compression", 1617 + "base64", 1618 + "bytes", 1619 + "encoding_rs", 1620 + "futures-core", 1621 + "futures-util", 1622 + "h2", 1623 + "http", 1624 + "http-body", 1625 + "http-body-util", 1626 + "hyper", 1627 + "hyper-rustls", 1628 + "hyper-util", 1629 + "js-sys", 1630 + "log", 1631 + "mime", 1632 + "percent-encoding", 1633 + "pin-project-lite", 1634 + "quinn", 1635 + "rustls", 1636 + "rustls-pki-types", 1637 + "serde", 1638 + "serde_json", 1639 + "serde_urlencoded", 1640 + "sync_wrapper", 1641 + "tokio", 1642 + "tokio-rustls", 1643 + "tokio-util", 1644 + "tower", 1645 + "tower-http", 1646 + "tower-service", 1647 + "url", 1648 + "wasm-bindgen", 1649 + "wasm-bindgen-futures", 1650 + "web-sys", 1651 + "webpki-roots", 1652 + ] 1653 + 1654 + [[package]] 1655 + name = "ring" 1656 + version = "0.17.14" 1657 + source = "registry+https://github.com/rust-lang/crates.io-index" 1658 + checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" 1659 + dependencies = [ 1660 + "cc", 1661 + "cfg-if", 1662 + "getrandom 0.2.16", 1663 + "libc", 1664 + "untrusted", 1665 + "windows-sys 0.52.0", 1666 + ] 1667 + 1668 + [[package]] 1669 + name = "rustc-demangle" 1670 + version = "0.1.26" 1671 + source = "registry+https://github.com/rust-lang/crates.io-index" 1672 + checksum = "56f7d92ca342cea22a06f2121d944b4fd82af56988c270852495420f961d4ace" 1673 + 1674 + [[package]] 1675 + name = "rustc-hash" 1676 + version = "2.1.1" 1677 + source = "registry+https://github.com/rust-lang/crates.io-index" 1678 + checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" 1679 + 1680 + [[package]] 1681 + name = "rustls" 1682 + version = "0.23.32" 1683 + source = "registry+https://github.com/rust-lang/crates.io-index" 1684 + checksum = "cd3c25631629d034ce7cd9940adc9d45762d46de2b0f57193c4443b92c6d4d40" 1685 + dependencies = [ 1686 + "once_cell", 1687 + "ring", 1688 + "rustls-pki-types", 1689 + "rustls-webpki", 1690 + "subtle", 1691 + "zeroize", 1692 + ] 1693 + 1694 + [[package]] 1695 + name = "rustls-pki-types" 1696 + version = "1.12.0" 1697 + source = "registry+https://github.com/rust-lang/crates.io-index" 1698 + checksum = "229a4a4c221013e7e1f1a043678c5cc39fe5171437c88fb47151a21e6f5b5c79" 1699 + dependencies = [ 1700 + "web-time", 1701 + "zeroize", 1702 + ] 1703 + 1704 + [[package]] 1705 + name = "rustls-webpki" 1706 + version = "0.103.7" 1707 + source = "registry+https://github.com/rust-lang/crates.io-index" 1708 + checksum = "e10b3f4191e8a80e6b43eebabfac91e5dcecebb27a71f04e820c47ec41d314bf" 1709 + dependencies = [ 1710 + "ring", 1711 + "rustls-pki-types", 1712 + "untrusted", 1713 + ] 1714 + 1715 + [[package]] 1181 1716 name = "rustversion" 1182 1717 version = "1.0.22" 1183 1718 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1290 1825 ] 1291 1826 1292 1827 [[package]] 1828 + name = "serde_urlencoded" 1829 + version = "0.7.1" 1830 + source = "registry+https://github.com/rust-lang/crates.io-index" 1831 + checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" 1832 + dependencies = [ 1833 + "form_urlencoded", 1834 + "itoa", 1835 + "ryu", 1836 + "serde", 1837 + ] 1838 + 1839 + [[package]] 1293 1840 name = "serde_with" 1294 1841 version = "3.14.1" 1295 1842 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1361 1908 ] 1362 1909 1363 1910 [[package]] 1911 + name = "socket2" 1912 + version = "0.6.0" 1913 + source = "registry+https://github.com/rust-lang/crates.io-index" 1914 + checksum = "233504af464074f9d066d7b5416c5f9b894a5862a6506e306f7b816cdd6f1807" 1915 + dependencies = [ 1916 + "libc", 1917 + "windows-sys 0.59.0", 1918 + ] 1919 + 1920 + [[package]] 1364 1921 name = "stable_deref_trait" 1365 1922 version = "1.2.0" 1366 1923 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1399 1956 checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" 1400 1957 1401 1958 [[package]] 1959 + name = "subtle" 1960 + version = "2.6.1" 1961 + source = "registry+https://github.com/rust-lang/crates.io-index" 1962 + checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" 1963 + 1964 + [[package]] 1402 1965 name = "syn" 1403 1966 version = "1.0.109" 1404 1967 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1420 1983 ] 1421 1984 1422 1985 [[package]] 1986 + name = "sync_wrapper" 1987 + version = "1.0.2" 1988 + source = "registry+https://github.com/rust-lang/crates.io-index" 1989 + checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" 1990 + dependencies = [ 1991 + "futures-core", 1992 + ] 1993 + 1994 + [[package]] 1423 1995 name = "synstructure" 1424 1996 version = "0.13.2" 1425 1997 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1431 2003 ] 1432 2004 1433 2005 [[package]] 2006 + name = "system-configuration" 2007 + version = "0.6.1" 2008 + source = "registry+https://github.com/rust-lang/crates.io-index" 2009 + checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b" 2010 + dependencies = [ 2011 + "bitflags", 2012 + "core-foundation", 2013 + "system-configuration-sys", 2014 + ] 2015 + 2016 + [[package]] 2017 + name = "system-configuration-sys" 2018 + version = "0.6.0" 2019 + source = "registry+https://github.com/rust-lang/crates.io-index" 2020 + checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" 2021 + dependencies = [ 2022 + "core-foundation-sys", 2023 + "libc", 2024 + ] 2025 + 2026 + [[package]] 1434 2027 name = "thiserror" 1435 2028 version = "1.0.69" 1436 2029 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1512 2105 ] 1513 2106 1514 2107 [[package]] 2108 + name = "tinyvec" 2109 + version = "1.10.0" 2110 + source = "registry+https://github.com/rust-lang/crates.io-index" 2111 + checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa" 2112 + dependencies = [ 2113 + "tinyvec_macros", 2114 + ] 2115 + 2116 + [[package]] 2117 + name = "tinyvec_macros" 2118 + version = "0.1.1" 2119 + source = "registry+https://github.com/rust-lang/crates.io-index" 2120 + checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" 2121 + 2122 + [[package]] 2123 + name = "tokio" 2124 + version = "1.47.1" 2125 + source = "registry+https://github.com/rust-lang/crates.io-index" 2126 + checksum = "89e49afdadebb872d3145a5638b59eb0691ea23e46ca484037cfab3b76b95038" 2127 + dependencies = [ 2128 + "backtrace", 2129 + "bytes", 2130 + "io-uring", 2131 + "libc", 2132 + "mio", 2133 + "pin-project-lite", 2134 + "slab", 2135 + "socket2", 2136 + "windows-sys 0.59.0", 2137 + ] 2138 + 2139 + [[package]] 2140 + name = "tokio-rustls" 2141 + version = "0.26.4" 2142 + source = "registry+https://github.com/rust-lang/crates.io-index" 2143 + checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" 2144 + dependencies = [ 2145 + "rustls", 2146 + "tokio", 2147 + ] 2148 + 2149 + [[package]] 2150 + name = "tokio-util" 2151 + version = "0.7.16" 2152 + source = "registry+https://github.com/rust-lang/crates.io-index" 2153 + checksum = "14307c986784f72ef81c89db7d9e28d6ac26d16213b109ea501696195e6e3ce5" 2154 + dependencies = [ 2155 + "bytes", 2156 + "futures-core", 2157 + "futures-sink", 2158 + "pin-project-lite", 2159 + "tokio", 2160 + ] 2161 + 2162 + [[package]] 2163 + name = "tower" 2164 + version = "0.5.2" 2165 + source = "registry+https://github.com/rust-lang/crates.io-index" 2166 + checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" 2167 + dependencies = [ 2168 + "futures-core", 2169 + "futures-util", 2170 + "pin-project-lite", 2171 + "sync_wrapper", 2172 + "tokio", 2173 + "tower-layer", 2174 + "tower-service", 2175 + ] 2176 + 2177 + [[package]] 2178 + name = "tower-http" 2179 + version = "0.6.6" 2180 + source = "registry+https://github.com/rust-lang/crates.io-index" 2181 + checksum = "adc82fd73de2a9722ac5da747f12383d2bfdb93591ee6c58486e0097890f05f2" 2182 + dependencies = [ 2183 + "bitflags", 2184 + "bytes", 2185 + "futures-util", 2186 + "http", 2187 + "http-body", 2188 + "iri-string", 2189 + "pin-project-lite", 2190 + "tower", 2191 + "tower-layer", 2192 + "tower-service", 2193 + ] 2194 + 2195 + [[package]] 2196 + name = "tower-layer" 2197 + version = "0.3.3" 2198 + source = "registry+https://github.com/rust-lang/crates.io-index" 2199 + checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" 2200 + 2201 + [[package]] 2202 + name = "tower-service" 2203 + version = "0.3.3" 2204 + source = "registry+https://github.com/rust-lang/crates.io-index" 2205 + checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" 2206 + 2207 + [[package]] 2208 + name = "tracing" 2209 + version = "0.1.41" 2210 + source = "registry+https://github.com/rust-lang/crates.io-index" 2211 + checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" 2212 + dependencies = [ 2213 + "pin-project-lite", 2214 + "tracing-core", 2215 + ] 2216 + 2217 + [[package]] 2218 + name = "tracing-core" 2219 + version = "0.1.34" 2220 + source = "registry+https://github.com/rust-lang/crates.io-index" 2221 + checksum = "b9d12581f227e93f094d3af2ae690a574abb8a2b9b7a96e7cfe9647b2b617678" 2222 + dependencies = [ 2223 + "once_cell", 2224 + ] 2225 + 2226 + [[package]] 2227 + name = "try-lock" 2228 + version = "0.2.5" 2229 + source = "registry+https://github.com/rust-lang/crates.io-index" 2230 + checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" 2231 + 2232 + [[package]] 1515 2233 name = "typenum" 1516 2234 version = "1.18.0" 1517 2235 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1536 2254 checksum = "eb066959b24b5196ae73cb057f45598450d2c5f71460e98c49b738086eff9c06" 1537 2255 1538 2256 [[package]] 2257 + name = "untrusted" 2258 + version = "0.9.0" 2259 + source = "registry+https://github.com/rust-lang/crates.io-index" 2260 + checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" 2261 + 2262 + [[package]] 1539 2263 name = "url" 1540 2264 version = "2.5.7" 1541 2265 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1566 2290 checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" 1567 2291 1568 2292 [[package]] 2293 + name = "want" 2294 + version = "0.3.1" 2295 + source = "registry+https://github.com/rust-lang/crates.io-index" 2296 + checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" 2297 + dependencies = [ 2298 + "try-lock", 2299 + ] 2300 + 2301 + [[package]] 2302 + name = "wasi" 2303 + version = "0.11.1+wasi-snapshot-preview1" 2304 + source = "registry+https://github.com/rust-lang/crates.io-index" 2305 + checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" 2306 + 2307 + [[package]] 1569 2308 name = "wasi" 1570 2309 version = "0.14.7+wasi-0.2.4" 1571 2310 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1611 2350 ] 1612 2351 1613 2352 [[package]] 2353 + name = "wasm-bindgen-futures" 2354 + version = "0.4.54" 2355 + source = "registry+https://github.com/rust-lang/crates.io-index" 2356 + checksum = "7e038d41e478cc73bae0ff9b36c60cff1c98b8f38f8d7e8061e79ee63608ac5c" 2357 + dependencies = [ 2358 + "cfg-if", 2359 + "js-sys", 2360 + "once_cell", 2361 + "wasm-bindgen", 2362 + "web-sys", 2363 + ] 2364 + 2365 + [[package]] 1614 2366 name = "wasm-bindgen-macro" 1615 2367 version = "0.2.104" 1616 2368 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1643 2395 ] 1644 2396 1645 2397 [[package]] 2398 + name = "web-sys" 2399 + version = "0.3.81" 2400 + source = "registry+https://github.com/rust-lang/crates.io-index" 2401 + checksum = "9367c417a924a74cae129e6a2ae3b47fabb1f8995595ab474029da749a8be120" 2402 + dependencies = [ 2403 + "js-sys", 2404 + "wasm-bindgen", 2405 + ] 2406 + 2407 + [[package]] 2408 + name = "web-time" 2409 + version = "1.1.0" 2410 + source = "registry+https://github.com/rust-lang/crates.io-index" 2411 + checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" 2412 + dependencies = [ 2413 + "js-sys", 2414 + "wasm-bindgen", 2415 + ] 2416 + 2417 + [[package]] 2418 + name = "webpki-roots" 2419 + version = "1.0.2" 2420 + source = "registry+https://github.com/rust-lang/crates.io-index" 2421 + checksum = "7e8983c3ab33d6fb807cfcdad2491c4ea8cbc8ed839181c7dfd9c67c83e261b2" 2422 + dependencies = [ 2423 + "rustls-pki-types", 2424 + ] 2425 + 2426 + [[package]] 1646 2427 name = "windows-core" 1647 2428 version = "0.62.1" 1648 2429 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1650 2431 dependencies = [ 1651 2432 "windows-implement", 1652 2433 "windows-interface", 1653 - "windows-link", 1654 - "windows-result", 1655 - "windows-strings", 2434 + "windows-link 0.2.0", 2435 + "windows-result 0.4.0", 2436 + "windows-strings 0.5.0", 1656 2437 ] 1657 2438 1658 2439 [[package]] ··· 1679 2460 1680 2461 [[package]] 1681 2462 name = "windows-link" 2463 + version = "0.1.3" 2464 + source = "registry+https://github.com/rust-lang/crates.io-index" 2465 + checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" 2466 + 2467 + [[package]] 2468 + name = "windows-link" 1682 2469 version = "0.2.0" 1683 2470 source = "registry+https://github.com/rust-lang/crates.io-index" 1684 2471 checksum = "45e46c0661abb7180e7b9c281db115305d49ca1709ab8242adf09666d2173c65" 1685 2472 1686 2473 [[package]] 2474 + name = "windows-registry" 2475 + version = "0.5.3" 2476 + source = "registry+https://github.com/rust-lang/crates.io-index" 2477 + checksum = "5b8a9ed28765efc97bbc954883f4e6796c33a06546ebafacbabee9696967499e" 2478 + dependencies = [ 2479 + "windows-link 0.1.3", 2480 + "windows-result 0.3.4", 2481 + "windows-strings 0.4.2", 2482 + ] 2483 + 2484 + [[package]] 2485 + name = "windows-result" 2486 + version = "0.3.4" 2487 + source = "registry+https://github.com/rust-lang/crates.io-index" 2488 + checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" 2489 + dependencies = [ 2490 + "windows-link 0.1.3", 2491 + ] 2492 + 2493 + [[package]] 1687 2494 name = "windows-result" 1688 2495 version = "0.4.0" 1689 2496 source = "registry+https://github.com/rust-lang/crates.io-index" 1690 2497 checksum = "7084dcc306f89883455a206237404d3eaf961e5bd7e0f312f7c91f57eb44167f" 1691 2498 dependencies = [ 1692 - "windows-link", 2499 + "windows-link 0.2.0", 2500 + ] 2501 + 2502 + [[package]] 2503 + name = "windows-strings" 2504 + version = "0.4.2" 2505 + source = "registry+https://github.com/rust-lang/crates.io-index" 2506 + checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" 2507 + dependencies = [ 2508 + "windows-link 0.1.3", 1693 2509 ] 1694 2510 1695 2511 [[package]] ··· 1698 2514 source = "registry+https://github.com/rust-lang/crates.io-index" 1699 2515 checksum = "7218c655a553b0bed4426cf54b20d7ba363ef543b52d515b3e48d7fd55318dda" 1700 2516 dependencies = [ 1701 - "windows-link", 2517 + "windows-link 0.2.0", 2518 + ] 2519 + 2520 + [[package]] 2521 + name = "windows-sys" 2522 + version = "0.52.0" 2523 + source = "registry+https://github.com/rust-lang/crates.io-index" 2524 + checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" 2525 + dependencies = [ 2526 + "windows-targets 0.52.6", 2527 + ] 2528 + 2529 + [[package]] 2530 + name = "windows-sys" 2531 + version = "0.59.0" 2532 + source = "registry+https://github.com/rust-lang/crates.io-index" 2533 + checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" 2534 + dependencies = [ 2535 + "windows-targets 0.52.6", 1702 2536 ] 1703 2537 1704 2538 [[package]] ··· 1707 2541 source = "registry+https://github.com/rust-lang/crates.io-index" 1708 2542 checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" 1709 2543 dependencies = [ 1710 - "windows-targets", 2544 + "windows-targets 0.53.4", 2545 + ] 2546 + 2547 + [[package]] 2548 + name = "windows-targets" 2549 + version = "0.52.6" 2550 + source = "registry+https://github.com/rust-lang/crates.io-index" 2551 + checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 2552 + dependencies = [ 2553 + "windows_aarch64_gnullvm 0.52.6", 2554 + "windows_aarch64_msvc 0.52.6", 2555 + "windows_i686_gnu 0.52.6", 2556 + "windows_i686_gnullvm 0.52.6", 2557 + "windows_i686_msvc 0.52.6", 2558 + "windows_x86_64_gnu 0.52.6", 2559 + "windows_x86_64_gnullvm 0.52.6", 2560 + "windows_x86_64_msvc 0.52.6", 1711 2561 ] 1712 2562 1713 2563 [[package]] ··· 1716 2566 source = "registry+https://github.com/rust-lang/crates.io-index" 1717 2567 checksum = "2d42b7b7f66d2a06854650af09cfdf8713e427a439c97ad65a6375318033ac4b" 1718 2568 dependencies = [ 1719 - "windows-link", 1720 - "windows_aarch64_gnullvm", 1721 - "windows_aarch64_msvc", 1722 - "windows_i686_gnu", 1723 - "windows_i686_gnullvm", 1724 - "windows_i686_msvc", 1725 - "windows_x86_64_gnu", 1726 - "windows_x86_64_gnullvm", 1727 - "windows_x86_64_msvc", 2569 + "windows-link 0.2.0", 2570 + "windows_aarch64_gnullvm 0.53.0", 2571 + "windows_aarch64_msvc 0.53.0", 2572 + "windows_i686_gnu 0.53.0", 2573 + "windows_i686_gnullvm 0.53.0", 2574 + "windows_i686_msvc 0.53.0", 2575 + "windows_x86_64_gnu 0.53.0", 2576 + "windows_x86_64_gnullvm 0.53.0", 2577 + "windows_x86_64_msvc 0.53.0", 1728 2578 ] 1729 2579 1730 2580 [[package]] 1731 2581 name = "windows_aarch64_gnullvm" 2582 + version = "0.52.6" 2583 + source = "registry+https://github.com/rust-lang/crates.io-index" 2584 + checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" 2585 + 2586 + [[package]] 2587 + name = "windows_aarch64_gnullvm" 1732 2588 version = "0.53.0" 1733 2589 source = "registry+https://github.com/rust-lang/crates.io-index" 1734 2590 checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764" 1735 2591 1736 2592 [[package]] 1737 2593 name = "windows_aarch64_msvc" 2594 + version = "0.52.6" 2595 + source = "registry+https://github.com/rust-lang/crates.io-index" 2596 + checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 2597 + 2598 + [[package]] 2599 + name = "windows_aarch64_msvc" 1738 2600 version = "0.53.0" 1739 2601 source = "registry+https://github.com/rust-lang/crates.io-index" 1740 2602 checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c" 2603 + 2604 + [[package]] 2605 + name = "windows_i686_gnu" 2606 + version = "0.52.6" 2607 + source = "registry+https://github.com/rust-lang/crates.io-index" 2608 + checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" 1741 2609 1742 2610 [[package]] 1743 2611 name = "windows_i686_gnu" ··· 1747 2615 1748 2616 [[package]] 1749 2617 name = "windows_i686_gnullvm" 2618 + version = "0.52.6" 2619 + source = "registry+https://github.com/rust-lang/crates.io-index" 2620 + checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" 2621 + 2622 + [[package]] 2623 + name = "windows_i686_gnullvm" 1750 2624 version = "0.53.0" 1751 2625 source = "registry+https://github.com/rust-lang/crates.io-index" 1752 2626 checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11" 1753 2627 1754 2628 [[package]] 1755 2629 name = "windows_i686_msvc" 2630 + version = "0.52.6" 2631 + source = "registry+https://github.com/rust-lang/crates.io-index" 2632 + checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 2633 + 2634 + [[package]] 2635 + name = "windows_i686_msvc" 1756 2636 version = "0.53.0" 1757 2637 source = "registry+https://github.com/rust-lang/crates.io-index" 1758 2638 checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d" 1759 2639 1760 2640 [[package]] 1761 2641 name = "windows_x86_64_gnu" 2642 + version = "0.52.6" 2643 + source = "registry+https://github.com/rust-lang/crates.io-index" 2644 + checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 2645 + 2646 + [[package]] 2647 + name = "windows_x86_64_gnu" 1762 2648 version = "0.53.0" 1763 2649 source = "registry+https://github.com/rust-lang/crates.io-index" 1764 2650 checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba" 1765 2651 1766 2652 [[package]] 1767 2653 name = "windows_x86_64_gnullvm" 2654 + version = "0.52.6" 2655 + source = "registry+https://github.com/rust-lang/crates.io-index" 2656 + checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 2657 + 2658 + [[package]] 2659 + name = "windows_x86_64_gnullvm" 1768 2660 version = "0.53.0" 1769 2661 source = "registry+https://github.com/rust-lang/crates.io-index" 1770 2662 checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57" 2663 + 2664 + [[package]] 2665 + name = "windows_x86_64_msvc" 2666 + version = "0.52.6" 2667 + source = "registry+https://github.com/rust-lang/crates.io-index" 2668 + checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" 1771 2669 1772 2670 [[package]] 1773 2671 name = "windows_x86_64_msvc" ··· 1857 2755 "syn 2.0.106", 1858 2756 "synstructure", 1859 2757 ] 2758 + 2759 + [[package]] 2760 + name = "zeroize" 2761 + version = "1.8.2" 2762 + source = "registry+https://github.com/rust-lang/crates.io-index" 2763 + checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0" 1860 2764 1861 2765 [[package]] 1862 2766 name = "zerotrie"
+7
crates/jacquard-api/Cargo.toml
··· 11 11 exclude.workspace = true 12 12 description.workspace = true 13 13 14 + [features] 15 + default = ["app_bsky", "com_atproto", "tools_ozone", "chat_bsky"] 16 + app_bsky = [] 17 + chat_bsky = [] 18 + com_atproto = [] 19 + tools_ozone = [] 20 + 14 21 [dependencies] 15 22 bytes = { version = "1.10.1", features = ["serde"] } 16 23 jacquard-common = { version = "0.1.0", path = "../jacquard-common" }
+2
crates/jacquard-api/src/app_bsky/actor.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.actor.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+11 -1
crates/jacquard-api/src/app_bsky/actor/get_preferences.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.actor.getPreferences 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetPreferencesParams {} 10 + pub struct GetPreferences {} 9 11 #[jacquard_derive::lexicon] 10 12 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11 13 #[serde(rename_all = "camelCase")] 12 14 pub struct GetPreferencesOutput<'a> { 13 15 #[serde(borrow)] 14 16 pub preferences: crate::app_bsky::actor::Preferences<'a>, 17 + } 18 + 19 + impl jacquard_common::types::xrpc::XrpcRequest for GetPreferences { 20 + const NSID: &'static str = "app.bsky.actor.getPreferences"; 21 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 22 + const OUTPUT_ENCODING: &'static str = "application/json"; 23 + type Output<'de> = GetPreferencesOutput<'de>; 24 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 15 25 }
+11 -1
crates/jacquard-api/src/app_bsky/actor/get_profile.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.actor.getProfile 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetProfileParams<'a> { 10 + pub struct GetProfile<'a> { 9 11 #[serde(borrow)] 10 12 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 11 13 } ··· 17 19 #[serde(flatten)] 18 20 #[serde(borrow)] 19 21 pub value: crate::app_bsky::actor::ProfileViewDetailed<'a>, 22 + } 23 + 24 + impl jacquard_common::types::xrpc::XrpcRequest for GetProfile<'_> { 25 + const NSID: &'static str = "app.bsky.actor.getProfile"; 26 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 27 + const OUTPUT_ENCODING: &'static str = "application/json"; 28 + type Output<'de> = GetProfileOutput<'de>; 29 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 20 30 }
+11 -1
crates/jacquard-api/src/app_bsky/actor/get_profiles.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.actor.getProfiles 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetProfilesParams<'a> { 10 + pub struct GetProfiles<'a> { 9 11 #[serde(borrow)] 10 12 pub actors: Vec<jacquard_common::types::ident::AtIdentifier<'a>>, 11 13 } ··· 16 18 pub struct GetProfilesOutput<'a> { 17 19 #[serde(borrow)] 18 20 pub profiles: Vec<crate::app_bsky::actor::ProfileViewDetailed<'a>>, 21 + } 22 + 23 + impl jacquard_common::types::xrpc::XrpcRequest for GetProfiles<'_> { 24 + const NSID: &'static str = "app.bsky.actor.getProfiles"; 25 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 26 + const OUTPUT_ENCODING: &'static str = "application/json"; 27 + type Output<'de> = GetProfilesOutput<'de>; 28 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 29 }
+21 -2
crates/jacquard-api/src/app_bsky/actor/get_suggestions.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.actor.getSuggestions 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetSuggestionsParams<'a> { 10 + pub struct GetSuggestions<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 13 15 pub limit: std::option::Option<i64>, 14 16 } 15 17 18 + impl Default for GetSuggestions<'_> { 19 + fn default() -> Self { 20 + Self { 21 + cursor: Default::default(), 22 + limit: Some(50i64), 23 + } 24 + } 25 + } 26 + 16 27 #[jacquard_derive::lexicon] 17 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 29 #[serde(rename_all = "camelCase")] ··· 25 36 ///Snowflake for this recommendation, use when submitting recommendation events. 26 37 #[serde(skip_serializing_if = "std::option::Option::is_none")] 27 38 pub rec_id: std::option::Option<i64>, 39 + } 40 + 41 + impl jacquard_common::types::xrpc::XrpcRequest for GetSuggestions<'_> { 42 + const NSID: &'static str = "app.bsky.actor.getSuggestions"; 43 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 44 + const OUTPUT_ENCODING: &'static str = "application/json"; 45 + type Output<'de> = GetSuggestionsOutput<'de>; 46 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 28 47 }
+6
crates/jacquard-api/src/app_bsky/actor/profile.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.actor.profile 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 55 57 pub enum ProfileRecordLabels<'a> { 56 58 #[serde(rename = "com.atproto.label.defs#selfLabels")] 57 59 DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>), 60 + } 61 + 62 + impl jacquard_common::types::collection::Collection for Profile<'_> { 63 + const NSID: &'static str = "app.bsky.actor.profile"; 58 64 }
+13 -1
crates/jacquard-api/src/app_bsky/actor/put_preferences.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.actor.putPreferences 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct PutPreferencesInput<'a> { 11 + pub struct PutPreferences<'a> { 10 12 #[serde(borrow)] 11 13 pub preferences: crate::app_bsky::actor::Preferences<'a>, 14 + } 15 + 16 + impl jacquard_common::types::xrpc::XrpcRequest for PutPreferences<'_> { 17 + const NSID: &'static str = "app.bsky.actor.putPreferences"; 18 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 19 + "application/json", 20 + ); 21 + const OUTPUT_ENCODING: &'static str = "application/json"; 22 + type Output<'de> = (); 23 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 12 24 }
+23 -2
crates/jacquard-api/src/app_bsky/actor/search_actors.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.actor.searchActors 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct SearchActorsParams<'a> { 10 + pub struct SearchActors<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 19 21 pub term: std::option::Option<jacquard_common::CowStr<'a>>, 20 22 } 21 23 24 + impl Default for SearchActors<'_> { 25 + fn default() -> Self { 26 + Self { 27 + cursor: Default::default(), 28 + limit: Some(25i64), 29 + q: Default::default(), 30 + term: Default::default(), 31 + } 32 + } 33 + } 34 + 22 35 #[jacquard_derive::lexicon] 23 36 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 24 37 #[serde(rename_all = "camelCase")] ··· 28 41 #[serde(skip_serializing_if = "std::option::Option::is_none")] 29 42 #[serde(borrow)] 30 43 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 44 + } 45 + 46 + impl jacquard_common::types::xrpc::XrpcRequest for SearchActors<'_> { 47 + const NSID: &'static str = "app.bsky.actor.searchActors"; 48 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 49 + const OUTPUT_ENCODING: &'static str = "application/json"; 50 + type Output<'de> = SearchActorsOutput<'de>; 51 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 31 52 }
+22 -2
crates/jacquard-api/src/app_bsky/actor/search_actors_typeahead.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.actor.searchActorsTypeahead 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct SearchActorsTypeaheadParams<'a> { 10 + pub struct SearchActorsTypeahead<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 pub limit: std::option::Option<i64>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 16 18 pub term: std::option::Option<jacquard_common::CowStr<'a>>, 17 19 } 18 20 21 + impl Default for SearchActorsTypeahead<'_> { 22 + fn default() -> Self { 23 + Self { 24 + limit: Some(10i64), 25 + q: Default::default(), 26 + term: Default::default(), 27 + } 28 + } 29 + } 30 + 19 31 #[jacquard_derive::lexicon] 20 32 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 33 #[serde(rename_all = "camelCase")] 22 34 pub struct SearchActorsTypeaheadOutput<'a> { 23 35 #[serde(borrow)] 24 36 pub actors: Vec<crate::app_bsky::actor::ProfileViewBasic<'a>>, 37 + } 38 + 39 + impl jacquard_common::types::xrpc::XrpcRequest for SearchActorsTypeahead<'_> { 40 + const NSID: &'static str = "app.bsky.actor.searchActorsTypeahead"; 41 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 42 + const OUTPUT_ENCODING: &'static str = "application/json"; 43 + type Output<'de> = SearchActorsTypeaheadOutput<'de>; 44 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 25 45 }
+6
crates/jacquard-api/src/app_bsky/actor/status.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.actor.status 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 28 30 pub enum StatusRecordEmbed<'a> { 29 31 #[serde(rename = "app.bsky.embed.external")] 30 32 External(Box<crate::app_bsky::embed::external::ExternalRecord<'a>>), 33 + } 34 + 35 + impl jacquard_common::types::collection::Collection for Status<'_> { 36 + const NSID: &'static str = "app.bsky.actor.status"; 31 37 }
+2
crates/jacquard-api/src/app_bsky/bookmark.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.bookmark.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+13 -1
crates/jacquard-api/src/app_bsky/bookmark/create_bookmark.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.bookmark.createBookmark 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct CreateBookmarkInput<'a> { 11 + pub struct CreateBookmark<'a> { 10 12 #[serde(borrow)] 11 13 pub cid: jacquard_common::types::string::Cid<'a>, 12 14 #[serde(borrow)] ··· 45 47 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 46 48 } 47 49 } 50 + } 51 + 52 + impl jacquard_common::types::xrpc::XrpcRequest for CreateBookmark<'_> { 53 + const NSID: &'static str = "app.bsky.bookmark.createBookmark"; 54 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 55 + "application/json", 56 + ); 57 + const OUTPUT_ENCODING: &'static str = "application/json"; 58 + type Output<'de> = (); 59 + type Err<'de> = CreateBookmarkError<'de>; 48 60 }
+13 -1
crates/jacquard-api/src/app_bsky/bookmark/delete_bookmark.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.bookmark.deleteBookmark 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct DeleteBookmarkInput<'a> { 11 + pub struct DeleteBookmark<'a> { 10 12 #[serde(borrow)] 11 13 pub uri: jacquard_common::types::string::AtUri<'a>, 12 14 } ··· 43 45 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 44 46 } 45 47 } 48 + } 49 + 50 + impl jacquard_common::types::xrpc::XrpcRequest for DeleteBookmark<'_> { 51 + const NSID: &'static str = "app.bsky.bookmark.deleteBookmark"; 52 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 53 + "application/json", 54 + ); 55 + const OUTPUT_ENCODING: &'static str = "application/json"; 56 + type Output<'de> = (); 57 + type Err<'de> = DeleteBookmarkError<'de>; 46 58 }
+21 -2
crates/jacquard-api/src/app_bsky/bookmark/get_bookmarks.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.bookmark.getBookmarks 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetBookmarksParams<'a> { 10 + pub struct GetBookmarks<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 13 15 pub limit: std::option::Option<i64>, 14 16 } 15 17 18 + impl Default for GetBookmarks<'_> { 19 + fn default() -> Self { 20 + Self { 21 + cursor: Default::default(), 22 + limit: Some(50i64), 23 + } 24 + } 25 + } 26 + 16 27 #[jacquard_derive::lexicon] 17 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 29 #[serde(rename_all = "camelCase")] ··· 22 33 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 34 #[serde(borrow)] 24 35 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 36 + } 37 + 38 + impl jacquard_common::types::xrpc::XrpcRequest for GetBookmarks<'_> { 39 + const NSID: &'static str = "app.bsky.bookmark.getBookmarks"; 40 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 41 + const OUTPUT_ENCODING: &'static str = "application/json"; 42 + type Output<'de> = GetBookmarksOutput<'de>; 43 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 25 44 }
+2
crates/jacquard-api/src/app_bsky/embed.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.embed.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+2
crates/jacquard-api/src/app_bsky/embed/external.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.embed.external 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+2
crates/jacquard-api/src/app_bsky/embed/images.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.embed.images 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+2
crates/jacquard-api/src/app_bsky/embed/record.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.embed.record 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+2
crates/jacquard-api/src/app_bsky/embed/record_with_media.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.embed.recordWithMedia 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+2
crates/jacquard-api/src/app_bsky/embed/video.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.embed.video 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+2
crates/jacquard-api/src/app_bsky/feed.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+13
crates/jacquard-api/src/app_bsky/feed/describe_feed_generator.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.describeFeedGenerator 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 34 36 #[serde(skip_serializing_if = "std::option::Option::is_none")] 35 37 #[serde(borrow)] 36 38 pub links: std::option::Option<jacquard_common::types::value::Data<'a>>, 39 + } 40 + 41 + /// XRPC request marker type 42 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 43 + pub struct DescribeFeedGenerator; 44 + impl jacquard_common::types::xrpc::XrpcRequest for DescribeFeedGenerator { 45 + const NSID: &'static str = "app.bsky.feed.describeFeedGenerator"; 46 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 47 + const OUTPUT_ENCODING: &'static str = "application/json"; 48 + type Output<'de> = DescribeFeedGeneratorOutput<'de>; 49 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 37 50 }
+6
crates/jacquard-api/src/app_bsky/feed/generator.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.generator 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 43 45 pub enum GeneratorRecordLabels<'a> { 44 46 #[serde(rename = "com.atproto.label.defs#selfLabels")] 45 47 DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>), 48 + } 49 + 50 + impl jacquard_common::types::collection::Collection for Generator<'_> { 51 + const NSID: &'static str = "app.bsky.feed.generator"; 46 52 }
+22 -2
crates/jacquard-api/src/app_bsky/feed/get_actor_feeds.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.getActorFeeds 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetActorFeedsParams<'a> { 10 + pub struct GetActorFeeds<'a> { 9 11 #[serde(borrow)] 10 12 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 15 17 pub limit: std::option::Option<i64>, 16 18 } 17 19 20 + impl Default for GetActorFeeds<'_> { 21 + fn default() -> Self { 22 + Self { 23 + actor: Default::default(), 24 + cursor: Default::default(), 25 + limit: Some(50i64), 26 + } 27 + } 28 + } 29 + 18 30 #[jacquard_derive::lexicon] 19 31 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 32 #[serde(rename_all = "camelCase")] ··· 24 36 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 37 #[serde(borrow)] 26 38 pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>, 39 + } 40 + 41 + impl jacquard_common::types::xrpc::XrpcRequest for GetActorFeeds<'_> { 42 + const NSID: &'static str = "app.bsky.feed.getActorFeeds"; 43 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 44 + const OUTPUT_ENCODING: &'static str = "application/json"; 45 + type Output<'de> = GetActorFeedsOutput<'de>; 46 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 27 47 }
+22 -2
crates/jacquard-api/src/app_bsky/feed/get_actor_likes.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.getActorLikes 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetActorLikesParams<'a> { 10 + pub struct GetActorLikes<'a> { 9 11 #[serde(borrow)] 10 12 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 13 15 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 14 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 17 pub limit: std::option::Option<i64>, 18 + } 19 + 20 + impl Default for GetActorLikes<'_> { 21 + fn default() -> Self { 22 + Self { 23 + actor: Default::default(), 24 + cursor: Default::default(), 25 + limit: Some(50i64), 26 + } 27 + } 16 28 } 17 29 18 30 #[jacquard_derive::lexicon] ··· 66 78 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 67 79 } 68 80 } 81 + } 82 + 83 + impl jacquard_common::types::xrpc::XrpcRequest for GetActorLikes<'_> { 84 + const NSID: &'static str = "app.bsky.feed.getActorLikes"; 85 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 86 + const OUTPUT_ENCODING: &'static str = "application/json"; 87 + type Output<'de> = GetActorLikesOutput<'de>; 88 + type Err<'de> = GetActorLikesError<'de>; 69 89 }
+24 -2
crates/jacquard-api/src/app_bsky/feed/get_author_feed.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.getAuthorFeed 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetAuthorFeedParams<'a> { 10 + pub struct GetAuthorFeed<'a> { 9 11 #[serde(borrow)] 10 12 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 18 20 pub include_pins: std::option::Option<bool>, 19 21 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 22 pub limit: std::option::Option<i64>, 23 + } 24 + 25 + impl Default for GetAuthorFeed<'_> { 26 + fn default() -> Self { 27 + Self { 28 + actor: Default::default(), 29 + cursor: Default::default(), 30 + filter: Some(jacquard_common::CowStr::from("posts_with_replies")), 31 + include_pins: Some(false), 32 + limit: Some(50i64), 33 + } 34 + } 21 35 } 22 36 23 37 #[jacquard_derive::lexicon] ··· 71 85 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 72 86 } 73 87 } 88 + } 89 + 90 + impl jacquard_common::types::xrpc::XrpcRequest for GetAuthorFeed<'_> { 91 + const NSID: &'static str = "app.bsky.feed.getAuthorFeed"; 92 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 93 + const OUTPUT_ENCODING: &'static str = "application/json"; 94 + type Output<'de> = GetAuthorFeedOutput<'de>; 95 + type Err<'de> = GetAuthorFeedError<'de>; 74 96 }
+22 -2
crates/jacquard-api/src/app_bsky/feed/get_feed.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.getFeed 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetFeedParams<'a> { 10 + pub struct GetFeed<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 13 15 pub feed: jacquard_common::types::string::AtUri<'a>, 14 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 17 pub limit: std::option::Option<i64>, 18 + } 19 + 20 + impl Default for GetFeed<'_> { 21 + fn default() -> Self { 22 + Self { 23 + cursor: Default::default(), 24 + feed: Default::default(), 25 + limit: Some(50i64), 26 + } 27 + } 16 28 } 17 29 18 30 #[jacquard_derive::lexicon] ··· 57 69 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 58 70 } 59 71 } 72 + } 73 + 74 + impl jacquard_common::types::xrpc::XrpcRequest for GetFeed<'_> { 75 + const NSID: &'static str = "app.bsky.feed.getFeed"; 76 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 77 + const OUTPUT_ENCODING: &'static str = "application/json"; 78 + type Output<'de> = GetFeedOutput<'de>; 79 + type Err<'de> = GetFeedError<'de>; 60 80 }
+11 -1
crates/jacquard-api/src/app_bsky/feed/get_feed_generator.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.getFeedGenerator 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetFeedGeneratorParams<'a> { 10 + pub struct GetFeedGenerator<'a> { 9 11 #[serde(borrow)] 10 12 pub feed: jacquard_common::types::string::AtUri<'a>, 11 13 } ··· 20 22 pub is_valid: bool, 21 23 #[serde(borrow)] 22 24 pub view: crate::app_bsky::feed::GeneratorView<'a>, 25 + } 26 + 27 + impl jacquard_common::types::xrpc::XrpcRequest for GetFeedGenerator<'_> { 28 + const NSID: &'static str = "app.bsky.feed.getFeedGenerator"; 29 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 30 + const OUTPUT_ENCODING: &'static str = "application/json"; 31 + type Output<'de> = GetFeedGeneratorOutput<'de>; 32 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 23 33 }
+11 -1
crates/jacquard-api/src/app_bsky/feed/get_feed_generators.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.getFeedGenerators 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetFeedGeneratorsParams<'a> { 10 + pub struct GetFeedGenerators<'a> { 9 11 #[serde(borrow)] 10 12 pub feeds: Vec<jacquard_common::types::string::AtUri<'a>>, 11 13 } ··· 16 18 pub struct GetFeedGeneratorsOutput<'a> { 17 19 #[serde(borrow)] 18 20 pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>, 21 + } 22 + 23 + impl jacquard_common::types::xrpc::XrpcRequest for GetFeedGenerators<'_> { 24 + const NSID: &'static str = "app.bsky.feed.getFeedGenerators"; 25 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 26 + const OUTPUT_ENCODING: &'static str = "application/json"; 27 + type Output<'de> = GetFeedGeneratorsOutput<'de>; 28 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 29 }
+22 -2
crates/jacquard-api/src/app_bsky/feed/get_feed_skeleton.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.getFeedSkeleton 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetFeedSkeletonParams<'a> { 10 + pub struct GetFeedSkeleton<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 13 15 pub feed: jacquard_common::types::string::AtUri<'a>, 14 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 17 pub limit: std::option::Option<i64>, 18 + } 19 + 20 + impl Default for GetFeedSkeleton<'_> { 21 + fn default() -> Self { 22 + Self { 23 + cursor: Default::default(), 24 + feed: Default::default(), 25 + limit: Some(50i64), 26 + } 27 + } 16 28 } 17 29 18 30 #[jacquard_derive::lexicon] ··· 61 73 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 62 74 } 63 75 } 76 + } 77 + 78 + impl jacquard_common::types::xrpc::XrpcRequest for GetFeedSkeleton<'_> { 79 + const NSID: &'static str = "app.bsky.feed.getFeedSkeleton"; 80 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 81 + const OUTPUT_ENCODING: &'static str = "application/json"; 82 + type Output<'de> = GetFeedSkeletonOutput<'de>; 83 + type Err<'de> = GetFeedSkeletonError<'de>; 64 84 }
+23 -2
crates/jacquard-api/src/app_bsky/feed/get_likes.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.getLikes 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 13 15 pub indexed_at: jacquard_common::types::string::Datetime, 14 16 } 15 17 16 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 17 19 #[serde(rename_all = "camelCase")] 18 - pub struct GetLikesParams<'a> { 20 + pub struct GetLikes<'a> { 19 21 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 22 #[serde(borrow)] 21 23 pub cid: std::option::Option<jacquard_common::types::string::Cid<'a>>, ··· 28 30 pub uri: jacquard_common::types::string::AtUri<'a>, 29 31 } 30 32 33 + impl Default for GetLikes<'_> { 34 + fn default() -> Self { 35 + Self { 36 + cid: Default::default(), 37 + cursor: Default::default(), 38 + limit: Some(50i64), 39 + uri: Default::default(), 40 + } 41 + } 42 + } 43 + 31 44 #[jacquard_derive::lexicon] 32 45 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 33 46 #[serde(rename_all = "camelCase")] ··· 42 55 pub likes: Vec<jacquard_common::types::value::Data<'a>>, 43 56 #[serde(borrow)] 44 57 pub uri: jacquard_common::types::string::AtUri<'a>, 58 + } 59 + 60 + impl jacquard_common::types::xrpc::XrpcRequest for GetLikes<'_> { 61 + const NSID: &'static str = "app.bsky.feed.getLikes"; 62 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 63 + const OUTPUT_ENCODING: &'static str = "application/json"; 64 + type Output<'de> = GetLikesOutput<'de>; 65 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 45 66 }
+22 -2
crates/jacquard-api/src/app_bsky/feed/get_list_feed.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.getListFeed 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetListFeedParams<'a> { 10 + pub struct GetListFeed<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 13 15 pub limit: std::option::Option<i64>, 14 16 #[serde(borrow)] 15 17 pub list: jacquard_common::types::string::AtUri<'a>, 18 + } 19 + 20 + impl Default for GetListFeed<'_> { 21 + fn default() -> Self { 22 + Self { 23 + cursor: Default::default(), 24 + limit: Some(50i64), 25 + list: Default::default(), 26 + } 27 + } 16 28 } 17 29 18 30 #[jacquard_derive::lexicon] ··· 57 69 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 58 70 } 59 71 } 72 + } 73 + 74 + impl jacquard_common::types::xrpc::XrpcRequest for GetListFeed<'_> { 75 + const NSID: &'static str = "app.bsky.feed.getListFeed"; 76 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 77 + const OUTPUT_ENCODING: &'static str = "application/json"; 78 + type Output<'de> = GetListFeedOutput<'de>; 79 + type Err<'de> = GetListFeedError<'de>; 60 80 }
+22 -2
crates/jacquard-api/src/app_bsky/feed/get_post_thread.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.getPostThread 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetPostThreadParams<'a> { 10 + pub struct GetPostThread<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 pub depth: std::option::Option<i64>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 14 pub parent_height: std::option::Option<i64>, 13 15 #[serde(borrow)] 14 16 pub uri: jacquard_common::types::string::AtUri<'a>, 17 + } 18 + 19 + impl Default for GetPostThread<'_> { 20 + fn default() -> Self { 21 + Self { 22 + depth: Some(6i64), 23 + parent_height: Some(80i64), 24 + uri: Default::default(), 25 + } 26 + } 15 27 } 16 28 17 29 #[jacquard_derive::lexicon] ··· 69 81 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 70 82 } 71 83 } 84 + } 85 + 86 + impl jacquard_common::types::xrpc::XrpcRequest for GetPostThread<'_> { 87 + const NSID: &'static str = "app.bsky.feed.getPostThread"; 88 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 89 + const OUTPUT_ENCODING: &'static str = "application/json"; 90 + type Output<'de> = GetPostThreadOutput<'de>; 91 + type Err<'de> = GetPostThreadError<'de>; 72 92 }
+11 -1
crates/jacquard-api/src/app_bsky/feed/get_posts.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.getPosts 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetPostsParams<'a> { 10 + pub struct GetPosts<'a> { 9 11 #[serde(borrow)] 10 12 pub uris: Vec<jacquard_common::types::string::AtUri<'a>>, 11 13 } ··· 16 18 pub struct GetPostsOutput<'a> { 17 19 #[serde(borrow)] 18 20 pub posts: Vec<crate::app_bsky::feed::PostView<'a>>, 21 + } 22 + 23 + impl jacquard_common::types::xrpc::XrpcRequest for GetPosts<'_> { 24 + const NSID: &'static str = "app.bsky.feed.getPosts"; 25 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 26 + const OUTPUT_ENCODING: &'static str = "application/json"; 27 + type Output<'de> = GetPostsOutput<'de>; 28 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 29 }
+23 -2
crates/jacquard-api/src/app_bsky/feed/get_quotes.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.getQuotes 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetQuotesParams<'a> { 10 + pub struct GetQuotes<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cid: std::option::Option<jacquard_common::types::string::Cid<'a>>, ··· 18 20 pub uri: jacquard_common::types::string::AtUri<'a>, 19 21 } 20 22 23 + impl Default for GetQuotes<'_> { 24 + fn default() -> Self { 25 + Self { 26 + cid: Default::default(), 27 + cursor: Default::default(), 28 + limit: Some(50i64), 29 + uri: Default::default(), 30 + } 31 + } 32 + } 33 + 21 34 #[jacquard_derive::lexicon] 22 35 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 23 36 #[serde(rename_all = "camelCase")] ··· 32 45 pub posts: Vec<crate::app_bsky::feed::PostView<'a>>, 33 46 #[serde(borrow)] 34 47 pub uri: jacquard_common::types::string::AtUri<'a>, 48 + } 49 + 50 + impl jacquard_common::types::xrpc::XrpcRequest for GetQuotes<'_> { 51 + const NSID: &'static str = "app.bsky.feed.getQuotes"; 52 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 53 + const OUTPUT_ENCODING: &'static str = "application/json"; 54 + type Output<'de> = GetQuotesOutput<'de>; 55 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 35 56 }
+23 -2
crates/jacquard-api/src/app_bsky/feed/get_reposted_by.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.getRepostedBy 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetRepostedByParams<'a> { 10 + pub struct GetRepostedBy<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cid: std::option::Option<jacquard_common::types::string::Cid<'a>>, ··· 18 20 pub uri: jacquard_common::types::string::AtUri<'a>, 19 21 } 20 22 23 + impl Default for GetRepostedBy<'_> { 24 + fn default() -> Self { 25 + Self { 26 + cid: Default::default(), 27 + cursor: Default::default(), 28 + limit: Some(50i64), 29 + uri: Default::default(), 30 + } 31 + } 32 + } 33 + 21 34 #[jacquard_derive::lexicon] 22 35 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 23 36 #[serde(rename_all = "camelCase")] ··· 32 45 pub reposted_by: Vec<crate::app_bsky::actor::ProfileView<'a>>, 33 46 #[serde(borrow)] 34 47 pub uri: jacquard_common::types::string::AtUri<'a>, 48 + } 49 + 50 + impl jacquard_common::types::xrpc::XrpcRequest for GetRepostedBy<'_> { 51 + const NSID: &'static str = "app.bsky.feed.getRepostedBy"; 52 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 53 + const OUTPUT_ENCODING: &'static str = "application/json"; 54 + type Output<'de> = GetRepostedByOutput<'de>; 55 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 35 56 }
+21 -2
crates/jacquard-api/src/app_bsky/feed/get_suggested_feeds.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.getSuggestedFeeds 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetSuggestedFeedsParams<'a> { 10 + pub struct GetSuggestedFeeds<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 13 15 pub limit: std::option::Option<i64>, 14 16 } 15 17 18 + impl Default for GetSuggestedFeeds<'_> { 19 + fn default() -> Self { 20 + Self { 21 + cursor: Default::default(), 22 + limit: Some(50i64), 23 + } 24 + } 25 + } 26 + 16 27 #[jacquard_derive::lexicon] 17 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 29 #[serde(rename_all = "camelCase")] ··· 22 33 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 23 34 #[serde(borrow)] 24 35 pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>, 36 + } 37 + 38 + impl jacquard_common::types::xrpc::XrpcRequest for GetSuggestedFeeds<'_> { 39 + const NSID: &'static str = "app.bsky.feed.getSuggestedFeeds"; 40 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 41 + const OUTPUT_ENCODING: &'static str = "application/json"; 42 + type Output<'de> = GetSuggestedFeedsOutput<'de>; 43 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 25 44 }
+22 -2
crates/jacquard-api/src/app_bsky/feed/get_timeline.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.getTimeline 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetTimelineParams<'a> { 10 + pub struct GetTimeline<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub algorithm: std::option::Option<jacquard_common::CowStr<'a>>, ··· 16 18 pub limit: std::option::Option<i64>, 17 19 } 18 20 21 + impl Default for GetTimeline<'_> { 22 + fn default() -> Self { 23 + Self { 24 + algorithm: Default::default(), 25 + cursor: Default::default(), 26 + limit: Some(50i64), 27 + } 28 + } 29 + } 30 + 19 31 #[jacquard_derive::lexicon] 20 32 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 33 #[serde(rename_all = "camelCase")] ··· 25 37 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 26 38 #[serde(borrow)] 27 39 pub feed: Vec<crate::app_bsky::feed::FeedViewPost<'a>>, 40 + } 41 + 42 + impl jacquard_common::types::xrpc::XrpcRequest for GetTimeline<'_> { 43 + const NSID: &'static str = "app.bsky.feed.getTimeline"; 44 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 45 + const OUTPUT_ENCODING: &'static str = "application/json"; 46 + type Output<'de> = GetTimelineOutput<'de>; 47 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 28 48 }
+6
crates/jacquard-api/src/app_bsky/feed/like.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.like 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 14 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 17 #[serde(borrow)] 16 18 pub via: std::option::Option<crate::com_atproto::repo::strong_ref::StrongRef<'a>>, 19 + } 20 + 21 + impl jacquard_common::types::collection::Collection for Like<'_> { 22 + const NSID: &'static str = "app.bsky.feed.like"; 17 23 }
+6
crates/jacquard-api/src/app_bsky/feed/post.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.post 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 78 80 pub enum PostRecordLabels<'a> { 79 81 #[serde(rename = "com.atproto.label.defs#selfLabels")] 80 82 DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>), 83 + } 84 + 85 + impl jacquard_common::types::collection::Collection for Post<'_> { 86 + const NSID: &'static str = "app.bsky.feed.post"; 81 87 } 82 88 83 89 #[jacquard_derive::lexicon]
+6
crates/jacquard-api/src/app_bsky/feed/postgate.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.postgate 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 29 31 ///Reference (AT-URI) to the post record. 30 32 #[serde(borrow)] 31 33 pub post: jacquard_common::types::string::AtUri<'a>, 34 + } 35 + 36 + impl jacquard_common::types::collection::Collection for Postgate<'_> { 37 + const NSID: &'static str = "app.bsky.feed.postgate"; 32 38 }
+6
crates/jacquard-api/src/app_bsky/feed/repost.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.repost 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 14 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 15 17 #[serde(borrow)] 16 18 pub via: std::option::Option<crate::com_atproto::repo::strong_ref::StrongRef<'a>>, 19 + } 20 + 21 + impl jacquard_common::types::collection::Collection for Repost<'_> { 22 + const NSID: &'static str = "app.bsky.feed.repost"; 17 23 }
+31 -2
crates/jacquard-api/src/app_bsky/feed/search_posts.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.searchPosts 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct SearchPostsParams<'a> { 10 + pub struct SearchPosts<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub author: std::option::Option<jacquard_common::types::ident::AtIdentifier<'a>>, ··· 41 43 pub url: std::option::Option<jacquard_common::types::string::Uri<'a>>, 42 44 } 43 45 46 + impl Default for SearchPosts<'_> { 47 + fn default() -> Self { 48 + Self { 49 + author: Default::default(), 50 + cursor: Default::default(), 51 + domain: Default::default(), 52 + lang: Default::default(), 53 + limit: Some(25i64), 54 + mentions: Default::default(), 55 + q: Default::default(), 56 + since: Default::default(), 57 + sort: Some(jacquard_common::CowStr::from("latest")), 58 + tag: Default::default(), 59 + until: Default::default(), 60 + url: Default::default(), 61 + } 62 + } 63 + } 64 + 44 65 #[jacquard_derive::lexicon] 45 66 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 46 67 #[serde(rename_all = "camelCase")] ··· 86 107 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 87 108 } 88 109 } 110 + } 111 + 112 + impl jacquard_common::types::xrpc::XrpcRequest for SearchPosts<'_> { 113 + const NSID: &'static str = "app.bsky.feed.searchPosts"; 114 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 115 + const OUTPUT_ENCODING: &'static str = "application/json"; 116 + type Output<'de> = SearchPostsOutput<'de>; 117 + type Err<'de> = SearchPostsError<'de>; 89 118 }
+13 -2
crates/jacquard-api/src/app_bsky/feed/send_interactions.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.sendInteractions 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct SendInteractionsInput<'a> { 11 + pub struct SendInteractions<'a> { 10 12 #[serde(borrow)] 11 13 pub interactions: Vec<crate::app_bsky::feed::Interaction<'a>>, 12 14 } ··· 14 16 #[jacquard_derive::lexicon] 15 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 16 18 #[serde(rename_all = "camelCase")] 17 - pub struct SendInteractionsOutput<'a> {} 19 + pub struct SendInteractionsOutput<'a> {} 20 + impl jacquard_common::types::xrpc::XrpcRequest for SendInteractions<'_> { 21 + const NSID: &'static str = "app.bsky.feed.sendInteractions"; 22 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 23 + "application/json", 24 + ); 25 + const OUTPUT_ENCODING: &'static str = "application/json"; 26 + type Output<'de> = SendInteractionsOutput<'de>; 27 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 28 + }
+6
crates/jacquard-api/src/app_bsky/feed/threadgate.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.feed.threadgate 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 41 43 ///Reference (AT-URI) to the post record. 42 44 #[serde(borrow)] 43 45 pub post: jacquard_common::types::string::AtUri<'a>, 46 + } 47 + 48 + impl jacquard_common::types::collection::Collection for Threadgate<'_> { 49 + const NSID: &'static str = "app.bsky.feed.threadgate"; 44 50 } 45 51 46 52 ///Allow replies from actors mentioned in your post.
+2
crates/jacquard-api/src/app_bsky/graph.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+6
crates/jacquard-api/src/app_bsky/graph/block.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.block 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 12 14 ///DID of the account to be blocked. 13 15 #[serde(borrow)] 14 16 pub subject: jacquard_common::types::string::Did<'a>, 17 + } 18 + 19 + impl jacquard_common::types::collection::Collection for Block<'_> { 20 + const NSID: &'static str = "app.bsky.graph.block"; 15 21 }
+6
crates/jacquard-api/src/app_bsky/graph/follow.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.follow 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 11 13 pub created_at: jacquard_common::types::string::Datetime, 12 14 #[serde(borrow)] 13 15 pub subject: jacquard_common::types::string::Did<'a>, 16 + } 17 + 18 + impl jacquard_common::types::collection::Collection for Follow<'_> { 19 + const NSID: &'static str = "app.bsky.graph.follow"; 14 20 }
+22 -2
crates/jacquard-api/src/app_bsky/graph/get_actor_starter_packs.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.getActorStarterPacks 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetActorStarterPacksParams<'a> { 10 + pub struct GetActorStarterPacks<'a> { 9 11 #[serde(borrow)] 10 12 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 15 17 pub limit: std::option::Option<i64>, 16 18 } 17 19 20 + impl Default for GetActorStarterPacks<'_> { 21 + fn default() -> Self { 22 + Self { 23 + actor: Default::default(), 24 + cursor: Default::default(), 25 + limit: Some(50i64), 26 + } 27 + } 28 + } 29 + 18 30 #[jacquard_derive::lexicon] 19 31 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 32 #[serde(rename_all = "camelCase")] ··· 24 36 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 37 #[serde(borrow)] 26 38 pub starter_packs: Vec<crate::app_bsky::graph::StarterPackViewBasic<'a>>, 39 + } 40 + 41 + impl jacquard_common::types::xrpc::XrpcRequest for GetActorStarterPacks<'_> { 42 + const NSID: &'static str = "app.bsky.graph.getActorStarterPacks"; 43 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 44 + const OUTPUT_ENCODING: &'static str = "application/json"; 45 + type Output<'de> = GetActorStarterPacksOutput<'de>; 46 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 27 47 }
+21 -2
crates/jacquard-api/src/app_bsky/graph/get_blocks.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.getBlocks 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetBlocksParams<'a> { 10 + pub struct GetBlocks<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 13 15 pub limit: std::option::Option<i64>, 14 16 } 15 17 18 + impl Default for GetBlocks<'_> { 19 + fn default() -> Self { 20 + Self { 21 + cursor: Default::default(), 22 + limit: Some(50i64), 23 + } 24 + } 25 + } 26 + 16 27 #[jacquard_derive::lexicon] 17 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 29 #[serde(rename_all = "camelCase")] ··· 22 33 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 34 #[serde(borrow)] 24 35 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 36 + } 37 + 38 + impl jacquard_common::types::xrpc::XrpcRequest for GetBlocks<'_> { 39 + const NSID: &'static str = "app.bsky.graph.getBlocks"; 40 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 41 + const OUTPUT_ENCODING: &'static str = "application/json"; 42 + type Output<'de> = GetBlocksOutput<'de>; 43 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 25 44 }
+22 -2
crates/jacquard-api/src/app_bsky/graph/get_followers.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.getFollowers 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetFollowersParams<'a> { 10 + pub struct GetFollowers<'a> { 9 11 #[serde(borrow)] 10 12 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 15 17 pub limit: std::option::Option<i64>, 16 18 } 17 19 20 + impl Default for GetFollowers<'_> { 21 + fn default() -> Self { 22 + Self { 23 + actor: Default::default(), 24 + cursor: Default::default(), 25 + limit: Some(50i64), 26 + } 27 + } 28 + } 29 + 18 30 #[jacquard_derive::lexicon] 19 31 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 32 #[serde(rename_all = "camelCase")] ··· 26 38 pub followers: Vec<crate::app_bsky::actor::ProfileView<'a>>, 27 39 #[serde(borrow)] 28 40 pub subject: crate::app_bsky::actor::ProfileView<'a>, 41 + } 42 + 43 + impl jacquard_common::types::xrpc::XrpcRequest for GetFollowers<'_> { 44 + const NSID: &'static str = "app.bsky.graph.getFollowers"; 45 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 46 + const OUTPUT_ENCODING: &'static str = "application/json"; 47 + type Output<'de> = GetFollowersOutput<'de>; 48 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 29 49 }
+22 -2
crates/jacquard-api/src/app_bsky/graph/get_follows.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.getFollows 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetFollowsParams<'a> { 10 + pub struct GetFollows<'a> { 9 11 #[serde(borrow)] 10 12 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 15 17 pub limit: std::option::Option<i64>, 16 18 } 17 19 20 + impl Default for GetFollows<'_> { 21 + fn default() -> Self { 22 + Self { 23 + actor: Default::default(), 24 + cursor: Default::default(), 25 + limit: Some(50i64), 26 + } 27 + } 28 + } 29 + 18 30 #[jacquard_derive::lexicon] 19 31 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 32 #[serde(rename_all = "camelCase")] ··· 26 38 pub follows: Vec<crate::app_bsky::actor::ProfileView<'a>>, 27 39 #[serde(borrow)] 28 40 pub subject: crate::app_bsky::actor::ProfileView<'a>, 41 + } 42 + 43 + impl jacquard_common::types::xrpc::XrpcRequest for GetFollows<'_> { 44 + const NSID: &'static str = "app.bsky.graph.getFollows"; 45 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 46 + const OUTPUT_ENCODING: &'static str = "application/json"; 47 + type Output<'de> = GetFollowsOutput<'de>; 48 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 29 49 }
+22 -2
crates/jacquard-api/src/app_bsky/graph/get_known_followers.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.getKnownFollowers 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetKnownFollowersParams<'a> { 10 + pub struct GetKnownFollowers<'a> { 9 11 #[serde(borrow)] 10 12 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 15 17 pub limit: std::option::Option<i64>, 16 18 } 17 19 20 + impl Default for GetKnownFollowers<'_> { 21 + fn default() -> Self { 22 + Self { 23 + actor: Default::default(), 24 + cursor: Default::default(), 25 + limit: Some(50i64), 26 + } 27 + } 28 + } 29 + 18 30 #[jacquard_derive::lexicon] 19 31 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 32 #[serde(rename_all = "camelCase")] ··· 26 38 pub followers: Vec<crate::app_bsky::actor::ProfileView<'a>>, 27 39 #[serde(borrow)] 28 40 pub subject: crate::app_bsky::actor::ProfileView<'a>, 41 + } 42 + 43 + impl jacquard_common::types::xrpc::XrpcRequest for GetKnownFollowers<'_> { 44 + const NSID: &'static str = "app.bsky.graph.getKnownFollowers"; 45 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 46 + const OUTPUT_ENCODING: &'static str = "application/json"; 47 + type Output<'de> = GetKnownFollowersOutput<'de>; 48 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 29 49 }
+22 -2
crates/jacquard-api/src/app_bsky/graph/get_list.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.getList 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetListParams<'a> { 10 + pub struct GetList<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 15 17 pub list: jacquard_common::types::string::AtUri<'a>, 16 18 } 17 19 20 + impl Default for GetList<'_> { 21 + fn default() -> Self { 22 + Self { 23 + cursor: Default::default(), 24 + limit: Some(50i64), 25 + list: Default::default(), 26 + } 27 + } 28 + } 29 + 18 30 #[jacquard_derive::lexicon] 19 31 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 32 #[serde(rename_all = "camelCase")] ··· 26 38 pub items: Vec<crate::app_bsky::graph::ListItemView<'a>>, 27 39 #[serde(borrow)] 28 40 pub list: crate::app_bsky::graph::ListView<'a>, 41 + } 42 + 43 + impl jacquard_common::types::xrpc::XrpcRequest for GetList<'_> { 44 + const NSID: &'static str = "app.bsky.graph.getList"; 45 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 46 + const OUTPUT_ENCODING: &'static str = "application/json"; 47 + type Output<'de> = GetListOutput<'de>; 48 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 29 49 }
+21 -2
crates/jacquard-api/src/app_bsky/graph/get_list_blocks.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.getListBlocks 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetListBlocksParams<'a> { 10 + pub struct GetListBlocks<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 13 15 pub limit: std::option::Option<i64>, 14 16 } 15 17 18 + impl Default for GetListBlocks<'_> { 19 + fn default() -> Self { 20 + Self { 21 + cursor: Default::default(), 22 + limit: Some(50i64), 23 + } 24 + } 25 + } 26 + 16 27 #[jacquard_derive::lexicon] 17 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 29 #[serde(rename_all = "camelCase")] ··· 22 33 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 23 34 #[serde(borrow)] 24 35 pub lists: Vec<crate::app_bsky::graph::ListView<'a>>, 36 + } 37 + 38 + impl jacquard_common::types::xrpc::XrpcRequest for GetListBlocks<'_> { 39 + const NSID: &'static str = "app.bsky.graph.getListBlocks"; 40 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 41 + const OUTPUT_ENCODING: &'static str = "application/json"; 42 + type Output<'de> = GetListBlocksOutput<'de>; 43 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 25 44 }
+21 -2
crates/jacquard-api/src/app_bsky/graph/get_list_mutes.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.getListMutes 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetListMutesParams<'a> { 10 + pub struct GetListMutes<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 13 15 pub limit: std::option::Option<i64>, 14 16 } 15 17 18 + impl Default for GetListMutes<'_> { 19 + fn default() -> Self { 20 + Self { 21 + cursor: Default::default(), 22 + limit: Some(50i64), 23 + } 24 + } 25 + } 26 + 16 27 #[jacquard_derive::lexicon] 17 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 29 #[serde(rename_all = "camelCase")] ··· 22 33 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 23 34 #[serde(borrow)] 24 35 pub lists: Vec<crate::app_bsky::graph::ListView<'a>>, 36 + } 37 + 38 + impl jacquard_common::types::xrpc::XrpcRequest for GetListMutes<'_> { 39 + const NSID: &'static str = "app.bsky.graph.getListMutes"; 40 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 41 + const OUTPUT_ENCODING: &'static str = "application/json"; 42 + type Output<'de> = GetListMutesOutput<'de>; 43 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 25 44 }
+23 -2
crates/jacquard-api/src/app_bsky/graph/get_lists.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.getLists 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetListsParams<'a> { 10 + pub struct GetLists<'a> { 9 11 #[serde(borrow)] 10 12 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 18 20 pub purposes: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 19 21 } 20 22 23 + impl Default for GetLists<'_> { 24 + fn default() -> Self { 25 + Self { 26 + actor: Default::default(), 27 + cursor: Default::default(), 28 + limit: Some(50i64), 29 + purposes: Default::default(), 30 + } 31 + } 32 + } 33 + 21 34 #[jacquard_derive::lexicon] 22 35 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 23 36 #[serde(rename_all = "camelCase")] ··· 27 40 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 28 41 #[serde(borrow)] 29 42 pub lists: Vec<crate::app_bsky::graph::ListView<'a>>, 43 + } 44 + 45 + impl jacquard_common::types::xrpc::XrpcRequest for GetLists<'_> { 46 + const NSID: &'static str = "app.bsky.graph.getLists"; 47 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 48 + const OUTPUT_ENCODING: &'static str = "application/json"; 49 + type Output<'de> = GetListsOutput<'de>; 50 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 30 51 }
+23 -2
crates/jacquard-api/src/app_bsky/graph/get_lists_with_membership.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.getListsWithMembership 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 15 17 pub list_item: std::option::Option<crate::app_bsky::graph::ListItemView<'a>>, 16 18 } 17 19 18 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 19 21 #[serde(rename_all = "camelCase")] 20 - pub struct GetListsWithMembershipParams<'a> { 22 + pub struct GetListsWithMembership<'a> { 21 23 #[serde(borrow)] 22 24 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 23 25 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 30 32 pub purposes: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 31 33 } 32 34 35 + impl Default for GetListsWithMembership<'_> { 36 + fn default() -> Self { 37 + Self { 38 + actor: Default::default(), 39 + cursor: Default::default(), 40 + limit: Some(50i64), 41 + purposes: Default::default(), 42 + } 43 + } 44 + } 45 + 33 46 #[jacquard_derive::lexicon] 34 47 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 35 48 #[serde(rename_all = "camelCase")] ··· 39 52 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 40 53 #[serde(borrow)] 41 54 pub lists_with_membership: Vec<jacquard_common::types::value::Data<'a>>, 55 + } 56 + 57 + impl jacquard_common::types::xrpc::XrpcRequest for GetListsWithMembership<'_> { 58 + const NSID: &'static str = "app.bsky.graph.getListsWithMembership"; 59 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 60 + const OUTPUT_ENCODING: &'static str = "application/json"; 61 + type Output<'de> = GetListsWithMembershipOutput<'de>; 62 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 42 63 }
+21 -2
crates/jacquard-api/src/app_bsky/graph/get_mutes.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.getMutes 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetMutesParams<'a> { 10 + pub struct GetMutes<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 13 15 pub limit: std::option::Option<i64>, 14 16 } 15 17 18 + impl Default for GetMutes<'_> { 19 + fn default() -> Self { 20 + Self { 21 + cursor: Default::default(), 22 + limit: Some(50i64), 23 + } 24 + } 25 + } 26 + 16 27 #[jacquard_derive::lexicon] 17 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 29 #[serde(rename_all = "camelCase")] ··· 22 33 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 23 34 #[serde(borrow)] 24 35 pub mutes: Vec<crate::app_bsky::actor::ProfileView<'a>>, 36 + } 37 + 38 + impl jacquard_common::types::xrpc::XrpcRequest for GetMutes<'_> { 39 + const NSID: &'static str = "app.bsky.graph.getMutes"; 40 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 41 + const OUTPUT_ENCODING: &'static str = "application/json"; 42 + type Output<'de> = GetMutesOutput<'de>; 43 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 25 44 }
+11 -1
crates/jacquard-api/src/app_bsky/graph/get_relationships.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.getRelationships 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetRelationshipsParams<'a> { 10 + pub struct GetRelationships<'a> { 9 11 #[serde(borrow)] 10 12 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 58 60 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 59 61 } 60 62 } 63 + } 64 + 65 + impl jacquard_common::types::xrpc::XrpcRequest for GetRelationships<'_> { 66 + const NSID: &'static str = "app.bsky.graph.getRelationships"; 67 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 68 + const OUTPUT_ENCODING: &'static str = "application/json"; 69 + type Output<'de> = GetRelationshipsOutput<'de>; 70 + type Err<'de> = GetRelationshipsError<'de>; 61 71 }
+11 -1
crates/jacquard-api/src/app_bsky/graph/get_starter_pack.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.getStarterPack 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetStarterPackParams<'a> { 10 + pub struct GetStarterPack<'a> { 9 11 #[serde(borrow)] 10 12 pub starter_pack: jacquard_common::types::string::AtUri<'a>, 11 13 } ··· 16 18 pub struct GetStarterPackOutput<'a> { 17 19 #[serde(borrow)] 18 20 pub starter_pack: crate::app_bsky::graph::StarterPackView<'a>, 21 + } 22 + 23 + impl jacquard_common::types::xrpc::XrpcRequest for GetStarterPack<'_> { 24 + const NSID: &'static str = "app.bsky.graph.getStarterPack"; 25 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 26 + const OUTPUT_ENCODING: &'static str = "application/json"; 27 + type Output<'de> = GetStarterPackOutput<'de>; 28 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 29 }
+11 -1
crates/jacquard-api/src/app_bsky/graph/get_starter_packs.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.getStarterPacks 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetStarterPacksParams<'a> { 10 + pub struct GetStarterPacks<'a> { 9 11 #[serde(borrow)] 10 12 pub uris: Vec<jacquard_common::types::string::AtUri<'a>>, 11 13 } ··· 16 18 pub struct GetStarterPacksOutput<'a> { 17 19 #[serde(borrow)] 18 20 pub starter_packs: Vec<crate::app_bsky::graph::StarterPackViewBasic<'a>>, 21 + } 22 + 23 + impl jacquard_common::types::xrpc::XrpcRequest for GetStarterPacks<'_> { 24 + const NSID: &'static str = "app.bsky.graph.getStarterPacks"; 25 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 26 + const OUTPUT_ENCODING: &'static str = "application/json"; 27 + type Output<'de> = GetStarterPacksOutput<'de>; 28 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 29 }
+22 -2
crates/jacquard-api/src/app_bsky/graph/get_starter_packs_with_membership.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.getStarterPacksWithMembership 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetStarterPacksWithMembershipParams<'a> { 10 + pub struct GetStarterPacksWithMembership<'a> { 9 11 #[serde(borrow)] 10 12 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 15 17 pub limit: std::option::Option<i64>, 16 18 } 17 19 20 + impl Default for GetStarterPacksWithMembership<'_> { 21 + fn default() -> Self { 22 + Self { 23 + actor: Default::default(), 24 + cursor: Default::default(), 25 + limit: Some(50i64), 26 + } 27 + } 28 + } 29 + 18 30 #[jacquard_derive::lexicon] 19 31 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 32 #[serde(rename_all = "camelCase")] ··· 24 36 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 37 #[serde(borrow)] 26 38 pub starter_packs_with_membership: Vec<jacquard_common::types::value::Data<'a>>, 39 + } 40 + 41 + impl jacquard_common::types::xrpc::XrpcRequest for GetStarterPacksWithMembership<'_> { 42 + const NSID: &'static str = "app.bsky.graph.getStarterPacksWithMembership"; 43 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 44 + const OUTPUT_ENCODING: &'static str = "application/json"; 45 + type Output<'de> = GetStarterPacksWithMembershipOutput<'de>; 46 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 27 47 } 28 48 29 49 ///A starter pack and an optional list item indicating membership of a target user to that starter pack.
+11 -1
crates/jacquard-api/src/app_bsky/graph/get_suggested_follows_by_actor.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.getSuggestedFollowsByActor 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetSuggestedFollowsByActorParams<'a> { 10 + pub struct GetSuggestedFollowsByActor<'a> { 9 11 #[serde(borrow)] 10 12 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 11 13 } ··· 22 24 pub rec_id: std::option::Option<i64>, 23 25 #[serde(borrow)] 24 26 pub suggestions: Vec<crate::app_bsky::actor::ProfileView<'a>>, 27 + } 28 + 29 + impl jacquard_common::types::xrpc::XrpcRequest for GetSuggestedFollowsByActor<'_> { 30 + const NSID: &'static str = "app.bsky.graph.getSuggestedFollowsByActor"; 31 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 32 + const OUTPUT_ENCODING: &'static str = "application/json"; 33 + type Output<'de> = GetSuggestedFollowsByActorOutput<'de>; 34 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 25 35 }
+6
crates/jacquard-api/src/app_bsky/graph/list.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.list 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 38 40 pub enum ListRecordLabels<'a> { 39 41 #[serde(rename = "com.atproto.label.defs#selfLabels")] 40 42 DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>), 43 + } 44 + 45 + impl jacquard_common::types::collection::Collection for List<'_> { 46 + const NSID: &'static str = "app.bsky.graph.list"; 41 47 }
+6
crates/jacquard-api/src/app_bsky/graph/listblock.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.listblock 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 12 14 ///Reference (AT-URI) to the mod list record. 13 15 #[serde(borrow)] 14 16 pub subject: jacquard_common::types::string::AtUri<'a>, 17 + } 18 + 19 + impl jacquard_common::types::collection::Collection for Listblock<'_> { 20 + const NSID: &'static str = "app.bsky.graph.listblock"; 15 21 }
+6
crates/jacquard-api/src/app_bsky/graph/listitem.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.listitem 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 15 17 ///The account which is included on the list. 16 18 #[serde(borrow)] 17 19 pub subject: jacquard_common::types::string::Did<'a>, 20 + } 21 + 22 + impl jacquard_common::types::collection::Collection for Listitem<'_> { 23 + const NSID: &'static str = "app.bsky.graph.listitem"; 18 24 }
+13 -1
crates/jacquard-api/src/app_bsky/graph/mute_actor.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.muteActor 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct MuteActorInput<'a> { 11 + pub struct MuteActor<'a> { 10 12 #[serde(borrow)] 11 13 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 14 + } 15 + 16 + impl jacquard_common::types::xrpc::XrpcRequest for MuteActor<'_> { 17 + const NSID: &'static str = "app.bsky.graph.muteActor"; 18 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 19 + "application/json", 20 + ); 21 + const OUTPUT_ENCODING: &'static str = "application/json"; 22 + type Output<'de> = (); 23 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 12 24 }
+13 -1
crates/jacquard-api/src/app_bsky/graph/mute_actor_list.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.muteActorList 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct MuteActorListInput<'a> { 11 + pub struct MuteActorList<'a> { 10 12 #[serde(borrow)] 11 13 pub list: jacquard_common::types::string::AtUri<'a>, 14 + } 15 + 16 + impl jacquard_common::types::xrpc::XrpcRequest for MuteActorList<'_> { 17 + const NSID: &'static str = "app.bsky.graph.muteActorList"; 18 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 19 + "application/json", 20 + ); 21 + const OUTPUT_ENCODING: &'static str = "application/json"; 22 + type Output<'de> = (); 23 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 12 24 }
+13 -1
crates/jacquard-api/src/app_bsky/graph/mute_thread.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.muteThread 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct MuteThreadInput<'a> { 11 + pub struct MuteThread<'a> { 10 12 #[serde(borrow)] 11 13 pub root: jacquard_common::types::string::AtUri<'a>, 14 + } 15 + 16 + impl jacquard_common::types::xrpc::XrpcRequest for MuteThread<'_> { 17 + const NSID: &'static str = "app.bsky.graph.muteThread"; 18 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 19 + "application/json", 20 + ); 21 + const OUTPUT_ENCODING: &'static str = "application/json"; 22 + type Output<'de> = (); 23 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 12 24 }
+22 -2
crates/jacquard-api/src/app_bsky/graph/search_starter_packs.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.searchStarterPacks 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct SearchStarterPacksParams<'a> { 10 + pub struct SearchStarterPacks<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 15 17 pub q: jacquard_common::CowStr<'a>, 16 18 } 17 19 20 + impl Default for SearchStarterPacks<'_> { 21 + fn default() -> Self { 22 + Self { 23 + cursor: Default::default(), 24 + limit: Some(25i64), 25 + q: Default::default(), 26 + } 27 + } 28 + } 29 + 18 30 #[jacquard_derive::lexicon] 19 31 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 32 #[serde(rename_all = "camelCase")] ··· 24 36 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 37 #[serde(borrow)] 26 38 pub starter_packs: Vec<crate::app_bsky::graph::StarterPackViewBasic<'a>>, 39 + } 40 + 41 + impl jacquard_common::types::xrpc::XrpcRequest for SearchStarterPacks<'_> { 42 + const NSID: &'static str = "app.bsky.graph.searchStarterPacks"; 43 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 44 + const OUTPUT_ENCODING: &'static str = "application/json"; 45 + type Output<'de> = SearchStarterPacksOutput<'de>; 46 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 27 47 }
+6
crates/jacquard-api/src/app_bsky/graph/starterpack.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.starterpack 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 36 38 ///Display name for starter pack; can not be empty. 37 39 #[serde(borrow)] 38 40 pub name: jacquard_common::CowStr<'a>, 41 + } 42 + 43 + impl jacquard_common::types::collection::Collection for Starterpack<'_> { 44 + const NSID: &'static str = "app.bsky.graph.starterpack"; 39 45 }
+13 -1
crates/jacquard-api/src/app_bsky/graph/unmute_actor.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.unmuteActor 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UnmuteActorInput<'a> { 11 + pub struct UnmuteActor<'a> { 10 12 #[serde(borrow)] 11 13 pub actor: jacquard_common::types::ident::AtIdentifier<'a>, 14 + } 15 + 16 + impl jacquard_common::types::xrpc::XrpcRequest for UnmuteActor<'_> { 17 + const NSID: &'static str = "app.bsky.graph.unmuteActor"; 18 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 19 + "application/json", 20 + ); 21 + const OUTPUT_ENCODING: &'static str = "application/json"; 22 + type Output<'de> = (); 23 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 12 24 }
+13 -1
crates/jacquard-api/src/app_bsky/graph/unmute_actor_list.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.unmuteActorList 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UnmuteActorListInput<'a> { 11 + pub struct UnmuteActorList<'a> { 10 12 #[serde(borrow)] 11 13 pub list: jacquard_common::types::string::AtUri<'a>, 14 + } 15 + 16 + impl jacquard_common::types::xrpc::XrpcRequest for UnmuteActorList<'_> { 17 + const NSID: &'static str = "app.bsky.graph.unmuteActorList"; 18 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 19 + "application/json", 20 + ); 21 + const OUTPUT_ENCODING: &'static str = "application/json"; 22 + type Output<'de> = (); 23 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 12 24 }
+13 -1
crates/jacquard-api/src/app_bsky/graph/unmute_thread.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.unmuteThread 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UnmuteThreadInput<'a> { 11 + pub struct UnmuteThread<'a> { 10 12 #[serde(borrow)] 11 13 pub root: jacquard_common::types::string::AtUri<'a>, 14 + } 15 + 16 + impl jacquard_common::types::xrpc::XrpcRequest for UnmuteThread<'_> { 17 + const NSID: &'static str = "app.bsky.graph.unmuteThread"; 18 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 19 + "application/json", 20 + ); 21 + const OUTPUT_ENCODING: &'static str = "application/json"; 22 + type Output<'de> = (); 23 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 12 24 }
+6
crates/jacquard-api/src/app_bsky/graph/verification.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.graph.verification 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 19 21 ///DID of the subject the verification applies to. 20 22 #[serde(borrow)] 21 23 pub subject: jacquard_common::types::string::Did<'a>, 24 + } 25 + 26 + impl jacquard_common::types::collection::Collection for Verification<'_> { 27 + const NSID: &'static str = "app.bsky.graph.verification"; 22 28 }
+2
crates/jacquard-api/src/app_bsky/labeler.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.labeler.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+21 -2
crates/jacquard-api/src/app_bsky/labeler/get_services.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.labeler.getServices 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetServicesParams<'a> { 10 + pub struct GetServices<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 pub detailed: std::option::Option<bool>, 11 13 #[serde(borrow)] 12 14 pub dids: Vec<jacquard_common::types::string::Did<'a>>, 13 15 } 14 16 17 + impl Default for GetServices<'_> { 18 + fn default() -> Self { 19 + Self { 20 + detailed: Some(false), 21 + dids: Default::default(), 22 + } 23 + } 24 + } 25 + 15 26 #[jacquard_derive::lexicon] 16 27 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 28 #[serde(rename_all = "camelCase")] 18 29 pub struct GetServicesOutput<'a> { 19 30 #[serde(borrow)] 20 31 pub views: Vec<jacquard_common::types::value::Data<'a>>, 32 + } 33 + 34 + impl jacquard_common::types::xrpc::XrpcRequest for GetServices<'_> { 35 + const NSID: &'static str = "app.bsky.labeler.getServices"; 36 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 37 + const OUTPUT_ENCODING: &'static str = "application/json"; 38 + type Output<'de> = GetServicesOutput<'de>; 39 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 21 40 }
+6
crates/jacquard-api/src/app_bsky/labeler/service.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.labeler.service 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 41 43 pub enum ServiceRecordLabels<'a> { 42 44 #[serde(rename = "com.atproto.label.defs#selfLabels")] 43 45 DefsSelfLabels(Box<crate::com_atproto::label::SelfLabels<'a>>), 46 + } 47 + 48 + impl jacquard_common::types::collection::Collection for Service<'_> { 49 + const NSID: &'static str = "app.bsky.labeler.service"; 44 50 }
+2
crates/jacquard-api/src/app_bsky/notification.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.notification.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+6
crates/jacquard-api/src/app_bsky/notification/declaration.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.notification.declaration 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 11 13 ///A declaration of the user's preference for allowing activity subscriptions from other users. Absence of a record implies 'followers'. 12 14 #[serde(borrow)] 13 15 pub allow_subscriptions: jacquard_common::CowStr<'a>, 16 + } 17 + 18 + impl jacquard_common::types::collection::Collection for Declaration<'_> { 19 + const NSID: &'static str = "app.bsky.notification.declaration"; 14 20 }
+11 -1
crates/jacquard-api/src/app_bsky/notification/get_preferences.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.notification.getPreferences 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetPreferencesParams {} 10 + pub struct GetPreferences {} 9 11 #[jacquard_derive::lexicon] 10 12 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11 13 #[serde(rename_all = "camelCase")] 12 14 pub struct GetPreferencesOutput<'a> { 13 15 #[serde(borrow)] 14 16 pub preferences: crate::app_bsky::notification::Preferences<'a>, 17 + } 18 + 19 + impl jacquard_common::types::xrpc::XrpcRequest for GetPreferences { 20 + const NSID: &'static str = "app.bsky.notification.getPreferences"; 21 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 22 + const OUTPUT_ENCODING: &'static str = "application/json"; 23 + type Output<'de> = GetPreferencesOutput<'de>; 24 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 15 25 }
+11 -1
crates/jacquard-api/src/app_bsky/notification/get_unread_count.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.notification.getUnreadCount 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetUnreadCountParams { 10 + pub struct GetUnreadCount { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 pub priority: std::option::Option<bool>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 17 19 #[serde(rename_all = "camelCase")] 18 20 pub struct GetUnreadCountOutput<'a> { 19 21 pub count: i64, 22 + } 23 + 24 + impl jacquard_common::types::xrpc::XrpcRequest for GetUnreadCount { 25 + const NSID: &'static str = "app.bsky.notification.getUnreadCount"; 26 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 27 + const OUTPUT_ENCODING: &'static str = "application/json"; 28 + type Output<'de> = GetUnreadCountOutput<'de>; 29 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 20 30 }
+21 -2
crates/jacquard-api/src/app_bsky/notification/list_activity_subscriptions.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.notification.listActivitySubscriptions 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct ListActivitySubscriptionsParams<'a> { 10 + pub struct ListActivitySubscriptions<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 13 15 pub limit: std::option::Option<i64>, 14 16 } 15 17 18 + impl Default for ListActivitySubscriptions<'_> { 19 + fn default() -> Self { 20 + Self { 21 + cursor: Default::default(), 22 + limit: Some(50i64), 23 + } 24 + } 25 + } 26 + 16 27 #[jacquard_derive::lexicon] 17 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 29 #[serde(rename_all = "camelCase")] ··· 22 33 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 23 34 #[serde(borrow)] 24 35 pub subscriptions: Vec<crate::app_bsky::actor::ProfileView<'a>>, 36 + } 37 + 38 + impl jacquard_common::types::xrpc::XrpcRequest for ListActivitySubscriptions<'_> { 39 + const NSID: &'static str = "app.bsky.notification.listActivitySubscriptions"; 40 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 41 + const OUTPUT_ENCODING: &'static str = "application/json"; 42 + type Output<'de> = ListActivitySubscriptionsOutput<'de>; 43 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 25 44 }
+24 -2
crates/jacquard-api/src/app_bsky/notification/list_notifications.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.notification.listNotifications 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct ListNotificationsParams<'a> { 10 + pub struct ListNotifications<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 20 22 pub seen_at: std::option::Option<jacquard_common::types::string::Datetime>, 21 23 } 22 24 25 + impl Default for ListNotifications<'_> { 26 + fn default() -> Self { 27 + Self { 28 + cursor: Default::default(), 29 + limit: Some(50i64), 30 + priority: Default::default(), 31 + reasons: Default::default(), 32 + seen_at: Default::default(), 33 + } 34 + } 35 + } 36 + 23 37 #[jacquard_derive::lexicon] 24 38 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 25 39 #[serde(rename_all = "camelCase")] ··· 33 47 pub priority: std::option::Option<bool>, 34 48 #[serde(skip_serializing_if = "std::option::Option::is_none")] 35 49 pub seen_at: std::option::Option<jacquard_common::types::string::Datetime>, 50 + } 51 + 52 + impl jacquard_common::types::xrpc::XrpcRequest for ListNotifications<'_> { 53 + const NSID: &'static str = "app.bsky.notification.listNotifications"; 54 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 55 + const OUTPUT_ENCODING: &'static str = "application/json"; 56 + type Output<'de> = ListNotificationsOutput<'de>; 57 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 36 58 } 37 59 38 60 #[jacquard_derive::lexicon]
+13 -1
crates/jacquard-api/src/app_bsky/notification/put_activity_subscription.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.notification.putActivitySubscription 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct PutActivitySubscriptionInput<'a> { 11 + pub struct PutActivitySubscription<'a> { 10 12 #[serde(borrow)] 11 13 pub activity_subscription: crate::app_bsky::notification::ActivitySubscription<'a>, 12 14 #[serde(borrow)] ··· 24 26 >, 25 27 #[serde(borrow)] 26 28 pub subject: jacquard_common::types::string::Did<'a>, 29 + } 30 + 31 + impl jacquard_common::types::xrpc::XrpcRequest for PutActivitySubscription<'_> { 32 + const NSID: &'static str = "app.bsky.notification.putActivitySubscription"; 33 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 34 + "application/json", 35 + ); 36 + const OUTPUT_ENCODING: &'static str = "application/json"; 37 + type Output<'de> = PutActivitySubscriptionOutput<'de>; 38 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 27 39 }
+13 -1
crates/jacquard-api/src/app_bsky/notification/put_preferences.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.notification.putPreferences 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct PutPreferencesInput<'a> { 11 + pub struct PutPreferences<'a> { 10 12 pub priority: bool, 13 + } 14 + 15 + impl jacquard_common::types::xrpc::XrpcRequest for PutPreferences<'_> { 16 + const NSID: &'static str = "app.bsky.notification.putPreferences"; 17 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 18 + "application/json", 19 + ); 20 + const OUTPUT_ENCODING: &'static str = "application/json"; 21 + type Output<'de> = (); 22 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 11 23 }
+13 -1
crates/jacquard-api/src/app_bsky/notification/put_preferences_v2.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.notification.putPreferencesV2 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct PutPreferencesV2Input<'a> { 11 + pub struct PutPreferencesV2<'a> { 10 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 11 13 #[serde(borrow)] 12 14 pub chat: std::option::Option<crate::app_bsky::notification::ChatPreference<'a>>, ··· 74 76 pub struct PutPreferencesV2Output<'a> { 75 77 #[serde(borrow)] 76 78 pub preferences: crate::app_bsky::notification::Preferences<'a>, 79 + } 80 + 81 + impl jacquard_common::types::xrpc::XrpcRequest for PutPreferencesV2<'_> { 82 + const NSID: &'static str = "app.bsky.notification.putPreferencesV2"; 83 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 84 + "application/json", 85 + ); 86 + const OUTPUT_ENCODING: &'static str = "application/json"; 87 + type Output<'de> = PutPreferencesV2Output<'de>; 88 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 77 89 }
+13 -1
crates/jacquard-api/src/app_bsky/notification/register_push.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.notification.registerPush 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct RegisterPushInput<'a> { 11 + pub struct RegisterPush<'a> { 10 12 ///Set to true when the actor is age restricted 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 14 pub age_restricted: std::option::Option<bool>, ··· 18 20 pub service_did: jacquard_common::types::string::Did<'a>, 19 21 #[serde(borrow)] 20 22 pub token: jacquard_common::CowStr<'a>, 23 + } 24 + 25 + impl jacquard_common::types::xrpc::XrpcRequest for RegisterPush<'_> { 26 + const NSID: &'static str = "app.bsky.notification.registerPush"; 27 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 28 + "application/json", 29 + ); 30 + const OUTPUT_ENCODING: &'static str = "application/json"; 31 + type Output<'de> = (); 32 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 21 33 }
+13 -1
crates/jacquard-api/src/app_bsky/notification/unregister_push.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.notification.unregisterPush 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UnregisterPushInput<'a> { 11 + pub struct UnregisterPush<'a> { 10 12 #[serde(borrow)] 11 13 pub app_id: jacquard_common::CowStr<'a>, 12 14 #[serde(borrow)] ··· 15 17 pub service_did: jacquard_common::types::string::Did<'a>, 16 18 #[serde(borrow)] 17 19 pub token: jacquard_common::CowStr<'a>, 20 + } 21 + 22 + impl jacquard_common::types::xrpc::XrpcRequest for UnregisterPush<'_> { 23 + const NSID: &'static str = "app.bsky.notification.unregisterPush"; 24 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 25 + "application/json", 26 + ); 27 + const OUTPUT_ENCODING: &'static str = "application/json"; 28 + type Output<'de> = (); 29 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 18 30 }
+13 -1
crates/jacquard-api/src/app_bsky/notification/update_seen.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.notification.updateSeen 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UpdateSeenInput<'a> { 11 + pub struct UpdateSeen<'a> { 10 12 pub seen_at: jacquard_common::types::string::Datetime, 13 + } 14 + 15 + impl jacquard_common::types::xrpc::XrpcRequest for UpdateSeen<'_> { 16 + const NSID: &'static str = "app.bsky.notification.updateSeen"; 17 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 18 + "application/json", 19 + ); 20 + const OUTPUT_ENCODING: &'static str = "application/json"; 21 + type Output<'de> = (); 22 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 11 23 }
+2
crates/jacquard-api/src/app_bsky/richtext/facet.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.richtext.facet 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+2
crates/jacquard-api/src/app_bsky/unspecced.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+13
crates/jacquard-api/src/app_bsky/unspecced/get_age_assurance_state.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.getAgeAssuranceState 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 10 12 #[serde(flatten)] 11 13 #[serde(borrow)] 12 14 pub value: crate::app_bsky::unspecced::AgeAssuranceState<'a>, 15 + } 16 + 17 + /// XRPC request marker type 18 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 19 + pub struct GetAgeAssuranceState; 20 + impl jacquard_common::types::xrpc::XrpcRequest for GetAgeAssuranceState { 21 + const NSID: &'static str = "app.bsky.unspecced.getAgeAssuranceState"; 22 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 23 + const OUTPUT_ENCODING: &'static str = "application/json"; 24 + type Output<'de> = GetAgeAssuranceStateOutput<'de>; 25 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 13 26 }
+13
crates/jacquard-api/src/app_bsky/unspecced/get_config.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.getConfig 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 22 24 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 25 #[serde(borrow)] 24 26 pub live_now: std::option::Option<Vec<jacquard_common::types::value::Data<'a>>>, 27 + } 28 + 29 + /// XRPC request marker type 30 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 31 + pub struct GetConfig; 32 + impl jacquard_common::types::xrpc::XrpcRequest for GetConfig { 33 + const NSID: &'static str = "app.bsky.unspecced.getConfig"; 34 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 35 + const OUTPUT_ENCODING: &'static str = "application/json"; 36 + type Output<'de> = GetConfigOutput<'de>; 37 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 25 38 }
+12 -2
crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.getOnboardingSuggestedStarterPacks 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetOnboardingSuggestedStarterPacksParams { 10 + pub struct GetOnboardingSuggestedStarterPacks { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 pub limit: std::option::Option<i64>, 11 13 } ··· 16 18 pub struct GetOnboardingSuggestedStarterPacksOutput<'a> { 17 19 #[serde(borrow)] 18 20 pub starter_packs: Vec<crate::app_bsky::graph::StarterPackView<'a>>, 21 + } 22 + 23 + impl jacquard_common::types::xrpc::XrpcRequest for GetOnboardingSuggestedStarterPacks { 24 + const NSID: &'static str = "app.bsky.unspecced.getOnboardingSuggestedStarterPacks"; 25 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 26 + const OUTPUT_ENCODING: &'static str = "application/json"; 27 + type Output<'de> = GetOnboardingSuggestedStarterPacksOutput<'de>; 28 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 29 }
+22 -2
crates/jacquard-api/src/app_bsky/unspecced/get_onboarding_suggested_starter_packs_skeleton.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetOnboardingSuggestedStarterPacksSkeletonParams<'a> { 10 + pub struct GetOnboardingSuggestedStarterPacksSkeleton<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 pub limit: std::option::Option<i64>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 13 15 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 14 16 } 15 17 18 + impl Default for GetOnboardingSuggestedStarterPacksSkeleton<'_> { 19 + fn default() -> Self { 20 + Self { 21 + limit: Some(10i64), 22 + viewer: Default::default(), 23 + } 24 + } 25 + } 26 + 16 27 #[jacquard_derive::lexicon] 17 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 29 #[serde(rename_all = "camelCase")] 19 30 pub struct GetOnboardingSuggestedStarterPacksSkeletonOutput<'a> { 20 31 #[serde(borrow)] 21 32 pub starter_packs: Vec<jacquard_common::types::string::AtUri<'a>>, 33 + } 34 + 35 + impl jacquard_common::types::xrpc::XrpcRequest 36 + for GetOnboardingSuggestedStarterPacksSkeleton<'_> { 37 + const NSID: &'static str = "app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton"; 38 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 39 + const OUTPUT_ENCODING: &'static str = "application/json"; 40 + type Output<'de> = GetOnboardingSuggestedStarterPacksSkeletonOutput<'de>; 41 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 22 42 }
+21 -2
crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_other_v2.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.getPostThreadOtherV2 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetPostThreadOtherV2Params<'a> { 10 + pub struct GetPostThreadOtherV2<'a> { 9 11 #[serde(borrow)] 10 12 pub anchor: jacquard_common::types::string::AtUri<'a>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 14 pub prioritize_followed_users: std::option::Option<bool>, 13 15 } 14 16 17 + impl Default for GetPostThreadOtherV2<'_> { 18 + fn default() -> Self { 19 + Self { 20 + anchor: Default::default(), 21 + prioritize_followed_users: Some(false), 22 + } 23 + } 24 + } 25 + 15 26 #[jacquard_derive::lexicon] 16 27 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 17 28 #[serde(rename_all = "camelCase")] ··· 19 30 ///A flat list of other thread items. The depth of each item is indicated by the depth property inside the item. 20 31 #[serde(borrow)] 21 32 pub thread: Vec<jacquard_common::types::value::Data<'a>>, 33 + } 34 + 35 + impl jacquard_common::types::xrpc::XrpcRequest for GetPostThreadOtherV2<'_> { 36 + const NSID: &'static str = "app.bsky.unspecced.getPostThreadOtherV2"; 37 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 38 + const OUTPUT_ENCODING: &'static str = "application/json"; 39 + type Output<'de> = GetPostThreadOtherV2Output<'de>; 40 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 22 41 } 23 42 24 43 #[jacquard_derive::lexicon]
+25 -2
crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_v2.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.getPostThreadV2 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetPostThreadV2Params<'a> { 10 + pub struct GetPostThreadV2<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 pub above: std::option::Option<bool>, 11 13 #[serde(borrow)] ··· 21 23 pub sort: std::option::Option<jacquard_common::CowStr<'a>>, 22 24 } 23 25 26 + impl Default for GetPostThreadV2<'_> { 27 + fn default() -> Self { 28 + Self { 29 + above: Some(true), 30 + anchor: Default::default(), 31 + below: Some(6i64), 32 + branching_factor: Some(10i64), 33 + prioritize_followed_users: Some(false), 34 + sort: Some(jacquard_common::CowStr::from("oldest")), 35 + } 36 + } 37 + } 38 + 24 39 #[jacquard_derive::lexicon] 25 40 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 26 41 #[serde(rename_all = "camelCase")] ··· 33 48 #[serde(skip_serializing_if = "std::option::Option::is_none")] 34 49 #[serde(borrow)] 35 50 pub threadgate: std::option::Option<crate::app_bsky::feed::ThreadgateView<'a>>, 51 + } 52 + 53 + impl jacquard_common::types::xrpc::XrpcRequest for GetPostThreadV2<'_> { 54 + const NSID: &'static str = "app.bsky.unspecced.getPostThreadV2"; 55 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 56 + const OUTPUT_ENCODING: &'static str = "application/json"; 57 + type Output<'de> = GetPostThreadV2Output<'de>; 58 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 36 59 } 37 60 38 61 #[jacquard_derive::lexicon]
+12 -2
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.getSuggestedFeeds 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetSuggestedFeedsParams { 10 + pub struct GetSuggestedFeeds { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 pub limit: std::option::Option<i64>, 11 13 } ··· 16 18 pub struct GetSuggestedFeedsOutput<'a> { 17 19 #[serde(borrow)] 18 20 pub feeds: Vec<crate::app_bsky::feed::GeneratorView<'a>>, 21 + } 22 + 23 + impl jacquard_common::types::xrpc::XrpcRequest for GetSuggestedFeeds { 24 + const NSID: &'static str = "app.bsky.unspecced.getSuggestedFeeds"; 25 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 26 + const OUTPUT_ENCODING: &'static str = "application/json"; 27 + type Output<'de> = GetSuggestedFeedsOutput<'de>; 28 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 29 }
+21 -2
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_feeds_skeleton.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.getSuggestedFeedsSkeleton 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetSuggestedFeedsSkeletonParams<'a> { 10 + pub struct GetSuggestedFeedsSkeleton<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 pub limit: std::option::Option<i64>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 13 15 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 14 16 } 15 17 18 + impl Default for GetSuggestedFeedsSkeleton<'_> { 19 + fn default() -> Self { 20 + Self { 21 + limit: Some(10i64), 22 + viewer: Default::default(), 23 + } 24 + } 25 + } 26 + 16 27 #[jacquard_derive::lexicon] 17 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 29 #[serde(rename_all = "camelCase")] 19 30 pub struct GetSuggestedFeedsSkeletonOutput<'a> { 20 31 #[serde(borrow)] 21 32 pub feeds: Vec<jacquard_common::types::string::AtUri<'a>>, 33 + } 34 + 35 + impl jacquard_common::types::xrpc::XrpcRequest for GetSuggestedFeedsSkeleton<'_> { 36 + const NSID: &'static str = "app.bsky.unspecced.getSuggestedFeedsSkeleton"; 37 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 38 + const OUTPUT_ENCODING: &'static str = "application/json"; 39 + type Output<'de> = GetSuggestedFeedsSkeletonOutput<'de>; 40 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 22 41 }
+12 -2
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.getSuggestedStarterPacks 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetSuggestedStarterPacksParams { 10 + pub struct GetSuggestedStarterPacks { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 pub limit: std::option::Option<i64>, 11 13 } ··· 16 18 pub struct GetSuggestedStarterPacksOutput<'a> { 17 19 #[serde(borrow)] 18 20 pub starter_packs: Vec<crate::app_bsky::graph::StarterPackView<'a>>, 21 + } 22 + 23 + impl jacquard_common::types::xrpc::XrpcRequest for GetSuggestedStarterPacks { 24 + const NSID: &'static str = "app.bsky.unspecced.getSuggestedStarterPacks"; 25 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 26 + const OUTPUT_ENCODING: &'static str = "application/json"; 27 + type Output<'de> = GetSuggestedStarterPacksOutput<'de>; 28 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 29 }
+21 -2
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_starter_packs_skeleton.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.getSuggestedStarterPacksSkeleton 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetSuggestedStarterPacksSkeletonParams<'a> { 10 + pub struct GetSuggestedStarterPacksSkeleton<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 pub limit: std::option::Option<i64>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 13 15 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 14 16 } 15 17 18 + impl Default for GetSuggestedStarterPacksSkeleton<'_> { 19 + fn default() -> Self { 20 + Self { 21 + limit: Some(10i64), 22 + viewer: Default::default(), 23 + } 24 + } 25 + } 26 + 16 27 #[jacquard_derive::lexicon] 17 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 29 #[serde(rename_all = "camelCase")] 19 30 pub struct GetSuggestedStarterPacksSkeletonOutput<'a> { 20 31 #[serde(borrow)] 21 32 pub starter_packs: Vec<jacquard_common::types::string::AtUri<'a>>, 33 + } 34 + 35 + impl jacquard_common::types::xrpc::XrpcRequest for GetSuggestedStarterPacksSkeleton<'_> { 36 + const NSID: &'static str = "app.bsky.unspecced.getSuggestedStarterPacksSkeleton"; 37 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 38 + const OUTPUT_ENCODING: &'static str = "application/json"; 39 + type Output<'de> = GetSuggestedStarterPacksSkeletonOutput<'de>; 40 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 22 41 }
+21 -2
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.getSuggestedUsers 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetSuggestedUsersParams<'a> { 10 + pub struct GetSuggestedUsers<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub category: std::option::Option<jacquard_common::CowStr<'a>>, ··· 13 15 pub limit: std::option::Option<i64>, 14 16 } 15 17 18 + impl Default for GetSuggestedUsers<'_> { 19 + fn default() -> Self { 20 + Self { 21 + category: Default::default(), 22 + limit: Some(25i64), 23 + } 24 + } 25 + } 26 + 16 27 #[jacquard_derive::lexicon] 17 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 29 #[serde(rename_all = "camelCase")] 19 30 pub struct GetSuggestedUsersOutput<'a> { 20 31 #[serde(borrow)] 21 32 pub actors: Vec<crate::app_bsky::actor::ProfileView<'a>>, 33 + } 34 + 35 + impl jacquard_common::types::xrpc::XrpcRequest for GetSuggestedUsers<'_> { 36 + const NSID: &'static str = "app.bsky.unspecced.getSuggestedUsers"; 37 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 38 + const OUTPUT_ENCODING: &'static str = "application/json"; 39 + type Output<'de> = GetSuggestedUsersOutput<'de>; 40 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 22 41 }
+22 -2
crates/jacquard-api/src/app_bsky/unspecced/get_suggested_users_skeleton.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.getSuggestedUsersSkeleton 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetSuggestedUsersSkeletonParams<'a> { 10 + pub struct GetSuggestedUsersSkeleton<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub category: std::option::Option<jacquard_common::CowStr<'a>>, ··· 16 18 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 17 19 } 18 20 21 + impl Default for GetSuggestedUsersSkeleton<'_> { 22 + fn default() -> Self { 23 + Self { 24 + category: Default::default(), 25 + limit: Some(25i64), 26 + viewer: Default::default(), 27 + } 28 + } 29 + } 30 + 19 31 #[jacquard_derive::lexicon] 20 32 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 33 #[serde(rename_all = "camelCase")] 22 34 pub struct GetSuggestedUsersSkeletonOutput<'a> { 23 35 #[serde(borrow)] 24 36 pub dids: Vec<jacquard_common::types::string::Did<'a>>, 37 + } 38 + 39 + impl jacquard_common::types::xrpc::XrpcRequest for GetSuggestedUsersSkeleton<'_> { 40 + const NSID: &'static str = "app.bsky.unspecced.getSuggestedUsersSkeleton"; 41 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 42 + const OUTPUT_ENCODING: &'static str = "application/json"; 43 + type Output<'de> = GetSuggestedUsersSkeletonOutput<'de>; 44 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 25 45 }
+23 -2
crates/jacquard-api/src/app_bsky/unspecced/get_suggestions_skeleton.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.getSuggestionsSkeleton 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetSuggestionsSkeletonParams<'a> { 10 + pub struct GetSuggestionsSkeleton<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 19 21 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 20 22 } 21 23 24 + impl Default for GetSuggestionsSkeleton<'_> { 25 + fn default() -> Self { 26 + Self { 27 + cursor: Default::default(), 28 + limit: Some(50i64), 29 + relative_to_did: Default::default(), 30 + viewer: Default::default(), 31 + } 32 + } 33 + } 34 + 22 35 #[jacquard_derive::lexicon] 23 36 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 24 37 #[serde(rename_all = "camelCase")] ··· 35 48 #[serde(skip_serializing_if = "std::option::Option::is_none")] 36 49 #[serde(borrow)] 37 50 pub relative_to_did: std::option::Option<jacquard_common::types::string::Did<'a>>, 51 + } 52 + 53 + impl jacquard_common::types::xrpc::XrpcRequest for GetSuggestionsSkeleton<'_> { 54 + const NSID: &'static str = "app.bsky.unspecced.getSuggestionsSkeleton"; 55 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 56 + const OUTPUT_ENCODING: &'static str = "application/json"; 57 + type Output<'de> = GetSuggestionsSkeletonOutput<'de>; 58 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 38 59 }
+11 -1
crates/jacquard-api/src/app_bsky/unspecced/get_tagged_suggestions.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.getTaggedSuggestions 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetTaggedSuggestionsParams {} 10 + pub struct GetTaggedSuggestions {} 9 11 #[jacquard_derive::lexicon] 10 12 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11 13 #[serde(rename_all = "camelCase")] 12 14 pub struct GetTaggedSuggestionsOutput<'a> { 13 15 #[serde(borrow)] 14 16 pub suggestions: Vec<jacquard_common::types::value::Data<'a>>, 17 + } 18 + 19 + impl jacquard_common::types::xrpc::XrpcRequest for GetTaggedSuggestions { 20 + const NSID: &'static str = "app.bsky.unspecced.getTaggedSuggestions"; 21 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 22 + const OUTPUT_ENCODING: &'static str = "application/json"; 23 + type Output<'de> = GetTaggedSuggestionsOutput<'de>; 24 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 15 25 } 16 26 17 27 #[jacquard_derive::lexicon]
+12 -2
crates/jacquard-api/src/app_bsky/unspecced/get_trends.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.getTrends 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetTrendsParams { 10 + pub struct GetTrends { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 pub limit: std::option::Option<i64>, 11 13 } ··· 16 18 pub struct GetTrendsOutput<'a> { 17 19 #[serde(borrow)] 18 20 pub trends: Vec<crate::app_bsky::unspecced::TrendView<'a>>, 21 + } 22 + 23 + impl jacquard_common::types::xrpc::XrpcRequest for GetTrends { 24 + const NSID: &'static str = "app.bsky.unspecced.getTrends"; 25 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 26 + const OUTPUT_ENCODING: &'static str = "application/json"; 27 + type Output<'de> = GetTrendsOutput<'de>; 28 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 29 }
+13 -1
crates/jacquard-api/src/app_bsky/unspecced/init_age_assurance.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.initAgeAssurance 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct InitAgeAssuranceInput<'a> { 11 + pub struct InitAgeAssurance<'a> { 10 12 ///An ISO 3166-1 alpha-2 code of the user's location. 11 13 #[serde(borrow)] 12 14 pub country_code: jacquard_common::CowStr<'a>, ··· 76 78 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 77 79 } 78 80 } 81 + } 82 + 83 + impl jacquard_common::types::xrpc::XrpcRequest for InitAgeAssurance<'_> { 84 + const NSID: &'static str = "app.bsky.unspecced.initAgeAssurance"; 85 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 86 + "application/json", 87 + ); 88 + const OUTPUT_ENCODING: &'static str = "application/json"; 89 + type Output<'de> = InitAgeAssuranceOutput<'de>; 90 + type Err<'de> = InitAgeAssuranceError<'de>; 79 91 }
+24 -2
crates/jacquard-api/src/app_bsky/unspecced/search_actors_skeleton.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.searchActorsSkeleton 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct SearchActorsSkeletonParams<'a> { 10 + pub struct SearchActorsSkeleton<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 18 20 #[serde(skip_serializing_if = "std::option::Option::is_none")] 19 21 #[serde(borrow)] 20 22 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 23 + } 24 + 25 + impl Default for SearchActorsSkeleton<'_> { 26 + fn default() -> Self { 27 + Self { 28 + cursor: Default::default(), 29 + limit: Some(25i64), 30 + q: Default::default(), 31 + typeahead: Default::default(), 32 + viewer: Default::default(), 33 + } 34 + } 21 35 } 22 36 23 37 #[jacquard_derive::lexicon] ··· 65 79 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 66 80 } 67 81 } 82 + } 83 + 84 + impl jacquard_common::types::xrpc::XrpcRequest for SearchActorsSkeleton<'_> { 85 + const NSID: &'static str = "app.bsky.unspecced.searchActorsSkeleton"; 86 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 87 + const OUTPUT_ENCODING: &'static str = "application/json"; 88 + type Output<'de> = SearchActorsSkeletonOutput<'de>; 89 + type Err<'de> = SearchActorsSkeletonError<'de>; 68 90 }
+32 -2
crates/jacquard-api/src/app_bsky/unspecced/search_posts_skeleton.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.searchPostsSkeleton 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct SearchPostsSkeletonParams<'a> { 10 + pub struct SearchPostsSkeleton<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub author: std::option::Option<jacquard_common::types::ident::AtIdentifier<'a>>, ··· 44 46 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 45 47 } 46 48 49 + impl Default for SearchPostsSkeleton<'_> { 50 + fn default() -> Self { 51 + Self { 52 + author: Default::default(), 53 + cursor: Default::default(), 54 + domain: Default::default(), 55 + lang: Default::default(), 56 + limit: Some(25i64), 57 + mentions: Default::default(), 58 + q: Default::default(), 59 + since: Default::default(), 60 + sort: Some(jacquard_common::CowStr::from("latest")), 61 + tag: Default::default(), 62 + until: Default::default(), 63 + url: Default::default(), 64 + viewer: Default::default(), 65 + } 66 + } 67 + } 68 + 47 69 #[jacquard_derive::lexicon] 48 70 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 49 71 #[serde(rename_all = "camelCase")] ··· 89 111 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 90 112 } 91 113 } 114 + } 115 + 116 + impl jacquard_common::types::xrpc::XrpcRequest for SearchPostsSkeleton<'_> { 117 + const NSID: &'static str = "app.bsky.unspecced.searchPostsSkeleton"; 118 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 119 + const OUTPUT_ENCODING: &'static str = "application/json"; 120 + type Output<'de> = SearchPostsSkeletonOutput<'de>; 121 + type Err<'de> = SearchPostsSkeletonError<'de>; 92 122 }
+23 -2
crates/jacquard-api/src/app_bsky/unspecced/search_starter_packs_skeleton.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.unspecced.searchStarterPacksSkeleton 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct SearchStarterPacksSkeletonParams<'a> { 10 + pub struct SearchStarterPacksSkeleton<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 16 18 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 19 #[serde(borrow)] 18 20 pub viewer: std::option::Option<jacquard_common::types::string::Did<'a>>, 21 + } 22 + 23 + impl Default for SearchStarterPacksSkeleton<'_> { 24 + fn default() -> Self { 25 + Self { 26 + cursor: Default::default(), 27 + limit: Some(25i64), 28 + q: Default::default(), 29 + viewer: Default::default(), 30 + } 31 + } 19 32 } 20 33 21 34 #[jacquard_derive::lexicon] ··· 63 76 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 64 77 } 65 78 } 79 + } 80 + 81 + impl jacquard_common::types::xrpc::XrpcRequest for SearchStarterPacksSkeleton<'_> { 82 + const NSID: &'static str = "app.bsky.unspecced.searchStarterPacksSkeleton"; 83 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 84 + const OUTPUT_ENCODING: &'static str = "application/json"; 85 + type Output<'de> = SearchStarterPacksSkeletonOutput<'de>; 86 + type Err<'de> = SearchStarterPacksSkeletonError<'de>; 66 87 }
+2
crates/jacquard-api/src/app_bsky/video.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.video.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+11 -1
crates/jacquard-api/src/app_bsky/video/get_job_status.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.video.getJobStatus 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetJobStatusParams<'a> { 10 + pub struct GetJobStatus<'a> { 9 11 #[serde(borrow)] 10 12 pub job_id: jacquard_common::CowStr<'a>, 11 13 } ··· 16 18 pub struct GetJobStatusOutput<'a> { 17 19 #[serde(borrow)] 18 20 pub job_status: crate::app_bsky::video::JobStatus<'a>, 21 + } 22 + 23 + impl jacquard_common::types::xrpc::XrpcRequest for GetJobStatus<'_> { 24 + const NSID: &'static str = "app.bsky.video.getJobStatus"; 25 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 26 + const OUTPUT_ENCODING: &'static str = "application/json"; 27 + type Output<'de> = GetJobStatusOutput<'de>; 28 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 29 }
+13
crates/jacquard-api/src/app_bsky/video/get_upload_limits.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.video.getUploadLimits 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 18 20 pub remaining_daily_bytes: std::option::Option<i64>, 19 21 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 22 pub remaining_daily_videos: std::option::Option<i64>, 23 + } 24 + 25 + /// XRPC request marker type 26 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 27 + pub struct GetUploadLimits; 28 + impl jacquard_common::types::xrpc::XrpcRequest for GetUploadLimits { 29 + const NSID: &'static str = "app.bsky.video.getUploadLimits"; 30 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 31 + const OUTPUT_ENCODING: &'static str = "application/json"; 32 + type Output<'de> = GetUploadLimitsOutput<'de>; 33 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 21 34 }
+13 -1
crates/jacquard-api/src/app_bsky/video/upload_video.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: app.bsky.video.uploadVideo 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UploadVideoInput<'a> {} 11 + pub struct UploadVideo<'a> {} 10 12 #[jacquard_derive::lexicon] 11 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 14 #[serde(rename_all = "camelCase")] 13 15 pub struct UploadVideoOutput<'a> { 14 16 #[serde(borrow)] 15 17 pub job_status: crate::app_bsky::video::JobStatus<'a>, 18 + } 19 + 20 + impl jacquard_common::types::xrpc::XrpcRequest for UploadVideo<'_> { 21 + const NSID: &'static str = "app.bsky.video.uploadVideo"; 22 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 23 + "video/mp4", 24 + ); 25 + const OUTPUT_ENCODING: &'static str = "application/json"; 26 + type Output<'de> = UploadVideoOutput<'de>; 27 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 16 28 }
+2
crates/jacquard-api/src/chat_bsky/actor.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.actor.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+6
crates/jacquard-api/src/chat_bsky/actor/declaration.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.actor.declaration 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 10 12 pub struct Declaration<'a> { 11 13 #[serde(borrow)] 12 14 pub allow_incoming: jacquard_common::CowStr<'a>, 15 + } 16 + 17 + impl jacquard_common::types::collection::Collection for Declaration<'_> { 18 + const NSID: &'static str = "chat.bsky.actor.declaration"; 13 19 }
+15 -1
crates/jacquard-api/src/chat_bsky/actor/delete_account.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.actor.deleteAccount 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct DeleteAccountOutput<'a> {} 11 + pub struct DeleteAccountOutput<'a> {} 12 + /// XRPC request marker type 13 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 14 + pub struct DeleteAccount; 15 + impl jacquard_common::types::xrpc::XrpcRequest for DeleteAccount { 16 + const NSID: &'static str = "chat.bsky.actor.deleteAccount"; 17 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 18 + "application/json", 19 + ); 20 + const OUTPUT_ENCODING: &'static str = "application/json"; 21 + type Output<'de> = DeleteAccountOutput<'de>; 22 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 23 + }
+13 -1
crates/jacquard-api/src/chat_bsky/actor/export_account_data.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.actor.exportAccountData 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct ExportAccountDataOutput<'a> {} 11 + pub struct ExportAccountDataOutput<'a> {} 12 + /// XRPC request marker type 13 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 14 + pub struct ExportAccountData; 15 + impl jacquard_common::types::xrpc::XrpcRequest for ExportAccountData { 16 + const NSID: &'static str = "chat.bsky.actor.exportAccountData"; 17 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 18 + const OUTPUT_ENCODING: &'static str = "application/jsonl"; 19 + type Output<'de> = ExportAccountDataOutput<'de>; 20 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 21 + }
+2
crates/jacquard-api/src/chat_bsky/convo.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.convo.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+13 -1
crates/jacquard-api/src/chat_bsky/convo/accept_convo.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.convo.acceptConvo 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct AcceptConvoInput<'a> { 11 + pub struct AcceptConvo<'a> { 10 12 #[serde(borrow)] 11 13 pub convo_id: jacquard_common::CowStr<'a>, 12 14 } ··· 19 21 #[serde(skip_serializing_if = "std::option::Option::is_none")] 20 22 #[serde(borrow)] 21 23 pub rev: std::option::Option<jacquard_common::CowStr<'a>>, 24 + } 25 + 26 + impl jacquard_common::types::xrpc::XrpcRequest for AcceptConvo<'_> { 27 + const NSID: &'static str = "chat.bsky.convo.acceptConvo"; 28 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 29 + "application/json", 30 + ); 31 + const OUTPUT_ENCODING: &'static str = "application/json"; 32 + type Output<'de> = AcceptConvoOutput<'de>; 33 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 22 34 }
+13 -1
crates/jacquard-api/src/chat_bsky/convo/add_reaction.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.convo.addReaction 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct AddReactionInput<'a> { 11 + pub struct AddReaction<'a> { 10 12 #[serde(borrow)] 11 13 pub convo_id: jacquard_common::CowStr<'a>, 12 14 #[serde(borrow)] ··· 75 77 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 76 78 } 77 79 } 80 + } 81 + 82 + impl jacquard_common::types::xrpc::XrpcRequest for AddReaction<'_> { 83 + const NSID: &'static str = "chat.bsky.convo.addReaction"; 84 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 85 + "application/json", 86 + ); 87 + const OUTPUT_ENCODING: &'static str = "application/json"; 88 + type Output<'de> = AddReactionOutput<'de>; 89 + type Err<'de> = AddReactionError<'de>; 78 90 }
+13 -1
crates/jacquard-api/src/chat_bsky/convo/delete_message_for_self.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.convo.deleteMessageForSelf 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct DeleteMessageForSelfInput<'a> { 11 + pub struct DeleteMessageForSelf<'a> { 10 12 #[serde(borrow)] 11 13 pub convo_id: jacquard_common::CowStr<'a>, 12 14 #[serde(borrow)] ··· 20 22 #[serde(flatten)] 21 23 #[serde(borrow)] 22 24 pub value: crate::chat_bsky::convo::DeletedMessageView<'a>, 25 + } 26 + 27 + impl jacquard_common::types::xrpc::XrpcRequest for DeleteMessageForSelf<'_> { 28 + const NSID: &'static str = "chat.bsky.convo.deleteMessageForSelf"; 29 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 30 + "application/json", 31 + ); 32 + const OUTPUT_ENCODING: &'static str = "application/json"; 33 + type Output<'de> = DeleteMessageForSelfOutput<'de>; 34 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 23 35 }
+11 -1
crates/jacquard-api/src/chat_bsky/convo/get_convo.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.convo.getConvo 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetConvoParams<'a> { 10 + pub struct GetConvo<'a> { 9 11 #[serde(borrow)] 10 12 pub convo_id: jacquard_common::CowStr<'a>, 11 13 } ··· 16 18 pub struct GetConvoOutput<'a> { 17 19 #[serde(borrow)] 18 20 pub convo: crate::chat_bsky::convo::ConvoView<'a>, 21 + } 22 + 23 + impl jacquard_common::types::xrpc::XrpcRequest for GetConvo<'_> { 24 + const NSID: &'static str = "chat.bsky.convo.getConvo"; 25 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 26 + const OUTPUT_ENCODING: &'static str = "application/json"; 27 + type Output<'de> = GetConvoOutput<'de>; 28 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 29 }
+11 -1
crates/jacquard-api/src/chat_bsky/convo/get_convo_availability.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.convo.getConvoAvailability 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetConvoAvailabilityParams<'a> { 10 + pub struct GetConvoAvailability<'a> { 9 11 #[serde(borrow)] 10 12 pub members: Vec<jacquard_common::types::string::Did<'a>>, 11 13 } ··· 18 20 #[serde(skip_serializing_if = "std::option::Option::is_none")] 19 21 #[serde(borrow)] 20 22 pub convo: std::option::Option<crate::chat_bsky::convo::ConvoView<'a>>, 23 + } 24 + 25 + impl jacquard_common::types::xrpc::XrpcRequest for GetConvoAvailability<'_> { 26 + const NSID: &'static str = "chat.bsky.convo.getConvoAvailability"; 27 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 28 + const OUTPUT_ENCODING: &'static str = "application/json"; 29 + type Output<'de> = GetConvoAvailabilityOutput<'de>; 30 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 21 31 }
+11 -1
crates/jacquard-api/src/chat_bsky/convo/get_convo_for_members.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.convo.getConvoForMembers 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetConvoForMembersParams<'a> { 10 + pub struct GetConvoForMembers<'a> { 9 11 #[serde(borrow)] 10 12 pub members: Vec<jacquard_common::types::string::Did<'a>>, 11 13 } ··· 16 18 pub struct GetConvoForMembersOutput<'a> { 17 19 #[serde(borrow)] 18 20 pub convo: crate::chat_bsky::convo::ConvoView<'a>, 21 + } 22 + 23 + impl jacquard_common::types::xrpc::XrpcRequest for GetConvoForMembers<'_> { 24 + const NSID: &'static str = "chat.bsky.convo.getConvoForMembers"; 25 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 26 + const OUTPUT_ENCODING: &'static str = "application/json"; 27 + type Output<'de> = GetConvoForMembersOutput<'de>; 28 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 29 }
+11 -1
crates/jacquard-api/src/chat_bsky/convo/get_log.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.convo.getLog 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetLogParams<'a> { 10 + pub struct GetLog<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 20 22 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 21 23 #[serde(borrow)] 22 24 pub logs: Vec<jacquard_common::types::value::Data<'a>>, 25 + } 26 + 27 + impl jacquard_common::types::xrpc::XrpcRequest for GetLog<'_> { 28 + const NSID: &'static str = "chat.bsky.convo.getLog"; 29 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 30 + const OUTPUT_ENCODING: &'static str = "application/json"; 31 + type Output<'de> = GetLogOutput<'de>; 32 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 23 33 }
+22 -2
crates/jacquard-api/src/chat_bsky/convo/get_messages.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.convo.getMessages 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetMessagesParams<'a> { 10 + pub struct GetMessages<'a> { 9 11 #[serde(borrow)] 10 12 pub convo_id: jacquard_common::CowStr<'a>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 15 17 pub limit: std::option::Option<i64>, 16 18 } 17 19 20 + impl Default for GetMessages<'_> { 21 + fn default() -> Self { 22 + Self { 23 + convo_id: Default::default(), 24 + cursor: Default::default(), 25 + limit: Some(50i64), 26 + } 27 + } 28 + } 29 + 18 30 #[jacquard_derive::lexicon] 19 31 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 32 #[serde(rename_all = "camelCase")] ··· 24 36 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 37 #[serde(borrow)] 26 38 pub messages: Vec<jacquard_common::types::value::Data<'a>>, 39 + } 40 + 41 + impl jacquard_common::types::xrpc::XrpcRequest for GetMessages<'_> { 42 + const NSID: &'static str = "chat.bsky.convo.getMessages"; 43 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 44 + const OUTPUT_ENCODING: &'static str = "application/json"; 45 + type Output<'de> = GetMessagesOutput<'de>; 46 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 27 47 }
+13 -1
crates/jacquard-api/src/chat_bsky/convo/leave_convo.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.convo.leaveConvo 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct LeaveConvoInput<'a> { 11 + pub struct LeaveConvo<'a> { 10 12 #[serde(borrow)] 11 13 pub convo_id: jacquard_common::CowStr<'a>, 12 14 } ··· 19 21 pub convo_id: jacquard_common::CowStr<'a>, 20 22 #[serde(borrow)] 21 23 pub rev: jacquard_common::CowStr<'a>, 24 + } 25 + 26 + impl jacquard_common::types::xrpc::XrpcRequest for LeaveConvo<'_> { 27 + const NSID: &'static str = "chat.bsky.convo.leaveConvo"; 28 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 29 + "application/json", 30 + ); 31 + const OUTPUT_ENCODING: &'static str = "application/json"; 32 + type Output<'de> = LeaveConvoOutput<'de>; 33 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 22 34 }
+23 -2
crates/jacquard-api/src/chat_bsky/convo/list_convos.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.convo.listConvos 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct ListConvosParams<'a> { 10 + pub struct ListConvos<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 19 21 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 20 22 } 21 23 24 + impl Default for ListConvos<'_> { 25 + fn default() -> Self { 26 + Self { 27 + cursor: Default::default(), 28 + limit: Some(50i64), 29 + read_state: Default::default(), 30 + status: Default::default(), 31 + } 32 + } 33 + } 34 + 22 35 #[jacquard_derive::lexicon] 23 36 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 24 37 #[serde(rename_all = "camelCase")] ··· 28 41 #[serde(skip_serializing_if = "std::option::Option::is_none")] 29 42 #[serde(borrow)] 30 43 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 44 + } 45 + 46 + impl jacquard_common::types::xrpc::XrpcRequest for ListConvos<'_> { 47 + const NSID: &'static str = "chat.bsky.convo.listConvos"; 48 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 49 + const OUTPUT_ENCODING: &'static str = "application/json"; 50 + type Output<'de> = ListConvosOutput<'de>; 51 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 31 52 }
+13 -1
crates/jacquard-api/src/chat_bsky/convo/mute_convo.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.convo.muteConvo 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct MuteConvoInput<'a> { 11 + pub struct MuteConvo<'a> { 10 12 #[serde(borrow)] 11 13 pub convo_id: jacquard_common::CowStr<'a>, 12 14 } ··· 17 19 pub struct MuteConvoOutput<'a> { 18 20 #[serde(borrow)] 19 21 pub convo: crate::chat_bsky::convo::ConvoView<'a>, 22 + } 23 + 24 + impl jacquard_common::types::xrpc::XrpcRequest for MuteConvo<'_> { 25 + const NSID: &'static str = "chat.bsky.convo.muteConvo"; 26 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 27 + "application/json", 28 + ); 29 + const OUTPUT_ENCODING: &'static str = "application/json"; 30 + type Output<'de> = MuteConvoOutput<'de>; 31 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 20 32 }
+13 -1
crates/jacquard-api/src/chat_bsky/convo/remove_reaction.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.convo.removeReaction 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct RemoveReactionInput<'a> { 11 + pub struct RemoveReaction<'a> { 10 12 #[serde(borrow)] 11 13 pub convo_id: jacquard_common::CowStr<'a>, 12 14 #[serde(borrow)] ··· 65 67 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 66 68 } 67 69 } 70 + } 71 + 72 + impl jacquard_common::types::xrpc::XrpcRequest for RemoveReaction<'_> { 73 + const NSID: &'static str = "chat.bsky.convo.removeReaction"; 74 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 75 + "application/json", 76 + ); 77 + const OUTPUT_ENCODING: &'static str = "application/json"; 78 + type Output<'de> = RemoveReactionOutput<'de>; 79 + type Err<'de> = RemoveReactionError<'de>; 68 80 }
+13 -1
crates/jacquard-api/src/chat_bsky/convo/send_message.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.convo.sendMessage 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct SendMessageInput<'a> { 11 + pub struct SendMessage<'a> { 10 12 #[serde(borrow)] 11 13 pub convo_id: jacquard_common::CowStr<'a>, 12 14 #[serde(borrow)] ··· 20 22 #[serde(flatten)] 21 23 #[serde(borrow)] 22 24 pub value: crate::chat_bsky::convo::MessageView<'a>, 25 + } 26 + 27 + impl jacquard_common::types::xrpc::XrpcRequest for SendMessage<'_> { 28 + const NSID: &'static str = "chat.bsky.convo.sendMessage"; 29 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 30 + "application/json", 31 + ); 32 + const OUTPUT_ENCODING: &'static str = "application/json"; 33 + type Output<'de> = SendMessageOutput<'de>; 34 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 23 35 }
+13 -1
crates/jacquard-api/src/chat_bsky/convo/send_message_batch.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.convo.sendMessageBatch 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 16 18 #[jacquard_derive::lexicon] 17 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 20 #[serde(rename_all = "camelCase")] 19 - pub struct SendMessageBatchInput<'a> { 21 + pub struct SendMessageBatch<'a> { 20 22 #[serde(borrow)] 21 23 pub items: Vec<jacquard_common::types::value::Data<'a>>, 22 24 } ··· 27 29 pub struct SendMessageBatchOutput<'a> { 28 30 #[serde(borrow)] 29 31 pub items: Vec<crate::chat_bsky::convo::MessageView<'a>>, 32 + } 33 + 34 + impl jacquard_common::types::xrpc::XrpcRequest for SendMessageBatch<'_> { 35 + const NSID: &'static str = "chat.bsky.convo.sendMessageBatch"; 36 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 37 + "application/json", 38 + ); 39 + const OUTPUT_ENCODING: &'static str = "application/json"; 40 + type Output<'de> = SendMessageBatchOutput<'de>; 41 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 30 42 }
+13 -1
crates/jacquard-api/src/chat_bsky/convo/unmute_convo.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.convo.unmuteConvo 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UnmuteConvoInput<'a> { 11 + pub struct UnmuteConvo<'a> { 10 12 #[serde(borrow)] 11 13 pub convo_id: jacquard_common::CowStr<'a>, 12 14 } ··· 17 19 pub struct UnmuteConvoOutput<'a> { 18 20 #[serde(borrow)] 19 21 pub convo: crate::chat_bsky::convo::ConvoView<'a>, 22 + } 23 + 24 + impl jacquard_common::types::xrpc::XrpcRequest for UnmuteConvo<'_> { 25 + const NSID: &'static str = "chat.bsky.convo.unmuteConvo"; 26 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 27 + "application/json", 28 + ); 29 + const OUTPUT_ENCODING: &'static str = "application/json"; 30 + type Output<'de> = UnmuteConvoOutput<'de>; 31 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 20 32 }
+13 -1
crates/jacquard-api/src/chat_bsky/convo/update_all_read.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.convo.updateAllRead 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UpdateAllReadInput<'a> { 11 + pub struct UpdateAllRead<'a> { 10 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 11 13 #[serde(borrow)] 12 14 pub status: std::option::Option<jacquard_common::CowStr<'a>>, ··· 18 20 pub struct UpdateAllReadOutput<'a> { 19 21 ///The count of updated convos. 20 22 pub updated_count: i64, 23 + } 24 + 25 + impl jacquard_common::types::xrpc::XrpcRequest for UpdateAllRead<'_> { 26 + const NSID: &'static str = "chat.bsky.convo.updateAllRead"; 27 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 28 + "application/json", 29 + ); 30 + const OUTPUT_ENCODING: &'static str = "application/json"; 31 + type Output<'de> = UpdateAllReadOutput<'de>; 32 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 21 33 }
+13 -1
crates/jacquard-api/src/chat_bsky/convo/update_read.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.convo.updateRead 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UpdateReadInput<'a> { 11 + pub struct UpdateRead<'a> { 10 12 #[serde(borrow)] 11 13 pub convo_id: jacquard_common::CowStr<'a>, 12 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 20 22 pub struct UpdateReadOutput<'a> { 21 23 #[serde(borrow)] 22 24 pub convo: crate::chat_bsky::convo::ConvoView<'a>, 25 + } 26 + 27 + impl jacquard_common::types::xrpc::XrpcRequest for UpdateRead<'_> { 28 + const NSID: &'static str = "chat.bsky.convo.updateRead"; 29 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 30 + "application/json", 31 + ); 32 + const OUTPUT_ENCODING: &'static str = "application/json"; 33 + type Output<'de> = UpdateReadOutput<'de>; 34 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 23 35 }
+11 -1
crates/jacquard-api/src/chat_bsky/moderation/get_actor_metadata.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.moderation.getActorMetadata 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetActorMetadataParams<'a> { 10 + pub struct GetActorMetadata<'a> { 9 11 #[serde(borrow)] 10 12 pub actor: jacquard_common::types::string::Did<'a>, 11 13 } ··· 20 22 pub day: jacquard_common::types::value::Data<'a>, 21 23 #[serde(borrow)] 22 24 pub month: jacquard_common::types::value::Data<'a>, 25 + } 26 + 27 + impl jacquard_common::types::xrpc::XrpcRequest for GetActorMetadata<'_> { 28 + const NSID: &'static str = "chat.bsky.moderation.getActorMetadata"; 29 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 30 + const OUTPUT_ENCODING: &'static str = "application/json"; 31 + type Output<'de> = GetActorMetadataOutput<'de>; 32 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 23 33 } 24 34 25 35 #[jacquard_derive::lexicon]
+23 -2
crates/jacquard-api/src/chat_bsky/moderation/get_message_context.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.moderation.getMessageContext 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetMessageContextParams<'a> { 10 + pub struct GetMessageContext<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 pub after: std::option::Option<i64>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 17 19 pub message_id: jacquard_common::CowStr<'a>, 18 20 } 19 21 22 + impl Default for GetMessageContext<'_> { 23 + fn default() -> Self { 24 + Self { 25 + after: Some(5i64), 26 + before: Some(5i64), 27 + convo_id: Default::default(), 28 + message_id: Default::default(), 29 + } 30 + } 31 + } 32 + 20 33 #[jacquard_derive::lexicon] 21 34 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 35 #[serde(rename_all = "camelCase")] 23 36 pub struct GetMessageContextOutput<'a> { 24 37 #[serde(borrow)] 25 38 pub messages: Vec<jacquard_common::types::value::Data<'a>>, 39 + } 40 + 41 + impl jacquard_common::types::xrpc::XrpcRequest for GetMessageContext<'_> { 42 + const NSID: &'static str = "chat.bsky.moderation.getMessageContext"; 43 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 44 + const OUTPUT_ENCODING: &'static str = "application/json"; 45 + type Output<'de> = GetMessageContextOutput<'de>; 46 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 26 47 }
+13 -1
crates/jacquard-api/src/chat_bsky/moderation/update_actor_access.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: chat.bsky.moderation.updateActorAccess 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UpdateActorAccessInput<'a> { 11 + pub struct UpdateActorAccess<'a> { 10 12 #[serde(borrow)] 11 13 pub actor: jacquard_common::types::string::Did<'a>, 12 14 pub allow_access: bool, 13 15 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 16 #[serde(borrow)] 15 17 pub r#ref: std::option::Option<jacquard_common::CowStr<'a>>, 18 + } 19 + 20 + impl jacquard_common::types::xrpc::XrpcRequest for UpdateActorAccess<'_> { 21 + const NSID: &'static str = "chat.bsky.moderation.updateActorAccess"; 22 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 23 + "application/json", 24 + ); 25 + const OUTPUT_ENCODING: &'static str = "application/json"; 26 + type Output<'de> = (); 27 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 16 28 }
+2
crates/jacquard-api/src/com_atproto/admin.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.admin.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+13 -1
crates/jacquard-api/src/com_atproto/admin/delete_account.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.admin.deleteAccount 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct DeleteAccountInput<'a> { 11 + pub struct DeleteAccount<'a> { 10 12 #[serde(borrow)] 11 13 pub did: jacquard_common::types::string::Did<'a>, 14 + } 15 + 16 + impl jacquard_common::types::xrpc::XrpcRequest for DeleteAccount<'_> { 17 + const NSID: &'static str = "com.atproto.admin.deleteAccount"; 18 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 19 + "application/json", 20 + ); 21 + const OUTPUT_ENCODING: &'static str = "application/json"; 22 + type Output<'de> = (); 23 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 12 24 }
+13 -1
crates/jacquard-api/src/com_atproto/admin/disable_account_invites.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.admin.disableAccountInvites 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct DisableAccountInvitesInput<'a> { 11 + pub struct DisableAccountInvites<'a> { 10 12 #[serde(borrow)] 11 13 pub account: jacquard_common::types::string::Did<'a>, 12 14 ///Optional reason for disabled invites. 13 15 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 16 #[serde(borrow)] 15 17 pub note: std::option::Option<jacquard_common::CowStr<'a>>, 18 + } 19 + 20 + impl jacquard_common::types::xrpc::XrpcRequest for DisableAccountInvites<'_> { 21 + const NSID: &'static str = "com.atproto.admin.disableAccountInvites"; 22 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 23 + "application/json", 24 + ); 25 + const OUTPUT_ENCODING: &'static str = "application/json"; 26 + type Output<'de> = (); 27 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 16 28 }
+13 -1
crates/jacquard-api/src/com_atproto/admin/disable_invite_codes.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.admin.disableInviteCodes 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct DisableInviteCodesInput<'a> { 11 + pub struct DisableInviteCodes<'a> { 10 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 11 13 #[serde(borrow)] 12 14 pub accounts: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 13 15 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 16 #[serde(borrow)] 15 17 pub codes: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 18 + } 19 + 20 + impl jacquard_common::types::xrpc::XrpcRequest for DisableInviteCodes<'_> { 21 + const NSID: &'static str = "com.atproto.admin.disableInviteCodes"; 22 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 23 + "application/json", 24 + ); 25 + const OUTPUT_ENCODING: &'static str = "application/json"; 26 + type Output<'de> = (); 27 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 16 28 }
+13 -1
crates/jacquard-api/src/com_atproto/admin/enable_account_invites.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.admin.enableAccountInvites 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct EnableAccountInvitesInput<'a> { 11 + pub struct EnableAccountInvites<'a> { 10 12 #[serde(borrow)] 11 13 pub account: jacquard_common::types::string::Did<'a>, 12 14 ///Optional reason for enabled invites. 13 15 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 16 #[serde(borrow)] 15 17 pub note: std::option::Option<jacquard_common::CowStr<'a>>, 18 + } 19 + 20 + impl jacquard_common::types::xrpc::XrpcRequest for EnableAccountInvites<'_> { 21 + const NSID: &'static str = "com.atproto.admin.enableAccountInvites"; 22 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 23 + "application/json", 24 + ); 25 + const OUTPUT_ENCODING: &'static str = "application/json"; 26 + type Output<'de> = (); 27 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 16 28 }
+11 -1
crates/jacquard-api/src/com_atproto/admin/get_account_info.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.admin.getAccountInfo 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetAccountInfoParams<'a> { 10 + pub struct GetAccountInfo<'a> { 9 11 #[serde(borrow)] 10 12 pub did: jacquard_common::types::string::Did<'a>, 11 13 } ··· 17 19 #[serde(flatten)] 18 20 #[serde(borrow)] 19 21 pub value: crate::com_atproto::admin::AccountView<'a>, 22 + } 23 + 24 + impl jacquard_common::types::xrpc::XrpcRequest for GetAccountInfo<'_> { 25 + const NSID: &'static str = "com.atproto.admin.getAccountInfo"; 26 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 27 + const OUTPUT_ENCODING: &'static str = "application/json"; 28 + type Output<'de> = GetAccountInfoOutput<'de>; 29 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 20 30 }
+11 -1
crates/jacquard-api/src/com_atproto/admin/get_account_infos.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.admin.getAccountInfos 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetAccountInfosParams<'a> { 10 + pub struct GetAccountInfos<'a> { 9 11 #[serde(borrow)] 10 12 pub dids: Vec<jacquard_common::types::string::Did<'a>>, 11 13 } ··· 16 18 pub struct GetAccountInfosOutput<'a> { 17 19 #[serde(borrow)] 18 20 pub infos: Vec<crate::com_atproto::admin::AccountView<'a>>, 21 + } 22 + 23 + impl jacquard_common::types::xrpc::XrpcRequest for GetAccountInfos<'_> { 24 + const NSID: &'static str = "com.atproto.admin.getAccountInfos"; 25 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 26 + const OUTPUT_ENCODING: &'static str = "application/json"; 27 + type Output<'de> = GetAccountInfosOutput<'de>; 28 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 29 }
+22 -2
crates/jacquard-api/src/com_atproto/admin/get_invite_codes.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.admin.getInviteCodes 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetInviteCodesParams<'a> { 10 + pub struct GetInviteCodes<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 16 18 pub sort: std::option::Option<jacquard_common::CowStr<'a>>, 17 19 } 18 20 21 + impl Default for GetInviteCodes<'_> { 22 + fn default() -> Self { 23 + Self { 24 + cursor: Default::default(), 25 + limit: Some(100i64), 26 + sort: Some(jacquard_common::CowStr::from("recent")), 27 + } 28 + } 29 + } 30 + 19 31 #[jacquard_derive::lexicon] 20 32 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 33 #[serde(rename_all = "camelCase")] ··· 25 37 #[serde(skip_serializing_if = "std::option::Option::is_none")] 26 38 #[serde(borrow)] 27 39 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 40 + } 41 + 42 + impl jacquard_common::types::xrpc::XrpcRequest for GetInviteCodes<'_> { 43 + const NSID: &'static str = "com.atproto.admin.getInviteCodes"; 44 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 45 + const OUTPUT_ENCODING: &'static str = "application/json"; 46 + type Output<'de> = GetInviteCodesOutput<'de>; 47 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 28 48 }
+11 -1
crates/jacquard-api/src/com_atproto/admin/get_subject_status.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.admin.getSubjectStatus 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetSubjectStatusParams<'a> { 10 + pub struct GetSubjectStatus<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub blob: std::option::Option<jacquard_common::types::string::Cid<'a>>, ··· 42 44 StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>), 43 45 #[serde(rename = "com.atproto.admin.defs#repoBlobRef")] 44 46 DefsRepoBlobRef(Box<crate::com_atproto::admin::RepoBlobRef<'a>>), 47 + } 48 + 49 + impl jacquard_common::types::xrpc::XrpcRequest for GetSubjectStatus<'_> { 50 + const NSID: &'static str = "com.atproto.admin.getSubjectStatus"; 51 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 52 + const OUTPUT_ENCODING: &'static str = "application/json"; 53 + type Output<'de> = GetSubjectStatusOutput<'de>; 54 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 45 55 }
+22 -2
crates/jacquard-api/src/com_atproto/admin/search_accounts.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.admin.searchAccounts 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct SearchAccountsParams<'a> { 10 + pub struct SearchAccounts<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 16 18 pub limit: std::option::Option<i64>, 17 19 } 18 20 21 + impl Default for SearchAccounts<'_> { 22 + fn default() -> Self { 23 + Self { 24 + cursor: Default::default(), 25 + email: Default::default(), 26 + limit: Some(50i64), 27 + } 28 + } 29 + } 30 + 19 31 #[jacquard_derive::lexicon] 20 32 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 33 #[serde(rename_all = "camelCase")] ··· 25 37 #[serde(skip_serializing_if = "std::option::Option::is_none")] 26 38 #[serde(borrow)] 27 39 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 40 + } 41 + 42 + impl jacquard_common::types::xrpc::XrpcRequest for SearchAccounts<'_> { 43 + const NSID: &'static str = "com.atproto.admin.searchAccounts"; 44 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 45 + const OUTPUT_ENCODING: &'static str = "application/json"; 46 + type Output<'de> = SearchAccountsOutput<'de>; 47 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 28 48 }
+13 -1
crates/jacquard-api/src/com_atproto/admin/send_email.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.admin.sendEmail 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct SendEmailInput<'a> { 11 + pub struct SendEmail<'a> { 10 12 ///Additional comment by the sender that won't be used in the email itself but helpful to provide more context for moderators/reviewers 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 14 #[serde(borrow)] ··· 27 29 #[serde(rename_all = "camelCase")] 28 30 pub struct SendEmailOutput<'a> { 29 31 pub sent: bool, 32 + } 33 + 34 + impl jacquard_common::types::xrpc::XrpcRequest for SendEmail<'_> { 35 + const NSID: &'static str = "com.atproto.admin.sendEmail"; 36 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 37 + "application/json", 38 + ); 39 + const OUTPUT_ENCODING: &'static str = "application/json"; 40 + type Output<'de> = SendEmailOutput<'de>; 41 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 30 42 }
+13 -1
crates/jacquard-api/src/com_atproto/admin/update_account_email.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.admin.updateAccountEmail 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UpdateAccountEmailInput<'a> { 11 + pub struct UpdateAccountEmail<'a> { 10 12 ///The handle or DID of the repo. 11 13 #[serde(borrow)] 12 14 pub account: jacquard_common::types::ident::AtIdentifier<'a>, 13 15 #[serde(borrow)] 14 16 pub email: jacquard_common::CowStr<'a>, 17 + } 18 + 19 + impl jacquard_common::types::xrpc::XrpcRequest for UpdateAccountEmail<'_> { 20 + const NSID: &'static str = "com.atproto.admin.updateAccountEmail"; 21 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 22 + "application/json", 23 + ); 24 + const OUTPUT_ENCODING: &'static str = "application/json"; 25 + type Output<'de> = (); 26 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 15 27 }
+13 -1
crates/jacquard-api/src/com_atproto/admin/update_account_handle.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.admin.updateAccountHandle 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UpdateAccountHandleInput<'a> { 11 + pub struct UpdateAccountHandle<'a> { 10 12 #[serde(borrow)] 11 13 pub did: jacquard_common::types::string::Did<'a>, 12 14 #[serde(borrow)] 13 15 pub handle: jacquard_common::types::string::Handle<'a>, 16 + } 17 + 18 + impl jacquard_common::types::xrpc::XrpcRequest for UpdateAccountHandle<'_> { 19 + const NSID: &'static str = "com.atproto.admin.updateAccountHandle"; 20 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 21 + "application/json", 22 + ); 23 + const OUTPUT_ENCODING: &'static str = "application/json"; 24 + type Output<'de> = (); 25 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 14 26 }
+13 -1
crates/jacquard-api/src/com_atproto/admin/update_account_password.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.admin.updateAccountPassword 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UpdateAccountPasswordInput<'a> { 11 + pub struct UpdateAccountPassword<'a> { 10 12 #[serde(borrow)] 11 13 pub did: jacquard_common::types::string::Did<'a>, 12 14 #[serde(borrow)] 13 15 pub password: jacquard_common::CowStr<'a>, 16 + } 17 + 18 + impl jacquard_common::types::xrpc::XrpcRequest for UpdateAccountPassword<'_> { 19 + const NSID: &'static str = "com.atproto.admin.updateAccountPassword"; 20 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 21 + "application/json", 22 + ); 23 + const OUTPUT_ENCODING: &'static str = "application/json"; 24 + type Output<'de> = (); 25 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 14 26 }
+13 -1
crates/jacquard-api/src/com_atproto/admin/update_account_signing_key.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.admin.updateAccountSigningKey 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UpdateAccountSigningKeyInput<'a> { 11 + pub struct UpdateAccountSigningKey<'a> { 10 12 #[serde(borrow)] 11 13 pub did: jacquard_common::types::string::Did<'a>, 12 14 ///Did-key formatted public key 13 15 #[serde(borrow)] 14 16 pub signing_key: jacquard_common::types::string::Did<'a>, 17 + } 18 + 19 + impl jacquard_common::types::xrpc::XrpcRequest for UpdateAccountSigningKey<'_> { 20 + const NSID: &'static str = "com.atproto.admin.updateAccountSigningKey"; 21 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 22 + "application/json", 23 + ); 24 + const OUTPUT_ENCODING: &'static str = "application/json"; 25 + type Output<'de> = (); 26 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 15 27 }
+15 -3
crates/jacquard-api/src/com_atproto/admin/update_subject_status.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.admin.updateSubjectStatus 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UpdateSubjectStatusInput<'a> { 11 + pub struct UpdateSubjectStatus<'a> { 10 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 11 13 #[serde(borrow)] 12 14 pub deactivated: std::option::Option<crate::com_atproto::admin::StatusAttr<'a>>, 13 15 #[serde(borrow)] 14 - pub subject: UpdateSubjectStatusInputRecordSubject<'a>, 16 + pub subject: UpdateSubjectStatusRecordSubject<'a>, 15 17 #[serde(skip_serializing_if = "std::option::Option::is_none")] 16 18 #[serde(borrow)] 17 19 pub takedown: std::option::Option<crate::com_atproto::admin::StatusAttr<'a>>, ··· 21 23 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 22 24 #[serde(tag = "$type")] 23 25 #[serde(bound(deserialize = "'de: 'a"))] 24 - pub enum UpdateSubjectStatusInputRecordSubject<'a> { 26 + pub enum UpdateSubjectStatusRecordSubject<'a> { 25 27 #[serde(rename = "com.atproto.admin.defs#repoRef")] 26 28 DefsRepoRef(Box<crate::com_atproto::admin::RepoRef<'a>>), 27 29 #[serde(rename = "com.atproto.repo.strongRef")] ··· 52 54 StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>), 53 55 #[serde(rename = "com.atproto.admin.defs#repoBlobRef")] 54 56 DefsRepoBlobRef(Box<crate::com_atproto::admin::RepoBlobRef<'a>>), 57 + } 58 + 59 + impl jacquard_common::types::xrpc::XrpcRequest for UpdateSubjectStatus<'_> { 60 + const NSID: &'static str = "com.atproto.admin.updateSubjectStatus"; 61 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 62 + "application/json", 63 + ); 64 + const OUTPUT_ENCODING: &'static str = "application/json"; 65 + type Output<'de> = UpdateSubjectStatusOutput<'de>; 66 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 55 67 }
+2
crates/jacquard-api/src/com_atproto/identity.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.identity.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+13 -1
crates/jacquard-api/src/com_atproto/identity/refresh_identity.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.identity.refreshIdentity 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct RefreshIdentityInput<'a> { 11 + pub struct RefreshIdentity<'a> { 10 12 #[serde(borrow)] 11 13 pub identifier: jacquard_common::types::ident::AtIdentifier<'a>, 12 14 } ··· 72 74 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 73 75 } 74 76 } 77 + } 78 + 79 + impl jacquard_common::types::xrpc::XrpcRequest for RefreshIdentity<'_> { 80 + const NSID: &'static str = "com.atproto.identity.refreshIdentity"; 81 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 82 + "application/json", 83 + ); 84 + const OUTPUT_ENCODING: &'static str = "application/json"; 85 + type Output<'de> = RefreshIdentityOutput<'de>; 86 + type Err<'de> = RefreshIdentityError<'de>; 75 87 }
+14
crates/jacquard-api/src/com_atproto/identity/request_plc_operation_signature.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.identity.requestPlcOperationSignature 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 8 + /// XRPC request marker type 9 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 10 + pub struct RequestPlcOperationSignature; 11 + impl jacquard_common::types::xrpc::XrpcRequest for RequestPlcOperationSignature { 12 + const NSID: &'static str = "com.atproto.identity.requestPlcOperationSignature"; 13 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 14 + "application/json", 15 + ); 16 + const OUTPUT_ENCODING: &'static str = "application/json"; 17 + type Output<'de> = (); 18 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 + }
+11 -1
crates/jacquard-api/src/com_atproto/identity/resolve_did.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.identity.resolveDid 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct ResolveDidParams<'a> { 10 + pub struct ResolveDid<'a> { 9 11 #[serde(borrow)] 10 12 pub did: jacquard_common::types::string::Did<'a>, 11 13 } ··· 61 63 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 62 64 } 63 65 } 66 + } 67 + 68 + impl jacquard_common::types::xrpc::XrpcRequest for ResolveDid<'_> { 69 + const NSID: &'static str = "com.atproto.identity.resolveDid"; 70 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 71 + const OUTPUT_ENCODING: &'static str = "application/json"; 72 + type Output<'de> = ResolveDidOutput<'de>; 73 + type Err<'de> = ResolveDidError<'de>; 64 74 }
+11 -1
crates/jacquard-api/src/com_atproto/identity/resolve_handle.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.identity.resolveHandle 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct ResolveHandleParams<'a> { 10 + pub struct ResolveHandle<'a> { 9 11 #[serde(borrow)] 10 12 pub handle: jacquard_common::types::string::Handle<'a>, 11 13 } ··· 50 52 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 51 53 } 52 54 } 55 + } 56 + 57 + impl jacquard_common::types::xrpc::XrpcRequest for ResolveHandle<'_> { 58 + const NSID: &'static str = "com.atproto.identity.resolveHandle"; 59 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 60 + const OUTPUT_ENCODING: &'static str = "application/json"; 61 + type Output<'de> = ResolveHandleOutput<'de>; 62 + type Err<'de> = ResolveHandleError<'de>; 53 63 }
+11 -1
crates/jacquard-api/src/com_atproto/identity/resolve_identity.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.identity.resolveIdentity 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct ResolveIdentityParams<'a> { 10 + pub struct ResolveIdentity<'a> { 9 11 #[serde(borrow)] 10 12 pub identifier: jacquard_common::types::ident::AtIdentifier<'a>, 11 13 } ··· 71 73 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 72 74 } 73 75 } 76 + } 77 + 78 + impl jacquard_common::types::xrpc::XrpcRequest for ResolveIdentity<'_> { 79 + const NSID: &'static str = "com.atproto.identity.resolveIdentity"; 80 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 81 + const OUTPUT_ENCODING: &'static str = "application/json"; 82 + type Output<'de> = ResolveIdentityOutput<'de>; 83 + type Err<'de> = ResolveIdentityError<'de>; 74 84 }
+13 -1
crates/jacquard-api/src/com_atproto/identity/sign_plc_operation.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.identity.signPlcOperation 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct SignPlcOperationInput<'a> { 11 + pub struct SignPlcOperation<'a> { 10 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 11 13 #[serde(borrow)] 12 14 pub also_known_as: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, ··· 34 36 ///A signed DID PLC operation. 35 37 #[serde(borrow)] 36 38 pub operation: jacquard_common::types::value::Data<'a>, 39 + } 40 + 41 + impl jacquard_common::types::xrpc::XrpcRequest for SignPlcOperation<'_> { 42 + const NSID: &'static str = "com.atproto.identity.signPlcOperation"; 43 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 44 + "application/json", 45 + ); 46 + const OUTPUT_ENCODING: &'static str = "application/json"; 47 + type Output<'de> = SignPlcOperationOutput<'de>; 48 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 37 49 }
+13 -1
crates/jacquard-api/src/com_atproto/identity/submit_plc_operation.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.identity.submitPlcOperation 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct SubmitPlcOperationInput<'a> { 11 + pub struct SubmitPlcOperation<'a> { 10 12 #[serde(borrow)] 11 13 pub operation: jacquard_common::types::value::Data<'a>, 14 + } 15 + 16 + impl jacquard_common::types::xrpc::XrpcRequest for SubmitPlcOperation<'_> { 17 + const NSID: &'static str = "com.atproto.identity.submitPlcOperation"; 18 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 19 + "application/json", 20 + ); 21 + const OUTPUT_ENCODING: &'static str = "application/json"; 22 + type Output<'de> = (); 23 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 12 24 }
+13 -1
crates/jacquard-api/src/com_atproto/identity/update_handle.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.identity.updateHandle 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UpdateHandleInput<'a> { 11 + pub struct UpdateHandle<'a> { 10 12 ///The new handle. 11 13 #[serde(borrow)] 12 14 pub handle: jacquard_common::types::string::Handle<'a>, 15 + } 16 + 17 + impl jacquard_common::types::xrpc::XrpcRequest for UpdateHandle<'_> { 18 + const NSID: &'static str = "com.atproto.identity.updateHandle"; 19 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 20 + "application/json", 21 + ); 22 + const OUTPUT_ENCODING: &'static str = "application/json"; 23 + type Output<'de> = (); 24 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 13 25 }
+2
crates/jacquard-api/src/com_atproto/label.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.label.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+23 -2
crates/jacquard-api/src/com_atproto/label/query_labels.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.label.queryLabels 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct QueryLabelsParams<'a> { 10 + pub struct QueryLabels<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 18 20 pub uri_patterns: Vec<jacquard_common::CowStr<'a>>, 19 21 } 20 22 23 + impl Default for QueryLabels<'_> { 24 + fn default() -> Self { 25 + Self { 26 + cursor: Default::default(), 27 + limit: Some(50i64), 28 + sources: Default::default(), 29 + uri_patterns: Default::default(), 30 + } 31 + } 32 + } 33 + 21 34 #[jacquard_derive::lexicon] 22 35 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 23 36 #[serde(rename_all = "camelCase")] ··· 27 40 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 28 41 #[serde(borrow)] 29 42 pub labels: Vec<crate::com_atproto::label::Label<'a>>, 43 + } 44 + 45 + impl jacquard_common::types::xrpc::XrpcRequest for QueryLabels<'_> { 46 + const NSID: &'static str = "com.atproto.label.queryLabels"; 47 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 48 + const OUTPUT_ENCODING: &'static str = "application/json"; 49 + type Output<'de> = QueryLabelsOutput<'de>; 50 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 30 51 }
+3 -1
crates/jacquard-api/src/com_atproto/label/subscribe_labels.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.label.subscribeLabels 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 25 27 26 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 27 29 #[serde(rename_all = "camelCase")] 28 - pub struct SubscribeLabelsParams { 30 + pub struct SubscribeLabels { 29 31 #[serde(skip_serializing_if = "std::option::Option::is_none")] 30 32 pub cursor: std::option::Option<i64>, 31 33 }
+6
crates/jacquard-api/src/com_atproto/lexicon/schema.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.lexicon.schema 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 10 12 pub struct Schema<'a> { 11 13 ///Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system. 12 14 pub lexicon: i64, 15 + } 16 + 17 + impl jacquard_common::types::collection::Collection for Schema<'_> { 18 + const NSID: &'static str = "com.atproto.lexicon.schema"; 13 19 }
+2
crates/jacquard-api/src/com_atproto/moderation.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.moderation.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+15 -3
crates/jacquard-api/src/com_atproto/moderation/create_report.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.moderation.createReport 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct CreateReportInput<'a> { 11 + pub struct CreateReport<'a> { 10 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 11 13 #[serde(borrow)] 12 14 pub mod_tool: std::option::Option<jacquard_common::types::value::Data<'a>>, ··· 18 20 #[serde(borrow)] 19 21 pub reason_type: crate::com_atproto::moderation::ReasonType<'a>, 20 22 #[serde(borrow)] 21 - pub subject: CreateReportInputRecordSubject<'a>, 23 + pub subject: CreateReportRecordSubject<'a>, 22 24 } 23 25 24 26 #[jacquard_derive::open_union] 25 27 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 26 28 #[serde(tag = "$type")] 27 29 #[serde(bound(deserialize = "'de: 'a"))] 28 - pub enum CreateReportInputRecordSubject<'a> { 30 + pub enum CreateReportRecordSubject<'a> { 29 31 #[serde(rename = "com.atproto.admin.defs#repoRef")] 30 32 DefsRepoRef(Box<crate::com_atproto::admin::RepoRef<'a>>), 31 33 #[serde(rename = "com.atproto.repo.strongRef")] ··· 58 60 DefsRepoRef(Box<crate::com_atproto::admin::RepoRef<'a>>), 59 61 #[serde(rename = "com.atproto.repo.strongRef")] 60 62 StrongRef(Box<crate::com_atproto::repo::strong_ref::StrongRef<'a>>), 63 + } 64 + 65 + impl jacquard_common::types::xrpc::XrpcRequest for CreateReport<'_> { 66 + const NSID: &'static str = "com.atproto.moderation.createReport"; 67 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 68 + "application/json", 69 + ); 70 + const OUTPUT_ENCODING: &'static str = "application/json"; 71 + type Output<'de> = CreateReportOutput<'de>; 72 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 61 73 } 62 74 63 75 ///Moderation tool information for tracing the source of the action
+2
crates/jacquard-api/src/com_atproto/repo.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.repo.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+13 -1
crates/jacquard-api/src/com_atproto/repo/apply_writes.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.repo.applyWrites 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 55 57 #[jacquard_derive::lexicon] 56 58 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 57 59 #[serde(rename_all = "camelCase")] 58 - pub struct ApplyWritesInput<'a> { 60 + pub struct ApplyWrites<'a> { 59 61 ///The handle or DID of the repo (aka, current account). 60 62 #[serde(borrow)] 61 63 pub repo: jacquard_common::types::ident::AtIdentifier<'a>, ··· 114 116 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 115 117 } 116 118 } 119 + } 120 + 121 + impl jacquard_common::types::xrpc::XrpcRequest for ApplyWrites<'_> { 122 + const NSID: &'static str = "com.atproto.repo.applyWrites"; 123 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 124 + "application/json", 125 + ); 126 + const OUTPUT_ENCODING: &'static str = "application/json"; 127 + type Output<'de> = ApplyWritesOutput<'de>; 128 + type Err<'de> = ApplyWritesError<'de>; 117 129 } 118 130 119 131 ///Operation which updates an existing record.
+13 -1
crates/jacquard-api/src/com_atproto/repo/create_record.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.repo.createRecord 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct CreateRecordInput<'a> { 11 + pub struct CreateRecord<'a> { 10 12 ///The NSID of the record collection. 11 13 #[serde(borrow)] 12 14 pub collection: jacquard_common::types::string::Nsid<'a>, ··· 81 83 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 82 84 } 83 85 } 86 + } 87 + 88 + impl jacquard_common::types::xrpc::XrpcRequest for CreateRecord<'_> { 89 + const NSID: &'static str = "com.atproto.repo.createRecord"; 90 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 91 + "application/json", 92 + ); 93 + const OUTPUT_ENCODING: &'static str = "application/json"; 94 + type Output<'de> = CreateRecordOutput<'de>; 95 + type Err<'de> = CreateRecordError<'de>; 84 96 }
+13 -1
crates/jacquard-api/src/com_atproto/repo/delete_record.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.repo.deleteRecord 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct DeleteRecordInput<'a> { 11 + pub struct DeleteRecord<'a> { 10 12 ///The NSID of the record collection. 11 13 #[serde(borrow)] 12 14 pub collection: jacquard_common::types::string::Nsid<'a>, ··· 68 70 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 69 71 } 70 72 } 73 + } 74 + 75 + impl jacquard_common::types::xrpc::XrpcRequest for DeleteRecord<'_> { 76 + const NSID: &'static str = "com.atproto.repo.deleteRecord"; 77 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 78 + "application/json", 79 + ); 80 + const OUTPUT_ENCODING: &'static str = "application/json"; 81 + type Output<'de> = DeleteRecordOutput<'de>; 82 + type Err<'de> = DeleteRecordError<'de>; 71 83 }
+11 -1
crates/jacquard-api/src/com_atproto/repo/describe_repo.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.repo.describeRepo 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct DescribeRepoParams<'a> { 10 + pub struct DescribeRepo<'a> { 9 11 #[serde(borrow)] 10 12 pub repo: jacquard_common::types::ident::AtIdentifier<'a>, 11 13 } ··· 26 28 pub handle: jacquard_common::types::string::Handle<'a>, 27 29 ///Indicates if handle is currently valid (resolves bi-directionally) 28 30 pub handle_is_correct: bool, 31 + } 32 + 33 + impl jacquard_common::types::xrpc::XrpcRequest for DescribeRepo<'_> { 34 + const NSID: &'static str = "com.atproto.repo.describeRepo"; 35 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 36 + const OUTPUT_ENCODING: &'static str = "application/json"; 37 + type Output<'de> = DescribeRepoOutput<'de>; 38 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 29 39 }
+11 -1
crates/jacquard-api/src/com_atproto/repo/get_record.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.repo.getRecord 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetRecordParams<'a> { 10 + pub struct GetRecord<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cid: std::option::Option<jacquard_common::types::string::Cid<'a>>, ··· 63 65 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 64 66 } 65 67 } 68 + } 69 + 70 + impl jacquard_common::types::xrpc::XrpcRequest for GetRecord<'_> { 71 + const NSID: &'static str = "com.atproto.repo.getRecord"; 72 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 73 + const OUTPUT_ENCODING: &'static str = "application/json"; 74 + type Output<'de> = GetRecordOutput<'de>; 75 + type Err<'de> = GetRecordError<'de>; 66 76 }
+12 -1
crates/jacquard-api/src/com_atproto/repo/import_repo.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.repo.importRepo 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct ImportRepoInput<'a> {} 11 + pub struct ImportRepo<'a> {} 12 + impl jacquard_common::types::xrpc::XrpcRequest for ImportRepo<'_> { 13 + const NSID: &'static str = "com.atproto.repo.importRepo"; 14 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 15 + "application/vnd.ipld.car", 16 + ); 17 + const OUTPUT_ENCODING: &'static str = "application/json"; 18 + type Output<'de> = (); 19 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 20 + }
+21 -2
crates/jacquard-api/src/com_atproto/repo/list_missing_blobs.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.repo.listMissingBlobs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct ListMissingBlobsParams<'a> { 10 + pub struct ListMissingBlobs<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 13 15 pub limit: std::option::Option<i64>, 14 16 } 15 17 18 + impl Default for ListMissingBlobs<'_> { 19 + fn default() -> Self { 20 + Self { 21 + cursor: Default::default(), 22 + limit: Some(500i64), 23 + } 24 + } 25 + } 26 + 16 27 #[jacquard_derive::lexicon] 17 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 29 #[serde(rename_all = "camelCase")] ··· 22 33 #[serde(skip_serializing_if = "std::option::Option::is_none")] 23 34 #[serde(borrow)] 24 35 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 36 + } 37 + 38 + impl jacquard_common::types::xrpc::XrpcRequest for ListMissingBlobs<'_> { 39 + const NSID: &'static str = "com.atproto.repo.listMissingBlobs"; 40 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 41 + const OUTPUT_ENCODING: &'static str = "application/json"; 42 + type Output<'de> = ListMissingBlobsOutput<'de>; 43 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 25 44 } 26 45 27 46 #[jacquard_derive::lexicon]
+24 -2
crates/jacquard-api/src/com_atproto/repo/list_records.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.repo.listRecords 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct ListRecordsParams<'a> { 10 + pub struct ListRecords<'a> { 9 11 #[serde(borrow)] 10 12 pub collection: jacquard_common::types::string::Nsid<'a>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 19 21 pub reverse: std::option::Option<bool>, 20 22 } 21 23 24 + impl Default for ListRecords<'_> { 25 + fn default() -> Self { 26 + Self { 27 + collection: Default::default(), 28 + cursor: Default::default(), 29 + limit: Some(50i64), 30 + repo: Default::default(), 31 + reverse: Default::default(), 32 + } 33 + } 34 + } 35 + 22 36 #[jacquard_derive::lexicon] 23 37 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 24 38 #[serde(rename_all = "camelCase")] ··· 28 42 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 29 43 #[serde(borrow)] 30 44 pub records: Vec<jacquard_common::types::value::Data<'a>>, 45 + } 46 + 47 + impl jacquard_common::types::xrpc::XrpcRequest for ListRecords<'_> { 48 + const NSID: &'static str = "com.atproto.repo.listRecords"; 49 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 50 + const OUTPUT_ENCODING: &'static str = "application/json"; 51 + type Output<'de> = ListRecordsOutput<'de>; 52 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 31 53 } 32 54 33 55 #[jacquard_derive::lexicon]
+13 -1
crates/jacquard-api/src/com_atproto/repo/put_record.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.repo.putRecord 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct PutRecordInput<'a> { 11 + pub struct PutRecord<'a> { 10 12 ///The NSID of the record collection. 11 13 #[serde(borrow)] 12 14 pub collection: jacquard_common::types::string::Nsid<'a>, ··· 81 83 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 82 84 } 83 85 } 86 + } 87 + 88 + impl jacquard_common::types::xrpc::XrpcRequest for PutRecord<'_> { 89 + const NSID: &'static str = "com.atproto.repo.putRecord"; 90 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 91 + "application/json", 92 + ); 93 + const OUTPUT_ENCODING: &'static str = "application/json"; 94 + type Output<'de> = PutRecordOutput<'de>; 95 + type Err<'de> = PutRecordError<'de>; 84 96 }
+2
crates/jacquard-api/src/com_atproto/repo/strong_ref.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.repo.strongRef 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+13 -1
crates/jacquard-api/src/com_atproto/repo/upload_blob.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.repo.uploadBlob 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UploadBlobInput<'a> {} 11 + pub struct UploadBlob<'a> {} 10 12 #[jacquard_derive::lexicon] 11 13 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 12 14 #[serde(rename_all = "camelCase")] 13 15 pub struct UploadBlobOutput<'a> { 14 16 #[serde(borrow)] 15 17 pub blob: jacquard_common::types::blob::Blob<'a>, 18 + } 19 + 20 + impl jacquard_common::types::xrpc::XrpcRequest for UploadBlob<'_> { 21 + const NSID: &'static str = "com.atproto.repo.uploadBlob"; 22 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 23 + "*/*", 24 + ); 25 + const OUTPUT_ENCODING: &'static str = "application/json"; 26 + type Output<'de> = UploadBlobOutput<'de>; 27 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 16 28 }
+2
crates/jacquard-api/src/com_atproto/server.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+14
crates/jacquard-api/src/com_atproto/server/activate_account.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.activateAccount 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 8 + /// XRPC request marker type 9 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 10 + pub struct ActivateAccount; 11 + impl jacquard_common::types::xrpc::XrpcRequest for ActivateAccount { 12 + const NSID: &'static str = "com.atproto.server.activateAccount"; 13 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 14 + "application/json", 15 + ); 16 + const OUTPUT_ENCODING: &'static str = "application/json"; 17 + type Output<'de> = (); 18 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 + }
+13
crates/jacquard-api/src/com_atproto/server/check_account_status.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.checkAccountStatus 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 18 20 #[serde(borrow)] 19 21 pub repo_rev: jacquard_common::CowStr<'a>, 20 22 pub valid_did: bool, 23 + } 24 + 25 + /// XRPC request marker type 26 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 27 + pub struct CheckAccountStatus; 28 + impl jacquard_common::types::xrpc::XrpcRequest for CheckAccountStatus { 29 + const NSID: &'static str = "com.atproto.server.checkAccountStatus"; 30 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 31 + const OUTPUT_ENCODING: &'static str = "application/json"; 32 + type Output<'de> = CheckAccountStatusOutput<'de>; 33 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 21 34 }
+13 -1
crates/jacquard-api/src/com_atproto/server/confirm_email.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.confirmEmail 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct ConfirmEmailInput<'a> { 11 + pub struct ConfirmEmail<'a> { 10 12 #[serde(borrow)] 11 13 pub email: jacquard_common::CowStr<'a>, 12 14 #[serde(borrow)] ··· 71 73 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 72 74 } 73 75 } 76 + } 77 + 78 + impl jacquard_common::types::xrpc::XrpcRequest for ConfirmEmail<'_> { 79 + const NSID: &'static str = "com.atproto.server.confirmEmail"; 80 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 81 + "application/json", 82 + ); 83 + const OUTPUT_ENCODING: &'static str = "application/json"; 84 + type Output<'de> = (); 85 + type Err<'de> = ConfirmEmailError<'de>; 74 86 }
+13 -1
crates/jacquard-api/src/com_atproto/server/create_account.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.createAccount 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct CreateAccountInput<'a> { 11 + pub struct CreateAccount<'a> { 10 12 ///Pre-existing atproto DID, being imported to a new account. 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 14 #[serde(borrow)] ··· 144 146 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 145 147 } 146 148 } 149 + } 150 + 151 + impl jacquard_common::types::xrpc::XrpcRequest for CreateAccount<'_> { 152 + const NSID: &'static str = "com.atproto.server.createAccount"; 153 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 154 + "application/json", 155 + ); 156 + const OUTPUT_ENCODING: &'static str = "application/json"; 157 + type Output<'de> = CreateAccountOutput<'de>; 158 + type Err<'de> = CreateAccountError<'de>; 147 159 }
+13 -1
crates/jacquard-api/src/com_atproto/server/create_app_password.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.createAppPassword 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 19 21 #[jacquard_derive::lexicon] 20 22 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 23 #[serde(rename_all = "camelCase")] 22 - pub struct CreateAppPasswordInput<'a> { 24 + pub struct CreateAppPassword<'a> { 23 25 ///A short name for the App Password, to help distinguish them. 24 26 #[serde(borrow)] 25 27 pub name: jacquard_common::CowStr<'a>, ··· 68 70 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 69 71 } 70 72 } 73 + } 74 + 75 + impl jacquard_common::types::xrpc::XrpcRequest for CreateAppPassword<'_> { 76 + const NSID: &'static str = "com.atproto.server.createAppPassword"; 77 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 78 + "application/json", 79 + ); 80 + const OUTPUT_ENCODING: &'static str = "application/json"; 81 + type Output<'de> = CreateAppPasswordOutput<'de>; 82 + type Err<'de> = CreateAppPasswordError<'de>; 71 83 }
+13 -1
crates/jacquard-api/src/com_atproto/server/create_invite_code.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.createInviteCode 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct CreateInviteCodeInput<'a> { 11 + pub struct CreateInviteCode<'a> { 10 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 11 13 #[serde(borrow)] 12 14 pub for_account: std::option::Option<jacquard_common::types::string::Did<'a>>, ··· 19 21 pub struct CreateInviteCodeOutput<'a> { 20 22 #[serde(borrow)] 21 23 pub code: jacquard_common::CowStr<'a>, 24 + } 25 + 26 + impl jacquard_common::types::xrpc::XrpcRequest for CreateInviteCode<'_> { 27 + const NSID: &'static str = "com.atproto.server.createInviteCode"; 28 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 29 + "application/json", 30 + ); 31 + const OUTPUT_ENCODING: &'static str = "application/json"; 32 + type Output<'de> = CreateInviteCodeOutput<'de>; 33 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 22 34 }
+13 -1
crates/jacquard-api/src/com_atproto/server/create_invite_codes.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.createInviteCodes 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 16 18 #[jacquard_derive::lexicon] 17 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 20 #[serde(rename_all = "camelCase")] 19 - pub struct CreateInviteCodesInput<'a> { 21 + pub struct CreateInviteCodes<'a> { 20 22 pub code_count: i64, 21 23 #[serde(skip_serializing_if = "std::option::Option::is_none")] 22 24 #[serde(borrow)] ··· 30 32 pub struct CreateInviteCodesOutput<'a> { 31 33 #[serde(borrow)] 32 34 pub codes: Vec<jacquard_common::types::value::Data<'a>>, 35 + } 36 + 37 + impl jacquard_common::types::xrpc::XrpcRequest for CreateInviteCodes<'_> { 38 + const NSID: &'static str = "com.atproto.server.createInviteCodes"; 39 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 40 + "application/json", 41 + ); 42 + const OUTPUT_ENCODING: &'static str = "application/json"; 43 + type Output<'de> = CreateInviteCodesOutput<'de>; 44 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 33 45 }
+13 -1
crates/jacquard-api/src/com_atproto/server/create_session.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.createSession 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct CreateSessionInput<'a> { 11 + pub struct CreateSession<'a> { 10 12 ///When true, instead of throwing error for takendown accounts, a valid response with a narrow scoped token will be returned 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 14 pub allow_takendown: std::option::Option<bool>, ··· 90 92 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 91 93 } 92 94 } 95 + } 96 + 97 + impl jacquard_common::types::xrpc::XrpcRequest for CreateSession<'_> { 98 + const NSID: &'static str = "com.atproto.server.createSession"; 99 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 100 + "application/json", 101 + ); 102 + const OUTPUT_ENCODING: &'static str = "application/json"; 103 + type Output<'de> = CreateSessionOutput<'de>; 104 + type Err<'de> = CreateSessionError<'de>; 93 105 }
+13 -1
crates/jacquard-api/src/com_atproto/server/deactivate_account.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.deactivateAccount 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct DeactivateAccountInput<'a> { 11 + pub struct DeactivateAccount<'a> { 10 12 ///A recommendation to server as to how long they should hold onto the deactivated account before deleting. 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 14 pub delete_after: std::option::Option<jacquard_common::types::string::Datetime>, 15 + } 16 + 17 + impl jacquard_common::types::xrpc::XrpcRequest for DeactivateAccount<'_> { 18 + const NSID: &'static str = "com.atproto.server.deactivateAccount"; 19 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 20 + "application/json", 21 + ); 22 + const OUTPUT_ENCODING: &'static str = "application/json"; 23 + type Output<'de> = (); 24 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 13 25 }
+13 -1
crates/jacquard-api/src/com_atproto/server/delete_account.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.deleteAccount 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct DeleteAccountInput<'a> { 11 + pub struct DeleteAccount<'a> { 10 12 #[serde(borrow)] 11 13 pub did: jacquard_common::types::string::Did<'a>, 12 14 #[serde(borrow)] ··· 55 57 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 56 58 } 57 59 } 60 + } 61 + 62 + impl jacquard_common::types::xrpc::XrpcRequest for DeleteAccount<'_> { 63 + const NSID: &'static str = "com.atproto.server.deleteAccount"; 64 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 65 + "application/json", 66 + ); 67 + const OUTPUT_ENCODING: &'static str = "application/json"; 68 + type Output<'de> = (); 69 + type Err<'de> = DeleteAccountError<'de>; 58 70 }
+14
crates/jacquard-api/src/com_atproto/server/delete_session.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.deleteSession 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 8 + /// XRPC request marker type 9 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 10 + pub struct DeleteSession; 11 + impl jacquard_common::types::xrpc::XrpcRequest for DeleteSession { 12 + const NSID: &'static str = "com.atproto.server.deleteSession"; 13 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 14 + "application/json", 15 + ); 16 + const OUTPUT_ENCODING: &'static str = "application/json"; 17 + type Output<'de> = (); 18 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 + }
+13
crates/jacquard-api/src/com_atproto/server/describe_server.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.describeServer 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 47 49 ///If true, a phone verification token must be supplied to create an account on this instance. 48 50 #[serde(skip_serializing_if = "std::option::Option::is_none")] 49 51 pub phone_verification_required: std::option::Option<bool>, 52 + } 53 + 54 + /// XRPC request marker type 55 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 56 + pub struct DescribeServer; 57 + impl jacquard_common::types::xrpc::XrpcRequest for DescribeServer { 58 + const NSID: &'static str = "com.atproto.server.describeServer"; 59 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 60 + const OUTPUT_ENCODING: &'static str = "application/json"; 61 + type Output<'de> = DescribeServerOutput<'de>; 62 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 50 63 }
+12 -2
crates/jacquard-api/src/com_atproto/server/get_account_invite_codes.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.getAccountInviteCodes 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetAccountInviteCodesParams { 10 + pub struct GetAccountInviteCodes { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 pub create_available: std::option::Option<bool>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 51 53 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 52 54 } 53 55 } 56 + } 57 + 58 + impl jacquard_common::types::xrpc::XrpcRequest for GetAccountInviteCodes { 59 + const NSID: &'static str = "com.atproto.server.getAccountInviteCodes"; 60 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 61 + const OUTPUT_ENCODING: &'static str = "application/json"; 62 + type Output<'de> = GetAccountInviteCodesOutput<'de>; 63 + type Err<'de> = GetAccountInviteCodesError<'de>; 54 64 }
+11 -1
crates/jacquard-api/src/com_atproto/server/get_service_auth.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.getServiceAuth 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetServiceAuthParams<'a> { 10 + pub struct GetServiceAuth<'a> { 9 11 #[serde(borrow)] 10 12 pub aud: jacquard_common::types::string::Did<'a>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 55 57 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 56 58 } 57 59 } 60 + } 61 + 62 + impl jacquard_common::types::xrpc::XrpcRequest for GetServiceAuth<'_> { 63 + const NSID: &'static str = "com.atproto.server.getServiceAuth"; 64 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 65 + const OUTPUT_ENCODING: &'static str = "application/json"; 66 + type Output<'de> = GetServiceAuthOutput<'de>; 67 + type Err<'de> = GetServiceAuthError<'de>; 58 68 }
+13
crates/jacquard-api/src/com_atproto/server/get_session.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.getSession 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 27 29 #[serde(skip_serializing_if = "std::option::Option::is_none")] 28 30 #[serde(borrow)] 29 31 pub status: std::option::Option<jacquard_common::CowStr<'a>>, 32 + } 33 + 34 + /// XRPC request marker type 35 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 36 + pub struct GetSession; 37 + impl jacquard_common::types::xrpc::XrpcRequest for GetSession { 38 + const NSID: &'static str = "com.atproto.server.getSession"; 39 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 40 + const OUTPUT_ENCODING: &'static str = "application/json"; 41 + type Output<'de> = GetSessionOutput<'de>; 42 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 30 43 }
+13
crates/jacquard-api/src/com_atproto/server/list_app_passwords.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.listAppPasswords 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 53 55 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 54 56 } 55 57 } 58 + } 59 + 60 + /// XRPC request marker type 61 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 62 + pub struct ListAppPasswords; 63 + impl jacquard_common::types::xrpc::XrpcRequest for ListAppPasswords { 64 + const NSID: &'static str = "com.atproto.server.listAppPasswords"; 65 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 66 + const OUTPUT_ENCODING: &'static str = "application/json"; 67 + type Output<'de> = ListAppPasswordsOutput<'de>; 68 + type Err<'de> = ListAppPasswordsError<'de>; 56 69 }
+15
crates/jacquard-api/src/com_atproto/server/refresh_session.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.refreshSession 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 57 59 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 58 60 } 59 61 } 62 + } 63 + 64 + /// XRPC request marker type 65 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 66 + pub struct RefreshSession; 67 + impl jacquard_common::types::xrpc::XrpcRequest for RefreshSession { 68 + const NSID: &'static str = "com.atproto.server.refreshSession"; 69 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 70 + "application/json", 71 + ); 72 + const OUTPUT_ENCODING: &'static str = "application/json"; 73 + type Output<'de> = RefreshSessionOutput<'de>; 74 + type Err<'de> = RefreshSessionError<'de>; 60 75 }
+14
crates/jacquard-api/src/com_atproto/server/request_account_delete.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.requestAccountDelete 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 8 + /// XRPC request marker type 9 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 10 + pub struct RequestAccountDelete; 11 + impl jacquard_common::types::xrpc::XrpcRequest for RequestAccountDelete { 12 + const NSID: &'static str = "com.atproto.server.requestAccountDelete"; 13 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 14 + "application/json", 15 + ); 16 + const OUTPUT_ENCODING: &'static str = "application/json"; 17 + type Output<'de> = (); 18 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 + }
+14
crates/jacquard-api/src/com_atproto/server/request_email_confirmation.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.requestEmailConfirmation 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 8 + /// XRPC request marker type 9 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 10 + pub struct RequestEmailConfirmation; 11 + impl jacquard_common::types::xrpc::XrpcRequest for RequestEmailConfirmation { 12 + const NSID: &'static str = "com.atproto.server.requestEmailConfirmation"; 13 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 14 + "application/json", 15 + ); 16 + const OUTPUT_ENCODING: &'static str = "application/json"; 17 + type Output<'de> = (); 18 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 + }
+15
crates/jacquard-api/src/com_atproto/server/request_email_update.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.requestEmailUpdate 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 8 10 #[serde(rename_all = "camelCase")] 9 11 pub struct RequestEmailUpdateOutput<'a> { 10 12 pub token_required: bool, 13 + } 14 + 15 + /// XRPC request marker type 16 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 17 + pub struct RequestEmailUpdate; 18 + impl jacquard_common::types::xrpc::XrpcRequest for RequestEmailUpdate { 19 + const NSID: &'static str = "com.atproto.server.requestEmailUpdate"; 20 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 21 + "application/json", 22 + ); 23 + const OUTPUT_ENCODING: &'static str = "application/json"; 24 + type Output<'de> = RequestEmailUpdateOutput<'de>; 25 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 11 26 }
+13 -1
crates/jacquard-api/src/com_atproto/server/request_password_reset.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.requestPasswordReset 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct RequestPasswordResetInput<'a> { 11 + pub struct RequestPasswordReset<'a> { 10 12 #[serde(borrow)] 11 13 pub email: jacquard_common::CowStr<'a>, 14 + } 15 + 16 + impl jacquard_common::types::xrpc::XrpcRequest for RequestPasswordReset<'_> { 17 + const NSID: &'static str = "com.atproto.server.requestPasswordReset"; 18 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 19 + "application/json", 20 + ); 21 + const OUTPUT_ENCODING: &'static str = "application/json"; 22 + type Output<'de> = (); 23 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 12 24 }
+13 -1
crates/jacquard-api/src/com_atproto/server/reserve_signing_key.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.reserveSigningKey 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct ReserveSigningKeyInput<'a> { 11 + pub struct ReserveSigningKey<'a> { 10 12 ///The DID to reserve a key for. 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 14 #[serde(borrow)] ··· 20 22 ///The public key for the reserved signing key, in did:key serialization. 21 23 #[serde(borrow)] 22 24 pub signing_key: jacquard_common::CowStr<'a>, 25 + } 26 + 27 + impl jacquard_common::types::xrpc::XrpcRequest for ReserveSigningKey<'_> { 28 + const NSID: &'static str = "com.atproto.server.reserveSigningKey"; 29 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 30 + "application/json", 31 + ); 32 + const OUTPUT_ENCODING: &'static str = "application/json"; 33 + type Output<'de> = ReserveSigningKeyOutput<'de>; 34 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 23 35 }
+13 -1
crates/jacquard-api/src/com_atproto/server/reset_password.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.resetPassword 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct ResetPasswordInput<'a> { 11 + pub struct ResetPassword<'a> { 10 12 #[serde(borrow)] 11 13 pub password: jacquard_common::CowStr<'a>, 12 14 #[serde(borrow)] ··· 53 55 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 54 56 } 55 57 } 58 + } 59 + 60 + impl jacquard_common::types::xrpc::XrpcRequest for ResetPassword<'_> { 61 + const NSID: &'static str = "com.atproto.server.resetPassword"; 62 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 63 + "application/json", 64 + ); 65 + const OUTPUT_ENCODING: &'static str = "application/json"; 66 + type Output<'de> = (); 67 + type Err<'de> = ResetPasswordError<'de>; 56 68 }
+13 -1
crates/jacquard-api/src/com_atproto/server/revoke_app_password.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.revokeAppPassword 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct RevokeAppPasswordInput<'a> { 11 + pub struct RevokeAppPassword<'a> { 10 12 #[serde(borrow)] 11 13 pub name: jacquard_common::CowStr<'a>, 14 + } 15 + 16 + impl jacquard_common::types::xrpc::XrpcRequest for RevokeAppPassword<'_> { 17 + const NSID: &'static str = "com.atproto.server.revokeAppPassword"; 18 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 19 + "application/json", 20 + ); 21 + const OUTPUT_ENCODING: &'static str = "application/json"; 22 + type Output<'de> = (); 23 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 12 24 }
+13 -1
crates/jacquard-api/src/com_atproto/server/update_email.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.server.updateEmail 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UpdateEmailInput<'a> { 11 + pub struct UpdateEmail<'a> { 10 12 #[serde(borrow)] 11 13 pub email: jacquard_common::CowStr<'a>, 12 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 66 68 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 67 69 } 68 70 } 71 + } 72 + 73 + impl jacquard_common::types::xrpc::XrpcRequest for UpdateEmail<'_> { 74 + const NSID: &'static str = "com.atproto.server.updateEmail"; 75 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 76 + "application/json", 77 + ); 78 + const OUTPUT_ENCODING: &'static str = "application/json"; 79 + type Output<'de> = (); 80 + type Err<'de> = UpdateEmailError<'de>; 69 81 }
+2
crates/jacquard-api/src/com_atproto/sync.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.sync.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+11 -1
crates/jacquard-api/src/com_atproto/sync/get_blob.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.sync.getBlob 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetBlobParams<'a> { 10 + pub struct GetBlob<'a> { 9 11 #[serde(borrow)] 10 12 pub cid: jacquard_common::types::string::Cid<'a>, 11 13 #[serde(borrow)] ··· 83 85 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 84 86 } 85 87 } 88 + } 89 + 90 + impl jacquard_common::types::xrpc::XrpcRequest for GetBlob<'_> { 91 + const NSID: &'static str = "com.atproto.sync.getBlob"; 92 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 93 + const OUTPUT_ENCODING: &'static str = "*/*"; 94 + type Output<'de> = GetBlobOutput<'de>; 95 + type Err<'de> = GetBlobError<'de>; 86 96 }
+11 -1
crates/jacquard-api/src/com_atproto/sync/get_blocks.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.sync.getBlocks 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetBlocksParams<'a> { 10 + pub struct GetBlocks<'a> { 9 11 #[serde(borrow)] 10 12 pub cids: Vec<jacquard_common::types::string::Cid<'a>>, 11 13 #[serde(borrow)] ··· 83 85 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 84 86 } 85 87 } 88 + } 89 + 90 + impl jacquard_common::types::xrpc::XrpcRequest for GetBlocks<'_> { 91 + const NSID: &'static str = "com.atproto.sync.getBlocks"; 92 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 93 + const OUTPUT_ENCODING: &'static str = "application/vnd.ipld.car"; 94 + type Output<'de> = GetBlocksOutput<'de>; 95 + type Err<'de> = GetBlocksError<'de>; 86 96 }
+11 -2
crates/jacquard-api/src/com_atproto/sync/get_checkout.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.sync.getCheckout 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetCheckoutParams<'a> { 10 + pub struct GetCheckout<'a> { 9 11 #[serde(borrow)] 10 12 pub did: jacquard_common::types::string::Did<'a>, 11 13 } ··· 13 15 #[jacquard_derive::lexicon] 14 16 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 15 17 #[serde(rename_all = "camelCase")] 16 - pub struct GetCheckoutOutput<'a> {} 18 + pub struct GetCheckoutOutput<'a> {} 19 + impl jacquard_common::types::xrpc::XrpcRequest for GetCheckout<'_> { 20 + const NSID: &'static str = "com.atproto.sync.getCheckout"; 21 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 22 + const OUTPUT_ENCODING: &'static str = "application/vnd.ipld.car"; 23 + type Output<'de> = GetCheckoutOutput<'de>; 24 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 25 + }
+11 -1
crates/jacquard-api/src/com_atproto/sync/get_head.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.sync.getHead 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetHeadParams<'a> { 10 + pub struct GetHead<'a> { 9 11 #[serde(borrow)] 10 12 pub did: jacquard_common::types::string::Did<'a>, 11 13 } ··· 49 51 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 50 52 } 51 53 } 54 + } 55 + 56 + impl jacquard_common::types::xrpc::XrpcRequest for GetHead<'_> { 57 + const NSID: &'static str = "com.atproto.sync.getHead"; 58 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 59 + const OUTPUT_ENCODING: &'static str = "application/json"; 60 + type Output<'de> = GetHeadOutput<'de>; 61 + type Err<'de> = GetHeadError<'de>; 52 62 }
+11 -1
crates/jacquard-api/src/com_atproto/sync/get_host_status.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.sync.getHostStatus 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetHostStatusParams<'a> { 10 + pub struct GetHostStatus<'a> { 9 11 #[serde(borrow)] 10 12 pub hostname: jacquard_common::CowStr<'a>, 11 13 } ··· 58 60 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 59 61 } 60 62 } 63 + } 64 + 65 + impl jacquard_common::types::xrpc::XrpcRequest for GetHostStatus<'_> { 66 + const NSID: &'static str = "com.atproto.sync.getHostStatus"; 67 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 68 + const OUTPUT_ENCODING: &'static str = "application/json"; 69 + type Output<'de> = GetHostStatusOutput<'de>; 70 + type Err<'de> = GetHostStatusError<'de>; 61 71 }
+11 -1
crates/jacquard-api/src/com_atproto/sync/get_latest_commit.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.sync.getLatestCommit 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetLatestCommitParams<'a> { 10 + pub struct GetLatestCommit<'a> { 9 11 #[serde(borrow)] 10 12 pub did: jacquard_common::types::string::Did<'a>, 11 13 } ··· 77 79 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 78 80 } 79 81 } 82 + } 83 + 84 + impl jacquard_common::types::xrpc::XrpcRequest for GetLatestCommit<'_> { 85 + const NSID: &'static str = "com.atproto.sync.getLatestCommit"; 86 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 87 + const OUTPUT_ENCODING: &'static str = "application/json"; 88 + type Output<'de> = GetLatestCommitOutput<'de>; 89 + type Err<'de> = GetLatestCommitError<'de>; 80 90 }
+11 -1
crates/jacquard-api/src/com_atproto/sync/get_record.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.sync.getRecord 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetRecordParams<'a> { 10 + pub struct GetRecord<'a> { 9 11 #[serde(borrow)] 10 12 pub collection: jacquard_common::types::string::Nsid<'a>, 11 13 #[serde(borrow)] ··· 87 89 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 88 90 } 89 91 } 92 + } 93 + 94 + impl jacquard_common::types::xrpc::XrpcRequest for GetRecord<'_> { 95 + const NSID: &'static str = "com.atproto.sync.getRecord"; 96 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 97 + const OUTPUT_ENCODING: &'static str = "application/vnd.ipld.car"; 98 + type Output<'de> = GetRecordOutput<'de>; 99 + type Err<'de> = GetRecordError<'de>; 90 100 }
+11 -1
crates/jacquard-api/src/com_atproto/sync/get_repo.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.sync.getRepo 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetRepoParams<'a> { 10 + pub struct GetRepo<'a> { 9 11 #[serde(borrow)] 10 12 pub did: jacquard_common::types::string::Did<'a>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 74 76 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 75 77 } 76 78 } 79 + } 80 + 81 + impl jacquard_common::types::xrpc::XrpcRequest for GetRepo<'_> { 82 + const NSID: &'static str = "com.atproto.sync.getRepo"; 83 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 84 + const OUTPUT_ENCODING: &'static str = "application/vnd.ipld.car"; 85 + type Output<'de> = GetRepoOutput<'de>; 86 + type Err<'de> = GetRepoError<'de>; 77 87 }
+11 -1
crates/jacquard-api/src/com_atproto/sync/get_repo_status.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.sync.getRepoStatus 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetRepoStatusParams<'a> { 10 + pub struct GetRepoStatus<'a> { 9 11 #[serde(borrow)] 10 12 pub did: jacquard_common::types::string::Did<'a>, 11 13 } ··· 57 59 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 58 60 } 59 61 } 62 + } 63 + 64 + impl jacquard_common::types::xrpc::XrpcRequest for GetRepoStatus<'_> { 65 + const NSID: &'static str = "com.atproto.sync.getRepoStatus"; 66 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 67 + const OUTPUT_ENCODING: &'static str = "application/json"; 68 + type Output<'de> = GetRepoStatusOutput<'de>; 69 + type Err<'de> = GetRepoStatusError<'de>; 60 70 }
+23 -2
crates/jacquard-api/src/com_atproto/sync/list_blobs.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.sync.listBlobs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct ListBlobsParams<'a> { 10 + pub struct ListBlobs<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 15 17 pub limit: std::option::Option<i64>, 16 18 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 19 pub since: std::option::Option<jacquard_common::types::string::Tid>, 20 + } 21 + 22 + impl Default for ListBlobs<'_> { 23 + fn default() -> Self { 24 + Self { 25 + cursor: Default::default(), 26 + did: Default::default(), 27 + limit: Some(500i64), 28 + since: Default::default(), 29 + } 30 + } 18 31 } 19 32 20 33 #[jacquard_derive::lexicon] ··· 86 99 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 87 100 } 88 101 } 102 + } 103 + 104 + impl jacquard_common::types::xrpc::XrpcRequest for ListBlobs<'_> { 105 + const NSID: &'static str = "com.atproto.sync.listBlobs"; 106 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 107 + const OUTPUT_ENCODING: &'static str = "application/json"; 108 + type Output<'de> = ListBlobsOutput<'de>; 109 + type Err<'de> = ListBlobsError<'de>; 89 110 }
+21 -2
crates/jacquard-api/src/com_atproto/sync/list_hosts.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.sync.listHosts 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 20 22 pub status: std::option::Option<crate::com_atproto::sync::HostStatus<'a>>, 21 23 } 22 24 23 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 25 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 24 26 #[serde(rename_all = "camelCase")] 25 - pub struct ListHostsParams<'a> { 27 + pub struct ListHosts<'a> { 26 28 #[serde(skip_serializing_if = "std::option::Option::is_none")] 27 29 #[serde(borrow)] 28 30 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 30 32 pub limit: std::option::Option<i64>, 31 33 } 32 34 35 + impl Default for ListHosts<'_> { 36 + fn default() -> Self { 37 + Self { 38 + cursor: Default::default(), 39 + limit: Some(200i64), 40 + } 41 + } 42 + } 43 + 33 44 #[jacquard_derive::lexicon] 34 45 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 35 46 #[serde(rename_all = "camelCase")] ··· 40 51 ///Sort order is not formally specified. Recommended order is by time host was first seen by the server, with oldest first. 41 52 #[serde(borrow)] 42 53 pub hosts: Vec<jacquard_common::types::value::Data<'a>>, 54 + } 55 + 56 + impl jacquard_common::types::xrpc::XrpcRequest for ListHosts<'_> { 57 + const NSID: &'static str = "com.atproto.sync.listHosts"; 58 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 59 + const OUTPUT_ENCODING: &'static str = "application/json"; 60 + type Output<'de> = ListHostsOutput<'de>; 61 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 43 62 }
+21 -2
crates/jacquard-api/src/com_atproto/sync/list_repos.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.sync.listRepos 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct ListReposParams<'a> { 10 + pub struct ListRepos<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 13 15 pub limit: std::option::Option<i64>, 14 16 } 15 17 18 + impl Default for ListRepos<'_> { 19 + fn default() -> Self { 20 + Self { 21 + cursor: Default::default(), 22 + limit: Some(500i64), 23 + } 24 + } 25 + } 26 + 16 27 #[jacquard_derive::lexicon] 17 28 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 29 #[serde(rename_all = "camelCase")] ··· 22 33 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 23 34 #[serde(borrow)] 24 35 pub repos: Vec<jacquard_common::types::value::Data<'a>>, 36 + } 37 + 38 + impl jacquard_common::types::xrpc::XrpcRequest for ListRepos<'_> { 39 + const NSID: &'static str = "com.atproto.sync.listRepos"; 40 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 41 + const OUTPUT_ENCODING: &'static str = "application/json"; 42 + type Output<'de> = ListReposOutput<'de>; 43 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 25 44 } 26 45 27 46 #[jacquard_derive::lexicon]
+22 -2
crates/jacquard-api/src/com_atproto/sync/list_repos_by_collection.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.sync.listReposByCollection 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct ListReposByCollectionParams<'a> { 10 + pub struct ListReposByCollection<'a> { 9 11 #[serde(borrow)] 10 12 pub collection: jacquard_common::types::string::Nsid<'a>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 15 17 pub limit: std::option::Option<i64>, 16 18 } 17 19 20 + impl Default for ListReposByCollection<'_> { 21 + fn default() -> Self { 22 + Self { 23 + collection: Default::default(), 24 + cursor: Default::default(), 25 + limit: Some(500i64), 26 + } 27 + } 28 + } 29 + 18 30 #[jacquard_derive::lexicon] 19 31 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 32 #[serde(rename_all = "camelCase")] ··· 24 36 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 25 37 #[serde(borrow)] 26 38 pub repos: Vec<jacquard_common::types::value::Data<'a>>, 39 + } 40 + 41 + impl jacquard_common::types::xrpc::XrpcRequest for ListReposByCollection<'_> { 42 + const NSID: &'static str = "com.atproto.sync.listReposByCollection"; 43 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 44 + const OUTPUT_ENCODING: &'static str = "application/json"; 45 + type Output<'de> = ListReposByCollectionOutput<'de>; 46 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 27 47 } 28 48 29 49 #[jacquard_derive::lexicon]
+13 -1
crates/jacquard-api/src/com_atproto/sync/notify_of_update.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.sync.notifyOfUpdate 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct NotifyOfUpdateInput<'a> { 11 + pub struct NotifyOfUpdate<'a> { 10 12 ///Hostname of the current service (usually a PDS) that is notifying of update. 11 13 #[serde(borrow)] 12 14 pub hostname: jacquard_common::CowStr<'a>, 15 + } 16 + 17 + impl jacquard_common::types::xrpc::XrpcRequest for NotifyOfUpdate<'_> { 18 + const NSID: &'static str = "com.atproto.sync.notifyOfUpdate"; 19 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 20 + "application/json", 21 + ); 22 + const OUTPUT_ENCODING: &'static str = "application/json"; 23 + type Output<'de> = (); 24 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 13 25 }
+13 -1
crates/jacquard-api/src/com_atproto/sync/request_crawl.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.sync.requestCrawl 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct RequestCrawlInput<'a> { 11 + pub struct RequestCrawl<'a> { 10 12 ///Hostname of the current service (eg, PDS) that is requesting to be crawled. 11 13 #[serde(borrow)] 12 14 pub hostname: jacquard_common::CowStr<'a>, ··· 43 45 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 44 46 } 45 47 } 48 + } 49 + 50 + impl jacquard_common::types::xrpc::XrpcRequest for RequestCrawl<'_> { 51 + const NSID: &'static str = "com.atproto.sync.requestCrawl"; 52 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 53 + "application/json", 54 + ); 55 + const OUTPUT_ENCODING: &'static str = "application/json"; 56 + type Output<'de> = (); 57 + type Err<'de> = RequestCrawlError<'de>; 46 58 }
+3 -1
crates/jacquard-api/src/com_atproto/sync/subscribe_repos.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.sync.subscribeRepos 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 83 85 84 86 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 85 87 #[serde(rename_all = "camelCase")] 86 - pub struct SubscribeReposParams { 88 + pub struct SubscribeRepos { 87 89 #[serde(skip_serializing_if = "std::option::Option::is_none")] 88 90 pub cursor: std::option::Option<i64>, 89 91 }
+13 -2
crates/jacquard-api/src/com_atproto/temp/add_reserved_handle.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.temp.addReservedHandle 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct AddReservedHandleInput<'a> { 11 + pub struct AddReservedHandle<'a> { 10 12 #[serde(borrow)] 11 13 pub handle: jacquard_common::CowStr<'a>, 12 14 } ··· 14 16 #[jacquard_derive::lexicon] 15 17 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 16 18 #[serde(rename_all = "camelCase")] 17 - pub struct AddReservedHandleOutput<'a> {} 19 + pub struct AddReservedHandleOutput<'a> {} 20 + impl jacquard_common::types::xrpc::XrpcRequest for AddReservedHandle<'_> { 21 + const NSID: &'static str = "com.atproto.temp.addReservedHandle"; 22 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 23 + "application/json", 24 + ); 25 + const OUTPUT_ENCODING: &'static str = "application/json"; 26 + type Output<'de> = AddReservedHandleOutput<'de>; 27 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 28 + }
+11 -1
crates/jacquard-api/src/com_atproto/temp/check_handle_availability.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.temp.checkHandleAvailability 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct CheckHandleAvailabilityParams<'a> { 10 + pub struct CheckHandleAvailability<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 pub birth_date: std::option::Option<jacquard_common::types::string::Datetime>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 63 65 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 64 66 } 65 67 } 68 + } 69 + 70 + impl jacquard_common::types::xrpc::XrpcRequest for CheckHandleAvailability<'_> { 71 + const NSID: &'static str = "com.atproto.temp.checkHandleAvailability"; 72 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 73 + const OUTPUT_ENCODING: &'static str = "application/json"; 74 + type Output<'de> = CheckHandleAvailabilityOutput<'de>; 75 + type Err<'de> = CheckHandleAvailabilityError<'de>; 66 76 } 67 77 68 78 ///Indicates the provided handle is available.
+13
crates/jacquard-api/src/com_atproto/temp/check_signup_queue.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.temp.checkSignupQueue 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 12 14 pub estimated_time_ms: std::option::Option<i64>, 13 15 #[serde(skip_serializing_if = "std::option::Option::is_none")] 14 16 pub place_in_queue: std::option::Option<i64>, 17 + } 18 + 19 + /// XRPC request marker type 20 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 21 + pub struct CheckSignupQueue; 22 + impl jacquard_common::types::xrpc::XrpcRequest for CheckSignupQueue { 23 + const NSID: &'static str = "com.atproto.temp.checkSignupQueue"; 24 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 25 + const OUTPUT_ENCODING: &'static str = "application/json"; 26 + type Output<'de> = CheckSignupQueueOutput<'de>; 27 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 15 28 }
+11 -1
crates/jacquard-api/src/com_atproto/temp/dereference_scope.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.temp.dereferenceScope 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct DereferenceScopeParams<'a> { 10 + pub struct DereferenceScope<'a> { 9 11 #[serde(borrow)] 10 12 pub scope: jacquard_common::CowStr<'a>, 11 13 } ··· 51 53 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 52 54 } 53 55 } 56 + } 57 + 58 + impl jacquard_common::types::xrpc::XrpcRequest for DereferenceScope<'_> { 59 + const NSID: &'static str = "com.atproto.temp.dereferenceScope"; 60 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 61 + const OUTPUT_ENCODING: &'static str = "application/json"; 62 + type Output<'de> = DereferenceScopeOutput<'de>; 63 + type Err<'de> = DereferenceScopeError<'de>; 54 64 }
+12 -2
crates/jacquard-api/src/com_atproto/temp/fetch_labels.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.temp.fetchLabels 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct FetchLabelsParams { 10 + pub struct FetchLabels { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 pub limit: std::option::Option<i64>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 18 20 pub struct FetchLabelsOutput<'a> { 19 21 #[serde(borrow)] 20 22 pub labels: Vec<crate::com_atproto::label::Label<'a>>, 23 + } 24 + 25 + impl jacquard_common::types::xrpc::XrpcRequest for FetchLabels { 26 + const NSID: &'static str = "com.atproto.temp.fetchLabels"; 27 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 28 + const OUTPUT_ENCODING: &'static str = "application/json"; 29 + type Output<'de> = FetchLabelsOutput<'de>; 30 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 21 31 }
+13 -1
crates/jacquard-api/src/com_atproto/temp/request_phone_verification.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.temp.requestPhoneVerification 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct RequestPhoneVerificationInput<'a> { 11 + pub struct RequestPhoneVerification<'a> { 10 12 #[serde(borrow)] 11 13 pub phone_number: jacquard_common::CowStr<'a>, 14 + } 15 + 16 + impl jacquard_common::types::xrpc::XrpcRequest for RequestPhoneVerification<'_> { 17 + const NSID: &'static str = "com.atproto.temp.requestPhoneVerification"; 18 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 19 + "application/json", 20 + ); 21 + const OUTPUT_ENCODING: &'static str = "application/json"; 22 + type Output<'de> = (); 23 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 12 24 }
+13 -1
crates/jacquard-api/src/com_atproto/temp/revoke_account_credentials.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: com.atproto.temp.revokeAccountCredentials 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct RevokeAccountCredentialsInput<'a> { 11 + pub struct RevokeAccountCredentials<'a> { 10 12 #[serde(borrow)] 11 13 pub account: jacquard_common::types::ident::AtIdentifier<'a>, 14 + } 15 + 16 + impl jacquard_common::types::xrpc::XrpcRequest for RevokeAccountCredentials<'_> { 17 + const NSID: &'static str = "com.atproto.temp.revokeAccountCredentials"; 18 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 19 + "application/json", 20 + ); 21 + const OUTPUT_ENCODING: &'static str = "application/json"; 22 + type Output<'de> = (); 23 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 12 24 }
+2
crates/jacquard-api/src/tools_ozone/communication.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.communication.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+13 -1
crates/jacquard-api/src/tools_ozone/communication/create_template.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.communication.createTemplate 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct CreateTemplateInput<'a> { 11 + pub struct CreateTemplate<'a> { 10 12 ///Content of the template, markdown supported, can contain variable placeholders. 11 13 #[serde(borrow)] 12 14 pub content_markdown: jacquard_common::CowStr<'a>, ··· 65 67 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 66 68 } 67 69 } 70 + } 71 + 72 + impl jacquard_common::types::xrpc::XrpcRequest for CreateTemplate<'_> { 73 + const NSID: &'static str = "tools.ozone.communication.createTemplate"; 74 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 75 + "application/json", 76 + ); 77 + const OUTPUT_ENCODING: &'static str = "application/json"; 78 + type Output<'de> = CreateTemplateOutput<'de>; 79 + type Err<'de> = CreateTemplateError<'de>; 68 80 }
+13 -1
crates/jacquard-api/src/tools_ozone/communication/delete_template.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.communication.deleteTemplate 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct DeleteTemplateInput<'a> { 11 + pub struct DeleteTemplate<'a> { 10 12 #[serde(borrow)] 11 13 pub id: jacquard_common::CowStr<'a>, 14 + } 15 + 16 + impl jacquard_common::types::xrpc::XrpcRequest for DeleteTemplate<'_> { 17 + const NSID: &'static str = "tools.ozone.communication.deleteTemplate"; 18 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 19 + "application/json", 20 + ); 21 + const OUTPUT_ENCODING: &'static str = "application/json"; 22 + type Output<'de> = (); 23 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 12 24 }
+13
crates/jacquard-api/src/tools_ozone/communication/list_templates.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.communication.listTemplates 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 11 13 pub communication_templates: Vec< 12 14 crate::tools_ozone::communication::TemplateView<'a>, 13 15 >, 16 + } 17 + 18 + /// XRPC request marker type 19 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 20 + pub struct ListTemplates; 21 + impl jacquard_common::types::xrpc::XrpcRequest for ListTemplates { 22 + const NSID: &'static str = "tools.ozone.communication.listTemplates"; 23 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 24 + const OUTPUT_ENCODING: &'static str = "application/json"; 25 + type Output<'de> = ListTemplatesOutput<'de>; 26 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 14 27 }
+13 -1
crates/jacquard-api/src/tools_ozone/communication/update_template.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.communication.updateTemplate 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UpdateTemplateInput<'a> { 11 + pub struct UpdateTemplate<'a> { 10 12 ///Content of the template, markdown supported, can contain variable placeholders. 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 14 #[serde(borrow)] ··· 73 75 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 74 76 } 75 77 } 78 + } 79 + 80 + impl jacquard_common::types::xrpc::XrpcRequest for UpdateTemplate<'_> { 81 + const NSID: &'static str = "tools.ozone.communication.updateTemplate"; 82 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 83 + "application/json", 84 + ); 85 + const OUTPUT_ENCODING: &'static str = "application/json"; 86 + type Output<'de> = UpdateTemplateOutput<'de>; 87 + type Err<'de> = UpdateTemplateError<'de>; 76 88 }
+23 -2
crates/jacquard-api/src/tools_ozone/hosting/get_account_history.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.hosting.getAccountHistory 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 55 57 pub handle: jacquard_common::types::string::Handle<'a>, 56 58 } 57 59 58 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 60 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 59 61 #[serde(rename_all = "camelCase")] 60 - pub struct GetAccountHistoryParams<'a> { 62 + pub struct GetAccountHistory<'a> { 61 63 #[serde(skip_serializing_if = "std::option::Option::is_none")] 62 64 #[serde(borrow)] 63 65 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 70 72 pub limit: std::option::Option<i64>, 71 73 } 72 74 75 + impl Default for GetAccountHistory<'_> { 76 + fn default() -> Self { 77 + Self { 78 + cursor: Default::default(), 79 + did: Default::default(), 80 + events: Default::default(), 81 + limit: Some(50i64), 82 + } 83 + } 84 + } 85 + 73 86 #[jacquard_derive::lexicon] 74 87 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 75 88 #[serde(rename_all = "camelCase")] ··· 79 92 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 80 93 #[serde(borrow)] 81 94 pub events: Vec<jacquard_common::types::value::Data<'a>>, 95 + } 96 + 97 + impl jacquard_common::types::xrpc::XrpcRequest for GetAccountHistory<'_> { 98 + const NSID: &'static str = "tools.ozone.hosting.getAccountHistory"; 99 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 100 + const OUTPUT_ENCODING: &'static str = "application/json"; 101 + type Output<'de> = GetAccountHistoryOutput<'de>; 102 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 82 103 } 83 104 84 105 #[jacquard_derive::lexicon]
+2
crates/jacquard-api/src/tools_ozone/moderation.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.moderation.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+17 -5
crates/jacquard-api/src/tools_ozone/moderation/emit_event.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.moderation.emitEvent 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct EmitEventInput<'a> { 11 + pub struct EmitEvent<'a> { 10 12 #[serde(borrow)] 11 13 pub created_by: jacquard_common::types::string::Did<'a>, 12 14 #[serde(borrow)] 13 - pub event: EmitEventInputRecordEvent<'a>, 15 + pub event: EmitEventRecordEvent<'a>, 14 16 ///An optional external ID for the event, used to deduplicate events from external systems. Fails when an event of same type with the same external ID exists for the same subject. 15 17 #[serde(skip_serializing_if = "std::option::Option::is_none")] 16 18 #[serde(borrow)] ··· 19 21 #[serde(borrow)] 20 22 pub mod_tool: std::option::Option<crate::tools_ozone::moderation::ModTool<'a>>, 21 23 #[serde(borrow)] 22 - pub subject: EmitEventInputRecordSubject<'a>, 24 + pub subject: EmitEventRecordSubject<'a>, 23 25 #[serde(skip_serializing_if = "std::option::Option::is_none")] 24 26 #[serde(borrow)] 25 27 pub subject_blob_cids: std::option::Option< ··· 31 33 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 32 34 #[serde(tag = "$type")] 33 35 #[serde(bound(deserialize = "'de: 'a"))] 34 - pub enum EmitEventInputRecordEvent<'a> { 36 + pub enum EmitEventRecordEvent<'a> { 35 37 #[serde(rename = "tools.ozone.moderation.defs#modEventTakedown")] 36 38 DefsModEventTakedown(Box<crate::tools_ozone::moderation::ModEventTakedown<'a>>), 37 39 #[serde(rename = "tools.ozone.moderation.defs#modEventAcknowledge")] ··· 98 100 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 99 101 #[serde(tag = "$type")] 100 102 #[serde(bound(deserialize = "'de: 'a"))] 101 - pub enum EmitEventInputRecordSubject<'a> { 103 + pub enum EmitEventRecordSubject<'a> { 102 104 #[serde(rename = "com.atproto.admin.defs#repoRef")] 103 105 DefsRepoRef(Box<crate::com_atproto::admin::RepoRef<'a>>), 104 106 #[serde(rename = "com.atproto.repo.strongRef")] ··· 155 157 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 156 158 } 157 159 } 160 + } 161 + 162 + impl jacquard_common::types::xrpc::XrpcRequest for EmitEvent<'_> { 163 + const NSID: &'static str = "tools.ozone.moderation.emitEvent"; 164 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 165 + "application/json", 166 + ); 167 + const OUTPUT_ENCODING: &'static str = "application/json"; 168 + type Output<'de> = EmitEventOutput<'de>; 169 + type Err<'de> = EmitEventError<'de>; 158 170 }
+11 -1
crates/jacquard-api/src/tools_ozone/moderation/get_account_timeline.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.moderation.getAccountTimeline 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetAccountTimelineParams<'a> { 10 + pub struct GetAccountTimeline<'a> { 9 11 #[serde(borrow)] 10 12 pub did: jacquard_common::types::string::Did<'a>, 11 13 } ··· 49 51 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 50 52 } 51 53 } 54 + } 55 + 56 + impl jacquard_common::types::xrpc::XrpcRequest for GetAccountTimeline<'_> { 57 + const NSID: &'static str = "tools.ozone.moderation.getAccountTimeline"; 58 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 59 + const OUTPUT_ENCODING: &'static str = "application/json"; 60 + type Output<'de> = GetAccountTimelineOutput<'de>; 61 + type Err<'de> = GetAccountTimelineError<'de>; 52 62 } 53 63 54 64 #[jacquard_derive::lexicon]
+11 -1
crates/jacquard-api/src/tools_ozone/moderation/get_event.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.moderation.getEvent 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetEventParams { 10 + pub struct GetEvent { 9 11 pub id: i64, 10 12 } 11 13 ··· 16 18 #[serde(flatten)] 17 19 #[serde(borrow)] 18 20 pub value: crate::tools_ozone::moderation::ModEventViewDetail<'a>, 21 + } 22 + 23 + impl jacquard_common::types::xrpc::XrpcRequest for GetEvent { 24 + const NSID: &'static str = "tools.ozone.moderation.getEvent"; 25 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 26 + const OUTPUT_ENCODING: &'static str = "application/json"; 27 + type Output<'de> = GetEventOutput<'de>; 28 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 29 }
+11 -1
crates/jacquard-api/src/tools_ozone/moderation/get_record.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.moderation.getRecord 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetRecordParams<'a> { 10 + pub struct GetRecord<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cid: std::option::Option<jacquard_common::types::string::Cid<'a>>, ··· 53 55 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 54 56 } 55 57 } 58 + } 59 + 60 + impl jacquard_common::types::xrpc::XrpcRequest for GetRecord<'_> { 61 + const NSID: &'static str = "tools.ozone.moderation.getRecord"; 62 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 63 + const OUTPUT_ENCODING: &'static str = "application/json"; 64 + type Output<'de> = GetRecordOutput<'de>; 65 + type Err<'de> = GetRecordError<'de>; 56 66 }
+11 -1
crates/jacquard-api/src/tools_ozone/moderation/get_records.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.moderation.getRecords 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetRecordsParams<'a> { 10 + pub struct GetRecords<'a> { 9 11 #[serde(borrow)] 10 12 pub uris: Vec<jacquard_common::types::string::AtUri<'a>>, 11 13 } ··· 16 18 pub struct GetRecordsOutput<'a> { 17 19 #[serde(borrow)] 18 20 pub records: Vec<jacquard_common::types::value::Data<'a>>, 21 + } 22 + 23 + impl jacquard_common::types::xrpc::XrpcRequest for GetRecords<'_> { 24 + const NSID: &'static str = "tools.ozone.moderation.getRecords"; 25 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 26 + const OUTPUT_ENCODING: &'static str = "application/json"; 27 + type Output<'de> = GetRecordsOutput<'de>; 28 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 29 }
+11 -1
crates/jacquard-api/src/tools_ozone/moderation/get_repo.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.moderation.getRepo 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetRepoParams<'a> { 10 + pub struct GetRepo<'a> { 9 11 #[serde(borrow)] 10 12 pub did: jacquard_common::types::string::Did<'a>, 11 13 } ··· 50 52 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 51 53 } 52 54 } 55 + } 56 + 57 + impl jacquard_common::types::xrpc::XrpcRequest for GetRepo<'_> { 58 + const NSID: &'static str = "tools.ozone.moderation.getRepo"; 59 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 60 + const OUTPUT_ENCODING: &'static str = "application/json"; 61 + type Output<'de> = GetRepoOutput<'de>; 62 + type Err<'de> = GetRepoError<'de>; 53 63 }
+11 -1
crates/jacquard-api/src/tools_ozone/moderation/get_reporter_stats.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.moderation.getReporterStats 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetReporterStatsParams<'a> { 10 + pub struct GetReporterStats<'a> { 9 11 #[serde(borrow)] 10 12 pub dids: Vec<jacquard_common::types::string::Did<'a>>, 11 13 } ··· 16 18 pub struct GetReporterStatsOutput<'a> { 17 19 #[serde(borrow)] 18 20 pub stats: Vec<crate::tools_ozone::moderation::ReporterStats<'a>>, 21 + } 22 + 23 + impl jacquard_common::types::xrpc::XrpcRequest for GetReporterStats<'_> { 24 + const NSID: &'static str = "tools.ozone.moderation.getReporterStats"; 25 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 26 + const OUTPUT_ENCODING: &'static str = "application/json"; 27 + type Output<'de> = GetReporterStatsOutput<'de>; 28 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 29 }
+11 -1
crates/jacquard-api/src/tools_ozone/moderation/get_repos.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.moderation.getRepos 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetReposParams<'a> { 10 + pub struct GetRepos<'a> { 9 11 #[serde(borrow)] 10 12 pub dids: Vec<jacquard_common::types::string::Did<'a>>, 11 13 } ··· 16 18 pub struct GetReposOutput<'a> { 17 19 #[serde(borrow)] 18 20 pub repos: Vec<jacquard_common::types::value::Data<'a>>, 21 + } 22 + 23 + impl jacquard_common::types::xrpc::XrpcRequest for GetRepos<'_> { 24 + const NSID: &'static str = "tools.ozone.moderation.getRepos"; 25 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 26 + const OUTPUT_ENCODING: &'static str = "application/json"; 27 + type Output<'de> = GetReposOutput<'de>; 28 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 29 }
+11 -1
crates/jacquard-api/src/tools_ozone/moderation/get_subjects.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.moderation.getSubjects 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetSubjectsParams<'a> { 10 + pub struct GetSubjects<'a> { 9 11 #[serde(borrow)] 10 12 pub subjects: Vec<jacquard_common::CowStr<'a>>, 11 13 } ··· 16 18 pub struct GetSubjectsOutput<'a> { 17 19 #[serde(borrow)] 18 20 pub subjects: Vec<crate::tools_ozone::moderation::SubjectView<'a>>, 21 + } 22 + 23 + impl jacquard_common::types::xrpc::XrpcRequest for GetSubjects<'_> { 24 + const NSID: &'static str = "tools.ozone.moderation.getSubjects"; 25 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 26 + const OUTPUT_ENCODING: &'static str = "application/json"; 27 + type Output<'de> = GetSubjectsOutput<'de>; 28 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 29 }
+41 -2
crates/jacquard-api/src/tools_ozone/moderation/query_events.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.moderation.queryEvents 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct QueryEventsParams<'a> { 10 + pub struct QueryEvents<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub added_labels: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, ··· 69 71 pub types: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 70 72 } 71 73 74 + impl Default for QueryEvents<'_> { 75 + fn default() -> Self { 76 + Self { 77 + added_labels: Default::default(), 78 + added_tags: Default::default(), 79 + age_assurance_state: Default::default(), 80 + batch_id: Default::default(), 81 + collections: Default::default(), 82 + comment: Default::default(), 83 + created_after: Default::default(), 84 + created_before: Default::default(), 85 + created_by: Default::default(), 86 + cursor: Default::default(), 87 + has_comment: Default::default(), 88 + include_all_user_records: Some(false), 89 + limit: Some(50i64), 90 + mod_tool: Default::default(), 91 + policies: Default::default(), 92 + removed_labels: Default::default(), 93 + removed_tags: Default::default(), 94 + report_types: Default::default(), 95 + sort_direction: Some(jacquard_common::CowStr::from("desc")), 96 + subject: Default::default(), 97 + subject_type: Default::default(), 98 + types: Default::default(), 99 + } 100 + } 101 + } 102 + 72 103 #[jacquard_derive::lexicon] 73 104 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 74 105 #[serde(rename_all = "camelCase")] ··· 78 109 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 79 110 #[serde(borrow)] 80 111 pub events: Vec<crate::tools_ozone::moderation::ModEventView<'a>>, 112 + } 113 + 114 + impl jacquard_common::types::xrpc::XrpcRequest for QueryEvents<'_> { 115 + const NSID: &'static str = "tools.ozone.moderation.queryEvents"; 116 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 117 + const OUTPUT_ENCODING: &'static str = "application/json"; 118 + type Output<'de> = QueryEventsOutput<'de>; 119 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 81 120 }
+54 -2
crates/jacquard-api/src/tools_ozone/moderation/query_statuses.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.moderation.queryStatuses 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct QueryStatusesParams<'a> { 10 + pub struct QueryStatuses<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub age_assurance_state: std::option::Option<jacquard_common::CowStr<'a>>, ··· 103 105 pub takendown: std::option::Option<bool>, 104 106 } 105 107 108 + impl Default for QueryStatuses<'_> { 109 + fn default() -> Self { 110 + Self { 111 + age_assurance_state: Default::default(), 112 + appealed: Default::default(), 113 + collections: Default::default(), 114 + comment: Default::default(), 115 + cursor: Default::default(), 116 + exclude_tags: Default::default(), 117 + hosting_deleted_after: Default::default(), 118 + hosting_deleted_before: Default::default(), 119 + hosting_statuses: Default::default(), 120 + hosting_updated_after: Default::default(), 121 + hosting_updated_before: Default::default(), 122 + ignore_subjects: Default::default(), 123 + include_all_user_records: Default::default(), 124 + include_muted: Default::default(), 125 + last_reviewed_by: Default::default(), 126 + limit: Some(50i64), 127 + min_account_suspend_count: Default::default(), 128 + min_priority_score: Default::default(), 129 + min_reported_records_count: Default::default(), 130 + min_takendown_records_count: Default::default(), 131 + only_muted: Default::default(), 132 + queue_count: Default::default(), 133 + queue_index: Default::default(), 134 + queue_seed: Default::default(), 135 + reported_after: Default::default(), 136 + reported_before: Default::default(), 137 + review_state: Default::default(), 138 + reviewed_after: Default::default(), 139 + reviewed_before: Default::default(), 140 + sort_direction: Some(jacquard_common::CowStr::from("desc")), 141 + sort_field: Some(jacquard_common::CowStr::from("lastReportedAt")), 142 + subject: Default::default(), 143 + subject_type: Default::default(), 144 + tags: Default::default(), 145 + takendown: Default::default(), 146 + } 147 + } 148 + } 149 + 106 150 #[jacquard_derive::lexicon] 107 151 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 108 152 #[serde(rename_all = "camelCase")] ··· 112 156 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 113 157 #[serde(borrow)] 114 158 pub subject_statuses: Vec<crate::tools_ozone::moderation::SubjectStatusView<'a>>, 159 + } 160 + 161 + impl jacquard_common::types::xrpc::XrpcRequest for QueryStatuses<'_> { 162 + const NSID: &'static str = "tools.ozone.moderation.queryStatuses"; 163 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 164 + const OUTPUT_ENCODING: &'static str = "application/json"; 165 + type Output<'de> = QueryStatusesOutput<'de>; 166 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 115 167 }
+23 -2
crates/jacquard-api/src/tools_ozone/moderation/search_repos.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.moderation.searchRepos 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct SearchReposParams<'a> { 10 + pub struct SearchRepos<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 19 21 pub term: std::option::Option<jacquard_common::CowStr<'a>>, 20 22 } 21 23 24 + impl Default for SearchRepos<'_> { 25 + fn default() -> Self { 26 + Self { 27 + cursor: Default::default(), 28 + limit: Some(50i64), 29 + q: Default::default(), 30 + term: Default::default(), 31 + } 32 + } 33 + } 34 + 22 35 #[jacquard_derive::lexicon] 23 36 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 24 37 #[serde(rename_all = "camelCase")] ··· 28 41 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 29 42 #[serde(borrow)] 30 43 pub repos: Vec<crate::tools_ozone::moderation::RepoView<'a>>, 44 + } 45 + 46 + impl jacquard_common::types::xrpc::XrpcRequest for SearchRepos<'_> { 47 + const NSID: &'static str = "tools.ozone.moderation.searchRepos"; 48 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 49 + const OUTPUT_ENCODING: &'static str = "application/json"; 50 + type Output<'de> = SearchReposOutput<'de>; 51 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 31 52 }
+2
crates/jacquard-api/src/tools_ozone/report.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.report.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+2
crates/jacquard-api/src/tools_ozone/safelink.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.safelink.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+13 -1
crates/jacquard-api/src/tools_ozone/safelink/add_rule.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.safelink.addRule 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct AddRuleInput<'a> { 11 + pub struct AddRule<'a> { 10 12 #[serde(borrow)] 11 13 pub action: crate::tools_ozone::safelink::ActionType<'a>, 12 14 ///Optional comment about the decision ··· 77 79 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 78 80 } 79 81 } 82 + } 83 + 84 + impl jacquard_common::types::xrpc::XrpcRequest for AddRule<'_> { 85 + const NSID: &'static str = "tools.ozone.safelink.addRule"; 86 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 87 + "application/json", 88 + ); 89 + const OUTPUT_ENCODING: &'static str = "application/json"; 90 + type Output<'de> = AddRuleOutput<'de>; 91 + type Err<'de> = AddRuleError<'de>; 80 92 }
+13 -1
crates/jacquard-api/src/tools_ozone/safelink/query_events.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.safelink.queryEvents 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct QueryEventsInput<'a> { 11 + pub struct QueryEvents<'a> { 10 12 ///Cursor for pagination 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 14 #[serde(borrow)] ··· 38 40 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 39 41 #[serde(borrow)] 40 42 pub events: Vec<crate::tools_ozone::safelink::Event<'a>>, 43 + } 44 + 45 + impl jacquard_common::types::xrpc::XrpcRequest for QueryEvents<'_> { 46 + const NSID: &'static str = "tools.ozone.safelink.queryEvents"; 47 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 48 + "application/json", 49 + ); 50 + const OUTPUT_ENCODING: &'static str = "application/json"; 51 + type Output<'de> = QueryEventsOutput<'de>; 52 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 41 53 }
+13 -1
crates/jacquard-api/src/tools_ozone/safelink/query_rules.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.safelink.queryRules 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct QueryRulesInput<'a> { 11 + pub struct QueryRules<'a> { 10 12 ///Filter by action types 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 14 #[serde(borrow)] ··· 50 52 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 51 53 #[serde(borrow)] 52 54 pub rules: Vec<crate::tools_ozone::safelink::UrlRule<'a>>, 55 + } 56 + 57 + impl jacquard_common::types::xrpc::XrpcRequest for QueryRules<'_> { 58 + const NSID: &'static str = "tools.ozone.safelink.queryRules"; 59 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 60 + "application/json", 61 + ); 62 + const OUTPUT_ENCODING: &'static str = "application/json"; 63 + type Output<'de> = QueryRulesOutput<'de>; 64 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 53 65 }
+13 -1
crates/jacquard-api/src/tools_ozone/safelink/remove_rule.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.safelink.removeRule 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct RemoveRuleInput<'a> { 11 + pub struct RemoveRule<'a> { 10 12 ///Optional comment about why the rule is being removed 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 14 #[serde(borrow)] ··· 63 65 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 64 66 } 65 67 } 68 + } 69 + 70 + impl jacquard_common::types::xrpc::XrpcRequest for RemoveRule<'_> { 71 + const NSID: &'static str = "tools.ozone.safelink.removeRule"; 72 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 73 + "application/json", 74 + ); 75 + const OUTPUT_ENCODING: &'static str = "application/json"; 76 + type Output<'de> = RemoveRuleOutput<'de>; 77 + type Err<'de> = RemoveRuleError<'de>; 66 78 }
+13 -1
crates/jacquard-api/src/tools_ozone/safelink/update_rule.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.safelink.updateRule 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UpdateRuleInput<'a> { 11 + pub struct UpdateRule<'a> { 10 12 #[serde(borrow)] 11 13 pub action: crate::tools_ozone::safelink::ActionType<'a>, 12 14 ///Optional comment about the update ··· 67 69 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 68 70 } 69 71 } 72 + } 73 + 74 + impl jacquard_common::types::xrpc::XrpcRequest for UpdateRule<'_> { 75 + const NSID: &'static str = "tools.ozone.safelink.updateRule"; 76 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 77 + "application/json", 78 + ); 79 + const OUTPUT_ENCODING: &'static str = "application/json"; 80 + type Output<'de> = UpdateRuleOutput<'de>; 81 + type Err<'de> = UpdateRuleError<'de>; 70 82 }
+13
crates/jacquard-api/src/tools_ozone/server/get_config.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.server.getConfig 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 26 28 #[serde(skip_serializing_if = "std::option::Option::is_none")] 27 29 #[serde(borrow)] 28 30 pub viewer: std::option::Option<jacquard_common::types::value::Data<'a>>, 31 + } 32 + 33 + /// XRPC request marker type 34 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 35 + pub struct GetConfig; 36 + impl jacquard_common::types::xrpc::XrpcRequest for GetConfig { 37 + const NSID: &'static str = "tools.ozone.server.getConfig"; 38 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 39 + const OUTPUT_ENCODING: &'static str = "application/json"; 40 + type Output<'de> = GetConfigOutput<'de>; 41 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 29 42 } 30 43 31 44 #[jacquard_derive::lexicon]
+2
crates/jacquard-api/src/tools_ozone/set.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.set.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+13 -1
crates/jacquard-api/src/tools_ozone/set/add_values.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.set.addValues 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct AddValuesInput<'a> { 11 + pub struct AddValues<'a> { 10 12 ///Name of the set to add values to 11 13 #[serde(borrow)] 12 14 pub name: jacquard_common::CowStr<'a>, 13 15 ///Array of string values to add to the set 14 16 #[serde(borrow)] 15 17 pub values: Vec<jacquard_common::CowStr<'a>>, 18 + } 19 + 20 + impl jacquard_common::types::xrpc::XrpcRequest for AddValues<'_> { 21 + const NSID: &'static str = "tools.ozone.set.addValues"; 22 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 23 + "application/json", 24 + ); 25 + const OUTPUT_ENCODING: &'static str = "application/json"; 26 + type Output<'de> = (); 27 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 16 28 }
+13 -1
crates/jacquard-api/src/tools_ozone/set/delete_set.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.set.deleteSet 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct DeleteSetInput<'a> { 11 + pub struct DeleteSet<'a> { 10 12 ///Name of the set to delete 11 13 #[serde(borrow)] 12 14 pub name: jacquard_common::CowStr<'a>, ··· 48 50 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 49 51 } 50 52 } 53 + } 54 + 55 + impl jacquard_common::types::xrpc::XrpcRequest for DeleteSet<'_> { 56 + const NSID: &'static str = "tools.ozone.set.deleteSet"; 57 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 58 + "application/json", 59 + ); 60 + const OUTPUT_ENCODING: &'static str = "application/json"; 61 + type Output<'de> = DeleteSetOutput<'de>; 62 + type Err<'de> = DeleteSetError<'de>; 51 63 }
+13 -1
crates/jacquard-api/src/tools_ozone/set/delete_values.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.set.deleteValues 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct DeleteValuesInput<'a> { 11 + pub struct DeleteValues<'a> { 10 12 ///Name of the set to delete values from 11 13 #[serde(borrow)] 12 14 pub name: jacquard_common::CowStr<'a>, ··· 47 49 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 48 50 } 49 51 } 52 + } 53 + 54 + impl jacquard_common::types::xrpc::XrpcRequest for DeleteValues<'_> { 55 + const NSID: &'static str = "tools.ozone.set.deleteValues"; 56 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 57 + "application/json", 58 + ); 59 + const OUTPUT_ENCODING: &'static str = "application/json"; 60 + type Output<'de> = (); 61 + type Err<'de> = DeleteValuesError<'de>; 50 62 }
+22 -2
crates/jacquard-api/src/tools_ozone/set/get_values.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.set.getValues 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct GetValuesParams<'a> { 10 + pub struct GetValues<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 13 15 pub limit: std::option::Option<i64>, 14 16 #[serde(borrow)] 15 17 pub name: jacquard_common::CowStr<'a>, 18 + } 19 + 20 + impl Default for GetValues<'_> { 21 + fn default() -> Self { 22 + Self { 23 + cursor: Default::default(), 24 + limit: Some(100i64), 25 + name: Default::default(), 26 + } 27 + } 16 28 } 17 29 18 30 #[jacquard_derive::lexicon] ··· 60 72 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 61 73 } 62 74 } 75 + } 76 + 77 + impl jacquard_common::types::xrpc::XrpcRequest for GetValues<'_> { 78 + const NSID: &'static str = "tools.ozone.set.getValues"; 79 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 80 + const OUTPUT_ENCODING: &'static str = "application/json"; 81 + type Output<'de> = GetValuesOutput<'de>; 82 + type Err<'de> = GetValuesError<'de>; 63 83 }
+24 -2
crates/jacquard-api/src/tools_ozone/set/query_sets.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.set.querySets 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct QuerySetsParams<'a> { 10 + pub struct QuerySets<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 22 24 pub sort_direction: std::option::Option<jacquard_common::CowStr<'a>>, 23 25 } 24 26 27 + impl Default for QuerySets<'_> { 28 + fn default() -> Self { 29 + Self { 30 + cursor: Default::default(), 31 + limit: Some(50i64), 32 + name_prefix: Default::default(), 33 + sort_by: Some(jacquard_common::CowStr::from("name")), 34 + sort_direction: Some(jacquard_common::CowStr::from("asc")), 35 + } 36 + } 37 + } 38 + 25 39 #[jacquard_derive::lexicon] 26 40 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 27 41 #[serde(rename_all = "camelCase")] ··· 31 45 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 32 46 #[serde(borrow)] 33 47 pub sets: Vec<crate::tools_ozone::set::SetView<'a>>, 48 + } 49 + 50 + impl jacquard_common::types::xrpc::XrpcRequest for QuerySets<'_> { 51 + const NSID: &'static str = "tools.ozone.set.querySets"; 52 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 53 + const OUTPUT_ENCODING: &'static str = "application/json"; 54 + type Output<'de> = QuerySetsOutput<'de>; 55 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 34 56 }
+13 -1
crates/jacquard-api/src/tools_ozone/set/upsert_set.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.set.upsertSet 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UpsertSetInput<'a> { 11 + pub struct UpsertSet<'a> { 10 12 #[serde(flatten)] 11 13 #[serde(borrow)] 12 14 pub value: crate::tools_ozone::set::Set<'a>, ··· 19 21 #[serde(flatten)] 20 22 #[serde(borrow)] 21 23 pub value: crate::tools_ozone::set::SetView<'a>, 24 + } 25 + 26 + impl jacquard_common::types::xrpc::XrpcRequest for UpsertSet<'_> { 27 + const NSID: &'static str = "tools.ozone.set.upsertSet"; 28 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 29 + "application/json", 30 + ); 31 + const OUTPUT_ENCODING: &'static str = "application/json"; 32 + type Output<'de> = UpsertSetOutput<'de>; 33 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 22 34 }
+2
crates/jacquard-api/src/tools_ozone/setting.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.setting.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+24 -2
crates/jacquard-api/src/tools_ozone/setting/list_options.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.setting.listOptions 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct ListOptionsParams<'a> { 10 + pub struct ListOptions<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 22 24 pub scope: std::option::Option<jacquard_common::CowStr<'a>>, 23 25 } 24 26 27 + impl Default for ListOptions<'_> { 28 + fn default() -> Self { 29 + Self { 30 + cursor: Default::default(), 31 + keys: Default::default(), 32 + limit: Some(50i64), 33 + prefix: Default::default(), 34 + scope: Some(jacquard_common::CowStr::from("instance")), 35 + } 36 + } 37 + } 38 + 25 39 #[jacquard_derive::lexicon] 26 40 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 27 41 #[serde(rename_all = "camelCase")] ··· 31 45 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 32 46 #[serde(borrow)] 33 47 pub options: Vec<crate::tools_ozone::setting::Option<'a>>, 48 + } 49 + 50 + impl jacquard_common::types::xrpc::XrpcRequest for ListOptions<'_> { 51 + const NSID: &'static str = "tools.ozone.setting.listOptions"; 52 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 53 + const OUTPUT_ENCODING: &'static str = "application/json"; 54 + type Output<'de> = ListOptionsOutput<'de>; 55 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 34 56 }
+13 -2
crates/jacquard-api/src/tools_ozone/setting/remove_options.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.setting.removeOptions 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct RemoveOptionsInput<'a> { 11 + pub struct RemoveOptions<'a> { 10 12 #[serde(borrow)] 11 13 pub keys: Vec<jacquard_common::types::string::Nsid<'a>>, 12 14 #[serde(borrow)] ··· 16 18 #[jacquard_derive::lexicon] 17 19 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 18 20 #[serde(rename_all = "camelCase")] 19 - pub struct RemoveOptionsOutput<'a> {} 21 + pub struct RemoveOptionsOutput<'a> {} 22 + impl jacquard_common::types::xrpc::XrpcRequest for RemoveOptions<'_> { 23 + const NSID: &'static str = "tools.ozone.setting.removeOptions"; 24 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 25 + "application/json", 26 + ); 27 + const OUTPUT_ENCODING: &'static str = "application/json"; 28 + type Output<'de> = RemoveOptionsOutput<'de>; 29 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 30 + }
+13 -1
crates/jacquard-api/src/tools_ozone/setting/upsert_option.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.setting.upsertOption 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UpsertOptionInput<'a> { 11 + pub struct UpsertOption<'a> { 10 12 #[serde(skip_serializing_if = "std::option::Option::is_none")] 11 13 #[serde(borrow)] 12 14 pub description: std::option::Option<jacquard_common::CowStr<'a>>, ··· 27 29 pub struct UpsertOptionOutput<'a> { 28 30 #[serde(borrow)] 29 31 pub option: crate::tools_ozone::setting::Option<'a>, 32 + } 33 + 34 + impl jacquard_common::types::xrpc::XrpcRequest for UpsertOption<'_> { 35 + const NSID: &'static str = "tools.ozone.setting.upsertOption"; 36 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 37 + "application/json", 38 + ); 39 + const OUTPUT_ENCODING: &'static str = "application/json"; 40 + type Output<'de> = UpsertOptionOutput<'de>; 41 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 30 42 }
+2
crates/jacquard-api/src/tools_ozone/signature.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.signature.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+11 -1
crates/jacquard-api/src/tools_ozone/signature/find_correlation.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.signature.findCorrelation 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct FindCorrelationParams<'a> { 10 + pub struct FindCorrelation<'a> { 9 11 #[serde(borrow)] 10 12 pub dids: Vec<jacquard_common::types::string::Did<'a>>, 11 13 } ··· 16 18 pub struct FindCorrelationOutput<'a> { 17 19 #[serde(borrow)] 18 20 pub details: Vec<crate::tools_ozone::signature::SigDetail<'a>>, 21 + } 22 + 23 + impl jacquard_common::types::xrpc::XrpcRequest for FindCorrelation<'_> { 24 + const NSID: &'static str = "tools.ozone.signature.findCorrelation"; 25 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 26 + const OUTPUT_ENCODING: &'static str = "application/json"; 27 + type Output<'de> = FindCorrelationOutput<'de>; 28 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 19 29 }
+22 -2
crates/jacquard-api/src/tools_ozone/signature/search_accounts.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.signature.searchAccounts 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct SearchAccountsParams<'a> { 10 + pub struct SearchAccounts<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 15 17 pub values: Vec<jacquard_common::CowStr<'a>>, 16 18 } 17 19 20 + impl Default for SearchAccounts<'_> { 21 + fn default() -> Self { 22 + Self { 23 + cursor: Default::default(), 24 + limit: Some(50i64), 25 + values: Default::default(), 26 + } 27 + } 28 + } 29 + 18 30 #[jacquard_derive::lexicon] 19 31 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 20 32 #[serde(rename_all = "camelCase")] ··· 24 36 #[serde(skip_serializing_if = "std::option::Option::is_none")] 25 37 #[serde(borrow)] 26 38 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 39 + } 40 + 41 + impl jacquard_common::types::xrpc::XrpcRequest for SearchAccounts<'_> { 42 + const NSID: &'static str = "tools.ozone.signature.searchAccounts"; 43 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 44 + const OUTPUT_ENCODING: &'static str = "application/json"; 45 + type Output<'de> = SearchAccountsOutput<'de>; 46 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 27 47 }
+2
crates/jacquard-api/src/tools_ozone/team.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.team.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+13 -1
crates/jacquard-api/src/tools_ozone/team/add_member.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.team.addMember 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct AddMemberInput<'a> { 11 + pub struct AddMember<'a> { 10 12 #[serde(borrow)] 11 13 pub did: jacquard_common::types::string::Did<'a>, 12 14 #[serde(borrow)] ··· 54 56 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 55 57 } 56 58 } 59 + } 60 + 61 + impl jacquard_common::types::xrpc::XrpcRequest for AddMember<'_> { 62 + const NSID: &'static str = "tools.ozone.team.addMember"; 63 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 64 + "application/json", 65 + ); 66 + const OUTPUT_ENCODING: &'static str = "application/json"; 67 + type Output<'de> = AddMemberOutput<'de>; 68 + type Err<'de> = AddMemberError<'de>; 57 69 }
+13 -1
crates/jacquard-api/src/tools_ozone/team/delete_member.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.team.deleteMember 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct DeleteMemberInput<'a> { 11 + pub struct DeleteMember<'a> { 10 12 #[serde(borrow)] 11 13 pub did: jacquard_common::types::string::Did<'a>, 12 14 } ··· 53 55 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 54 56 } 55 57 } 58 + } 59 + 60 + impl jacquard_common::types::xrpc::XrpcRequest for DeleteMember<'_> { 61 + const NSID: &'static str = "tools.ozone.team.deleteMember"; 62 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 63 + "application/json", 64 + ); 65 + const OUTPUT_ENCODING: &'static str = "application/json"; 66 + type Output<'de> = (); 67 + type Err<'de> = DeleteMemberError<'de>; 56 68 }
+24 -2
crates/jacquard-api/src/tools_ozone/team/list_members.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.team.listMembers 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct ListMembersParams<'a> { 10 + pub struct ListMembers<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 #[serde(borrow)] 11 13 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, ··· 21 23 pub roles: std::option::Option<Vec<jacquard_common::CowStr<'a>>>, 22 24 } 23 25 26 + impl Default for ListMembers<'_> { 27 + fn default() -> Self { 28 + Self { 29 + cursor: Default::default(), 30 + disabled: Default::default(), 31 + limit: Some(50i64), 32 + q: Default::default(), 33 + roles: Default::default(), 34 + } 35 + } 36 + } 37 + 24 38 #[jacquard_derive::lexicon] 25 39 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 26 40 #[serde(rename_all = "camelCase")] ··· 30 44 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 31 45 #[serde(borrow)] 32 46 pub members: Vec<crate::tools_ozone::team::Member<'a>>, 47 + } 48 + 49 + impl jacquard_common::types::xrpc::XrpcRequest for ListMembers<'_> { 50 + const NSID: &'static str = "tools.ozone.team.listMembers"; 51 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 52 + const OUTPUT_ENCODING: &'static str = "application/json"; 53 + type Output<'de> = ListMembersOutput<'de>; 54 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 33 55 }
+13 -1
crates/jacquard-api/src/tools_ozone/team/update_member.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.team.updateMember 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct UpdateMemberInput<'a> { 11 + pub struct UpdateMember<'a> { 10 12 #[serde(borrow)] 11 13 pub did: jacquard_common::types::string::Did<'a>, 12 14 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 57 59 Self::Unknown(err) => write!(f, "Unknown error: {:?}", err), 58 60 } 59 61 } 62 + } 63 + 64 + impl jacquard_common::types::xrpc::XrpcRequest for UpdateMember<'_> { 65 + const NSID: &'static str = "tools.ozone.team.updateMember"; 66 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 67 + "application/json", 68 + ); 69 + const OUTPUT_ENCODING: &'static str = "application/json"; 70 + type Output<'de> = UpdateMemberOutput<'de>; 71 + type Err<'de> = UpdateMemberError<'de>; 60 72 }
+2
crates/jacquard-api/src/tools_ozone/verification.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.verification.defs 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7
+13 -1
crates/jacquard-api/src/tools_ozone/verification/grant_verifications.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.verification.grantVerifications 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 ··· 19 21 #[jacquard_derive::lexicon] 20 22 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 21 23 #[serde(rename_all = "camelCase")] 22 - pub struct GrantVerificationsInput<'a> { 24 + pub struct GrantVerifications<'a> { 23 25 ///Array of verification requests to process 24 26 #[serde(borrow)] 25 27 pub verifications: Vec<jacquard_common::types::value::Data<'a>>, ··· 33 35 pub failed_verifications: Vec<jacquard_common::types::value::Data<'a>>, 34 36 #[serde(borrow)] 35 37 pub verifications: Vec<crate::tools_ozone::verification::VerificationView<'a>>, 38 + } 39 + 40 + impl jacquard_common::types::xrpc::XrpcRequest for GrantVerifications<'_> { 41 + const NSID: &'static str = "tools.ozone.verification.grantVerifications"; 42 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 43 + "application/json", 44 + ); 45 + const OUTPUT_ENCODING: &'static str = "application/json"; 46 + type Output<'de> = GrantVerificationsOutput<'de>; 47 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 36 48 } 37 49 38 50 #[jacquard_derive::lexicon]
+27 -2
crates/jacquard-api/src/tools_ozone/verification/list_verifications.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.verification.listVerifications 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 + #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] 7 9 #[serde(rename_all = "camelCase")] 8 - pub struct ListVerificationsParams<'a> { 10 + pub struct ListVerifications<'a> { 9 11 #[serde(skip_serializing_if = "std::option::Option::is_none")] 10 12 pub created_after: std::option::Option<jacquard_common::types::string::Datetime>, 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] ··· 28 30 pub subjects: std::option::Option<Vec<jacquard_common::types::string::Did<'a>>>, 29 31 } 30 32 33 + impl Default for ListVerifications<'_> { 34 + fn default() -> Self { 35 + Self { 36 + created_after: Default::default(), 37 + created_before: Default::default(), 38 + cursor: Default::default(), 39 + is_revoked: Default::default(), 40 + issuers: Default::default(), 41 + limit: Some(50i64), 42 + sort_direction: Some(jacquard_common::CowStr::from("desc")), 43 + subjects: Default::default(), 44 + } 45 + } 46 + } 47 + 31 48 #[jacquard_derive::lexicon] 32 49 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 33 50 #[serde(rename_all = "camelCase")] ··· 37 54 pub cursor: std::option::Option<jacquard_common::CowStr<'a>>, 38 55 #[serde(borrow)] 39 56 pub verifications: Vec<crate::tools_ozone::verification::VerificationView<'a>>, 57 + } 58 + 59 + impl jacquard_common::types::xrpc::XrpcRequest for ListVerifications<'_> { 60 + const NSID: &'static str = "tools.ozone.verification.listVerifications"; 61 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Query; 62 + const OUTPUT_ENCODING: &'static str = "application/json"; 63 + type Output<'de> = ListVerificationsOutput<'de>; 64 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 40 65 }
+13 -1
crates/jacquard-api/src/tools_ozone/verification/revoke_verifications.rs
··· 1 1 // @generated by jacquard-lexicon. DO NOT EDIT. 2 2 // 3 + // Lexicon: tools.ozone.verification.revokeVerifications 4 + // 3 5 // This file was automatically generated from Lexicon schemas. 4 6 // Any manual changes will be overwritten on the next regeneration. 5 7 6 8 #[jacquard_derive::lexicon] 7 9 #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 8 10 #[serde(rename_all = "camelCase")] 9 - pub struct RevokeVerificationsInput<'a> { 11 + pub struct RevokeVerifications<'a> { 10 12 ///Reason for revoking the verification. This is optional and can be omitted if not needed. 11 13 #[serde(skip_serializing_if = "std::option::Option::is_none")] 12 14 #[serde(borrow)] ··· 26 28 ///List of verification uris successfully revoked 27 29 #[serde(borrow)] 28 30 pub revoked_verifications: Vec<jacquard_common::types::string::AtUri<'a>>, 31 + } 32 + 33 + impl jacquard_common::types::xrpc::XrpcRequest for RevokeVerifications<'_> { 34 + const NSID: &'static str = "tools.ozone.verification.revokeVerifications"; 35 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = jacquard_common::types::xrpc::XrpcMethod::Procedure( 36 + "application/json", 37 + ); 38 + const OUTPUT_ENCODING: &'static str = "application/json"; 39 + type Output<'de> = RevokeVerificationsOutput<'de>; 40 + type Err<'de> = jacquard_common::types::xrpc::GenericError; 29 41 } 30 42 31 43 ///Error object for failed revocations
+4 -5
crates/jacquard-common/src/types/collection.rs
··· 1 1 use core::fmt; 2 2 3 - use serde::{Serialize, de}; 3 + use serde::Serialize; 4 4 5 5 use crate::types::{ 6 6 aturi::UriPath, ··· 11 11 /// Trait for a collection of records that can be stored in a repository. 12 12 /// 13 13 /// The records all have the same Lexicon schema. 14 - pub trait Collection: fmt::Debug { 14 + /// 15 + /// Implemented on the record type itself. 16 + pub trait Collection: fmt::Debug + Serialize { 15 17 /// The NSID for the Lexicon that defines the schema of records in this collection. 16 18 const NSID: &'static str; 17 - 18 - /// This collection's record type. 19 - type Record: fmt::Debug + de::DeserializeOwned + Serialize; 20 19 21 20 /// Returns the [`Nsid`] for the Lexicon that defines the schema of records in this 22 21 /// collection.
+31 -14
crates/jacquard-common/src/types/xrpc.rs
··· 1 1 use serde::{Deserialize, Serialize}; 2 2 use std::error::Error; 3 + use std::fmt::{self, Debug}; 4 + 5 + use crate::types::value::Data; 3 6 4 7 /// XRPC method type 5 8 #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] ··· 7 10 /// Query (HTTP GET) 8 11 Query, 9 12 /// Procedure (HTTP POST) 10 - Procedure, 13 + Procedure(&'static str), 11 14 } 12 15 13 16 impl XrpcMethod { 14 17 /// Get the HTTP method string 15 - pub fn as_str(&self) -> &'static str { 18 + pub const fn as_str(&self) -> &'static str { 16 19 match self { 17 20 Self::Query => "GET", 18 - Self::Procedure => "POST", 21 + Self::Procedure(_) => "POST", 22 + } 23 + } 24 + 25 + pub const fn body_encoding(&self) -> Option<&'static str> { 26 + match self { 27 + Self::Query => None, 28 + Self::Procedure(enc) => Some(enc), 19 29 } 20 30 } 21 31 } ··· 23 33 /// Trait for XRPC request types (queries and procedures) 24 34 /// 25 35 /// This trait provides metadata about XRPC endpoints including the NSID, 26 - /// HTTP method, encoding types, and associated parameter/output types. 27 - pub trait XrpcRequest { 36 + /// HTTP method, encoding types, and associated output types. 37 + /// 38 + /// The trait is implemented on the request parameters/input type itself. 39 + pub trait XrpcRequest: Serialize { 28 40 /// The NSID for this XRPC method 29 41 const NSID: &'static str; 30 42 31 43 /// XRPC method (query/GET or procedure/POST) 32 44 const METHOD: XrpcMethod; 33 45 34 - /// Input encoding (MIME type, e.g., "application/json") 35 - /// None for queries (no body) 36 - const INPUT_ENCODING: Option<&'static str>; 37 - 38 46 /// Output encoding (MIME type) 39 47 const OUTPUT_ENCODING: &'static str; 40 - 41 - /// Request parameters type (query params for queries, body for procedures) 42 - type Params: Serialize; 43 48 44 49 /// Response output type 45 - type Output: for<'de> Deserialize<'de>; 50 + type Output<'de>: Deserialize<'de>; 46 51 47 52 /// Error type for this request 48 - type Err: Error; 53 + type Err<'de>: Error; 49 54 } 55 + 56 + /// Error type for XRPC endpoints that don't define any errors 57 + #[derive(Debug, Clone, PartialEq, Eq)] 58 + pub struct GenericError(Data<'static>); 59 + 60 + impl fmt::Display for GenericError { 61 + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { 62 + self.0.fmt(f) 63 + } 64 + } 65 + 66 + impl Error for GenericError {}
+4 -2
crates/jacquard-derive/Cargo.toml
··· 17 17 [dependencies] 18 18 heck = "0.5.0" 19 19 itertools = "0.14.0" 20 - jacquard-common = { version = "0.1.0", path = "../jacquard-common" } 21 - jacquard-lexicon = { version = "0.1.0", path = "../jacquard-lexicon" } 22 20 prettyplease = "0.2.37" 23 21 proc-macro2 = "1.0.101" 24 22 quote = "1.0.41" ··· 27 25 serde_repr = "0.1.20" 28 26 serde_with = "3.14.1" 29 27 syn = "2.0.106" 28 + 29 + 30 + [dev-dependencies] 31 + jacquard-common = { version = "0.1.0", path = "../jacquard-common" }
+1 -1
crates/jacquard-derive/src/lib.rs
··· 57 57 #[serde(default)] 58 58 pub extra_data: std::option::Option<::std::collections::BTreeMap< 59 59 ::jacquard_common::smol_str::SmolStr, 60 - ::jacquard_common::types::value::Data<#lifetime> 60 + ::jacquard_common::types::value::Data<'static> 61 61 >> 62 62 } 63 63 };
+1 -4
crates/jacquard-lexicon/src/bin/codegen.rs
··· 25 25 println!("Loading lexicons from {:?}...", args.input); 26 26 let corpus = LexiconCorpus::load_from_dir(&args.input)?; 27 27 28 - println!( 29 - "Loaded {} lexicon documents", 30 - corpus.iter().count() 31 - ); 28 + println!("Loaded {} lexicon documents", corpus.iter().count()); 32 29 33 30 println!("Generating code..."); 34 31 let codegen = CodeGenerator::new(&corpus, args.root_module);
+215 -11
crates/jacquard-lexicon/src/codegen.rs
··· 181 181 } 182 182 } 183 183 184 + // Generate Collection trait impl 185 + let collection_impl = quote! { 186 + impl jacquard_common::types::collection::Collection for #ident<'_> { 187 + const NSID: &'static str = #nsid; 188 + } 189 + }; 190 + 184 191 Ok(quote! { 185 192 #struct_def 186 193 #(#unions)* 194 + #collection_impl 187 195 }) 188 196 } 189 197 } ··· 599 607 let type_base = self.def_to_type_name(nsid, def_name); 600 608 let mut output = Vec::new(); 601 609 610 + let params_has_lifetime = query.parameters.as_ref() 611 + .map(|p| match p { 612 + crate::lexicon::LexXrpcQueryParameter::Params(params) => self.params_need_lifetime(params), 613 + }) 614 + .unwrap_or(false); 615 + let has_params = query.parameters.is_some(); 616 + let has_output = query.output.is_some(); 617 + let has_errors = query.errors.is_some(); 618 + 602 619 if let Some(params) = &query.parameters { 603 620 let params_struct = self.generate_params_struct(&type_base, params)?; 604 621 output.push(params_struct); ··· 613 630 let error_enum = self.generate_error_enum(&type_base, errors)?; 614 631 output.push(error_enum); 615 632 } 633 + 634 + // Generate XrpcRequest impl 635 + let output_encoding = query.output.as_ref() 636 + .map(|o| o.encoding.as_ref()) 637 + .unwrap_or("application/json"); 638 + let xrpc_impl = self.generate_xrpc_request_impl( 639 + nsid, 640 + &type_base, 641 + quote! { jacquard_common::types::xrpc::XrpcMethod::Query }, 642 + output_encoding, 643 + has_params, 644 + params_has_lifetime, 645 + has_output, 646 + has_errors, 647 + )?; 648 + output.push(xrpc_impl); 616 649 617 650 Ok(quote! { 618 651 #(#output)* ··· 629 662 let type_base = self.def_to_type_name(nsid, def_name); 630 663 let mut output = Vec::new(); 631 664 665 + // Input bodies always have lifetimes (they get #[lexicon] attribute) 666 + let params_has_lifetime = proc.input.is_some(); 667 + let has_input = proc.input.is_some(); 668 + let has_output = proc.output.is_some(); 669 + let has_errors = proc.errors.is_some(); 670 + 632 671 if let Some(params) = &proc.parameters { 633 672 let params_struct = self.generate_params_struct_proc(&type_base, params)?; 634 673 output.push(params_struct); ··· 649 688 output.push(error_enum); 650 689 } 651 690 691 + // Generate XrpcRequest impl 692 + let input_encoding = proc.input.as_ref() 693 + .map(|i| i.encoding.as_ref()) 694 + .unwrap_or("application/json"); 695 + let output_encoding = proc.output.as_ref() 696 + .map(|o| o.encoding.as_ref()) 697 + .unwrap_or("application/json"); 698 + let xrpc_impl = self.generate_xrpc_request_impl( 699 + nsid, 700 + &type_base, 701 + quote! { jacquard_common::types::xrpc::XrpcMethod::Procedure(#input_encoding) }, 702 + output_encoding, 703 + has_input, 704 + params_has_lifetime, 705 + has_output, 706 + has_errors, 707 + )?; 708 + output.push(xrpc_impl); 709 + 652 710 Ok(quote! { 653 711 #(#output)* 654 712 }) ··· 1090 1148 } 1091 1149 } 1092 1150 1093 - /// Generate params struct from XRPC procedure parameters 1151 + /// Generate params struct from XRPC procedure parameters (query string params) 1094 1152 fn generate_params_struct_proc( 1095 1153 &self, 1096 1154 type_base: &str, ··· 1098 1156 ) -> Result<TokenStream> { 1099 1157 use crate::lexicon::LexXrpcProcedureParameter; 1100 1158 match params { 1101 - LexXrpcProcedureParameter::Params(p) => self.generate_params_struct_inner(type_base, p), 1159 + // For procedures, query string params still get "Params" suffix since the main struct is the input 1160 + LexXrpcProcedureParameter::Params(p) => { 1161 + let struct_name = format!("{}Params", type_base); 1162 + let ident = syn::Ident::new(&struct_name, proc_macro2::Span::call_site()); 1163 + self.generate_params_struct_inner_with_name(&ident, p) 1164 + } 1102 1165 } 1103 1166 } 1104 1167 ··· 1108 1171 type_base: &str, 1109 1172 p: &crate::lexicon::LexXrpcParameters<'static>, 1110 1173 ) -> Result<TokenStream> { 1111 - let struct_name = format!("{}Params", type_base); 1112 - let ident = syn::Ident::new(&struct_name, proc_macro2::Span::call_site()); 1174 + let ident = syn::Ident::new(type_base, proc_macro2::Span::call_site()); 1175 + self.generate_params_struct_inner_with_name(&ident, p) 1176 + } 1177 + 1178 + /// Generate params struct with custom name 1179 + fn generate_params_struct_inner_with_name( 1180 + &self, 1181 + ident: &syn::Ident, 1182 + p: &crate::lexicon::LexXrpcParameters<'static>, 1183 + ) -> Result<TokenStream> { 1113 1184 1114 1185 let required = p.required.as_ref().map(|r| r.as_slice()).unwrap_or(&[]); 1115 1186 let mut fields = Vec::new(); 1187 + let mut default_fields = Vec::new(); 1116 1188 1117 1189 for (field_name, field_type) in &p.properties { 1118 1190 let is_required = required.contains(field_name); 1119 1191 let field_tokens = 1120 1192 self.generate_param_field("", field_name, field_type, is_required)?; 1121 1193 fields.push(field_tokens); 1194 + 1195 + // Track field defaults 1196 + let field_ident = make_ident(&field_name.to_snake_case()); 1197 + let default_value = self.get_param_default_value(field_type, is_required); 1198 + default_fields.push((field_ident, default_value)); 1122 1199 } 1123 1200 1124 1201 let doc = self.generate_doc_comment(p.description.as_ref()); 1202 + let needs_lifetime = self.params_need_lifetime(p); 1125 1203 1126 - let needs_lifetime = self.params_need_lifetime(p); 1204 + // Check if we should generate Default impl 1205 + let has_any_defaults = default_fields.iter().any(|(_, default)| default.is_some()); 1206 + 1207 + let derives = if has_any_defaults { 1208 + quote! { #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)] } 1209 + } else { 1210 + quote! { #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] } 1211 + }; 1212 + 1213 + let default_impl = if has_any_defaults { 1214 + let field_inits: Vec<_> = default_fields.iter().map(|(field_ident, default_value)| { 1215 + if let Some(value) = default_value { 1216 + quote! { #field_ident: #value } 1217 + } else { 1218 + quote! { #field_ident: Default::default() } 1219 + } 1220 + }).collect(); 1221 + 1222 + if needs_lifetime { 1223 + quote! { 1224 + impl Default for #ident<'_> { 1225 + fn default() -> Self { 1226 + Self { 1227 + #(#field_inits,)* 1228 + } 1229 + } 1230 + } 1231 + } 1232 + } else { 1233 + quote! {} // Default derive handles this 1234 + } 1235 + } else { 1236 + quote! {} 1237 + }; 1127 1238 1128 1239 if needs_lifetime { 1129 1240 Ok(quote! { 1130 1241 #doc 1131 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 1242 + #derives 1132 1243 #[serde(rename_all = "camelCase")] 1133 1244 pub struct #ident<'a> { 1134 1245 #(#fields)* 1135 1246 } 1247 + 1248 + #default_impl 1136 1249 }) 1137 1250 } else { 1138 1251 Ok(quote! { 1139 1252 #doc 1140 - #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 1253 + #derives 1141 1254 #[serde(rename_all = "camelCase")] 1142 1255 pub struct #ident { 1143 1256 #(#fields)* ··· 1146 1259 } 1147 1260 } 1148 1261 1262 + /// Get default value for a param field 1263 + fn get_param_default_value( 1264 + &self, 1265 + field_type: &crate::lexicon::LexXrpcParametersProperty<'static>, 1266 + is_required: bool, 1267 + ) -> Option<TokenStream> { 1268 + use crate::lexicon::LexXrpcParametersProperty; 1269 + 1270 + let default_opt = match field_type { 1271 + LexXrpcParametersProperty::Boolean(b) => b.default.map(|v| quote! { #v }), 1272 + LexXrpcParametersProperty::Integer(i) => i.default.map(|v| quote! { #v }), 1273 + LexXrpcParametersProperty::String(s) => s.default.as_ref().map(|v| { 1274 + let s = v.as_ref(); 1275 + quote! { jacquard_common::CowStr::from(#s) } 1276 + }), 1277 + LexXrpcParametersProperty::Unknown(_) | LexXrpcParametersProperty::Array(_) => None, 1278 + }; 1279 + 1280 + if is_required { 1281 + default_opt 1282 + } else { 1283 + // Optional fields: wrap in Some() if there's a default, otherwise None 1284 + default_opt.map(|v| quote! { Some(#v) }) 1285 + } 1286 + } 1287 + 1149 1288 /// Generate input struct from XRPC body 1150 1289 fn generate_input_struct( 1151 1290 &self, 1152 1291 type_base: &str, 1153 1292 body: &LexXrpcBody<'static>, 1154 1293 ) -> Result<TokenStream> { 1155 - let struct_name = format!("{}Input", type_base); 1156 - let ident = syn::Ident::new(&struct_name, proc_macro2::Span::call_site()); 1294 + let ident = syn::Ident::new(type_base, proc_macro2::Span::call_site()); 1157 1295 1158 1296 let fields = if let Some(schema) = &body.schema { 1159 - self.generate_body_fields("", &struct_name, schema)? 1297 + self.generate_body_fields("", type_base, schema)? 1160 1298 } else { 1161 1299 quote! {} 1162 1300 }; ··· 1181 1319 for (field_name, field_type) in &obj.properties { 1182 1320 if let LexObjectProperty::Union(union) = field_type { 1183 1321 let union_name = 1184 - format!("{}Record{}", struct_name, field_name.to_pascal_case()); 1322 + format!("{}Record{}", type_base, field_name.to_pascal_case()); 1185 1323 let refs: Vec<_> = union.refs.iter().cloned().collect(); 1186 1324 let union_def = self.generate_union(&union_name, &refs, None, union.closed)?; 1187 1325 unions.push(union_def); ··· 1579 1717 } 1580 1718 } 1581 1719 }) 1720 + } 1721 + 1722 + /// Generate XrpcRequest trait impl for a query or procedure 1723 + fn generate_xrpc_request_impl( 1724 + &self, 1725 + nsid: &str, 1726 + type_base: &str, 1727 + method: TokenStream, 1728 + output_encoding: &str, 1729 + has_params: bool, 1730 + params_has_lifetime: bool, 1731 + has_output: bool, 1732 + has_errors: bool, 1733 + ) -> Result<TokenStream> { 1734 + let output_type = if has_output { 1735 + let output_ident = syn::Ident::new(&format!("{}Output", type_base), proc_macro2::Span::call_site()); 1736 + quote! { #output_ident<'de> } 1737 + } else { 1738 + quote! { () } 1739 + }; 1740 + 1741 + let error_type = if has_errors { 1742 + let error_ident = syn::Ident::new(&format!("{}Error", type_base), proc_macro2::Span::call_site()); 1743 + quote! { #error_ident<'de> } 1744 + } else { 1745 + quote! { jacquard_common::types::xrpc::GenericError } 1746 + }; 1747 + 1748 + if has_params { 1749 + // Implement on the params/input struct itself 1750 + let request_ident = syn::Ident::new(type_base, proc_macro2::Span::call_site()); 1751 + let impl_target = if params_has_lifetime { 1752 + quote! { #request_ident<'_> } 1753 + } else { 1754 + quote! { #request_ident } 1755 + }; 1756 + 1757 + Ok(quote! { 1758 + impl jacquard_common::types::xrpc::XrpcRequest for #impl_target { 1759 + const NSID: &'static str = #nsid; 1760 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = #method; 1761 + const OUTPUT_ENCODING: &'static str = #output_encoding; 1762 + 1763 + type Output<'de> = #output_type; 1764 + type Err<'de> = #error_type; 1765 + } 1766 + }) 1767 + } else { 1768 + // No params - generate a marker struct 1769 + let request_ident = syn::Ident::new(type_base, proc_macro2::Span::call_site()); 1770 + 1771 + Ok(quote! { 1772 + /// XRPC request marker type 1773 + #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)] 1774 + pub struct #request_ident; 1775 + 1776 + impl jacquard_common::types::xrpc::XrpcRequest for #request_ident { 1777 + const NSID: &'static str = #nsid; 1778 + const METHOD: jacquard_common::types::xrpc::XrpcMethod = #method; 1779 + const OUTPUT_ENCODING: &'static str = #output_encoding; 1780 + 1781 + type Output<'de> = #output_type; 1782 + type Err<'de> = #error_type; 1783 + } 1784 + }) 1785 + } 1582 1786 } 1583 1787 1584 1788 /// Generate a union enum
+2
crates/jacquard/Cargo.toml
··· 10 10 11 11 [dependencies] 12 12 clap = { workspace = true } 13 + jacquard-api = { version = "0.1.0", path = "../jacquard-api" } 13 14 jacquard-common = { path = "../jacquard-common" } 15 + reqwest = { version = "0.12.23", default-features = false, features = ["charset", "http2", "json", "system-proxy", "gzip", "rustls-tls"] }
+2 -8
crates/jacquard/src/main.rs
··· 1 1 use clap::Parser; 2 + use jacquard_api::com_atproto::repo::create_record::*; 2 3 3 4 #[derive(Parser, Debug)] 4 5 #[command(author = "Orual", version, about)] ··· 14 15 } 15 16 16 17 fn main() { 17 - let args = Args::parse(); 18 - if args.verbose { 19 - println!("DEBUG {args:?}"); 20 - } 21 - println!( 22 - "Hello {} (from jacquard)!", 23 - args.name.unwrap_or("world".to_string()) 24 - ); 18 + let client = reqwest::Client::new(); 25 19 }
+15 -47
flake.lock
··· 1 1 { 2 2 "nodes": { 3 - "cargo-doc-live": { 4 - "locked": { 5 - "lastModified": 1724704668, 6 - "narHash": "sha256-kJFYXlWUodg5WhJ0NuvrP0mCvOT/2AOIo8oGeYLXocs=", 7 - "owner": "srid", 8 - "repo": "cargo-doc-live", 9 - "rev": "b09d5d258d2498829e03014931fc19aed499b86f", 10 - "type": "github" 11 - }, 12 - "original": { 13 - "owner": "srid", 14 - "repo": "cargo-doc-live", 15 - "type": "github" 16 - } 17 - }, 18 3 "crane": { 19 4 "locked": { 20 - "lastModified": 1757183466, 21 - "narHash": "sha256-kTdCCMuRE+/HNHES5JYsbRHmgtr+l9mOtf5dpcMppVc=", 5 + "lastModified": 1758758545, 6 + "narHash": "sha256-NU5WaEdfwF6i8faJ2Yh+jcK9vVFrofLcwlD/mP65JrI=", 22 7 "owner": "ipetkov", 23 8 "repo": "crane", 24 - "rev": "d599ae4847e7f87603e7082d73ca673aa93c916d", 9 + "rev": "95d528a5f54eaba0d12102249ce42f4d01f4e364", 25 10 "type": "github" 26 11 }, 27 12 "original": { ··· 37 22 ] 38 23 }, 39 24 "locked": { 40 - "lastModified": 1756770412, 41 - "narHash": "sha256-+uWLQZccFHwqpGqr2Yt5VsW/PbeJVTn9Dk6SHWhNRPw=", 25 + "lastModified": 1759362264, 26 + "narHash": "sha256-wfG0S7pltlYyZTM+qqlhJ7GMw2fTF4mLKCIVhLii/4M=", 42 27 "owner": "hercules-ci", 43 28 "repo": "flake-parts", 44 - "rev": "4524271976b625a4a605beefd893f270620fd751", 29 + "rev": "758cf7296bee11f1706a574c77d072b8a7baa881", 45 30 "type": "github" 46 31 }, 47 32 "original": { ··· 68 53 }, 69 54 "nixpkgs": { 70 55 "locked": { 71 - "lastModified": 1758763312, 72 - "narHash": "sha256-puBMviZhYlqOdUUgEmMVJpXqC/ToEqSvkyZ30qQ09xM=", 56 + "lastModified": 1759417375, 57 + "narHash": "sha256-O7eHcgkQXJNygY6AypkF9tFhsoDQjpNEojw3eFs73Ow=", 73 58 "owner": "nixos", 74 59 "repo": "nixpkgs", 75 - "rev": "e57b3b16ad8758fd681511a078f35c416a8cc939", 60 + "rev": "dc704e6102e76aad573f63b74c742cd96f8f1e6c", 76 61 "type": "github" 77 62 }, 78 63 "original": { ··· 82 67 "type": "github" 83 68 } 84 69 }, 85 - "process-compose-flake": { 86 - "locked": { 87 - "lastModified": 1758658658, 88 - "narHash": "sha256-y5GSCqlGe/uZzlocCPZcjc7Gj+mTq7m0P6xPGx88+No=", 89 - "owner": "Platonic-Systems", 90 - "repo": "process-compose-flake", 91 - "rev": "e968a94633788f5d9595d727f41c2baf0714be7b", 92 - "type": "github" 93 - }, 94 - "original": { 95 - "owner": "Platonic-Systems", 96 - "repo": "process-compose-flake", 97 - "type": "github" 98 - } 99 - }, 100 70 "root": { 101 71 "inputs": { 102 - "cargo-doc-live": "cargo-doc-live", 103 72 "flake-parts": "flake-parts", 104 73 "git-hooks": "git-hooks", 105 74 "nixpkgs": "nixpkgs", 106 - "process-compose-flake": "process-compose-flake", 107 75 "rust-flake": "rust-flake", 108 76 "systems": "systems" 109 77 } ··· 117 85 "rust-overlay": "rust-overlay" 118 86 }, 119 87 "locked": { 120 - "lastModified": 1757862855, 121 - "narHash": "sha256-XPqlAQkx8rvG89nw+SbU6TiGVYPWdYIklPljdAyjp7w=", 88 + "lastModified": 1759028837, 89 + "narHash": "sha256-kUVZJqzYpQ5+OauDv/e2vMDognmhPWeqCI3uIbhi1OA=", 122 90 "owner": "juspay", 123 91 "repo": "rust-flake", 124 - "rev": "fa28d6e30b5d13014f24354dc49e717733fbb995", 92 + "rev": "79e7c8ef50cf83fe60d5d4f673351c14778048fa", 125 93 "type": "github" 126 94 }, 127 95 "original": { ··· 138 106 ] 139 107 }, 140 108 "locked": { 141 - "lastModified": 1757730403, 142 - "narHash": "sha256-Jxl4OZRVsXs8JxEHUVQn3oPu6zcqFyGGKaFrlNgbzp0=", 109 + "lastModified": 1758940228, 110 + "narHash": "sha256-sTS04L9LKqzP1oiVXYDwcMzfFSF0DnSJQFzZBpEgLFE=", 143 111 "owner": "oxalica", 144 112 "repo": "rust-overlay", 145 - "rev": "3232f7f8bd07849fc6f4ae77fe695e0abb2eba2c", 113 + "rev": "5bfedf3fbbf5caf8e39f7fcd62238f54d82aa1e2", 146 114 "type": "github" 147 115 }, 148 116 "original": {
+5 -5
flake.nix
··· 6 6 systems.url = "github:nix-systems/default"; 7 7 rust-flake.url = "github:juspay/rust-flake"; 8 8 rust-flake.inputs.nixpkgs.follows = "nixpkgs"; 9 - process-compose-flake.url = "github:Platonic-Systems/process-compose-flake"; 10 - cargo-doc-live.url = "github:srid/cargo-doc-live"; 9 + #process-compose-flake.url = "github:Platonic-Systems/process-compose-flake"; 10 + #cargo-doc-live.url = "github:srid/cargo-doc-live"; 11 11 12 12 git-hooks.url = "github:cachix/git-hooks.nix"; 13 13 git-hooks.flake = false; 14 14 }; 15 15 16 16 outputs = inputs: 17 - inputs.flake-parts.lib.mkFlake { inherit inputs; } { 17 + inputs.flake-parts.lib.mkFlake {inherit inputs;} { 18 18 systems = import inputs.systems; 19 19 20 20 # See ./nix/modules/*.nix for the modules that are imported here. 21 21 imports = with builtins; 22 22 map 23 - (fn: ./nix/modules/${fn}) 24 - (attrNames (readDir ./nix/modules)); 23 + (fn: ./nix/modules/${fn}) 24 + (attrNames (readDir ./nix/modules)); 25 25 }; 26 26 }
+21 -21
nix/modules/devshell.nix
··· 1 - { inputs, ... }: { 2 - perSystem = 3 - { config 4 - , self' 5 - , pkgs 6 - , lib 7 - , ... 8 - }: { 9 - devShells.default = pkgs.mkShell { 10 - name = "jacquard-shell"; 11 - inputsFrom = [ 12 - self'.devShells.rust 13 - config.pre-commit.devShell # See ./nix/modules/pre-commit.nix 14 - ]; 15 - packages = with pkgs; [ 16 - just 17 - nixd # Nix language server 18 - bacon 19 - rust-analyzer 20 - ]; 21 - }; 1 + {inputs, ...}: { 2 + perSystem = { 3 + config, 4 + self', 5 + pkgs, 6 + lib, 7 + ... 8 + }: { 9 + devShells.default = pkgs.mkShell { 10 + name = "jacquard-shell"; 11 + inputsFrom = [ 12 + self'.devShells.rust 13 + config.pre-commit.devShell # See ./nix/modules/pre-commit.nix 14 + ]; 15 + packages = with pkgs; [ 16 + just 17 + nixd # Nix language server 18 + bacon 19 + rust-analyzer 20 + ]; 22 21 }; 22 + }; 23 23 }
+75 -43
nix/modules/rust.nix
··· 1 - { inputs, ... }: { 1 + {inputs, ...}: { 2 2 imports = [ 3 3 inputs.rust-flake.flakeModules.default 4 4 inputs.rust-flake.flakeModules.nixpkgs 5 5 # inputs.process-compose-flake.flakeModule 6 6 # inputs.cargo-doc-live.flakeModule 7 7 ]; 8 - perSystem = 9 - { config 10 - , self' 11 - , pkgs 12 - , lib 13 - , ... 14 - }: 15 - let 16 - inherit (pkgs.stdenv) isDarwin; 17 - inherit (pkgs.darwin) apple_sdk; 8 + perSystem = { 9 + config, 10 + self', 11 + pkgs, 12 + lib, 13 + ... 14 + }: let 15 + inherit (pkgs.stdenv) isDarwin; 16 + inherit (pkgs.darwin) apple_sdk; 18 17 19 - # Common configuration for all crates 20 - globalCrateConfig = { 21 - crane.clippy.enable = false; 22 - }; 18 + # Common configuration for all crates 19 + globalCrateConfig = { 20 + crane.clippy.enable = false; 21 + }; 23 22 24 - # Common build inputs for all crates 25 - commonBuildInputs = lib.optionals isDarwin ( 23 + # Common build inputs for all crates 24 + commonBuildInputs = with pkgs; 25 + [ 26 + ] 27 + ++ lib.optionals 28 + isDarwin ( 26 29 with apple_sdk.frameworks; [ 27 30 IOKit 28 31 Security 29 32 SystemConfiguration 30 33 ] 31 34 ); 32 - in 33 - { 34 - rust-project = { 35 - # Source filtering to avoid unnecessary rebuilds 36 - src = lib.cleanSourceWith { 37 - src = inputs.self; 38 - filter = config.rust-project.crane-lib.filterCargoSources; 39 - }; 40 - crates = { 41 - "jacquard" = { 42 - imports = [ globalCrateConfig ]; 43 - autoWire = [ "crate" "clippy" ]; 44 - path = ./../../crates/jacquard; 45 - crane = { 46 - args = { 47 - buildInputs = commonBuildInputs; 48 - }; 35 + in { 36 + rust-project = { 37 + # Source filtering to avoid unnecessary rebuilds 38 + src = lib.cleanSourceWith { 39 + src = inputs.self; 40 + filter = config.rust-project.crane-lib.filterCargoSources; 41 + }; 42 + crates = { 43 + "jacquard" = { 44 + imports = [globalCrateConfig]; 45 + autoWire = ["crate" "clippy"]; 46 + path = ./../../crates/jacquard; 47 + crane = { 48 + args = { 49 + buildInputs = commonBuildInputs; 49 50 }; 50 51 }; 52 + }; 51 53 52 - "jacquard-common" = { 53 - imports = [ globalCrateConfig ]; 54 - autoWire = [ "crate" "clippy" ]; 55 - path = ./../../crates/jacquard-common; 56 - crane = { 57 - args = { 58 - buildInputs = commonBuildInputs; 59 - }; 54 + "jacquard-common" = { 55 + imports = [globalCrateConfig]; 56 + autoWire = ["crate" "clippy"]; 57 + path = ./../../crates/jacquard-common; 58 + crane = { 59 + args = { 60 + buildInputs = commonBuildInputs; 61 + }; 62 + }; 63 + }; 64 + "jacquard-derive" = { 65 + imports = [globalCrateConfig]; 66 + autoWire = ["crate" "clippy"]; 67 + path = ./../../crates/jacquard-derive; 68 + crane = { 69 + args = { 70 + buildInputs = commonBuildInputs; 71 + }; 72 + }; 73 + }; 74 + "jacquard-lexicon" = { 75 + imports = [globalCrateConfig]; 76 + autoWire = ["crate" "clippy"]; 77 + path = ./../../crates/jacquard-lexicon; 78 + crane = { 79 + args = { 80 + buildInputs = commonBuildInputs; 81 + }; 82 + }; 83 + }; 84 + "jacquard-api" = { 85 + imports = [globalCrateConfig]; 86 + autoWire = ["crate" "clippy"]; 87 + path = ./../../crates/jacquard-api; 88 + crane = { 89 + args = { 90 + buildInputs = commonBuildInputs; 60 91 }; 61 92 }; 62 93 }; 63 94 }; 64 - packages.default = self'.packages.jacquard; 65 95 }; 96 + packages.default = self'.packages.jacquard; 97 + }; 66 98 }
+1
rust-toolchain.toml
··· 1 1 [toolchain] 2 2 channel = "stable" 3 + profile = "complete"