diff --git a/packages/lexicons/index.ts b/packages/lexicons/index.ts deleted file mode 100644 index e69de29..0000000 diff --git a/packages/lexicons/lex-gen.sh b/packages/lexicons/lex-gen.sh deleted file mode 100644 index 68bf003..0000000 --- a/packages/lexicons/lex-gen.sh +++ /dev/null @@ -1 +0,0 @@ -lex gen-server ./src ./real/**/*.* diff --git a/packages/lexicons/package.json b/packages/lexicons/package.json deleted file mode 100644 index 7cd999a..0000000 --- a/packages/lexicons/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "@teal/lexicons", - "type": "module", - "main": "./index.ts", - "dependencies": { - "@atproto/lex-cli": "^0.5.4", - "@atproto/lexicon": "^0.4.2", - "@atproto/xrpc-server": "^0.7.4", - "@teal/tsconfig": "workspace:*" - }, - "scripts": { - "lex:gen-server": "zsh ./lex-gen.sh" - } -} diff --git a/packages/lexicons/real/app.bsky.actor.profile.json b/packages/lexicons/real/app.bsky.actor.profile.json deleted file mode 100644 index 4363a02..0000000 --- a/packages/lexicons/real/app.bsky.actor.profile.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "lexicon": 1, - "id": "app.bsky.actor.profile", - "defs": { - "main": { - "type": "record", - "description": "A declaration of a Bluesky account profile.", - "key": "literal:self", - "record": { - "type": "object", - "properties": { - "displayName": { - "type": "string", - "maxGraphemes": 64, - "maxLength": 640 - }, - "description": { - "type": "string", - "description": "Free-form profile description text.", - "maxGraphemes": 256, - "maxLength": 2560 - }, - "avatar": { - "type": "blob", - "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'", - "accept": ["image/png", "image/jpeg"], - "maxSize": 1000000 - }, - "banner": { - "type": "blob", - "description": "Larger horizontal image to display behind profile view.", - "accept": ["image/png", "image/jpeg"], - "maxSize": 1000000 - }, - "labels": { - "type": "union", - "description": "Self-label values, specific to the Bluesky application, on the overall account.", - "refs": ["com.atproto.label.defs#selfLabels"] - }, - "joinedViaStarterPack": { - "type": "ref", - "ref": "com.atproto.repo.strongRef" - }, - "createdAt": { "type": "string", "format": "datetime" } - } - } - } - } -} diff --git a/packages/lexicons/real/app.bsky.richtext.facet.json b/packages/lexicons/real/app.bsky.richtext.facet.json deleted file mode 100644 index 388a3a5..0000000 --- a/packages/lexicons/real/app.bsky.richtext.facet.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "lexicon": 1, - "id": "app.bsky.richtext.facet", - "defs": { - "main": { - "type": "object", - "description": "Annotation of a sub-string within rich text.", - "required": ["index", "features"], - "properties": { - "index": { "type": "ref", "ref": "#byteSlice" }, - "features": { - "type": "array", - "items": { "type": "union", "refs": ["#mention", "#link", "#tag"] } - } - } - }, - "mention": { - "type": "object", - "description": "Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID.", - "required": ["did"], - "properties": { - "did": { "type": "string", "format": "did" } - } - }, - "link": { - "type": "object", - "description": "Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL.", - "required": ["uri"], - "properties": { - "uri": { "type": "string", "format": "uri" } - } - }, - "tag": { - "type": "object", - "description": "Facet feature for a hashtag. The text usually includes a '#' prefix, but the facet reference should not (except in the case of 'double hash tags').", - "required": ["tag"], - "properties": { - "tag": { "type": "string", "maxLength": 640, "maxGraphemes": 64 } - } - }, - "byteSlice": { - "type": "object", - "description": "Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets.", - "required": ["byteStart", "byteEnd"], - "properties": { - "byteStart": { "type": "integer", "minimum": 0 }, - "byteEnd": { "type": "integer", "minimum": 0 } - } - } - } -} diff --git a/packages/lexicons/real/fm/teal/alpha/actor/defs.json b/packages/lexicons/real/fm/teal/alpha/actor/defs.json deleted file mode 100644 index 9ebdc45..0000000 --- a/packages/lexicons/real/fm/teal/alpha/actor/defs.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "lexicon": 1, - "id": "fm.teal.alpha.actor.defs", - "defs": { - "profileView": { - "type": "object", - "properties": { - "did": { - "type": "string", - "description": "The decentralized identifier of the actor" - }, - "displayName": { - "type": "string" - }, - "description": { - "type": "string", - "description": "Free-form profile description text." - }, - "descriptionFacets": { - "type": "array", - "description": "Annotations of text in the profile description (mentions, URLs, hashtags, etc). May be changed to another (backwards compatible) lexicon.", - "items": { "type": "ref", "ref": "app.bsky.richtext.facet" } - }, - "featuredItem": { - "type": "ref", - "description": "The user's most recent item featured on their profile.", - "ref": "fm.teal.alpha.actor.profile#featuredItem" - }, - "avatar": { - "type": "string", - "description": "IPLD of the avatar" - }, - "banner": { - "type": "string", - "description": "IPLD of the banner image" - }, - "createdAt": { "type": "string", "format": "datetime" } - } - }, - "miniProfileView": { - "type": "object", - "properties": { - "did": { - "type": "string", - "description": "The decentralized identifier of the actor" - }, - "displayName": { - "type": "string" - }, - "handle": { - "type": "string" - }, - "avatar": { - "type": "string", - "description": "IPLD of the avatar" - } - } - } - } -} diff --git a/packages/lexicons/real/fm/teal/alpha/actor/getProfile.json b/packages/lexicons/real/fm/teal/alpha/actor/getProfile.json deleted file mode 100644 index 6f2987d..0000000 --- a/packages/lexicons/real/fm/teal/alpha/actor/getProfile.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "lexicon": 1, - "id": "fm.teal.alpha.actor.getProfile", - "description": "This lexicon is in a not officially released state. It is subject to change. | Retrieves a play given an author DID and record key.", - "defs": { - "main": { - "type": "query", - "parameters": { - "type": "params", - "required": ["actor"], - "properties": { - "actor": { - "type": "string", - "format": "at-identifier", - "description": "The author's DID" - } - } - }, - "output": { - "encoding": "application/json", - "schema": { - "type": "object", - "required": ["actor"], - "properties": { - "actor": { - "type": "ref", - "ref": "fm.teal.alpha.actor.defs#profileView" - } - } - } - } - } - } -} diff --git a/packages/lexicons/real/fm/teal/alpha/actor/getProfiles.json b/packages/lexicons/real/fm/teal/alpha/actor/getProfiles.json deleted file mode 100644 index 0d33064..0000000 --- a/packages/lexicons/real/fm/teal/alpha/actor/getProfiles.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "lexicon": 1, - "id": "fm.teal.alpha.actor.getProfiles", - "description": "This lexicon is in a not officially released state. It is subject to change. | Retrieves the associated profile.", - "defs": { - "main": { - "type": "query", - "parameters": { - "type": "params", - "required": ["actors"], - "properties": { - "actors": { - "type": "array", - "items": { - "type": "string", - "format": "at-identifier" - }, - "description": "Array of actor DIDs" - } - } - }, - "output": { - "encoding": "application/json", - "schema": { - "type": "object", - "required": ["actors"], - "properties": { - "actors": { - "type": "array", - "items": { - "type": "ref", - "ref": "fm.teal.alpha.actor.defs#miniProfileView" - } - } - } - } - } - } - } -} diff --git a/packages/lexicons/real/fm/teal/alpha/actor/profile.json b/packages/lexicons/real/fm/teal/alpha/actor/profile.json deleted file mode 100644 index 66fab85..0000000 --- a/packages/lexicons/real/fm/teal/alpha/actor/profile.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "lexicon": 1, - "id": "fm.teal.alpha.actor.profile", - "defs": { - "main": { - "type": "record", - "description": "This lexicon is in a not officially released state. It is subject to change. | A declaration of a teal.fm account profile.", - "key": "literal:self", - "record": { - "type": "object", - "properties": { - "displayName": { - "type": "string", - "maxGraphemes": 64, - "maxLength": 640 - }, - "description": { - "type": "string", - "description": "Free-form profile description text.", - "maxGraphemes": 256, - "maxLength": 2560 - }, - "descriptionFacets": { - "type": "array", - "description": "Annotations of text in the profile description (mentions, URLs, hashtags, etc).", - "items": { "type": "ref", "ref": "app.bsky.richtext.facet" } - }, - "featuredItem": { - "type": "ref", - "description": "The user's most recent item featured on their profile.", - "ref": "#featuredItem" - }, - "avatar": { - "type": "blob", - "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'", - "accept": ["image/png", "image/jpeg"], - "maxSize": 1000000 - }, - "banner": { - "type": "blob", - "description": "Larger horizontal image to display behind profile view.", - "accept": ["image/png", "image/jpeg"], - "maxSize": 1000000 - }, - "createdAt": { "type": "string", "format": "datetime" } - } - } - }, - "featuredItem": { - "type": "object", - "required": ["mbid", "type"], - "properties": { - "mbid": { - "type": "string", - "description": "The Musicbrainz ID of the item" - }, - "type": { - "type": "string", - "description": "The type of the item. Must be a valid Musicbrainz type, e.g. album, track, recording, etc." - } - } - } - } -} diff --git a/packages/lexicons/real/fm/teal/alpha/actor/profileStatus.json b/packages/lexicons/real/fm/teal/alpha/actor/profileStatus.json deleted file mode 100644 index d529e4d..0000000 --- a/packages/lexicons/real/fm/teal/alpha/actor/profileStatus.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "lexicon": 1, - "id": "fm.teal.alpha.actor.profileStatus", - "defs": { - "main": { - "type": "record", - "description": "This lexicon is in a not officially released state. It is subject to change. | A declaration of the profile status and onboarding completion state of the actor.", - "key": "literal:self", - "record": { - "type": "object", - "required": ["completedOnboarding"], - "properties": { - "completedOnboarding": { - "type": "string", - "description": "The onboarding completion status", - "knownValues": ["none", "profileOnboarding", "playOnboarding", "complete"] - }, - "createdAt": { - "type": "string", - "format": "datetime", - "description": "The timestamp when this status was created" - }, - "updatedAt": { - "type": "string", - "format": "datetime", - "description": "The timestamp when this status was last updated" - } - } - } - } - } -} diff --git a/packages/lexicons/real/fm/teal/alpha/actor/searchActors.json b/packages/lexicons/real/fm/teal/alpha/actor/searchActors.json deleted file mode 100644 index 8f4b2fa..0000000 --- a/packages/lexicons/real/fm/teal/alpha/actor/searchActors.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "lexicon": 1, - "id": "fm.teal.alpha.actor.searchActors", - "description": "This lexicon is in a not officially released state. It is subject to change. | Searches for actors based on profile contents.", - "defs": { - "main": { - "type": "query", - "parameters": { - "type": "params", - "required": ["q"], - "properties": { - "q": { - "type": "string", - "description": "The search query", - "maxGraphemes": 128, - "maxLength": 640 - }, - "limit": { - "type": "integer", - "description": "The maximum number of actors to return", - "minimum": 1, - "maximum": 25 - }, - "cursor": { - "type": "string", - "description": "Cursor for pagination" - } - } - }, - "output": { - "encoding": "application/json", - "schema": { - "type": "object", - "required": ["actors"], - "properties": { - "actors": { - "type": "array", - "items": { - "type": "ref", - "ref": "fm.teal.alpha.actor.defs#miniProfileView" - } - }, - "cursor": { - "type": "string", - "description": "Cursor for pagination" - } - } - } - } - } - } -} diff --git a/packages/lexicons/real/fm/teal/alpha/actor/status.json b/packages/lexicons/real/fm/teal/alpha/actor/status.json deleted file mode 100644 index 33144d0..0000000 --- a/packages/lexicons/real/fm/teal/alpha/actor/status.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "lexicon": 1, - "id": "fm.teal.alpha.actor.status", - "defs": { - "main": { - "type": "record", - "description": "This lexicon is in a not officially released state. It is subject to change. | A declaration of the status of the actor. Only one can be shown at a time. If there are multiple, the latest record should be picked and earlier records should be deleted or tombstoned.", - "key": "literal:self", - "record": { - "type": "object", - "required": ["time", "item"], - "properties": { - "time": { - "type": "string", - "format": "datetime", - "description": "The unix timestamp of when the item was recorded" - }, - "expiry": { - "type": "string", - "format": "datetime", - "description": "The unix timestamp of the expiry time of the item. If unavailable, default to 10 minutes past the start time." - }, - "item": { - "type": "ref", - "ref": "fm.teal.alpha.feed.defs#playView" - } - } - } - } - } -} diff --git a/packages/lexicons/real/fm/teal/alpha/feed/defs.json b/packages/lexicons/real/fm/teal/alpha/feed/defs.json deleted file mode 100644 index c4a90c4..0000000 --- a/packages/lexicons/real/fm/teal/alpha/feed/defs.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "lexicon": 1, - "id": "fm.teal.alpha.feed.defs", - "description": "This lexicon is in a not officially released state. It is subject to change. | Misc. items related to feeds.", - "defs": { - "playView": { - "type": "object", - "required": ["trackName", "artists"], - "properties": { - "trackName": { - "type": "string", - "minLength": 1, - "maxLength": 256, - "maxGraphemes": 2560, - "description": "The name of the track" - }, - "trackMbId": { - "type": "string", - "description": "The Musicbrainz ID of the track" - }, - "recordingMbId": { - "type": "string", - "description": "The Musicbrainz recording ID of the track" - }, - "duration": { - "type": "integer", - "description": "The length of the track in seconds" - }, - "artists": { - "type": "array", - "items": { - "type": "ref", - "ref": "#artist" - }, - "description": "Array of artists in order of original appearance." - }, - "releaseName": { - "type": "string", - "maxLength": 256, - "maxGraphemes": 2560, - "description": "The name of the release/album" - }, - "releaseMbId": { - "type": "string", - "description": "The Musicbrainz release ID" - }, - "isrc": { - "type": "string", - "description": "The ISRC code associated with the recording" - }, - "originUrl": { - "type": "string", - "description": "The URL associated with this track" - }, - "musicServiceBaseDomain": { - "type": "string", - "description": "The base domain of the music service. e.g. music.apple.com, tidal.com, spotify.com. Defaults to 'local' if not provided." - }, - "submissionClientAgent": { - "type": "string", - "maxLength": 256, - "maxGraphemes": 2560, - "description": "A user-agent style string specifying the user agent. e.g. tealtracker/0.0.1b (Linux; Android 13; SM-A715F). Defaults to 'manual/unknown' if not provided." - }, - "playedTime": { - "type": "string", - "format": "datetime", - "description": "The unix timestamp of when the track was played" - } - } - }, - "artist": { - "type": "object", - "required": ["artistName"], - "properties": { - "artistName": { - "type": "string", - "minLength": 1, - "maxLength": 256, - "maxGraphemes": 2560, - "description": "The name of the artist" - }, - "artistMbId": { - "type": "string", - "description": "The Musicbrainz ID of the artist" - } - } - } - } -} diff --git a/packages/lexicons/real/fm/teal/alpha/feed/getActorFeed.json b/packages/lexicons/real/fm/teal/alpha/feed/getActorFeed.json deleted file mode 100644 index 51b6c9d..0000000 --- a/packages/lexicons/real/fm/teal/alpha/feed/getActorFeed.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "lexicon": 1, - "id": "fm.teal.alpha.feed.getActorFeed", - "description": "This lexicon is in a not officially released state. It is subject to change. | Retrieves multiple plays from the index or via an author's DID.", - "defs": { - "main": { - "type": "query", - "parameters": { - "type": "params", - "required": ["authorDID"], - "properties": { - "authorDID": { - "type": "string", - "format": "at-identifier", - "description": "The author's DID for the play" - }, - "cursor": { - "type": "string", - "description": "The cursor to start the query from" - }, - "limit": { - "type": "integer", - "description": "The upper limit of tracks to get per request. Default is 20, max is 50." - } - } - }, - "output": { - "encoding": "application/json", - "schema": { - "type": "object", - "required": ["plays"], - "properties": { - "plays": { - "type": "array", - "items": { - "type": "ref", - "ref": "fm.teal.alpha.feed.defs#playView" - } - } - } - } - } - } - } -} diff --git a/packages/lexicons/real/fm/teal/alpha/feed/getPlay.json b/packages/lexicons/real/fm/teal/alpha/feed/getPlay.json deleted file mode 100644 index 5ceba07..0000000 --- a/packages/lexicons/real/fm/teal/alpha/feed/getPlay.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "lexicon": 1, - "id": "fm.teal.alpha.feed.getPlay", - "description": "This lexicon is in a not officially released state. It is subject to change. | Retrieves a play given an author DID and record key.", - "defs": { - "main": { - "type": "query", - "parameters": { - "type": "params", - "required": ["authorDID", "rkey"], - "properties": { - "authorDID": { - "type": "string", - "format": "at-identifier", - "description": "The author's DID for the play" - }, - "rkey": { - "type": "string", - "description": "The record key of the play" - } - } - }, - "output": { - "encoding": "application/json", - "schema": { - "type": "object", - "required": ["play"], - "properties": { - "play": { - "type": "ref", - "ref": "fm.teal.alpha.feed.defs#playView" - } - } - } - } - } - } -} diff --git a/packages/lexicons/real/fm/teal/alpha/feed/play.json b/packages/lexicons/real/fm/teal/alpha/feed/play.json deleted file mode 100644 index a9216b4..0000000 --- a/packages/lexicons/real/fm/teal/alpha/feed/play.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "lexicon": 1, - "id": "fm.teal.alpha.feed.play", - "description": "This lexicon is in a not officially released state. It is subject to change. | A declaration of a teal.fm play. Plays are submitted as a result of a user listening to a track. Plays should be marked as tracked when a user has listened to the entire track if it's under 2 minutes long, or half of the track's duration up to 4 minutes, whichever is longest.", - "defs": { - "main": { - "type": "record", - "key": "tid", - "record": { - "type": "object", - "required": ["trackName"], - "properties": { - "trackName": { - "type": "string", - "minLength": 1, - "maxLength": 256, - "maxGraphemes": 2560, - "description": "The name of the track" - }, - "trackMbId": { - "type": "string", - - "description": "The Musicbrainz ID of the track" - }, - "recordingMbId": { - "type": "string", - "description": "The Musicbrainz recording ID of the track" - }, - "duration": { - "type": "integer", - "description": "The length of the track in seconds" - }, - "artistNames": { - "type": "array", - "items": { - "type": "string", - "minLength": 1, - "maxLength": 256, - "maxGraphemes": 2560 - }, - "description": "Array of artist names in order of original appearance. Prefer using 'artists'." - }, - "artistMbIds": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Array of Musicbrainz artist IDs. Prefer using 'artists'." - }, - "artists": { - "type": "array", - "items": { - "type": "ref", - "ref": "fm.teal.alpha.feed.defs#artist" - }, - "description": "Array of artists in order of original appearance." - }, - "releaseName": { - "type": "string", - "maxLength": 256, - "maxGraphemes": 2560, - "description": "The name of the release/album" - }, - "releaseMbId": { - "type": "string", - "description": "The Musicbrainz release ID" - }, - "isrc": { - "type": "string", - "description": "The ISRC code associated with the recording" - }, - "originUrl": { - "type": "string", - "description": "The URL associated with this track" - }, - "musicServiceBaseDomain": { - "type": "string", - "description": "The base domain of the music service. e.g. music.apple.com, tidal.com, spotify.com. Defaults to 'local' if unavailable or not provided." - }, - "submissionClientAgent": { - "type": "string", - "maxLength": 256, - "maxGraphemes": 2560, - "description": "A metadata string specifying the user agent where the format is `/ (; ; )`. If string is provided, only `app-identifier` and `version` are required. `app-identifier` is recommended to be in reverse dns format. Defaults to 'manual/unknown' if unavailable or not provided." - }, - "playedTime": { - "type": "string", - "format": "datetime", - "description": "The unix timestamp of when the track was played" - } - } - } - } - } -} diff --git a/packages/lexicons/real/xyz.statusphere.status.json b/packages/lexicons/real/xyz.statusphere.status.json deleted file mode 100644 index e4bf5a9..0000000 --- a/packages/lexicons/real/xyz.statusphere.status.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "lexicon": 1, - "id": "xyz.statusphere.status", - "defs": { - "main": { - "type": "record", - "key": "tid", - "record": { - "type": "object", - "required": ["status", "createdAt"], - "properties": { - "status": { - "type": "string", - "minLength": 1, - "maxGraphemes": 1, - "maxLength": 32 - }, - "createdAt": { "type": "string", "format": "datetime" } - } - } - } - } -} diff --git a/packages/lexicons/src/index.ts b/packages/lexicons/src/index.ts deleted file mode 100644 index d898e44..0000000 --- a/packages/lexicons/src/index.ts +++ /dev/null @@ -1,220 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { - AuthVerifier, - createServer as createXrpcServer, - StreamAuthVerifier, - Options as XrpcOptions, - Server as XrpcServer, -} from "@atproto/xrpc-server"; - -import { schemas } from "./lexicons"; -import * as FmTealAlphaActorGetProfile from "./types/fm/teal/alpha/actor/getProfile"; -import * as FmTealAlphaActorGetProfiles from "./types/fm/teal/alpha/actor/getProfiles"; -import * as FmTealAlphaActorSearchActors from "./types/fm/teal/alpha/actor/searchActors"; -import * as FmTealAlphaFeedGetActorFeed from "./types/fm/teal/alpha/feed/getActorFeed"; -import * as FmTealAlphaFeedGetPlay from "./types/fm/teal/alpha/feed/getPlay"; - -export function createServer(options?: XrpcOptions): Server { - return new Server(options); -} - -export class Server { - xrpc: XrpcServer; - app: AppNS; - fm: FmNS; - xyz: XyzNS; - - constructor(options?: XrpcOptions) { - this.xrpc = createXrpcServer(schemas, options); - this.app = new AppNS(this); - this.fm = new FmNS(this); - this.xyz = new XyzNS(this); - } -} - -export class AppNS { - _server: Server; - bsky: AppBskyNS; - - constructor(server: Server) { - this._server = server; - this.bsky = new AppBskyNS(server); - } -} - -export class AppBskyNS { - _server: Server; - actor: AppBskyActorNS; - richtext: AppBskyRichtextNS; - - constructor(server: Server) { - this._server = server; - this.actor = new AppBskyActorNS(server); - this.richtext = new AppBskyRichtextNS(server); - } -} - -export class AppBskyActorNS { - _server: Server; - - constructor(server: Server) { - this._server = server; - } -} - -export class AppBskyRichtextNS { - _server: Server; - - constructor(server: Server) { - this._server = server; - } -} - -export class FmNS { - _server: Server; - teal: FmTealNS; - - constructor(server: Server) { - this._server = server; - this.teal = new FmTealNS(server); - } -} - -export class FmTealNS { - _server: Server; - alpha: FmTealAlphaNS; - - constructor(server: Server) { - this._server = server; - this.alpha = new FmTealAlphaNS(server); - } -} - -export class FmTealAlphaNS { - _server: Server; - actor: FmTealAlphaActorNS; - feed: FmTealAlphaFeedNS; - - constructor(server: Server) { - this._server = server; - this.actor = new FmTealAlphaActorNS(server); - this.feed = new FmTealAlphaFeedNS(server); - } -} - -export class FmTealAlphaActorNS { - _server: Server; - - constructor(server: Server) { - this._server = server; - } - - getProfile( - cfg: ConfigOf< - AV, - FmTealAlphaActorGetProfile.Handler>, - FmTealAlphaActorGetProfile.HandlerReqCtx> - >, - ) { - const nsid = "fm.teal.alpha.actor.getProfile"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); - } - - getProfiles( - cfg: ConfigOf< - AV, - FmTealAlphaActorGetProfiles.Handler>, - FmTealAlphaActorGetProfiles.HandlerReqCtx> - >, - ) { - const nsid = "fm.teal.alpha.actor.getProfiles"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); - } - - searchActors( - cfg: ConfigOf< - AV, - FmTealAlphaActorSearchActors.Handler>, - FmTealAlphaActorSearchActors.HandlerReqCtx> - >, - ) { - const nsid = "fm.teal.alpha.actor.searchActors"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); - } -} - -export class FmTealAlphaFeedNS { - _server: Server; - - constructor(server: Server) { - this._server = server; - } - - getActorFeed( - cfg: ConfigOf< - AV, - FmTealAlphaFeedGetActorFeed.Handler>, - FmTealAlphaFeedGetActorFeed.HandlerReqCtx> - >, - ) { - const nsid = "fm.teal.alpha.feed.getActorFeed"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); - } - - getPlay( - cfg: ConfigOf< - AV, - FmTealAlphaFeedGetPlay.Handler>, - FmTealAlphaFeedGetPlay.HandlerReqCtx> - >, - ) { - const nsid = "fm.teal.alpha.feed.getPlay"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); - } -} - -export class XyzNS { - _server: Server; - statusphere: XyzStatusphereNS; - - constructor(server: Server) { - this._server = server; - this.statusphere = new XyzStatusphereNS(server); - } -} - -export class XyzStatusphereNS { - _server: Server; - - constructor(server: Server) { - this._server = server; - } -} - -type SharedRateLimitOpts = { - name: string; - calcKey?: (ctx: T) => string | null; - calcPoints?: (ctx: T) => number; -}; -type RouteRateLimitOpts = { - durationMs: number; - points: number; - calcKey?: (ctx: T) => string | null; - calcPoints?: (ctx: T) => number; -}; -type HandlerOpts = { blobLimit?: number }; -type HandlerRateLimitOpts = SharedRateLimitOpts | RouteRateLimitOpts; -type ConfigOf = - | Handler - | { - auth?: Auth; - opts?: HandlerOpts; - rateLimit?: HandlerRateLimitOpts | HandlerRateLimitOpts[]; - handler: Handler; - }; -type ExtractAuth = Extract< - Awaited>, - { credentials: unknown } ->; diff --git a/packages/lexicons/src/lexicons.ts b/packages/lexicons/src/lexicons.ts deleted file mode 100644 index 9874943..0000000 --- a/packages/lexicons/src/lexicons.ts +++ /dev/null @@ -1,805 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { LexiconDoc, Lexicons } from "@atproto/lexicon"; - -export const schemaDict = { - AppBskyActorProfile: { - lexicon: 1, - id: "app.bsky.actor.profile", - defs: { - main: { - type: "record", - description: "A declaration of a Bluesky account profile.", - key: "literal:self", - record: { - type: "object", - properties: { - displayName: { - type: "string", - maxGraphemes: 64, - maxLength: 640, - }, - description: { - type: "string", - description: "Free-form profile description text.", - maxGraphemes: 256, - maxLength: 2560, - }, - avatar: { - type: "blob", - description: - "Small image to be displayed next to posts from account. AKA, 'profile picture'", - accept: ["image/png", "image/jpeg"], - maxSize: 1000000, - }, - banner: { - type: "blob", - description: - "Larger horizontal image to display behind profile view.", - accept: ["image/png", "image/jpeg"], - maxSize: 1000000, - }, - labels: { - type: "union", - description: - "Self-label values, specific to the Bluesky application, on the overall account.", - refs: ["lex:com.atproto.label.defs#selfLabels"], - }, - joinedViaStarterPack: { - type: "ref", - ref: "lex:com.atproto.repo.strongRef", - }, - createdAt: { - type: "string", - format: "datetime", - }, - }, - }, - }, - }, - }, - AppBskyRichtextFacet: { - lexicon: 1, - id: "app.bsky.richtext.facet", - defs: { - main: { - type: "object", - description: "Annotation of a sub-string within rich text.", - required: ["index", "features"], - properties: { - index: { - type: "ref", - ref: "lex:app.bsky.richtext.facet#byteSlice", - }, - features: { - type: "array", - items: { - type: "union", - refs: [ - "lex:app.bsky.richtext.facet#mention", - "lex:app.bsky.richtext.facet#link", - "lex:app.bsky.richtext.facet#tag", - ], - }, - }, - }, - }, - mention: { - type: "object", - description: - "Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID.", - required: ["did"], - properties: { - did: { - type: "string", - format: "did", - }, - }, - }, - link: { - type: "object", - description: - "Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL.", - required: ["uri"], - properties: { - uri: { - type: "string", - format: "uri", - }, - }, - }, - tag: { - type: "object", - description: - "Facet feature for a hashtag. The text usually includes a '#' prefix, but the facet reference should not (except in the case of 'double hash tags').", - required: ["tag"], - properties: { - tag: { - type: "string", - maxLength: 640, - maxGraphemes: 64, - }, - }, - }, - byteSlice: { - type: "object", - description: - "Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets.", - required: ["byteStart", "byteEnd"], - properties: { - byteStart: { - type: "integer", - minimum: 0, - }, - byteEnd: { - type: "integer", - minimum: 0, - }, - }, - }, - }, - }, - FmTealAlphaActorDefs: { - lexicon: 1, - id: "fm.teal.alpha.actor.defs", - defs: { - profileView: { - type: "object", - properties: { - did: { - type: "string", - description: "The decentralized identifier of the actor", - }, - displayName: { - type: "string", - }, - description: { - type: "string", - description: "Free-form profile description text.", - }, - descriptionFacets: { - type: "array", - description: - "Annotations of text in the profile description (mentions, URLs, hashtags, etc). May be changed to another (backwards compatible) lexicon.", - items: { - type: "ref", - ref: "lex:app.bsky.richtext.facet", - }, - }, - featuredItem: { - type: "ref", - description: - "The user's most recent item featured on their profile.", - ref: "lex:fm.teal.alpha.actor.profile#featuredItem", - }, - avatar: { - type: "string", - description: "IPLD of the avatar", - }, - banner: { - type: "string", - description: "IPLD of the banner image", - }, - createdAt: { - type: "string", - format: "datetime", - }, - }, - }, - miniProfileView: { - type: "object", - properties: { - did: { - type: "string", - description: "The decentralized identifier of the actor", - }, - displayName: { - type: "string", - }, - handle: { - type: "string", - }, - avatar: { - type: "string", - description: "IPLD of the avatar", - }, - }, - }, - }, - }, - FmTealAlphaActorGetProfile: { - lexicon: 1, - id: "fm.teal.alpha.actor.getProfile", - description: - "This lexicon is in a not officially released state. It is subject to change. | Retrieves a play given an author DID and record key.", - defs: { - main: { - type: "query", - parameters: { - type: "params", - required: ["actor"], - properties: { - actor: { - type: "string", - format: "at-identifier", - description: "The author's DID", - }, - }, - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["actor"], - properties: { - actor: { - type: "ref", - ref: "lex:fm.teal.alpha.actor.defs#profileView", - }, - }, - }, - }, - }, - }, - }, - FmTealAlphaActorGetProfiles: { - lexicon: 1, - id: "fm.teal.alpha.actor.getProfiles", - description: - "This lexicon is in a not officially released state. It is subject to change. | Retrieves the associated profile.", - defs: { - main: { - type: "query", - parameters: { - type: "params", - required: ["actors"], - properties: { - actors: { - type: "array", - items: { - type: "string", - format: "at-identifier", - }, - description: "Array of actor DIDs", - }, - }, - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["actors"], - properties: { - actors: { - type: "array", - items: { - type: "ref", - ref: "lex:fm.teal.alpha.actor.defs#miniProfileView", - }, - }, - }, - }, - }, - }, - }, - }, - FmTealAlphaActorProfile: { - lexicon: 1, - id: "fm.teal.alpha.actor.profile", - defs: { - main: { - type: "record", - description: - "This lexicon is in a not officially released state. It is subject to change. | A declaration of a teal.fm account profile.", - key: "literal:self", - record: { - type: "object", - properties: { - displayName: { - type: "string", - maxGraphemes: 64, - maxLength: 640, - }, - description: { - type: "string", - description: "Free-form profile description text.", - maxGraphemes: 256, - maxLength: 2560, - }, - descriptionFacets: { - type: "array", - description: - "Annotations of text in the profile description (mentions, URLs, hashtags, etc).", - items: { - type: "ref", - ref: "lex:app.bsky.richtext.facet", - }, - }, - featuredItem: { - type: "ref", - description: - "The user's most recent item featured on their profile.", - ref: "lex:fm.teal.alpha.actor.profile#featuredItem", - }, - avatar: { - type: "blob", - description: - "Small image to be displayed next to posts from account. AKA, 'profile picture'", - accept: ["image/png", "image/jpeg"], - maxSize: 1000000, - }, - banner: { - type: "blob", - description: - "Larger horizontal image to display behind profile view.", - accept: ["image/png", "image/jpeg"], - maxSize: 1000000, - }, - createdAt: { - type: "string", - format: "datetime", - }, - }, - }, - }, - featuredItem: { - type: "object", - required: ["mbid", "type"], - properties: { - mbid: { - type: "string", - description: "The Musicbrainz ID of the item", - }, - type: { - type: "string", - description: - "The type of the item. Must be a valid Musicbrainz type, e.g. album, track, recording, etc.", - }, - }, - }, - }, - }, - FmTealAlphaActorSearchActors: { - lexicon: 1, - id: "fm.teal.alpha.actor.searchActors", - description: - "This lexicon is in a not officially released state. It is subject to change. | Searches for actors based on profile contents.", - defs: { - main: { - type: "query", - parameters: { - type: "params", - required: ["q"], - properties: { - q: { - type: "string", - description: "The search query", - maxGraphemes: 128, - maxLength: 640, - }, - limit: { - type: "integer", - description: "The maximum number of actors to return", - minimum: 1, - maximum: 25, - }, - cursor: { - type: "string", - description: "Cursor for pagination", - }, - }, - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["actors"], - properties: { - actors: { - type: "array", - items: { - type: "ref", - ref: "lex:fm.teal.alpha.actor.defs#miniProfileView", - }, - }, - cursor: { - type: "string", - description: "Cursor for pagination", - }, - }, - }, - }, - }, - }, - }, - FmTealAlphaActorStatus: { - lexicon: 1, - id: "fm.teal.alpha.actor.status", - defs: { - main: { - type: "record", - description: - "This lexicon is in a not officially released state. It is subject to change. | A declaration of the status of the actor. Only one can be shown at a time. If there are multiple, the latest record should be picked and earlier records should be deleted or tombstoned.", - key: "literal:self", - record: { - type: "object", - required: ["time", "item"], - properties: { - time: { - type: "string", - format: "datetime", - description: "The unix timestamp of when the item was recorded", - }, - expiry: { - type: "string", - format: "datetime", - description: - "The unix timestamp of the expiry time of the item. If unavailable, default to 10 minutes past the start time.", - }, - item: { - type: "ref", - ref: "lex:fm.teal.alpha.feed.defs#playView", - }, - }, - }, - }, - }, - }, - FmTealAlphaActorProfileStatus: { - lexicon: 1, - id: "fm.teal.alpha.actor.profileStatus", - defs: { - main: { - type: "record", - description: - "This lexicon is in a not officially released state. It is subject to change. | A declaration of the profile status and onboarding completion state of the actor.", - key: "literal:self", - record: { - type: "object", - required: ["completedOnboarding"], - properties: { - completedOnboarding: { - type: "string", - description: "The onboarding completion status", - knownValues: ["none", "profileOnboarding", "playOnboarding", "complete"], - }, - createdAt: { - type: "string", - format: "datetime", - description: "The timestamp when this status was created", - }, - updatedAt: { - type: "string", - format: "datetime", - description: "The timestamp when this status was last updated", - }, - }, - }, - }, - }, - }, - FmTealAlphaFeedDefs: { - lexicon: 1, - id: "fm.teal.alpha.feed.defs", - description: - "This lexicon is in a not officially released state. It is subject to change. | Misc. items related to feeds.", - defs: { - playView: { - type: "object", - required: ["trackName", "artists"], - properties: { - trackName: { - type: "string", - minLength: 1, - maxLength: 256, - maxGraphemes: 2560, - description: "The name of the track", - }, - trackMbId: { - type: "string", - description: "The Musicbrainz ID of the track", - }, - recordingMbId: { - type: "string", - description: "The Musicbrainz recording ID of the track", - }, - duration: { - type: "integer", - description: "The length of the track in seconds", - }, - artists: { - type: "array", - items: { - type: "ref", - ref: "lex:fm.teal.alpha.feed.defs#artist", - }, - description: "Array of artists in order of original appearance.", - }, - releaseName: { - type: "string", - maxLength: 256, - maxGraphemes: 2560, - description: "The name of the release/album", - }, - releaseMbId: { - type: "string", - description: "The Musicbrainz release ID", - }, - isrc: { - type: "string", - description: "The ISRC code associated with the recording", - }, - originUrl: { - type: "string", - description: "The URL associated with this track", - }, - musicServiceBaseDomain: { - type: "string", - description: - "The base domain of the music service. e.g. music.apple.com, tidal.com, spotify.com. Defaults to 'local' if not provided.", - }, - submissionClientAgent: { - type: "string", - maxLength: 256, - maxGraphemes: 2560, - description: - "A user-agent style string specifying the user agent. e.g. tealtracker/0.0.1b (Linux; Android 13; SM-A715F). Defaults to 'manual/unknown' if not provided.", - }, - playedTime: { - type: "string", - format: "datetime", - description: "The unix timestamp of when the track was played", - }, - }, - }, - artist: { - type: "object", - required: ["artistName"], - properties: { - artistName: { - type: "string", - minLength: 1, - maxLength: 256, - maxGraphemes: 2560, - description: "The name of the artist", - }, - artistMbId: { - type: "string", - description: "The Musicbrainz ID of the artist", - }, - }, - }, - }, - }, - FmTealAlphaFeedGetActorFeed: { - lexicon: 1, - id: "fm.teal.alpha.feed.getActorFeed", - description: - "This lexicon is in a not officially released state. It is subject to change. | Retrieves multiple plays from the index or via an author's DID.", - defs: { - main: { - type: "query", - parameters: { - type: "params", - required: ["authorDID"], - properties: { - authorDID: { - type: "string", - format: "at-identifier", - description: "The author's DID for the play", - }, - cursor: { - type: "string", - description: "The cursor to start the query from", - }, - limit: { - type: "integer", - description: - "The upper limit of tracks to get per request. Default is 20, max is 50.", - }, - }, - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["plays"], - properties: { - plays: { - type: "array", - items: { - type: "ref", - ref: "lex:fm.teal.alpha.feed.defs#playView", - }, - }, - }, - }, - }, - }, - }, - }, - FmTealAlphaFeedGetPlay: { - lexicon: 1, - id: "fm.teal.alpha.feed.getPlay", - description: - "This lexicon is in a not officially released state. It is subject to change. | Retrieves a play given an author DID and record key.", - defs: { - main: { - type: "query", - parameters: { - type: "params", - required: ["authorDID", "rkey"], - properties: { - authorDID: { - type: "string", - format: "at-identifier", - description: "The author's DID for the play", - }, - rkey: { - type: "string", - description: "The record key of the play", - }, - }, - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["play"], - properties: { - play: { - type: "ref", - ref: "lex:fm.teal.alpha.feed.defs#playView", - }, - }, - }, - }, - }, - }, - }, - FmTealAlphaFeedPlay: { - lexicon: 1, - id: "fm.teal.alpha.feed.play", - description: - "This lexicon is in a not officially released state. It is subject to change. | A declaration of a teal.fm play. Plays are submitted as a result of a user listening to a track. Plays should be marked as tracked when a user has listened to the entire track if it's under 2 minutes long, or half of the track's duration up to 4 minutes, whichever is longest.", - defs: { - main: { - type: "record", - key: "tid", - record: { - type: "object", - required: ["trackName"], - properties: { - trackName: { - type: "string", - minLength: 1, - maxLength: 256, - maxGraphemes: 2560, - description: "The name of the track", - }, - trackMbId: { - type: "string", - description: "The Musicbrainz ID of the track", - }, - recordingMbId: { - type: "string", - description: "The Musicbrainz recording ID of the track", - }, - duration: { - type: "integer", - description: "The length of the track in seconds", - }, - artistNames: { - type: "array", - items: { - type: "string", - minLength: 1, - maxLength: 256, - maxGraphemes: 2560, - }, - description: - "Array of artist names in order of original appearance. Prefer using 'artists'.", - }, - artistMbIds: { - type: "array", - items: { - type: "string", - }, - description: - "Array of Musicbrainz artist IDs. Prefer using 'artists'.", - }, - artists: { - type: "array", - items: { - type: "ref", - ref: "lex:fm.teal.alpha.feed.defs#artist", - }, - description: "Array of artists in order of original appearance.", - }, - releaseName: { - type: "string", - maxLength: 256, - maxGraphemes: 2560, - description: "The name of the release/album", - }, - releaseMbId: { - type: "string", - description: "The Musicbrainz release ID", - }, - isrc: { - type: "string", - description: "The ISRC code associated with the recording", - }, - originUrl: { - type: "string", - description: "The URL associated with this track", - }, - musicServiceBaseDomain: { - type: "string", - description: - "The base domain of the music service. e.g. music.apple.com, tidal.com, spotify.com. Defaults to 'local' if unavailable or not provided.", - }, - submissionClientAgent: { - type: "string", - maxLength: 256, - maxGraphemes: 2560, - description: - "A metadata string specifying the user agent where the format is `/ (; ; )`. If string is provided, only `app-identifier` and `version` are required. `app-identifier` is recommended to be in reverse dns format. Defaults to 'manual/unknown' if unavailable or not provided.", - }, - playedTime: { - type: "string", - format: "datetime", - description: "The unix timestamp of when the track was played", - }, - }, - }, - }, - }, - }, - XyzStatusphereStatus: { - lexicon: 1, - id: "xyz.statusphere.status", - defs: { - main: { - type: "record", - key: "tid", - record: { - type: "object", - required: ["status", "createdAt"], - properties: { - status: { - type: "string", - minLength: 1, - maxGraphemes: 1, - maxLength: 32, - }, - createdAt: { - type: "string", - format: "datetime", - }, - }, - }, - }, - }, - }, -} as const satisfies Record; - -export const schemas = Object.values(schemaDict); -export const lexicons: Lexicons = new Lexicons(schemas); -export const ids = { - AppBskyActorProfile: "app.bsky.actor.profile", - AppBskyRichtextFacet: "app.bsky.richtext.facet", - FmTealAlphaActorDefs: "fm.teal.alpha.actor.defs", - FmTealAlphaActorGetProfile: "fm.teal.alpha.actor.getProfile", - FmTealAlphaActorGetProfiles: "fm.teal.alpha.actor.getProfiles", - FmTealAlphaActorProfile: "fm.teal.alpha.actor.profile", - FmTealAlphaActorProfileStatus: "fm.teal.alpha.actor.profileStatus", - FmTealAlphaActorSearchActors: "fm.teal.alpha.actor.searchActors", - FmTealAlphaActorStatus: "fm.teal.alpha.actor.status", - FmTealAlphaFeedDefs: "fm.teal.alpha.feed.defs", - FmTealAlphaFeedGetActorFeed: "fm.teal.alpha.feed.getActorFeed", - FmTealAlphaFeedGetPlay: "fm.teal.alpha.feed.getPlay", - FmTealAlphaFeedPlay: "fm.teal.alpha.feed.play", - XyzStatusphereStatus: "xyz.statusphere.status", -}; diff --git a/packages/lexicons/src/types/app/bsky/actor/profile.ts b/packages/lexicons/src/types/app/bsky/actor/profile.ts deleted file mode 100644 index 370b6ec..0000000 --- a/packages/lexicons/src/types/app/bsky/actor/profile.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { BlobRef, ValidationResult } from "@atproto/lexicon"; -import { CID } from "multiformats/cid"; - -import { lexicons } from "../../../../lexicons"; -import { hasProp, isObj } from "../../../../util"; -import * as ComAtprotoLabelDefs from "../../../com/atproto/label/defs"; -import * as ComAtprotoRepoStrongRef from "../../../com/atproto/repo/strongRef"; - -export interface Record { - displayName?: string; - /** Free-form profile description text. */ - description?: string; - /** Small image to be displayed next to posts from account. AKA, 'profile picture' */ - avatar?: BlobRef; - /** Larger horizontal image to display behind profile view. */ - banner?: BlobRef; - labels?: - | ComAtprotoLabelDefs.SelfLabels - | { $type: string; [k: string]: unknown }; - joinedViaStarterPack?: ComAtprotoRepoStrongRef.Main; - createdAt?: string; - [k: string]: unknown; -} - -export function isRecord(v: unknown): v is Record { - return ( - isObj(v) && - hasProp(v, "$type") && - (v.$type === "app.bsky.actor.profile#main" || - v.$type === "app.bsky.actor.profile") - ); -} - -export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate("app.bsky.actor.profile#main", v); -} diff --git a/packages/lexicons/src/types/app/bsky/richtext/facet.ts b/packages/lexicons/src/types/app/bsky/richtext/facet.ts deleted file mode 100644 index aba5652..0000000 --- a/packages/lexicons/src/types/app/bsky/richtext/facet.ts +++ /dev/null @@ -1,99 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { BlobRef, ValidationResult } from "@atproto/lexicon"; -import { CID } from "multiformats/cid"; - -import { lexicons } from "../../../../lexicons"; -import { hasProp, isObj } from "../../../../util"; - -/** Annotation of a sub-string within rich text. */ -export interface Main { - index: ByteSlice; - features: (Mention | Link | Tag | { $type: string; [k: string]: unknown })[]; - [k: string]: unknown; -} - -export function isMain(v: unknown): v is Main { - return ( - isObj(v) && - hasProp(v, "$type") && - (v.$type === "app.bsky.richtext.facet#main" || - v.$type === "app.bsky.richtext.facet") - ); -} - -export function validateMain(v: unknown): ValidationResult { - return lexicons.validate("app.bsky.richtext.facet#main", v); -} - -/** Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID. */ -export interface Mention { - did: string; - [k: string]: unknown; -} - -export function isMention(v: unknown): v is Mention { - return ( - isObj(v) && - hasProp(v, "$type") && - v.$type === "app.bsky.richtext.facet#mention" - ); -} - -export function validateMention(v: unknown): ValidationResult { - return lexicons.validate("app.bsky.richtext.facet#mention", v); -} - -/** Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL. */ -export interface Link { - uri: string; - [k: string]: unknown; -} - -export function isLink(v: unknown): v is Link { - return ( - isObj(v) && - hasProp(v, "$type") && - v.$type === "app.bsky.richtext.facet#link" - ); -} - -export function validateLink(v: unknown): ValidationResult { - return lexicons.validate("app.bsky.richtext.facet#link", v); -} - -/** Facet feature for a hashtag. The text usually includes a '#' prefix, but the facet reference should not (except in the case of 'double hash tags'). */ -export interface Tag { - tag: string; - [k: string]: unknown; -} - -export function isTag(v: unknown): v is Tag { - return ( - isObj(v) && hasProp(v, "$type") && v.$type === "app.bsky.richtext.facet#tag" - ); -} - -export function validateTag(v: unknown): ValidationResult { - return lexicons.validate("app.bsky.richtext.facet#tag", v); -} - -/** Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets. */ -export interface ByteSlice { - byteStart: number; - byteEnd: number; - [k: string]: unknown; -} - -export function isByteSlice(v: unknown): v is ByteSlice { - return ( - isObj(v) && - hasProp(v, "$type") && - v.$type === "app.bsky.richtext.facet#byteSlice" - ); -} - -export function validateByteSlice(v: unknown): ValidationResult { - return lexicons.validate("app.bsky.richtext.facet#byteSlice", v); -} diff --git a/packages/lexicons/src/types/fm/teal/alpha/actor/defs.ts b/packages/lexicons/src/types/fm/teal/alpha/actor/defs.ts deleted file mode 100644 index 769a4bf..0000000 --- a/packages/lexicons/src/types/fm/teal/alpha/actor/defs.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { BlobRef, ValidationResult } from "@atproto/lexicon"; -import { CID } from "multiformats/cid"; - -import { lexicons } from "../../../../../lexicons"; -import { hasProp, isObj } from "../../../../../util"; -import * as AppBskyRichtextFacet from "../../../../app/bsky/richtext/facet"; -import * as FmTealAlphaActorProfile from "./profile"; - -export interface ProfileView { - /** The decentralized identifier of the actor */ - did?: string; - displayName?: string; - /** Free-form profile description text. */ - description?: string; - /** Annotations of text in the profile description (mentions, URLs, hashtags, etc). May be changed to another (backwards compatible) lexicon. */ - descriptionFacets?: AppBskyRichtextFacet.Main[]; - featuredItem?: FmTealAlphaActorProfile.FeaturedItem; - /** IPLD of the avatar */ - avatar?: string; - /** IPLD of the banner image */ - banner?: string; - createdAt?: string; - [k: string]: unknown; -} - -export function isProfileView(v: unknown): v is ProfileView { - return ( - isObj(v) && - hasProp(v, "$type") && - v.$type === "fm.teal.alpha.actor.defs#profileView" - ); -} - -export function validateProfileView(v: unknown): ValidationResult { - return lexicons.validate("fm.teal.alpha.actor.defs#profileView", v); -} - -export interface MiniProfileView { - /** The decentralized identifier of the actor */ - did?: string; - displayName?: string; - handle?: string; - /** IPLD of the avatar */ - avatar?: string; - [k: string]: unknown; -} - -export function isMiniProfileView(v: unknown): v is MiniProfileView { - return ( - isObj(v) && - hasProp(v, "$type") && - v.$type === "fm.teal.alpha.actor.defs#miniProfileView" - ); -} - -export function validateMiniProfileView(v: unknown): ValidationResult { - return lexicons.validate("fm.teal.alpha.actor.defs#miniProfileView", v); -} diff --git a/packages/lexicons/src/types/fm/teal/alpha/actor/getProfile.ts b/packages/lexicons/src/types/fm/teal/alpha/actor/getProfile.ts deleted file mode 100644 index 73a64b2..0000000 --- a/packages/lexicons/src/types/fm/teal/alpha/actor/getProfile.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { BlobRef, ValidationResult } from "@atproto/lexicon"; -import { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import express from "express"; -import { CID } from "multiformats/cid"; - -import { lexicons } from "../../../../../lexicons"; -import { hasProp, isObj } from "../../../../../util"; -import * as FmTealAlphaActorDefs from "./defs"; - -export interface QueryParams { - /** The author's DID */ - actor: string; -} - -export type InputSchema = undefined; - -export interface OutputSchema { - actor: FmTealAlphaActorDefs.ProfileView; - [k: string]: unknown; -} - -export type HandlerInput = undefined; - -export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; -} - -export interface HandlerError { - status: number; - message?: string; -} - -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; -export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput; diff --git a/packages/lexicons/src/types/fm/teal/alpha/actor/getProfiles.ts b/packages/lexicons/src/types/fm/teal/alpha/actor/getProfiles.ts deleted file mode 100644 index 4992969..0000000 --- a/packages/lexicons/src/types/fm/teal/alpha/actor/getProfiles.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { BlobRef, ValidationResult } from "@atproto/lexicon"; -import { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import express from "express"; -import { CID } from "multiformats/cid"; - -import { lexicons } from "../../../../../lexicons"; -import { hasProp, isObj } from "../../../../../util"; -import * as FmTealAlphaActorDefs from "./defs"; - -export interface QueryParams { - /** Array of actor DIDs */ - actors: string[]; -} - -export type InputSchema = undefined; - -export interface OutputSchema { - actors: FmTealAlphaActorDefs.MiniProfileView[]; - [k: string]: unknown; -} - -export type HandlerInput = undefined; - -export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; -} - -export interface HandlerError { - status: number; - message?: string; -} - -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; -export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput; diff --git a/packages/lexicons/src/types/fm/teal/alpha/actor/profile.ts b/packages/lexicons/src/types/fm/teal/alpha/actor/profile.ts deleted file mode 100644 index a838bb0..0000000 --- a/packages/lexicons/src/types/fm/teal/alpha/actor/profile.ts +++ /dev/null @@ -1,57 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { BlobRef, ValidationResult } from "@atproto/lexicon"; -import { CID } from "multiformats/cid"; - -import { lexicons } from "../../../../../lexicons"; -import { hasProp, isObj } from "../../../../../util"; -import * as AppBskyRichtextFacet from "../../../../app/bsky/richtext/facet"; - -export interface Record { - displayName?: string; - /** Free-form profile description text. */ - description?: string; - /** Annotations of text in the profile description (mentions, URLs, hashtags, etc). */ - descriptionFacets?: AppBskyRichtextFacet.Main[]; - featuredItem?: FeaturedItem; - /** Small image to be displayed next to posts from account. AKA, 'profile picture' */ - avatar?: BlobRef; - /** Larger horizontal image to display behind profile view. */ - banner?: BlobRef; - createdAt?: string; - [k: string]: unknown; -} - -export function isRecord(v: unknown): v is Record { - return ( - isObj(v) && - hasProp(v, "$type") && - (v.$type === "fm.teal.alpha.actor.profile#main" || - v.$type === "fm.teal.alpha.actor.profile") - ); -} - -export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate("fm.teal.alpha.actor.profile#main", v); -} - -export interface FeaturedItem { - /** The Musicbrainz ID of the item */ - mbid: string; - /** The type of the item. Must be a valid Musicbrainz type, e.g. album, track, recording, etc. */ - type: string; - [k: string]: unknown; -} - -export function isFeaturedItem(v: unknown): v is FeaturedItem { - return ( - isObj(v) && - hasProp(v, "$type") && - v.$type === "fm.teal.alpha.actor.profile#featuredItem" - ); -} - -export function validateFeaturedItem(v: unknown): ValidationResult { - return lexicons.validate("fm.teal.alpha.actor.profile#featuredItem", v); -} diff --git a/packages/lexicons/src/types/fm/teal/alpha/actor/profileStatus.ts b/packages/lexicons/src/types/fm/teal/alpha/actor/profileStatus.ts deleted file mode 100644 index e7f375e..0000000 --- a/packages/lexicons/src/types/fm/teal/alpha/actor/profileStatus.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult } from "@atproto/lexicon"; - -import { lexicons } from "../../../../../lexicons"; -import { hasProp, isObj } from "../../../../../util"; - -export interface Record { - /** The onboarding completion status */ - completedOnboarding: "none" | "profileOnboarding" | "playOnboarding" | "complete"; - /** The timestamp when this status was created */ - createdAt?: string; - /** The timestamp when this status was last updated */ - updatedAt?: string; - [k: string]: unknown; -} - -export function isRecord(v: unknown): v is Record { - return ( - isObj(v) && - hasProp(v, "$type") && - (v.$type === "fm.teal.alpha.actor.profileStatus#main" || - v.$type === "fm.teal.alpha.actor.profileStatus") - ); -} - -export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate("fm.teal.alpha.actor.profileStatus#main", v); -} diff --git a/packages/lexicons/src/types/fm/teal/alpha/actor/searchActors.ts b/packages/lexicons/src/types/fm/teal/alpha/actor/searchActors.ts deleted file mode 100644 index 28c2eba..0000000 --- a/packages/lexicons/src/types/fm/teal/alpha/actor/searchActors.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { BlobRef, ValidationResult } from "@atproto/lexicon"; -import { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import express from "express"; -import { CID } from "multiformats/cid"; - -import { lexicons } from "../../../../../lexicons"; -import { hasProp, isObj } from "../../../../../util"; -import * as FmTealAlphaActorDefs from "./defs"; - -export interface QueryParams { - /** The search query */ - q: string; - /** The maximum number of actors to return */ - limit?: number; - /** Cursor for pagination */ - cursor?: string; -} - -export type InputSchema = undefined; - -export interface OutputSchema { - actors: FmTealAlphaActorDefs.MiniProfileView[]; - /** Cursor for pagination */ - cursor?: string; - [k: string]: unknown; -} - -export type HandlerInput = undefined; - -export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; -} - -export interface HandlerError { - status: number; - message?: string; -} - -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; -export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput; diff --git a/packages/lexicons/src/types/fm/teal/alpha/actor/status.ts b/packages/lexicons/src/types/fm/teal/alpha/actor/status.ts deleted file mode 100644 index ece3825..0000000 --- a/packages/lexicons/src/types/fm/teal/alpha/actor/status.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { BlobRef, ValidationResult } from "@atproto/lexicon"; -import { CID } from "multiformats/cid"; - -import { lexicons } from "../../../../../lexicons"; -import { hasProp, isObj } from "../../../../../util"; -import * as FmTealAlphaFeedDefs from "../feed/defs"; - -export interface Record { - /** The unix timestamp of when the item was recorded */ - time: string; - /** The unix timestamp of the expiry time of the item. If unavailable, default to 10 minutes past the start time. */ - expiry?: string; - item: FmTealAlphaFeedDefs.PlayView; - [k: string]: unknown; -} - -export function isRecord(v: unknown): v is Record { - return ( - isObj(v) && - hasProp(v, "$type") && - (v.$type === "fm.teal.alpha.actor.status#main" || - v.$type === "fm.teal.alpha.actor.status") - ); -} - -export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate("fm.teal.alpha.actor.status#main", v); -} diff --git a/packages/lexicons/src/types/fm/teal/alpha/feed/defs.ts b/packages/lexicons/src/types/fm/teal/alpha/feed/defs.ts deleted file mode 100644 index d5d32b3..0000000 --- a/packages/lexicons/src/types/fm/teal/alpha/feed/defs.ts +++ /dev/null @@ -1,68 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { BlobRef, ValidationResult } from "@atproto/lexicon"; -import { CID } from "multiformats/cid"; - -import { lexicons } from "../../../../../lexicons"; -import { hasProp, isObj } from "../../../../../util"; - -export interface PlayView { - /** The name of the track */ - trackName: string; - /** The Musicbrainz ID of the track */ - trackMbId?: string; - /** The Musicbrainz recording ID of the track */ - recordingMbId?: string; - /** The length of the track in seconds */ - duration?: number; - /** Array of artists in order of original appearance. */ - artists: Artist[]; - /** The name of the release/album */ - releaseName?: string; - /** The Musicbrainz release ID */ - releaseMbId?: string; - /** The ISRC code associated with the recording */ - isrc?: string; - /** The URL associated with this track */ - originUrl?: string; - /** The base domain of the music service. e.g. music.apple.com, tidal.com, spotify.com. Defaults to 'local' if not provided. */ - musicServiceBaseDomain?: string; - /** A user-agent style string specifying the user agent. e.g. tealtracker/0.0.1b (Linux; Android 13; SM-A715F). Defaults to 'manual/unknown' if not provided. */ - submissionClientAgent?: string; - /** The unix timestamp of when the track was played */ - playedTime?: string; - [k: string]: unknown; -} - -export function isPlayView(v: unknown): v is PlayView { - return ( - isObj(v) && - hasProp(v, "$type") && - v.$type === "fm.teal.alpha.feed.defs#playView" - ); -} - -export function validatePlayView(v: unknown): ValidationResult { - return lexicons.validate("fm.teal.alpha.feed.defs#playView", v); -} - -export interface Artist { - /** The name of the artist */ - artistName: string; - /** The Musicbrainz ID of the artist */ - artistMbId?: string; - [k: string]: unknown; -} - -export function isArtist(v: unknown): v is Artist { - return ( - isObj(v) && - hasProp(v, "$type") && - v.$type === "fm.teal.alpha.feed.defs#artist" - ); -} - -export function validateArtist(v: unknown): ValidationResult { - return lexicons.validate("fm.teal.alpha.feed.defs#artist", v); -} diff --git a/packages/lexicons/src/types/fm/teal/alpha/feed/getActorFeed.ts b/packages/lexicons/src/types/fm/teal/alpha/feed/getActorFeed.ts deleted file mode 100644 index e294a7b..0000000 --- a/packages/lexicons/src/types/fm/teal/alpha/feed/getActorFeed.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { BlobRef, ValidationResult } from "@atproto/lexicon"; -import { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import express from "express"; -import { CID } from "multiformats/cid"; - -import { lexicons } from "../../../../../lexicons"; -import { hasProp, isObj } from "../../../../../util"; -import * as FmTealAlphaFeedDefs from "./defs"; - -export interface QueryParams { - /** The author's DID for the play */ - authorDID: string; - /** The cursor to start the query from */ - cursor?: string; - /** The upper limit of tracks to get per request. Default is 20, max is 50. */ - limit?: number; -} - -export type InputSchema = undefined; - -export interface OutputSchema { - plays: FmTealAlphaFeedDefs.PlayView[]; - [k: string]: unknown; -} - -export type HandlerInput = undefined; - -export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; -} - -export interface HandlerError { - status: number; - message?: string; -} - -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; -export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput; diff --git a/packages/lexicons/src/types/fm/teal/alpha/feed/getPlay.ts b/packages/lexicons/src/types/fm/teal/alpha/feed/getPlay.ts deleted file mode 100644 index 23dd796..0000000 --- a/packages/lexicons/src/types/fm/teal/alpha/feed/getPlay.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { BlobRef, ValidationResult } from "@atproto/lexicon"; -import { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import express from "express"; -import { CID } from "multiformats/cid"; - -import { lexicons } from "../../../../../lexicons"; -import { hasProp, isObj } from "../../../../../util"; -import * as FmTealAlphaFeedDefs from "./defs"; - -export interface QueryParams { - /** The author's DID for the play */ - authorDID: string; - /** The record key of the play */ - rkey: string; -} - -export type InputSchema = undefined; - -export interface OutputSchema { - play: FmTealAlphaFeedDefs.PlayView; - [k: string]: unknown; -} - -export type HandlerInput = undefined; - -export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; -} - -export interface HandlerError { - status: number; - message?: string; -} - -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; -export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput; diff --git a/packages/lexicons/src/types/fm/teal/alpha/feed/play.ts b/packages/lexicons/src/types/fm/teal/alpha/feed/play.ts deleted file mode 100644 index 1105a0d..0000000 --- a/packages/lexicons/src/types/fm/teal/alpha/feed/play.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { BlobRef, ValidationResult } from "@atproto/lexicon"; -import { CID } from "multiformats/cid"; - -import { lexicons } from "../../../../../lexicons"; -import { hasProp, isObj } from "../../../../../util"; -import * as FmTealAlphaFeedDefs from "./defs"; - -export interface Record { - /** The name of the track */ - trackName: string; - /** The Musicbrainz ID of the track */ - trackMbId?: string; - /** The Musicbrainz recording ID of the track */ - recordingMbId?: string; - /** The length of the track in seconds */ - duration?: number; - /** Array of artist names in order of original appearance. Prefer using 'artists'. */ - artistNames?: string[]; - /** Array of Musicbrainz artist IDs. Prefer using 'artists'. */ - artistMbIds?: string[]; - /** Array of artists in order of original appearance. */ - artists?: FmTealAlphaFeedDefs.Artist[]; - /** The name of the release/album */ - releaseName?: string; - /** The Musicbrainz release ID */ - releaseMbId?: string; - /** The ISRC code associated with the recording */ - isrc?: string; - /** The URL associated with this track */ - originUrl?: string; - /** The base domain of the music service. e.g. music.apple.com, tidal.com, spotify.com. Defaults to 'local' if unavailable or not provided. */ - musicServiceBaseDomain?: string; - /** A metadata string specifying the user agent where the format is `/ (; ; )`. If string is provided, only `app-identifier` and `version` are required. `app-identifier` is recommended to be in reverse dns format. Defaults to 'manual/unknown' if unavailable or not provided. */ - submissionClientAgent?: string; - /** The unix timestamp of when the track was played */ - playedTime?: string; - [k: string]: unknown; -} - -export function isRecord(v: unknown): v is Record { - return ( - isObj(v) && - hasProp(v, "$type") && - (v.$type === "fm.teal.alpha.feed.play#main" || - v.$type === "fm.teal.alpha.feed.play") - ); -} - -export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate("fm.teal.alpha.feed.play#main", v); -} diff --git a/packages/lexicons/src/types/xyz/statusphere/status.ts b/packages/lexicons/src/types/xyz/statusphere/status.ts deleted file mode 100644 index 9f8f087..0000000 --- a/packages/lexicons/src/types/xyz/statusphere/status.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { BlobRef, ValidationResult } from "@atproto/lexicon"; -import { CID } from "multiformats/cid"; - -import { lexicons } from "../../../lexicons"; -import { hasProp, isObj } from "../../../util"; - -export interface Record { - status: string; - createdAt: string; - [k: string]: unknown; -} - -export function isRecord(v: unknown): v is Record { - return ( - isObj(v) && - hasProp(v, "$type") && - (v.$type === "xyz.statusphere.status#main" || - v.$type === "xyz.statusphere.status") - ); -} - -export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate("xyz.statusphere.status#main", v); -} diff --git a/packages/lexicons/src/util.ts b/packages/lexicons/src/util.ts deleted file mode 100644 index e554655..0000000 --- a/packages/lexicons/src/util.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -export function isObj(v: unknown): v is Record { - return typeof v === "object" && v !== null; -} - -export function hasProp( - data: object, - prop: K, -): data is Record { - return prop in data; -} diff --git a/packages/lexicons/tsconfig.json b/packages/lexicons/tsconfig.json deleted file mode 100644 index fede2a4..0000000 --- a/packages/lexicons/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "@teal/tsconfig/base.json", - "include": ["./src/**/*.ts"] -} diff --git a/services/types/Cargo.toml b/services/types/Cargo.toml deleted file mode 100644 index 3231c36..0000000 --- a/services/types/Cargo.toml +++ /dev/null @@ -1,32 +0,0 @@ -[package] -name = "types" -version = "0.1.0" -edition = "2021" - -[dependencies] -atrium-api.workspace = true -atrium-xrpc = "0.12.1" -chrono = "0.4.39" -http = "1.2.0" -ipld-core = { version = "0.4.2", features = ["serde"] } -langtag = { version = "0.3", features = ["serde"] } -regex = "1.11.1" -serde = { workspace = true, features = ["derive"] } -serde_bytes = "0.11.15" -serde_ipld_dagcbor = "0.6.2" -serde_json.workspace = true -thiserror = "2.0.11" -uuid.workspace = true - -# features -[features] -default = [ - "namespace-fmteal", - "namespace-appbsky", - "namespace-toolsozone", - "namespace-chatbsky", -] -namespace-fmteal = [] -namespace-appbsky = [] -namespace-toolsozone = [] -namespace-chatbsky = [] diff --git a/services/types/package.json b/services/types/package.json deleted file mode 100644 index 09c92f2..0000000 --- a/services/types/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "@repo/types", - "private": true, - "scripts": { - "build": "cargo build --release", - "build:rust": "cargo build --release", - "dev": "echo 'Types package - no dev mode'", - "test": "cargo test", - "test:rust": "cargo test" - } -} \ No newline at end of file diff --git a/services/types/readme.md b/services/types/readme.md deleted file mode 100644 index ff6947a..0000000 --- a/services/types/readme.md +++ /dev/null @@ -1,10 +0,0 @@ -## Types -Rust lexicons for teal.fm and others. - -### Generate lexicons -You will need to install [esquema-cli](https://github.com/fatfingers23/esquema) a fork of the [atrium codegen tool](https://github.com/sugyan/atrium). - -Currently can install directly from the repo -`cargo install esquema-cli --git https://github.com/fatfingers23/esquema.git` - -Then can recreate with `esquema-cli generate local --lexdir ./lexicons --outdir ./src` from this directory diff --git a/services/types/src/app.rs b/services/types/src/app.rs deleted file mode 100644 index c8d18b3..0000000 --- a/services/types/src/app.rs +++ /dev/null @@ -1,3 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app` namespace. -pub mod bsky; diff --git a/services/types/src/app/bsky.rs b/services/types/src/app/bsky.rs deleted file mode 100644 index f5d6a44..0000000 --- a/services/types/src/app/bsky.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky` namespace. -pub mod actor; -pub mod embed; -pub mod feed; -pub mod graph; -pub mod labeler; -pub mod notification; -pub mod richtext; -pub mod unspecced; -pub mod video; diff --git a/services/types/src/app/bsky/actor.rs b/services/types/src/app/bsky/actor.rs deleted file mode 100644 index fc62493..0000000 --- a/services/types/src/app/bsky/actor.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor` namespace. -pub mod defs; -pub mod get_preferences; -pub mod get_profile; -pub mod get_profiles; -pub mod get_suggestions; -pub mod profile; -pub mod put_preferences; -pub mod search_actors; -pub mod search_actors_typeahead; -#[derive(Debug)] -pub struct Profile; -impl atrium_api::types::Collection for Profile { - const NSID: &'static str = "app.bsky.actor.profile"; - type Record = profile::Record; -} diff --git a/services/types/src/app/bsky/actor/defs.rs b/services/types/src/app/bsky/actor/defs.rs deleted file mode 100644 index 9d2f223..0000000 --- a/services/types/src/app/bsky/actor/defs.rs +++ /dev/null @@ -1,383 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AdultContentPrefData { - pub enabled: bool, -} -pub type AdultContentPref = atrium_api::types::Object; -///If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct BskyAppProgressGuideData { - pub guide: String, -} -pub type BskyAppProgressGuide = atrium_api::types::Object; -///A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct BskyAppStatePrefData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub active_progress_guide: core::option::Option, - ///Storage for NUXs the user has encountered. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub nuxs: core::option::Option>, - ///An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub queued_nudges: core::option::Option>, -} -pub type BskyAppStatePref = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ContentLabelPrefData { - pub label: String, - ///Which labeler does this preference apply to? If undefined, applies globally. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labeler_did: core::option::Option, - pub visibility: String, -} -pub type ContentLabelPref = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct FeedViewPrefData { - ///The URI of the feed, or an identifier which describes the feed. - pub feed: String, - ///Hide quote posts in the feed. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hide_quote_posts: core::option::Option, - ///Hide replies in the feed. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hide_replies: core::option::Option, - ///Hide replies in the feed if they do not have this number of likes. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hide_replies_by_like_count: core::option::Option, - ///Hide replies in the feed if they are not by followed users. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hide_replies_by_unfollowed: core::option::Option, - ///Hide reposts in the feed. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hide_reposts: core::option::Option, -} -pub type FeedViewPref = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct HiddenPostsPrefData { - ///A list of URIs of posts the account owner has hidden. - pub items: Vec, -} -pub type HiddenPostsPref = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InterestsPrefData { - ///A list of tags which describe the account owner's interests gathered during onboarding. - pub tags: Vec, -} -pub type InterestsPref = atrium_api::types::Object; -///The subject's followers whom you also follow -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct KnownFollowersData { - pub count: i64, - pub followers: Vec, -} -pub type KnownFollowers = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelerPrefItemData { - pub did: atrium_api::types::string::Did, -} -pub type LabelerPrefItem = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelersPrefData { - pub labelers: Vec, -} -pub type LabelersPref = atrium_api::types::Object; -///A word that the account owner has muted. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MutedWordData { - ///Groups of users to apply the muted word to. If undefined, applies to all users. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub actor_target: core::option::Option, - ///The date and time at which the muted word will expire and no longer be applied. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub expires_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub id: core::option::Option, - ///The intended targets of the muted word. - pub targets: Vec, - ///The muted word itself. - pub value: String, -} -pub type MutedWord = atrium_api::types::Object; -pub type MutedWordTarget = String; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MutedWordsPrefData { - ///A list of words the account owner has muted. - pub items: Vec, -} -pub type MutedWordsPref = atrium_api::types::Object; -///A new user experiences (NUX) storage object -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct NuxData { - pub completed: bool, - ///Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub data: core::option::Option, - ///The date and time at which the NUX will expire and should be considered completed. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub expires_at: core::option::Option, - pub id: String, -} -pub type Nux = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct PersonalDetailsPrefData { - ///The birth date of account owner. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub birth_date: core::option::Option, -} -pub type PersonalDetailsPref = atrium_api::types::Object; -///Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct PostInteractionSettingsPrefData { - ///Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub postgate_embedding_rules: core::option::Option< - Vec< - atrium_api::types::Union< - PostInteractionSettingsPrefPostgateEmbeddingRulesItem, - >, - >, - >, - ///Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub threadgate_allow_rules: core::option::Option< - Vec< - atrium_api::types::Union, - >, - >, -} -pub type PostInteractionSettingsPref = atrium_api::types::Object< - PostInteractionSettingsPrefData, ->; -pub type Preferences = Vec>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ProfileAssociatedData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub chat: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub feedgens: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labeler: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub lists: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub starter_packs: core::option::Option, -} -pub type ProfileAssociated = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ProfileAssociatedChatData { - pub allow_incoming: String, -} -pub type ProfileAssociatedChat = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ProfileViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub associated: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub display_name: core::option::Option, - pub handle: atrium_api::types::string::Handle, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub indexed_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type ProfileView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ProfileViewBasicData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub associated: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub display_name: core::option::Option, - pub handle: atrium_api::types::string::Handle, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type ProfileViewBasic = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ProfileViewDetailedData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub associated: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub banner: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub display_name: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub followers_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub follows_count: core::option::Option, - pub handle: atrium_api::types::string::Handle, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub indexed_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub joined_via_starter_pack: core::option::Option< - crate::app::bsky::graph::defs::StarterPackViewBasic, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub pinned_post: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub posts_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type ProfileViewDetailed = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SavedFeedData { - pub id: String, - pub pinned: bool, - pub r#type: String, - pub value: String, -} -pub type SavedFeed = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SavedFeedsPrefData { - pub pinned: Vec, - pub saved: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub timeline_index: core::option::Option, -} -pub type SavedFeedsPref = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SavedFeedsPrefV2Data { - pub items: Vec, -} -pub type SavedFeedsPrefV2 = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ThreadViewPrefData { - ///Show followed users at the top of all replies. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub prioritize_followed_users: core::option::Option, - ///Sorting mode for threads. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sort: core::option::Option, -} -pub type ThreadViewPref = atrium_api::types::Object; -///Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewerStateData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub blocked_by: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub blocking: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub blocking_by_list: core::option::Option< - crate::app::bsky::graph::defs::ListViewBasic, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub followed_by: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub following: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub known_followers: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub muted: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub muted_by_list: core::option::Option< - crate::app::bsky::graph::defs::ListViewBasic, - >, -} -pub type ViewerState = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum PostInteractionSettingsPrefPostgateEmbeddingRulesItem { - #[serde(rename = "app.bsky.feed.postgate#disableRule")] - AppBskyFeedPostgateDisableRule(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum PostInteractionSettingsPrefThreadgateAllowRulesItem { - #[serde(rename = "app.bsky.feed.threadgate#mentionRule")] - AppBskyFeedThreadgateMentionRule( - Box, - ), - #[serde(rename = "app.bsky.feed.threadgate#followerRule")] - AppBskyFeedThreadgateFollowerRule( - Box, - ), - #[serde(rename = "app.bsky.feed.threadgate#followingRule")] - AppBskyFeedThreadgateFollowingRule( - Box, - ), - #[serde(rename = "app.bsky.feed.threadgate#listRule")] - AppBskyFeedThreadgateListRule(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum PreferencesItem { - #[serde(rename = "app.bsky.actor.defs#adultContentPref")] - AdultContentPref(Box), - #[serde(rename = "app.bsky.actor.defs#contentLabelPref")] - ContentLabelPref(Box), - #[serde(rename = "app.bsky.actor.defs#savedFeedsPref")] - SavedFeedsPref(Box), - #[serde(rename = "app.bsky.actor.defs#savedFeedsPrefV2")] - SavedFeedsPrefV2(Box), - #[serde(rename = "app.bsky.actor.defs#personalDetailsPref")] - PersonalDetailsPref(Box), - #[serde(rename = "app.bsky.actor.defs#feedViewPref")] - FeedViewPref(Box), - #[serde(rename = "app.bsky.actor.defs#threadViewPref")] - ThreadViewPref(Box), - #[serde(rename = "app.bsky.actor.defs#interestsPref")] - InterestsPref(Box), - #[serde(rename = "app.bsky.actor.defs#mutedWordsPref")] - MutedWordsPref(Box), - #[serde(rename = "app.bsky.actor.defs#hiddenPostsPref")] - HiddenPostsPref(Box), - #[serde(rename = "app.bsky.actor.defs#bskyAppStatePref")] - BskyAppStatePref(Box), - #[serde(rename = "app.bsky.actor.defs#labelersPref")] - LabelersPref(Box), - #[serde(rename = "app.bsky.actor.defs#postInteractionSettingsPref")] - PostInteractionSettingsPref(Box), -} diff --git a/services/types/src/app/bsky/actor/get_preferences.rs b/services/types/src/app/bsky/actor/get_preferences.rs deleted file mode 100644 index cc8ed58..0000000 --- a/services/types/src/app/bsky/actor/get_preferences.rs +++ /dev/null @@ -1,21 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor.getPreferences` namespace. -pub const NSID: &str = "app.bsky.actor.getPreferences"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData {} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub preferences: crate::app::bsky::actor::defs::Preferences, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/actor/get_profile.rs b/services/types/src/app/bsky/actor/get_profile.rs deleted file mode 100644 index 6f7b3dd..0000000 --- a/services/types/src/app/bsky/actor/get_profile.rs +++ /dev/null @@ -1,19 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor.getProfile` namespace. -pub const NSID: &str = "app.bsky.actor.getProfile"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Handle or DID of account to fetch profile of. - pub actor: atrium_api::types::string::AtIdentifier, -} -pub type Parameters = atrium_api::types::Object; -pub type Output = crate::app::bsky::actor::defs::ProfileViewDetailed; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/actor/get_profiles.rs b/services/types/src/app/bsky/actor/get_profiles.rs deleted file mode 100644 index b6292bf..0000000 --- a/services/types/src/app/bsky/actor/get_profiles.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor.getProfiles` namespace. -pub const NSID: &str = "app.bsky.actor.getProfiles"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actors: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub profiles: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/actor/get_suggestions.rs b/services/types/src/app/bsky/actor/get_suggestions.rs deleted file mode 100644 index 3a5c244..0000000 --- a/services/types/src/app/bsky/actor/get_suggestions.rs +++ /dev/null @@ -1,31 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor.getSuggestions` namespace. -pub const NSID: &str = "app.bsky.actor.getSuggestions"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub actors: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Snowflake for this recommendation, use when submitting recommendation events. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rec_id: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/actor/profile.rs b/services/types/src/app/bsky/actor/profile.rs deleted file mode 100644 index 067a3b6..0000000 --- a/services/types/src/app/bsky/actor/profile.rs +++ /dev/null @@ -1,41 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor.profile` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - ///Small image to be displayed next to posts from account. AKA, 'profile picture' - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - ///Larger horizontal image to display behind profile view. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub banner: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option, - ///Free-form profile description text. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub display_name: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub joined_via_starter_pack: core::option::Option< - crate::com::atproto::repo::strong_ref::Main, - >, - ///Self-label values, specific to the Bluesky application, on the overall account. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub pinned_post: core::option::Option, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum RecordLabelsRefs { - #[serde(rename = "com.atproto.label.defs#selfLabels")] - ComAtprotoLabelDefsSelfLabels(Box), -} diff --git a/services/types/src/app/bsky/actor/put_preferences.rs b/services/types/src/app/bsky/actor/put_preferences.rs deleted file mode 100644 index 06873df..0000000 --- a/services/types/src/app/bsky/actor/put_preferences.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor.putPreferences` namespace. -pub const NSID: &str = "app.bsky.actor.putPreferences"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub preferences: crate::app::bsky::actor::defs::Preferences, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/actor/search_actors.rs b/services/types/src/app/bsky/actor/search_actors.rs deleted file mode 100644 index 8dd85df..0000000 --- a/services/types/src/app/bsky/actor/search_actors.rs +++ /dev/null @@ -1,34 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor.searchActors` namespace. -pub const NSID: &str = "app.bsky.actor.searchActors"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub q: core::option::Option, - ///DEPRECATED: use 'q' instead. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub term: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub actors: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/actor/search_actors_typeahead.rs b/services/types/src/app/bsky/actor/search_actors_typeahead.rs deleted file mode 100644 index 4abc021..0000000 --- a/services/types/src/app/bsky/actor/search_actors_typeahead.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor.searchActorsTypeahead` namespace. -pub const NSID: &str = "app.bsky.actor.searchActorsTypeahead"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Search query prefix; not a full query string. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub q: core::option::Option, - ///DEPRECATED: use 'q' instead. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub term: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub actors: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/embed.rs b/services/types/src/app/bsky/embed.rs deleted file mode 100644 index c68b8e0..0000000 --- a/services/types/src/app/bsky/embed.rs +++ /dev/null @@ -1,8 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.embed` namespace. -pub mod defs; -pub mod external; -pub mod images; -pub mod record; -pub mod record_with_media; -pub mod video; diff --git a/services/types/src/app/bsky/embed/defs.rs b/services/types/src/app/bsky/embed/defs.rs deleted file mode 100644 index 48cd038..0000000 --- a/services/types/src/app/bsky/embed/defs.rs +++ /dev/null @@ -1,10 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.embed.defs` namespace. -///width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AspectRatioData { - pub height: core::num::NonZeroU64, - pub width: core::num::NonZeroU64, -} -pub type AspectRatio = atrium_api::types::Object; diff --git a/services/types/src/app/bsky/embed/external.rs b/services/types/src/app/bsky/embed/external.rs deleted file mode 100644 index 46ff548..0000000 --- a/services/types/src/app/bsky/embed/external.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.embed.external` namespace. -///A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MainData { - pub external: External, -} -pub type Main = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ExternalData { - pub description: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub thumb: core::option::Option, - pub title: String, - pub uri: String, -} -pub type External = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewData { - pub external: ViewExternal, -} -pub type View = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewExternalData { - pub description: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub thumb: core::option::Option, - pub title: String, - pub uri: String, -} -pub type ViewExternal = atrium_api::types::Object; diff --git a/services/types/src/app/bsky/embed/images.rs b/services/types/src/app/bsky/embed/images.rs deleted file mode 100644 index f95cf2d..0000000 --- a/services/types/src/app/bsky/embed/images.rs +++ /dev/null @@ -1,38 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.embed.images` namespace. -//!A set of images embedded in a Bluesky record (eg, a post). -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MainData { - pub images: Vec, -} -pub type Main = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ImageData { - ///Alt text description of the image, for accessibility. - pub alt: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub aspect_ratio: core::option::Option, - pub image: atrium_api::types::BlobRef, -} -pub type Image = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewData { - pub images: Vec, -} -pub type View = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewImageData { - ///Alt text description of the image, for accessibility. - pub alt: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub aspect_ratio: core::option::Option, - ///Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View. - pub fullsize: String, - ///Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View. - pub thumb: String, -} -pub type ViewImage = atrium_api::types::Object; diff --git a/services/types/src/app/bsky/embed/record.rs b/services/types/src/app/bsky/embed/record.rs deleted file mode 100644 index 8f7d53a..0000000 --- a/services/types/src/app/bsky/embed/record.rs +++ /dev/null @@ -1,100 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.embed.record` namespace. -//!A representation of a record embedded in a Bluesky record (eg, a post). For example, a quote-post, or sharing a feed generator record. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MainData { - pub record: crate::com::atproto::repo::strong_ref::Main, -} -pub type Main = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewData { - pub record: atrium_api::types::Union, -} -pub type View = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewBlockedData { - pub author: crate::app::bsky::feed::defs::BlockedAuthor, - pub blocked: bool, - pub uri: String, -} -pub type ViewBlocked = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewDetachedData { - pub detached: bool, - pub uri: String, -} -pub type ViewDetached = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewNotFoundData { - pub not_found: bool, - pub uri: String, -} -pub type ViewNotFound = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewRecordData { - pub author: crate::app::bsky::actor::defs::ProfileViewBasic, - pub cid: atrium_api::types::string::Cid, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub embeds: core::option::Option< - Vec>, - >, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub like_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub quote_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reply_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub repost_count: core::option::Option, - pub uri: String, - ///The record data itself. - pub value: atrium_api::types::Unknown, -} -pub type ViewRecord = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ViewRecordEmbedsItem { - #[serde(rename = "app.bsky.embed.images#view")] - AppBskyEmbedImagesView(Box), - #[serde(rename = "app.bsky.embed.video#view")] - AppBskyEmbedVideoView(Box), - #[serde(rename = "app.bsky.embed.external#view")] - AppBskyEmbedExternalView(Box), - #[serde(rename = "app.bsky.embed.record#view")] - AppBskyEmbedRecordView(Box), - #[serde(rename = "app.bsky.embed.recordWithMedia#view")] - AppBskyEmbedRecordWithMediaView( - Box, - ), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ViewRecordRefs { - #[serde(rename = "app.bsky.embed.record#viewRecord")] - ViewRecord(Box), - #[serde(rename = "app.bsky.embed.record#viewNotFound")] - ViewNotFound(Box), - #[serde(rename = "app.bsky.embed.record#viewBlocked")] - ViewBlocked(Box), - #[serde(rename = "app.bsky.embed.record#viewDetached")] - ViewDetached(Box), - #[serde(rename = "app.bsky.feed.defs#generatorView")] - AppBskyFeedDefsGeneratorView(Box), - #[serde(rename = "app.bsky.graph.defs#listView")] - AppBskyGraphDefsListView(Box), - #[serde(rename = "app.bsky.labeler.defs#labelerView")] - AppBskyLabelerDefsLabelerView(Box), - #[serde(rename = "app.bsky.graph.defs#starterPackViewBasic")] - AppBskyGraphDefsStarterPackViewBasic( - Box, - ), -} diff --git a/services/types/src/app/bsky/embed/record_with_media.rs b/services/types/src/app/bsky/embed/record_with_media.rs deleted file mode 100644 index 6ca6313..0000000 --- a/services/types/src/app/bsky/embed/record_with_media.rs +++ /dev/null @@ -1,37 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.embed.recordWithMedia` namespace. -//!A representation of a record embedded in a Bluesky record (eg, a post), alongside other compatible embeds. For example, a quote post and image, or a quote post and external URL card. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MainData { - pub media: atrium_api::types::Union, - pub record: crate::app::bsky::embed::record::Main, -} -pub type Main = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewData { - pub media: atrium_api::types::Union, - pub record: crate::app::bsky::embed::record::View, -} -pub type View = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum MainMediaRefs { - #[serde(rename = "app.bsky.embed.images")] - AppBskyEmbedImagesMain(Box), - #[serde(rename = "app.bsky.embed.video")] - AppBskyEmbedVideoMain(Box), - #[serde(rename = "app.bsky.embed.external")] - AppBskyEmbedExternalMain(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ViewMediaRefs { - #[serde(rename = "app.bsky.embed.images#view")] - AppBskyEmbedImagesView(Box), - #[serde(rename = "app.bsky.embed.video#view")] - AppBskyEmbedVideoView(Box), - #[serde(rename = "app.bsky.embed.external#view")] - AppBskyEmbedExternalView(Box), -} diff --git a/services/types/src/app/bsky/embed/video.rs b/services/types/src/app/bsky/embed/video.rs deleted file mode 100644 index 7b60d68..0000000 --- a/services/types/src/app/bsky/embed/video.rs +++ /dev/null @@ -1,36 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.embed.video` namespace. -//!A video embedded in a Bluesky record (eg, a post). -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MainData { - ///Alt text description of the video, for accessibility. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub alt: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub aspect_ratio: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub captions: core::option::Option>, - pub video: atrium_api::types::BlobRef, -} -pub type Main = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct CaptionData { - pub file: atrium_api::types::BlobRef, - pub lang: atrium_api::types::string::Language, -} -pub type Caption = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub alt: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub aspect_ratio: core::option::Option, - pub cid: atrium_api::types::string::Cid, - pub playlist: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub thumbnail: core::option::Option, -} -pub type View = atrium_api::types::Object; diff --git a/services/types/src/app/bsky/feed.rs b/services/types/src/app/bsky/feed.rs deleted file mode 100644 index 8382798..0000000 --- a/services/types/src/app/bsky/feed.rs +++ /dev/null @@ -1,63 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed` namespace. -pub mod defs; -pub mod describe_feed_generator; -pub mod generator; -pub mod get_actor_feeds; -pub mod get_actor_likes; -pub mod get_author_feed; -pub mod get_feed; -pub mod get_feed_generator; -pub mod get_feed_generators; -pub mod get_feed_skeleton; -pub mod get_likes; -pub mod get_list_feed; -pub mod get_post_thread; -pub mod get_posts; -pub mod get_quotes; -pub mod get_reposted_by; -pub mod get_suggested_feeds; -pub mod get_timeline; -pub mod like; -pub mod post; -pub mod postgate; -pub mod repost; -pub mod search_posts; -pub mod send_interactions; -pub mod threadgate; -#[derive(Debug)] -pub struct Generator; -impl atrium_api::types::Collection for Generator { - const NSID: &'static str = "app.bsky.feed.generator"; - type Record = generator::Record; -} -#[derive(Debug)] -pub struct Like; -impl atrium_api::types::Collection for Like { - const NSID: &'static str = "app.bsky.feed.like"; - type Record = like::Record; -} -#[derive(Debug)] -pub struct Post; -impl atrium_api::types::Collection for Post { - const NSID: &'static str = "app.bsky.feed.post"; - type Record = post::Record; -} -#[derive(Debug)] -pub struct Postgate; -impl atrium_api::types::Collection for Postgate { - const NSID: &'static str = "app.bsky.feed.postgate"; - type Record = postgate::Record; -} -#[derive(Debug)] -pub struct Repost; -impl atrium_api::types::Collection for Repost { - const NSID: &'static str = "app.bsky.feed.repost"; - type Record = repost::Record; -} -#[derive(Debug)] -pub struct Threadgate; -impl atrium_api::types::Collection for Threadgate { - const NSID: &'static str = "app.bsky.feed.threadgate"; - type Record = threadgate::Record; -} diff --git a/services/types/src/app/bsky/feed/defs.rs b/services/types/src/app/bsky/feed/defs.rs deleted file mode 100644 index e93b999..0000000 --- a/services/types/src/app/bsky/feed/defs.rs +++ /dev/null @@ -1,311 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct BlockedAuthorData { - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type BlockedAuthor = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct BlockedPostData { - pub author: BlockedAuthor, - pub blocked: bool, - pub uri: String, -} -pub type BlockedPost = atrium_api::types::Object; -///User clicked through to the author of the feed item -pub const CLICKTHROUGH_AUTHOR: &str = "app.bsky.feed.defs#clickthroughAuthor"; -///User clicked through to the embedded content of the feed item -pub const CLICKTHROUGH_EMBED: &str = "app.bsky.feed.defs#clickthroughEmbed"; -///User clicked through to the feed item -pub const CLICKTHROUGH_ITEM: &str = "app.bsky.feed.defs#clickthroughItem"; -///User clicked through to the reposter of the feed item -pub const CLICKTHROUGH_REPOSTER: &str = "app.bsky.feed.defs#clickthroughReposter"; -///Declares the feed generator returns any types of posts. -pub const CONTENT_MODE_UNSPECIFIED: &str = "app.bsky.feed.defs#contentModeUnspecified"; -///Declares the feed generator returns posts containing app.bsky.embed.video embeds. -pub const CONTENT_MODE_VIDEO: &str = "app.bsky.feed.defs#contentModeVideo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct FeedViewPostData { - ///Context provided by feed generator that may be passed back alongside interactions. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub feed_context: core::option::Option, - pub post: PostView, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reason: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reply: core::option::Option, -} -pub type FeedViewPost = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct GeneratorViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub accepts_interactions: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - pub cid: atrium_api::types::string::Cid, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub content_mode: core::option::Option, - pub creator: crate::app::bsky::actor::defs::ProfileView, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description_facets: core::option::Option< - Vec, - >, - pub did: atrium_api::types::string::Did, - pub display_name: String, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub like_count: core::option::Option, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type GeneratorView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct GeneratorViewerStateData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub like: core::option::Option, -} -pub type GeneratorViewerState = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InteractionData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub event: core::option::Option, - ///Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub feed_context: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub item: core::option::Option, -} -pub type Interaction = atrium_api::types::Object; -///User liked the feed item -pub const INTERACTION_LIKE: &str = "app.bsky.feed.defs#interactionLike"; -///User quoted the feed item -pub const INTERACTION_QUOTE: &str = "app.bsky.feed.defs#interactionQuote"; -///User replied to the feed item -pub const INTERACTION_REPLY: &str = "app.bsky.feed.defs#interactionReply"; -///User reposted the feed item -pub const INTERACTION_REPOST: &str = "app.bsky.feed.defs#interactionRepost"; -///Feed item was seen by user -pub const INTERACTION_SEEN: &str = "app.bsky.feed.defs#interactionSeen"; -///User shared the feed item -pub const INTERACTION_SHARE: &str = "app.bsky.feed.defs#interactionShare"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct NotFoundPostData { - pub not_found: bool, - pub uri: String, -} -pub type NotFoundPost = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct PostViewData { - pub author: crate::app::bsky::actor::defs::ProfileViewBasic, - pub cid: atrium_api::types::string::Cid, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub embed: core::option::Option>, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub like_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub quote_count: core::option::Option, - pub record: atrium_api::types::Unknown, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reply_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub repost_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub threadgate: core::option::Option, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type PostView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ReasonPinData {} -pub type ReasonPin = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ReasonRepostData { - pub by: crate::app::bsky::actor::defs::ProfileViewBasic, - pub indexed_at: atrium_api::types::string::Datetime, -} -pub type ReasonRepost = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ReplyRefData { - ///When parent is a reply to another post, this is the author of that post. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub grandparent_author: core::option::Option< - crate::app::bsky::actor::defs::ProfileViewBasic, - >, - pub parent: atrium_api::types::Union, - pub root: atrium_api::types::Union, -} -pub type ReplyRef = atrium_api::types::Object; -///Request that less content like the given feed item be shown in the feed -pub const REQUEST_LESS: &str = "app.bsky.feed.defs#requestLess"; -///Request that more content like the given feed item be shown in the feed -pub const REQUEST_MORE: &str = "app.bsky.feed.defs#requestMore"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SkeletonFeedPostData { - ///Context that will be passed through to client and may be passed to feed generator back alongside interactions. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub feed_context: core::option::Option, - pub post: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reason: core::option::Option< - atrium_api::types::Union, - >, -} -pub type SkeletonFeedPost = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SkeletonReasonPinData {} -pub type SkeletonReasonPin = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SkeletonReasonRepostData { - pub repost: String, -} -pub type SkeletonReasonRepost = atrium_api::types::Object; -///Metadata about this post within the context of the thread it is in. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ThreadContextData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub root_author_like: core::option::Option, -} -pub type ThreadContext = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ThreadViewPostData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub parent: core::option::Option>, - pub post: PostView, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub replies: core::option::Option< - Vec>, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub thread_context: core::option::Option, -} -pub type ThreadViewPost = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ThreadgateViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub lists: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub record: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub uri: core::option::Option, -} -pub type ThreadgateView = atrium_api::types::Object; -///Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewerStateData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub embedding_disabled: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub like: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub pinned: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reply_disabled: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub repost: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub thread_muted: core::option::Option, -} -pub type ViewerState = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum FeedViewPostReasonRefs { - #[serde(rename = "app.bsky.feed.defs#reasonRepost")] - ReasonRepost(Box), - #[serde(rename = "app.bsky.feed.defs#reasonPin")] - ReasonPin(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum PostViewEmbedRefs { - #[serde(rename = "app.bsky.embed.images#view")] - AppBskyEmbedImagesView(Box), - #[serde(rename = "app.bsky.embed.video#view")] - AppBskyEmbedVideoView(Box), - #[serde(rename = "app.bsky.embed.external#view")] - AppBskyEmbedExternalView(Box), - #[serde(rename = "app.bsky.embed.record#view")] - AppBskyEmbedRecordView(Box), - #[serde(rename = "app.bsky.embed.recordWithMedia#view")] - AppBskyEmbedRecordWithMediaView( - Box, - ), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ReplyRefParentRefs { - #[serde(rename = "app.bsky.feed.defs#postView")] - PostView(Box), - #[serde(rename = "app.bsky.feed.defs#notFoundPost")] - NotFoundPost(Box), - #[serde(rename = "app.bsky.feed.defs#blockedPost")] - BlockedPost(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ReplyRefRootRefs { - #[serde(rename = "app.bsky.feed.defs#postView")] - PostView(Box), - #[serde(rename = "app.bsky.feed.defs#notFoundPost")] - NotFoundPost(Box), - #[serde(rename = "app.bsky.feed.defs#blockedPost")] - BlockedPost(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum SkeletonFeedPostReasonRefs { - #[serde(rename = "app.bsky.feed.defs#skeletonReasonRepost")] - SkeletonReasonRepost(Box), - #[serde(rename = "app.bsky.feed.defs#skeletonReasonPin")] - SkeletonReasonPin(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ThreadViewPostParentRefs { - #[serde(rename = "app.bsky.feed.defs#threadViewPost")] - ThreadViewPost(Box), - #[serde(rename = "app.bsky.feed.defs#notFoundPost")] - NotFoundPost(Box), - #[serde(rename = "app.bsky.feed.defs#blockedPost")] - BlockedPost(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ThreadViewPostRepliesItem { - #[serde(rename = "app.bsky.feed.defs#threadViewPost")] - ThreadViewPost(Box), - #[serde(rename = "app.bsky.feed.defs#notFoundPost")] - NotFoundPost(Box), - #[serde(rename = "app.bsky.feed.defs#blockedPost")] - BlockedPost(Box), -} diff --git a/services/types/src/app/bsky/feed/describe_feed_generator.rs b/services/types/src/app/bsky/feed/describe_feed_generator.rs deleted file mode 100644 index 25431fe..0000000 --- a/services/types/src/app/bsky/feed/describe_feed_generator.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.describeFeedGenerator` namespace. -pub const NSID: &str = "app.bsky.feed.describeFeedGenerator"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub did: atrium_api::types::string::Did, - pub feeds: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub links: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct FeedData { - pub uri: String, -} -pub type Feed = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LinksData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub privacy_policy: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub terms_of_service: core::option::Option, -} -pub type Links = atrium_api::types::Object; diff --git a/services/types/src/app/bsky/feed/generator.rs b/services/types/src/app/bsky/feed/generator.rs deleted file mode 100644 index 9b2817c..0000000 --- a/services/types/src/app/bsky/feed/generator.rs +++ /dev/null @@ -1,38 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.generator` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - ///Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub accepts_interactions: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub content_mode: core::option::Option, - pub created_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description_facets: core::option::Option< - Vec, - >, - pub did: atrium_api::types::string::Did, - pub display_name: String, - ///Self-label values - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum RecordLabelsRefs { - #[serde(rename = "com.atproto.label.defs#selfLabels")] - ComAtprotoLabelDefsSelfLabels(Box), -} diff --git a/services/types/src/app/bsky/feed/get_actor_feeds.rs b/services/types/src/app/bsky/feed/get_actor_feeds.rs deleted file mode 100644 index 8275093..0000000 --- a/services/types/src/app/bsky/feed/get_actor_feeds.rs +++ /dev/null @@ -1,29 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getActorFeeds` namespace. -pub const NSID: &str = "app.bsky.feed.getActorFeeds"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actor: atrium_api::types::string::AtIdentifier, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feeds: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/feed/get_actor_likes.rs b/services/types/src/app/bsky/feed/get_actor_likes.rs deleted file mode 100644 index d9c8d29..0000000 --- a/services/types/src/app/bsky/feed/get_actor_likes.rs +++ /dev/null @@ -1,46 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getActorLikes` namespace. -pub const NSID: &str = "app.bsky.feed.getActorLikes"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actor: atrium_api::types::string::AtIdentifier, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feed: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - BlockedActor(Option), - BlockedByActor(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::BlockedActor(msg) => { - write!(_f, "BlockedActor")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::BlockedByActor(msg) => { - write!(_f, "BlockedByActor")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/app/bsky/feed/get_author_feed.rs b/services/types/src/app/bsky/feed/get_author_feed.rs deleted file mode 100644 index 3f8ab79..0000000 --- a/services/types/src/app/bsky/feed/get_author_feed.rs +++ /dev/null @@ -1,51 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getAuthorFeed` namespace. -pub const NSID: &str = "app.bsky.feed.getAuthorFeed"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actor: atrium_api::types::string::AtIdentifier, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Combinations of post/repost types to include in response. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub filter: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub include_pins: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feed: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - BlockedActor(Option), - BlockedByActor(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::BlockedActor(msg) => { - write!(_f, "BlockedActor")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::BlockedByActor(msg) => { - write!(_f, "BlockedByActor")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/app/bsky/feed/get_feed.rs b/services/types/src/app/bsky/feed/get_feed.rs deleted file mode 100644 index 8e59cc1..0000000 --- a/services/types/src/app/bsky/feed/get_feed.rs +++ /dev/null @@ -1,39 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getFeed` namespace. -pub const NSID: &str = "app.bsky.feed.getFeed"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feed: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feed: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - UnknownFeed(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::UnknownFeed(msg) => { - write!(_f, "UnknownFeed")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/app/bsky/feed/get_feed_generator.rs b/services/types/src/app/bsky/feed/get_feed_generator.rs deleted file mode 100644 index d8a8944..0000000 --- a/services/types/src/app/bsky/feed/get_feed_generator.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getFeedGenerator` namespace. -pub const NSID: &str = "app.bsky.feed.getFeedGenerator"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///AT-URI of the feed generator record. - pub feed: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///Indicates whether the feed generator service has been online recently, or else seems to be inactive. - pub is_online: bool, - ///Indicates whether the feed generator service is compatible with the record declaration. - pub is_valid: bool, - pub view: crate::app::bsky::feed::defs::GeneratorView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/feed/get_feed_generators.rs b/services/types/src/app/bsky/feed/get_feed_generators.rs deleted file mode 100644 index b5eb607..0000000 --- a/services/types/src/app/bsky/feed/get_feed_generators.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getFeedGenerators` namespace. -pub const NSID: &str = "app.bsky.feed.getFeedGenerators"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub feeds: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub feeds: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/feed/get_feed_skeleton.rs b/services/types/src/app/bsky/feed/get_feed_skeleton.rs deleted file mode 100644 index 4df33a4..0000000 --- a/services/types/src/app/bsky/feed/get_feed_skeleton.rs +++ /dev/null @@ -1,40 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getFeedSkeleton` namespace. -pub const NSID: &str = "app.bsky.feed.getFeedSkeleton"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Reference to feed generator record describing the specific feed being requested. - pub feed: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feed: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - UnknownFeed(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::UnknownFeed(msg) => { - write!(_f, "UnknownFeed")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/app/bsky/feed/get_likes.rs b/services/types/src/app/bsky/feed/get_likes.rs deleted file mode 100644 index 7ac732b..0000000 --- a/services/types/src/app/bsky/feed/get_likes.rs +++ /dev/null @@ -1,44 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getLikes` namespace. -pub const NSID: &str = "app.bsky.feed.getLikes"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///CID of the subject record (aka, specific version of record), to filter likes. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///AT-URI of the subject (eg, a post record). - pub uri: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub likes: Vec, - pub uri: String, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LikeData { - pub actor: crate::app::bsky::actor::defs::ProfileView, - pub created_at: atrium_api::types::string::Datetime, - pub indexed_at: atrium_api::types::string::Datetime, -} -pub type Like = atrium_api::types::Object; diff --git a/services/types/src/app/bsky/feed/get_list_feed.rs b/services/types/src/app/bsky/feed/get_list_feed.rs deleted file mode 100644 index 58475a3..0000000 --- a/services/types/src/app/bsky/feed/get_list_feed.rs +++ /dev/null @@ -1,40 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getListFeed` namespace. -pub const NSID: &str = "app.bsky.feed.getListFeed"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Reference (AT-URI) to the list record. - pub list: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feed: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - UnknownList(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::UnknownList(msg) => { - write!(_f, "UnknownList")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/app/bsky/feed/get_post_thread.rs b/services/types/src/app/bsky/feed/get_post_thread.rs deleted file mode 100644 index f5f1a10..0000000 --- a/services/types/src/app/bsky/feed/get_post_thread.rs +++ /dev/null @@ -1,52 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getPostThread` namespace. -pub const NSID: &str = "app.bsky.feed.getPostThread"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///How many levels of reply depth should be included in response. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub depth: core::option::Option>, - ///How many levels of parent (and grandparent, etc) post to include. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub parent_height: core::option::Option>, - ///Reference (AT-URI) to post record. - pub uri: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub thread: atrium_api::types::Union, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub threadgate: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - NotFound(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::NotFound(msg) => { - write!(_f, "NotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputThreadRefs { - #[serde(rename = "app.bsky.feed.defs#threadViewPost")] - AppBskyFeedDefsThreadViewPost(Box), - #[serde(rename = "app.bsky.feed.defs#notFoundPost")] - AppBskyFeedDefsNotFoundPost(Box), - #[serde(rename = "app.bsky.feed.defs#blockedPost")] - AppBskyFeedDefsBlockedPost(Box), -} diff --git a/services/types/src/app/bsky/feed/get_posts.rs b/services/types/src/app/bsky/feed/get_posts.rs deleted file mode 100644 index ea461e5..0000000 --- a/services/types/src/app/bsky/feed/get_posts.rs +++ /dev/null @@ -1,24 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getPosts` namespace. -pub const NSID: &str = "app.bsky.feed.getPosts"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///List of post AT-URIs to return hydrated views for. - pub uris: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub posts: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/feed/get_quotes.rs b/services/types/src/app/bsky/feed/get_quotes.rs deleted file mode 100644 index 46f63d5..0000000 --- a/services/types/src/app/bsky/feed/get_quotes.rs +++ /dev/null @@ -1,36 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getQuotes` namespace. -pub const NSID: &str = "app.bsky.feed.getQuotes"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///If supplied, filters to quotes of specific version (by CID) of the post record. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Reference (AT-URI) of post record - pub uri: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub posts: Vec, - pub uri: String, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/feed/get_reposted_by.rs b/services/types/src/app/bsky/feed/get_reposted_by.rs deleted file mode 100644 index ea06592..0000000 --- a/services/types/src/app/bsky/feed/get_reposted_by.rs +++ /dev/null @@ -1,36 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getRepostedBy` namespace. -pub const NSID: &str = "app.bsky.feed.getRepostedBy"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///If supplied, filters to reposts of specific version (by CID) of the post record. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Reference (AT-URI) of post record - pub uri: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub reposted_by: Vec, - pub uri: String, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/feed/get_suggested_feeds.rs b/services/types/src/app/bsky/feed/get_suggested_feeds.rs deleted file mode 100644 index b79cb4e..0000000 --- a/services/types/src/app/bsky/feed/get_suggested_feeds.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getSuggestedFeeds` namespace. -pub const NSID: &str = "app.bsky.feed.getSuggestedFeeds"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feeds: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/feed/get_timeline.rs b/services/types/src/app/bsky/feed/get_timeline.rs deleted file mode 100644 index 40f8720..0000000 --- a/services/types/src/app/bsky/feed/get_timeline.rs +++ /dev/null @@ -1,31 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getTimeline` namespace. -pub const NSID: &str = "app.bsky.feed.getTimeline"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Variant 'algorithm' for timeline. Implementation-specific. NOTE: most feed flexibility has been moved to feed generator mechanism. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub algorithm: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feed: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/feed/like.rs b/services/types/src/app/bsky/feed/like.rs deleted file mode 100644 index ff993ea..0000000 --- a/services/types/src/app/bsky/feed/like.rs +++ /dev/null @@ -1,15 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.like` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub created_at: atrium_api::types::string::Datetime, - pub subject: crate::com::atproto::repo::strong_ref::Main, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/services/types/src/app/bsky/feed/post.rs b/services/types/src/app/bsky/feed/post.rs deleted file mode 100644 index d0e5157..0000000 --- a/services/types/src/app/bsky/feed/post.rs +++ /dev/null @@ -1,83 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.post` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - ///Client-declared timestamp when this post was originally created. - pub created_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub embed: core::option::Option>, - ///DEPRECATED: replaced by app.bsky.richtext.facet. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub entities: core::option::Option>, - ///Annotations of text (mentions, URLs, hashtags, etc) - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub facets: core::option::Option>, - ///Self-label values for this post. Effectively content warnings. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - ///Indicates human language of post primary text content. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub langs: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reply: core::option::Option, - ///Additional hashtags, in addition to any included in post text and facets. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub tags: core::option::Option>, - ///The primary post content. May be an empty string, if there are embeds. - pub text: String, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -///Deprecated: use facets instead. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct EntityData { - pub index: TextSlice, - ///Expected values are 'mention' and 'link'. - pub r#type: String, - pub value: String, -} -pub type Entity = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ReplyRefData { - pub parent: crate::com::atproto::repo::strong_ref::Main, - pub root: crate::com::atproto::repo::strong_ref::Main, -} -pub type ReplyRef = atrium_api::types::Object; -///Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct TextSliceData { - pub end: usize, - pub start: usize, -} -pub type TextSlice = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum RecordEmbedRefs { - #[serde(rename = "app.bsky.embed.images")] - AppBskyEmbedImagesMain(Box), - #[serde(rename = "app.bsky.embed.video")] - AppBskyEmbedVideoMain(Box), - #[serde(rename = "app.bsky.embed.external")] - AppBskyEmbedExternalMain(Box), - #[serde(rename = "app.bsky.embed.record")] - AppBskyEmbedRecordMain(Box), - #[serde(rename = "app.bsky.embed.recordWithMedia")] - AppBskyEmbedRecordWithMediaMain( - Box, - ), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum RecordLabelsRefs { - #[serde(rename = "com.atproto.label.defs#selfLabels")] - ComAtprotoLabelDefsSelfLabels(Box), -} diff --git a/services/types/src/app/bsky/feed/postgate.rs b/services/types/src/app/bsky/feed/postgate.rs deleted file mode 100644 index 12d9b48..0000000 --- a/services/types/src/app/bsky/feed/postgate.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.postgate` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub created_at: atrium_api::types::string::Datetime, - ///List of AT-URIs embedding this post that the author has detached from. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub detached_embedding_uris: core::option::Option>, - ///List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub embedding_rules: core::option::Option< - Vec>, - >, - ///Reference (AT-URI) to the post record. - pub post: String, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -///Disables embedding of this post. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct DisableRuleData {} -pub type DisableRule = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum RecordEmbeddingRulesItem { - #[serde(rename = "app.bsky.feed.postgate#disableRule")] - DisableRule(Box), -} diff --git a/services/types/src/app/bsky/feed/repost.rs b/services/types/src/app/bsky/feed/repost.rs deleted file mode 100644 index 6950b46..0000000 --- a/services/types/src/app/bsky/feed/repost.rs +++ /dev/null @@ -1,15 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.repost` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub created_at: atrium_api::types::string::Datetime, - pub subject: crate::com::atproto::repo::strong_ref::Main, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/services/types/src/app/bsky/feed/search_posts.rs b/services/types/src/app/bsky/feed/search_posts.rs deleted file mode 100644 index 45e00b1..0000000 --- a/services/types/src/app/bsky/feed/search_posts.rs +++ /dev/null @@ -1,71 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.searchPosts` namespace. -pub const NSID: &str = "app.bsky.feed.searchPosts"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Filter to posts by the given account. Handles are resolved to DID before query-time. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub author: core::option::Option, - ///Optional pagination mechanism; may not necessarily allow scrolling through entire result set. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub domain: core::option::Option, - ///Filter to posts in the given language. Expected to be based on post language field, though server may override language detection. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub lang: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub mentions: core::option::Option, - ///Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. - pub q: String, - ///Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub since: core::option::Option, - ///Specifies the ranking order of results. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sort: core::option::Option, - ///Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub tag: core::option::Option>, - ///Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub until: core::option::Option, - ///Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub url: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hits_total: core::option::Option, - pub posts: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - BadQueryString(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::BadQueryString(msg) => { - write!(_f, "BadQueryString")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/app/bsky/feed/send_interactions.rs b/services/types/src/app/bsky/feed/send_interactions.rs deleted file mode 100644 index ef1ae1c..0000000 --- a/services/types/src/app/bsky/feed/send_interactions.rs +++ /dev/null @@ -1,21 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.sendInteractions` namespace. -pub const NSID: &str = "app.bsky.feed.sendInteractions"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub interactions: Vec, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData {} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/feed/threadgate.rs b/services/types/src/app/bsky/feed/threadgate.rs deleted file mode 100644 index fa04553..0000000 --- a/services/types/src/app/bsky/feed/threadgate.rs +++ /dev/null @@ -1,56 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.threadgate` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - ///List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub allow: core::option::Option>>, - pub created_at: atrium_api::types::string::Datetime, - ///List of hidden reply URIs. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hidden_replies: core::option::Option>, - ///Reference (AT-URI) to the post record. - pub post: String, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -///Allow replies from actors who follow you. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct FollowerRuleData {} -pub type FollowerRule = atrium_api::types::Object; -///Allow replies from actors you follow. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct FollowingRuleData {} -pub type FollowingRule = atrium_api::types::Object; -///Allow replies from actors on a list. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ListRuleData { - pub list: String, -} -pub type ListRule = atrium_api::types::Object; -///Allow replies from actors mentioned in your post. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MentionRuleData {} -pub type MentionRule = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum RecordAllowItem { - #[serde(rename = "app.bsky.feed.threadgate#mentionRule")] - MentionRule(Box), - #[serde(rename = "app.bsky.feed.threadgate#followerRule")] - FollowerRule(Box), - #[serde(rename = "app.bsky.feed.threadgate#followingRule")] - FollowingRule(Box), - #[serde(rename = "app.bsky.feed.threadgate#listRule")] - ListRule(Box), -} diff --git a/services/types/src/app/bsky/graph.rs b/services/types/src/app/bsky/graph.rs deleted file mode 100644 index 3a2069b..0000000 --- a/services/types/src/app/bsky/graph.rs +++ /dev/null @@ -1,66 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph` namespace. -pub mod block; -pub mod defs; -pub mod follow; -pub mod get_actor_starter_packs; -pub mod get_blocks; -pub mod get_followers; -pub mod get_follows; -pub mod get_known_followers; -pub mod get_list; -pub mod get_list_blocks; -pub mod get_list_mutes; -pub mod get_lists; -pub mod get_mutes; -pub mod get_relationships; -pub mod get_starter_pack; -pub mod get_starter_packs; -pub mod get_suggested_follows_by_actor; -pub mod list; -pub mod listblock; -pub mod listitem; -pub mod mute_actor; -pub mod mute_actor_list; -pub mod mute_thread; -pub mod search_starter_packs; -pub mod starterpack; -pub mod unmute_actor; -pub mod unmute_actor_list; -pub mod unmute_thread; -#[derive(Debug)] -pub struct Block; -impl atrium_api::types::Collection for Block { - const NSID: &'static str = "app.bsky.graph.block"; - type Record = block::Record; -} -#[derive(Debug)] -pub struct Follow; -impl atrium_api::types::Collection for Follow { - const NSID: &'static str = "app.bsky.graph.follow"; - type Record = follow::Record; -} -#[derive(Debug)] -pub struct List; -impl atrium_api::types::Collection for List { - const NSID: &'static str = "app.bsky.graph.list"; - type Record = list::Record; -} -#[derive(Debug)] -pub struct Listblock; -impl atrium_api::types::Collection for Listblock { - const NSID: &'static str = "app.bsky.graph.listblock"; - type Record = listblock::Record; -} -#[derive(Debug)] -pub struct Listitem; -impl atrium_api::types::Collection for Listitem { - const NSID: &'static str = "app.bsky.graph.listitem"; - type Record = listitem::Record; -} -#[derive(Debug)] -pub struct Starterpack; -impl atrium_api::types::Collection for Starterpack { - const NSID: &'static str = "app.bsky.graph.starterpack"; - type Record = starterpack::Record; -} diff --git a/services/types/src/app/bsky/graph/block.rs b/services/types/src/app/bsky/graph/block.rs deleted file mode 100644 index 60ae226..0000000 --- a/services/types/src/app/bsky/graph/block.rs +++ /dev/null @@ -1,16 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.block` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub created_at: atrium_api::types::string::Datetime, - ///DID of the account to be blocked. - pub subject: atrium_api::types::string::Did, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/services/types/src/app/bsky/graph/defs.rs b/services/types/src/app/bsky/graph/defs.rs deleted file mode 100644 index 975e007..0000000 --- a/services/types/src/app/bsky/graph/defs.rs +++ /dev/null @@ -1,130 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.defs` namespace. -///A list of actors used for curation purposes such as list feeds or interaction gating. -pub const CURATELIST: &str = "app.bsky.graph.defs#curatelist"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ListItemViewData { - pub subject: crate::app::bsky::actor::defs::ProfileView, - pub uri: String, -} -pub type ListItemView = atrium_api::types::Object; -pub type ListPurpose = String; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ListViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - pub cid: atrium_api::types::string::Cid, - pub creator: crate::app::bsky::actor::defs::ProfileView, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description_facets: core::option::Option< - Vec, - >, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub list_item_count: core::option::Option, - pub name: String, - pub purpose: ListPurpose, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type ListView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ListViewBasicData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - pub cid: atrium_api::types::string::Cid, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub indexed_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub list_item_count: core::option::Option, - pub name: String, - pub purpose: ListPurpose, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type ListViewBasic = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ListViewerStateData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub blocked: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub muted: core::option::Option, -} -pub type ListViewerState = atrium_api::types::Object; -///A list of actors to apply an aggregate moderation action (mute/block) on. -pub const MODLIST: &str = "app.bsky.graph.defs#modlist"; -///indicates that a handle or DID could not be resolved -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct NotFoundActorData { - pub actor: atrium_api::types::string::AtIdentifier, - pub not_found: bool, -} -pub type NotFoundActor = atrium_api::types::Object; -///A list of actors used for only for reference purposes such as within a starter pack. -pub const REFERENCELIST: &str = "app.bsky.graph.defs#referencelist"; -///lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object) -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RelationshipData { - pub did: atrium_api::types::string::Did, - ///if the actor is followed by this DID, contains the AT-URI of the follow record - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub followed_by: core::option::Option, - ///if the actor follows this DID, this is the AT-URI of the follow record - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub following: core::option::Option, -} -pub type Relationship = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct StarterPackViewData { - pub cid: atrium_api::types::string::Cid, - pub creator: crate::app::bsky::actor::defs::ProfileViewBasic, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub feeds: core::option::Option>, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub joined_all_time_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub joined_week_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub list: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub list_items_sample: core::option::Option>, - pub record: atrium_api::types::Unknown, - pub uri: String, -} -pub type StarterPackView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct StarterPackViewBasicData { - pub cid: atrium_api::types::string::Cid, - pub creator: crate::app::bsky::actor::defs::ProfileViewBasic, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub joined_all_time_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub joined_week_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub list_item_count: core::option::Option, - pub record: atrium_api::types::Unknown, - pub uri: String, -} -pub type StarterPackViewBasic = atrium_api::types::Object; diff --git a/services/types/src/app/bsky/graph/follow.rs b/services/types/src/app/bsky/graph/follow.rs deleted file mode 100644 index 4dc9c99..0000000 --- a/services/types/src/app/bsky/graph/follow.rs +++ /dev/null @@ -1,15 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.follow` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub created_at: atrium_api::types::string::Datetime, - pub subject: atrium_api::types::string::Did, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/services/types/src/app/bsky/graph/get_actor_starter_packs.rs b/services/types/src/app/bsky/graph/get_actor_starter_packs.rs deleted file mode 100644 index 81ca107..0000000 --- a/services/types/src/app/bsky/graph/get_actor_starter_packs.rs +++ /dev/null @@ -1,29 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getActorStarterPacks` namespace. -pub const NSID: &str = "app.bsky.graph.getActorStarterPacks"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actor: atrium_api::types::string::AtIdentifier, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub starter_packs: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/graph/get_blocks.rs b/services/types/src/app/bsky/graph/get_blocks.rs deleted file mode 100644 index 66d509b..0000000 --- a/services/types/src/app/bsky/graph/get_blocks.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getBlocks` namespace. -pub const NSID: &str = "app.bsky.graph.getBlocks"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub blocks: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/graph/get_followers.rs b/services/types/src/app/bsky/graph/get_followers.rs deleted file mode 100644 index b1d92ae..0000000 --- a/services/types/src/app/bsky/graph/get_followers.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getFollowers` namespace. -pub const NSID: &str = "app.bsky.graph.getFollowers"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actor: atrium_api::types::string::AtIdentifier, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub followers: Vec, - pub subject: crate::app::bsky::actor::defs::ProfileView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/graph/get_follows.rs b/services/types/src/app/bsky/graph/get_follows.rs deleted file mode 100644 index ff30319..0000000 --- a/services/types/src/app/bsky/graph/get_follows.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getFollows` namespace. -pub const NSID: &str = "app.bsky.graph.getFollows"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actor: atrium_api::types::string::AtIdentifier, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub follows: Vec, - pub subject: crate::app::bsky::actor::defs::ProfileView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/graph/get_known_followers.rs b/services/types/src/app/bsky/graph/get_known_followers.rs deleted file mode 100644 index 732f2d3..0000000 --- a/services/types/src/app/bsky/graph/get_known_followers.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getKnownFollowers` namespace. -pub const NSID: &str = "app.bsky.graph.getKnownFollowers"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actor: atrium_api::types::string::AtIdentifier, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub followers: Vec, - pub subject: crate::app::bsky::actor::defs::ProfileView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/graph/get_list.rs b/services/types/src/app/bsky/graph/get_list.rs deleted file mode 100644 index f39e89d..0000000 --- a/services/types/src/app/bsky/graph/get_list.rs +++ /dev/null @@ -1,31 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getList` namespace. -pub const NSID: &str = "app.bsky.graph.getList"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Reference (AT-URI) of the list record to hydrate. - pub list: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub items: Vec, - pub list: crate::app::bsky::graph::defs::ListView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/graph/get_list_blocks.rs b/services/types/src/app/bsky/graph/get_list_blocks.rs deleted file mode 100644 index 543bd33..0000000 --- a/services/types/src/app/bsky/graph/get_list_blocks.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getListBlocks` namespace. -pub const NSID: &str = "app.bsky.graph.getListBlocks"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub lists: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/graph/get_list_mutes.rs b/services/types/src/app/bsky/graph/get_list_mutes.rs deleted file mode 100644 index b7fcddb..0000000 --- a/services/types/src/app/bsky/graph/get_list_mutes.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getListMutes` namespace. -pub const NSID: &str = "app.bsky.graph.getListMutes"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub lists: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/graph/get_lists.rs b/services/types/src/app/bsky/graph/get_lists.rs deleted file mode 100644 index 345886e..0000000 --- a/services/types/src/app/bsky/graph/get_lists.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getLists` namespace. -pub const NSID: &str = "app.bsky.graph.getLists"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The account (actor) to enumerate lists from. - pub actor: atrium_api::types::string::AtIdentifier, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub lists: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/graph/get_mutes.rs b/services/types/src/app/bsky/graph/get_mutes.rs deleted file mode 100644 index d2aeed5..0000000 --- a/services/types/src/app/bsky/graph/get_mutes.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getMutes` namespace. -pub const NSID: &str = "app.bsky.graph.getMutes"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub mutes: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/graph/get_relationships.rs b/services/types/src/app/bsky/graph/get_relationships.rs deleted file mode 100644 index c6075a6..0000000 --- a/services/types/src/app/bsky/graph/get_relationships.rs +++ /dev/null @@ -1,48 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getRelationships` namespace. -pub const NSID: &str = "app.bsky.graph.getRelationships"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Primary account requesting relationships for. - pub actor: atrium_api::types::string::AtIdentifier, - ///List of 'other' accounts to be related back to the primary. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub others: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub actor: core::option::Option, - pub relationships: Vec>, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///the primary actor at-identifier could not be resolved - ActorNotFound(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::ActorNotFound(msg) => { - write!(_f, "ActorNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputRelationshipsItem { - #[serde(rename = "app.bsky.graph.defs#relationship")] - AppBskyGraphDefsRelationship(Box), - #[serde(rename = "app.bsky.graph.defs#notFoundActor")] - AppBskyGraphDefsNotFoundActor(Box), -} diff --git a/services/types/src/app/bsky/graph/get_starter_pack.rs b/services/types/src/app/bsky/graph/get_starter_pack.rs deleted file mode 100644 index c3c5480..0000000 --- a/services/types/src/app/bsky/graph/get_starter_pack.rs +++ /dev/null @@ -1,24 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getStarterPack` namespace. -pub const NSID: &str = "app.bsky.graph.getStarterPack"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Reference (AT-URI) of the starter pack record. - pub starter_pack: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub starter_pack: crate::app::bsky::graph::defs::StarterPackView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/graph/get_starter_packs.rs b/services/types/src/app/bsky/graph/get_starter_packs.rs deleted file mode 100644 index ce168f2..0000000 --- a/services/types/src/app/bsky/graph/get_starter_packs.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getStarterPacks` namespace. -pub const NSID: &str = "app.bsky.graph.getStarterPacks"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub uris: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub starter_packs: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/graph/get_suggested_follows_by_actor.rs b/services/types/src/app/bsky/graph/get_suggested_follows_by_actor.rs deleted file mode 100644 index e1b5e24..0000000 --- a/services/types/src/app/bsky/graph/get_suggested_follows_by_actor.rs +++ /dev/null @@ -1,29 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getSuggestedFollowsByActor` namespace. -pub const NSID: &str = "app.bsky.graph.getSuggestedFollowsByActor"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actor: atrium_api::types::string::AtIdentifier, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///If true, response has fallen-back to generic results, and is not scoped using relativeToDid - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub is_fallback: core::option::Option, - ///Snowflake for this recommendation, use when submitting recommendation events. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rec_id: core::option::Option, - pub suggestions: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/graph/list.rs b/services/types/src/app/bsky/graph/list.rs deleted file mode 100644 index e9482b9..0000000 --- a/services/types/src/app/bsky/graph/list.rs +++ /dev/null @@ -1,34 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.list` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - pub created_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description_facets: core::option::Option< - Vec, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - ///Display name for list; can not be empty. - pub name: String, - ///Defines the purpose of the list (aka, moderation-oriented or curration-oriented) - pub purpose: crate::app::bsky::graph::defs::ListPurpose, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum RecordLabelsRefs { - #[serde(rename = "com.atproto.label.defs#selfLabels")] - ComAtprotoLabelDefsSelfLabels(Box), -} diff --git a/services/types/src/app/bsky/graph/listblock.rs b/services/types/src/app/bsky/graph/listblock.rs deleted file mode 100644 index 1fdd321..0000000 --- a/services/types/src/app/bsky/graph/listblock.rs +++ /dev/null @@ -1,16 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.listblock` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub created_at: atrium_api::types::string::Datetime, - ///Reference (AT-URI) to the mod list record. - pub subject: String, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/services/types/src/app/bsky/graph/listitem.rs b/services/types/src/app/bsky/graph/listitem.rs deleted file mode 100644 index a62c409..0000000 --- a/services/types/src/app/bsky/graph/listitem.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.listitem` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub created_at: atrium_api::types::string::Datetime, - ///Reference (AT-URI) to the list record (app.bsky.graph.list). - pub list: String, - ///The account which is included on the list. - pub subject: atrium_api::types::string::Did, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/services/types/src/app/bsky/graph/mute_actor.rs b/services/types/src/app/bsky/graph/mute_actor.rs deleted file mode 100644 index a3a3aae..0000000 --- a/services/types/src/app/bsky/graph/mute_actor.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.muteActor` namespace. -pub const NSID: &str = "app.bsky.graph.muteActor"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub actor: atrium_api::types::string::AtIdentifier, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/graph/mute_actor_list.rs b/services/types/src/app/bsky/graph/mute_actor_list.rs deleted file mode 100644 index 30cc212..0000000 --- a/services/types/src/app/bsky/graph/mute_actor_list.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.muteActorList` namespace. -pub const NSID: &str = "app.bsky.graph.muteActorList"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub list: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/graph/mute_thread.rs b/services/types/src/app/bsky/graph/mute_thread.rs deleted file mode 100644 index 7f71996..0000000 --- a/services/types/src/app/bsky/graph/mute_thread.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.muteThread` namespace. -pub const NSID: &str = "app.bsky.graph.muteThread"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub root: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/graph/search_starter_packs.rs b/services/types/src/app/bsky/graph/search_starter_packs.rs deleted file mode 100644 index f3fe0c9..0000000 --- a/services/types/src/app/bsky/graph/search_starter_packs.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.searchStarterPacks` namespace. -pub const NSID: &str = "app.bsky.graph.searchStarterPacks"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. - pub q: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub starter_packs: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/graph/starterpack.rs b/services/types/src/app/bsky/graph/starterpack.rs deleted file mode 100644 index ebb5c5d..0000000 --- a/services/types/src/app/bsky/graph/starterpack.rs +++ /dev/null @@ -1,32 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.starterpack` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub created_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description_facets: core::option::Option< - Vec, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub feeds: core::option::Option>, - ///Reference (AT-URI) to the list record. - pub list: String, - ///Display name for starter pack; can not be empty. - pub name: String, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct FeedItemData { - pub uri: String, -} -pub type FeedItem = atrium_api::types::Object; diff --git a/services/types/src/app/bsky/graph/unmute_actor.rs b/services/types/src/app/bsky/graph/unmute_actor.rs deleted file mode 100644 index 636d8cb..0000000 --- a/services/types/src/app/bsky/graph/unmute_actor.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.unmuteActor` namespace. -pub const NSID: &str = "app.bsky.graph.unmuteActor"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub actor: atrium_api::types::string::AtIdentifier, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/graph/unmute_actor_list.rs b/services/types/src/app/bsky/graph/unmute_actor_list.rs deleted file mode 100644 index 80eb35a..0000000 --- a/services/types/src/app/bsky/graph/unmute_actor_list.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.unmuteActorList` namespace. -pub const NSID: &str = "app.bsky.graph.unmuteActorList"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub list: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/graph/unmute_thread.rs b/services/types/src/app/bsky/graph/unmute_thread.rs deleted file mode 100644 index ecac160..0000000 --- a/services/types/src/app/bsky/graph/unmute_thread.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.unmuteThread` namespace. -pub const NSID: &str = "app.bsky.graph.unmuteThread"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub root: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/labeler.rs b/services/types/src/app/bsky/labeler.rs deleted file mode 100644 index 9daca74..0000000 --- a/services/types/src/app/bsky/labeler.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.labeler` namespace. -pub mod defs; -pub mod get_services; -pub mod service; -#[derive(Debug)] -pub struct Service; -impl atrium_api::types::Collection for Service { - const NSID: &'static str = "app.bsky.labeler.service"; - type Record = service::Record; -} diff --git a/services/types/src/app/bsky/labeler/defs.rs b/services/types/src/app/bsky/labeler/defs.rs deleted file mode 100644 index f62dc8d..0000000 --- a/services/types/src/app/bsky/labeler/defs.rs +++ /dev/null @@ -1,52 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.labeler.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelerPoliciesData { - ///Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub label_value_definitions: core::option::Option< - Vec, - >, - ///The label values which this labeler publishes. May include global or custom labels. - pub label_values: Vec, -} -pub type LabelerPolicies = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelerViewData { - pub cid: atrium_api::types::string::Cid, - pub creator: crate::app::bsky::actor::defs::ProfileView, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub like_count: core::option::Option, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type LabelerView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelerViewDetailedData { - pub cid: atrium_api::types::string::Cid, - pub creator: crate::app::bsky::actor::defs::ProfileView, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub like_count: core::option::Option, - pub policies: crate::app::bsky::labeler::defs::LabelerPolicies, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type LabelerViewDetailed = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelerViewerStateData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub like: core::option::Option, -} -pub type LabelerViewerState = atrium_api::types::Object; diff --git a/services/types/src/app/bsky/labeler/get_services.rs b/services/types/src/app/bsky/labeler/get_services.rs deleted file mode 100644 index da7f88b..0000000 --- a/services/types/src/app/bsky/labeler/get_services.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.labeler.getServices` namespace. -pub const NSID: &str = "app.bsky.labeler.getServices"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub detailed: core::option::Option, - pub dids: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub views: Vec>, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputViewsItem { - #[serde(rename = "app.bsky.labeler.defs#labelerView")] - AppBskyLabelerDefsLabelerView(Box), - #[serde(rename = "app.bsky.labeler.defs#labelerViewDetailed")] - AppBskyLabelerDefsLabelerViewDetailed( - Box, - ), -} diff --git a/services/types/src/app/bsky/labeler/service.rs b/services/types/src/app/bsky/labeler/service.rs deleted file mode 100644 index 23e8a95..0000000 --- a/services/types/src/app/bsky/labeler/service.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.labeler.service` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub created_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - pub policies: crate::app::bsky::labeler::defs::LabelerPolicies, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum RecordLabelsRefs { - #[serde(rename = "com.atproto.label.defs#selfLabels")] - ComAtprotoLabelDefsSelfLabels(Box), -} diff --git a/services/types/src/app/bsky/notification.rs b/services/types/src/app/bsky/notification.rs deleted file mode 100644 index 6059044..0000000 --- a/services/types/src/app/bsky/notification.rs +++ /dev/null @@ -1,7 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.notification` namespace. -pub mod get_unread_count; -pub mod list_notifications; -pub mod put_preferences; -pub mod register_push; -pub mod update_seen; diff --git a/services/types/src/app/bsky/notification/get_unread_count.rs b/services/types/src/app/bsky/notification/get_unread_count.rs deleted file mode 100644 index 996eecd..0000000 --- a/services/types/src/app/bsky/notification/get_unread_count.rs +++ /dev/null @@ -1,26 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.notification.getUnreadCount` namespace. -pub const NSID: &str = "app.bsky.notification.getUnreadCount"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub priority: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub seen_at: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub count: i64, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/notification/list_notifications.rs b/services/types/src/app/bsky/notification/list_notifications.rs deleted file mode 100644 index 3459b6e..0000000 --- a/services/types/src/app/bsky/notification/list_notifications.rs +++ /dev/null @@ -1,56 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.notification.listNotifications` namespace. -pub const NSID: &str = "app.bsky.notification.listNotifications"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub priority: core::option::Option, - ///Notification reasons to include in response. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reasons: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub seen_at: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub notifications: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub priority: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub seen_at: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct NotificationData { - pub author: crate::app::bsky::actor::defs::ProfileView, - pub cid: atrium_api::types::string::Cid, - pub indexed_at: atrium_api::types::string::Datetime, - pub is_read: bool, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - ///Expected values are 'like', 'repost', 'follow', 'mention', 'reply', 'quote', and 'starterpack-joined'. - pub reason: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reason_subject: core::option::Option, - pub record: atrium_api::types::Unknown, - pub uri: String, -} -pub type Notification = atrium_api::types::Object; diff --git a/services/types/src/app/bsky/notification/put_preferences.rs b/services/types/src/app/bsky/notification/put_preferences.rs deleted file mode 100644 index b5bdc4d..0000000 --- a/services/types/src/app/bsky/notification/put_preferences.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.notification.putPreferences` namespace. -pub const NSID: &str = "app.bsky.notification.putPreferences"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub priority: bool, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/notification/register_push.rs b/services/types/src/app/bsky/notification/register_push.rs deleted file mode 100644 index 66ba567..0000000 --- a/services/types/src/app/bsky/notification/register_push.rs +++ /dev/null @@ -1,20 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.notification.registerPush` namespace. -pub const NSID: &str = "app.bsky.notification.registerPush"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub app_id: String, - pub platform: String, - pub service_did: atrium_api::types::string::Did, - pub token: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/notification/update_seen.rs b/services/types/src/app/bsky/notification/update_seen.rs deleted file mode 100644 index 0b40d3c..0000000 --- a/services/types/src/app/bsky/notification/update_seen.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.notification.updateSeen` namespace. -pub const NSID: &str = "app.bsky.notification.updateSeen"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub seen_at: atrium_api::types::string::Datetime, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/richtext.rs b/services/types/src/app/bsky/richtext.rs deleted file mode 100644 index 85b1cf8..0000000 --- a/services/types/src/app/bsky/richtext.rs +++ /dev/null @@ -1,3 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.richtext` namespace. -pub mod facet; diff --git a/services/types/src/app/bsky/richtext/facet.rs b/services/types/src/app/bsky/richtext/facet.rs deleted file mode 100644 index 355343a..0000000 --- a/services/types/src/app/bsky/richtext/facet.rs +++ /dev/null @@ -1,49 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.richtext.facet` namespace. -///Annotation of a sub-string within rich text. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MainData { - pub features: Vec>, - pub index: ByteSlice, -} -pub type Main = atrium_api::types::Object; -///Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ByteSliceData { - pub byte_end: usize, - pub byte_start: usize, -} -pub type ByteSlice = atrium_api::types::Object; -///Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LinkData { - pub uri: String, -} -pub type Link = atrium_api::types::Object; -///Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MentionData { - pub did: atrium_api::types::string::Did, -} -pub type Mention = atrium_api::types::Object; -///Facet feature for a hashtag. The text usually includes a '#' prefix, but the facet reference should not (except in the case of 'double hash tags'). -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct TagData { - pub tag: String, -} -pub type Tag = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum MainFeaturesItem { - #[serde(rename = "app.bsky.richtext.facet#mention")] - Mention(Box), - #[serde(rename = "app.bsky.richtext.facet#link")] - Link(Box), - #[serde(rename = "app.bsky.richtext.facet#tag")] - Tag(Box), -} diff --git a/services/types/src/app/bsky/unspecced.rs b/services/types/src/app/bsky/unspecced.rs deleted file mode 100644 index fb84e32..0000000 --- a/services/types/src/app/bsky/unspecced.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced` namespace. -pub mod defs; -pub mod get_config; -pub mod get_popular_feed_generators; -pub mod get_suggestions_skeleton; -pub mod get_tagged_suggestions; -pub mod get_trending_topics; -pub mod search_actors_skeleton; -pub mod search_posts_skeleton; -pub mod search_starter_packs_skeleton; diff --git a/services/types/src/app/bsky/unspecced/defs.rs b/services/types/src/app/bsky/unspecced/defs.rs deleted file mode 100644 index d309855..0000000 --- a/services/types/src/app/bsky/unspecced/defs.rs +++ /dev/null @@ -1,33 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SkeletonSearchActorData { - pub did: atrium_api::types::string::Did, -} -pub type SkeletonSearchActor = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SkeletonSearchPostData { - pub uri: String, -} -pub type SkeletonSearchPost = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SkeletonSearchStarterPackData { - pub uri: String, -} -pub type SkeletonSearchStarterPack = atrium_api::types::Object< - SkeletonSearchStarterPackData, ->; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct TrendingTopicData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub display_name: core::option::Option, - pub link: String, - pub topic: String, -} -pub type TrendingTopic = atrium_api::types::Object; diff --git a/services/types/src/app/bsky/unspecced/get_config.rs b/services/types/src/app/bsky/unspecced/get_config.rs deleted file mode 100644 index 306245c..0000000 --- a/services/types/src/app/bsky/unspecced/get_config.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getConfig` namespace. -pub const NSID: &str = "app.bsky.unspecced.getConfig"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub check_email_confirmed: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/unspecced/get_popular_feed_generators.rs b/services/types/src/app/bsky/unspecced/get_popular_feed_generators.rs deleted file mode 100644 index ec3bf1f..0000000 --- a/services/types/src/app/bsky/unspecced/get_popular_feed_generators.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getPopularFeedGenerators` namespace. -pub const NSID: &str = "app.bsky.unspecced.getPopularFeedGenerators"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub query: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feeds: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/unspecced/get_suggestions_skeleton.rs b/services/types/src/app/bsky/unspecced/get_suggestions_skeleton.rs deleted file mode 100644 index 6fd777a..0000000 --- a/services/types/src/app/bsky/unspecced/get_suggestions_skeleton.rs +++ /dev/null @@ -1,40 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getSuggestionsSkeleton` namespace. -pub const NSID: &str = "app.bsky.unspecced.getSuggestionsSkeleton"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///DID of the account to get suggestions relative to. If not provided, suggestions will be based on the viewer. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub relative_to_did: core::option::Option, - ///DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub actors: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Snowflake for this recommendation, use when submitting recommendation events. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rec_id: core::option::Option, - ///DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub relative_to_did: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/unspecced/get_tagged_suggestions.rs b/services/types/src/app/bsky/unspecced/get_tagged_suggestions.rs deleted file mode 100644 index c4465dc..0000000 --- a/services/types/src/app/bsky/unspecced/get_tagged_suggestions.rs +++ /dev/null @@ -1,29 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getTaggedSuggestions` namespace. -pub const NSID: &str = "app.bsky.unspecced.getTaggedSuggestions"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData {} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub suggestions: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SuggestionData { - pub subject: String, - pub subject_type: String, - pub tag: String, -} -pub type Suggestion = atrium_api::types::Object; diff --git a/services/types/src/app/bsky/unspecced/get_trending_topics.rs b/services/types/src/app/bsky/unspecced/get_trending_topics.rs deleted file mode 100644 index 7b33671..0000000 --- a/services/types/src/app/bsky/unspecced/get_trending_topics.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getTrendingTopics` namespace. -pub const NSID: &str = "app.bsky.unspecced.getTrendingTopics"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub suggested: Vec, - pub topics: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/unspecced/search_actors_skeleton.rs b/services/types/src/app/bsky/unspecced/search_actors_skeleton.rs deleted file mode 100644 index f3a91ff..0000000 --- a/services/types/src/app/bsky/unspecced/search_actors_skeleton.rs +++ /dev/null @@ -1,50 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.searchActorsSkeleton` namespace. -pub const NSID: &str = "app.bsky.unspecced.searchActorsSkeleton"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Optional pagination mechanism; may not necessarily allow scrolling through entire result set. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. For typeahead search, only simple term match is supported, not full syntax. - pub q: String, - ///If true, acts as fast/simple 'typeahead' query. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub typeahead: core::option::Option, - ///DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub actors: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hits_total: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - BadQueryString(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::BadQueryString(msg) => { - write!(_f, "BadQueryString")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/app/bsky/unspecced/search_posts_skeleton.rs b/services/types/src/app/bsky/unspecced/search_posts_skeleton.rs deleted file mode 100644 index 136a415..0000000 --- a/services/types/src/app/bsky/unspecced/search_posts_skeleton.rs +++ /dev/null @@ -1,74 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.searchPostsSkeleton` namespace. -pub const NSID: &str = "app.bsky.unspecced.searchPostsSkeleton"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Filter to posts by the given account. Handles are resolved to DID before query-time. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub author: core::option::Option, - ///Optional pagination mechanism; may not necessarily allow scrolling through entire result set. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub domain: core::option::Option, - ///Filter to posts in the given language. Expected to be based on post language field, though server may override language detection. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub lang: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub mentions: core::option::Option, - ///Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. - pub q: String, - ///Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub since: core::option::Option, - ///Specifies the ranking order of results. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sort: core::option::Option, - ///Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub tag: core::option::Option>, - ///Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub until: core::option::Option, - ///Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub url: core::option::Option, - ///DID of the account making the request (not included for public/unauthenticated queries). Used for 'from:me' queries. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hits_total: core::option::Option, - pub posts: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - BadQueryString(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::BadQueryString(msg) => { - write!(_f, "BadQueryString")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/app/bsky/unspecced/search_starter_packs_skeleton.rs b/services/types/src/app/bsky/unspecced/search_starter_packs_skeleton.rs deleted file mode 100644 index 15d5691..0000000 --- a/services/types/src/app/bsky/unspecced/search_starter_packs_skeleton.rs +++ /dev/null @@ -1,47 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.searchStarterPacksSkeleton` namespace. -pub const NSID: &str = "app.bsky.unspecced.searchStarterPacksSkeleton"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Optional pagination mechanism; may not necessarily allow scrolling through entire result set. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. - pub q: String, - ///DID of the account making the request (not included for public/unauthenticated queries). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hits_total: core::option::Option, - pub starter_packs: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - BadQueryString(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::BadQueryString(msg) => { - write!(_f, "BadQueryString")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/app/bsky/video.rs b/services/types/src/app/bsky/video.rs deleted file mode 100644 index 948cc12..0000000 --- a/services/types/src/app/bsky/video.rs +++ /dev/null @@ -1,6 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.video` namespace. -pub mod defs; -pub mod get_job_status; -pub mod get_upload_limits; -pub mod upload_video; diff --git a/services/types/src/app/bsky/video/defs.rs b/services/types/src/app/bsky/video/defs.rs deleted file mode 100644 index 6a3c947..0000000 --- a/services/types/src/app/bsky/video/defs.rs +++ /dev/null @@ -1,20 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.video.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct JobStatusData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub blob: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub error: core::option::Option, - pub job_id: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub message: core::option::Option, - ///Progress within the current processing state. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub progress: core::option::Option>, - ///The state of the video processing job. All values not listed as a known value indicate that the job is in process. - pub state: String, -} -pub type JobStatus = atrium_api::types::Object; diff --git a/services/types/src/app/bsky/video/get_job_status.rs b/services/types/src/app/bsky/video/get_job_status.rs deleted file mode 100644 index 62fc969..0000000 --- a/services/types/src/app/bsky/video/get_job_status.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.video.getJobStatus` namespace. -pub const NSID: &str = "app.bsky.video.getJobStatus"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub job_id: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub job_status: crate::app::bsky::video::defs::JobStatus, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/video/get_upload_limits.rs b/services/types/src/app/bsky/video/get_upload_limits.rs deleted file mode 100644 index 00b9e8a..0000000 --- a/services/types/src/app/bsky/video/get_upload_limits.rs +++ /dev/null @@ -1,25 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.video.getUploadLimits` namespace. -pub const NSID: &str = "app.bsky.video.getUploadLimits"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub can_upload: bool, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub error: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub message: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub remaining_daily_bytes: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub remaining_daily_videos: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/app/bsky/video/upload_video.rs b/services/types/src/app/bsky/video/upload_video.rs deleted file mode 100644 index 7106036..0000000 --- a/services/types/src/app/bsky/video/upload_video.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.video.uploadVideo` namespace. -pub const NSID: &str = "app.bsky.video.uploadVideo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub job_status: crate::app::bsky::video::defs::JobStatus, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/chat.rs b/services/types/src/chat.rs deleted file mode 100644 index f0bc409..0000000 --- a/services/types/src/chat.rs +++ /dev/null @@ -1,3 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat` namespace. -pub mod bsky; diff --git a/services/types/src/chat/bsky.rs b/services/types/src/chat/bsky.rs deleted file mode 100644 index 80593ff..0000000 --- a/services/types/src/chat/bsky.rs +++ /dev/null @@ -1,5 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky` namespace. -pub mod actor; -pub mod convo; -pub mod moderation; diff --git a/services/types/src/chat/bsky/actor.rs b/services/types/src/chat/bsky/actor.rs deleted file mode 100644 index 744e47a..0000000 --- a/services/types/src/chat/bsky/actor.rs +++ /dev/null @@ -1,12 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.actor` namespace. -pub mod declaration; -pub mod defs; -pub mod delete_account; -pub mod export_account_data; -#[derive(Debug)] -pub struct Declaration; -impl atrium_api::types::Collection for Declaration { - const NSID: &'static str = "chat.bsky.actor.declaration"; - type Record = declaration::Record; -} diff --git a/services/types/src/chat/bsky/actor/declaration.rs b/services/types/src/chat/bsky/actor/declaration.rs deleted file mode 100644 index eacb2d8..0000000 --- a/services/types/src/chat/bsky/actor/declaration.rs +++ /dev/null @@ -1,14 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.actor.declaration` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub allow_incoming: String, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/services/types/src/chat/bsky/actor/defs.rs b/services/types/src/chat/bsky/actor/defs.rs deleted file mode 100644 index 51b2067..0000000 --- a/services/types/src/chat/bsky/actor/defs.rs +++ /dev/null @@ -1,24 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.actor.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ProfileViewBasicData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub associated: core::option::Option< - crate::app::bsky::actor::defs::ProfileAssociated, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - ///Set to true when the actor cannot actively participate in converations - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub chat_disabled: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub display_name: core::option::Option, - pub handle: atrium_api::types::string::Handle, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type ProfileViewBasic = atrium_api::types::Object; diff --git a/services/types/src/chat/bsky/actor/delete_account.rs b/services/types/src/chat/bsky/actor/delete_account.rs deleted file mode 100644 index 24cc115..0000000 --- a/services/types/src/chat/bsky/actor/delete_account.rs +++ /dev/null @@ -1,15 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.actor.deleteAccount` namespace. -pub const NSID: &str = "chat.bsky.actor.deleteAccount"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData {} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/chat/bsky/actor/export_account_data.rs b/services/types/src/chat/bsky/actor/export_account_data.rs deleted file mode 100644 index 1440a58..0000000 --- a/services/types/src/chat/bsky/actor/export_account_data.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.actor.exportAccountData` namespace. -pub const NSID: &str = "chat.bsky.actor.exportAccountData"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/chat/bsky/convo.rs b/services/types/src/chat/bsky/convo.rs deleted file mode 100644 index b08fce6..0000000 --- a/services/types/src/chat/bsky/convo.rs +++ /dev/null @@ -1,15 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo` namespace. -pub mod defs; -pub mod delete_message_for_self; -pub mod get_convo; -pub mod get_convo_for_members; -pub mod get_log; -pub mod get_messages; -pub mod leave_convo; -pub mod list_convos; -pub mod mute_convo; -pub mod send_message; -pub mod send_message_batch; -pub mod unmute_convo; -pub mod update_read; diff --git a/services/types/src/chat/bsky/convo/defs.rs b/services/types/src/chat/bsky/convo/defs.rs deleted file mode 100644 index 8e77ef1..0000000 --- a/services/types/src/chat/bsky/convo/defs.rs +++ /dev/null @@ -1,133 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ConvoViewData { - pub id: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub last_message: core::option::Option< - atrium_api::types::Union, - >, - pub members: Vec, - pub muted: bool, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub opened: core::option::Option, - pub rev: String, - pub unread_count: i64, -} -pub type ConvoView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct DeletedMessageViewData { - pub id: String, - pub rev: String, - pub sender: MessageViewSender, - pub sent_at: atrium_api::types::string::Datetime, -} -pub type DeletedMessageView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LogBeginConvoData { - pub convo_id: String, - pub rev: String, -} -pub type LogBeginConvo = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LogCreateMessageData { - pub convo_id: String, - pub message: atrium_api::types::Union, - pub rev: String, -} -pub type LogCreateMessage = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LogDeleteMessageData { - pub convo_id: String, - pub message: atrium_api::types::Union, - pub rev: String, -} -pub type LogDeleteMessage = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LogLeaveConvoData { - pub convo_id: String, - pub rev: String, -} -pub type LogLeaveConvo = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MessageInputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub embed: core::option::Option>, - ///Annotations of text (mentions, URLs, hashtags, etc) - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub facets: core::option::Option>, - pub text: String, -} -pub type MessageInput = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MessageRefData { - pub convo_id: String, - pub did: atrium_api::types::string::Did, - pub message_id: String, -} -pub type MessageRef = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MessageViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub embed: core::option::Option>, - ///Annotations of text (mentions, URLs, hashtags, etc) - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub facets: core::option::Option>, - pub id: String, - pub rev: String, - pub sender: MessageViewSender, - pub sent_at: atrium_api::types::string::Datetime, - pub text: String, -} -pub type MessageView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MessageViewSenderData { - pub did: atrium_api::types::string::Did, -} -pub type MessageViewSender = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ConvoViewLastMessageRefs { - #[serde(rename = "chat.bsky.convo.defs#messageView")] - MessageView(Box), - #[serde(rename = "chat.bsky.convo.defs#deletedMessageView")] - DeletedMessageView(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum LogCreateMessageMessageRefs { - #[serde(rename = "chat.bsky.convo.defs#messageView")] - MessageView(Box), - #[serde(rename = "chat.bsky.convo.defs#deletedMessageView")] - DeletedMessageView(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum LogDeleteMessageMessageRefs { - #[serde(rename = "chat.bsky.convo.defs#messageView")] - MessageView(Box), - #[serde(rename = "chat.bsky.convo.defs#deletedMessageView")] - DeletedMessageView(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum MessageInputEmbedRefs { - #[serde(rename = "app.bsky.embed.record")] - AppBskyEmbedRecordMain(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum MessageViewEmbedRefs { - #[serde(rename = "app.bsky.embed.record#view")] - AppBskyEmbedRecordView(Box), -} diff --git a/services/types/src/chat/bsky/convo/delete_message_for_self.rs b/services/types/src/chat/bsky/convo/delete_message_for_self.rs deleted file mode 100644 index 3e8d12c..0000000 --- a/services/types/src/chat/bsky/convo/delete_message_for_self.rs +++ /dev/null @@ -1,19 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.deleteMessageForSelf` namespace. -pub const NSID: &str = "chat.bsky.convo.deleteMessageForSelf"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub convo_id: String, - pub message_id: String, -} -pub type Input = atrium_api::types::Object; -pub type Output = crate::chat::bsky::convo::defs::DeletedMessageView; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/chat/bsky/convo/get_convo.rs b/services/types/src/chat/bsky/convo/get_convo.rs deleted file mode 100644 index 933756b..0000000 --- a/services/types/src/chat/bsky/convo/get_convo.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.getConvo` namespace. -pub const NSID: &str = "chat.bsky.convo.getConvo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub convo_id: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub convo: crate::chat::bsky::convo::defs::ConvoView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/chat/bsky/convo/get_convo_for_members.rs b/services/types/src/chat/bsky/convo/get_convo_for_members.rs deleted file mode 100644 index 2bc60cc..0000000 --- a/services/types/src/chat/bsky/convo/get_convo_for_members.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.getConvoForMembers` namespace. -pub const NSID: &str = "chat.bsky.convo.getConvoForMembers"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub members: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub convo: crate::chat::bsky::convo::defs::ConvoView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/chat/bsky/convo/get_log.rs b/services/types/src/chat/bsky/convo/get_log.rs deleted file mode 100644 index 149e132..0000000 --- a/services/types/src/chat/bsky/convo/get_log.rs +++ /dev/null @@ -1,42 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.getLog` namespace. -pub const NSID: &str = "chat.bsky.convo.getLog"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub logs: Vec>, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputLogsItem { - #[serde(rename = "chat.bsky.convo.defs#logBeginConvo")] - ChatBskyConvoDefsLogBeginConvo(Box), - #[serde(rename = "chat.bsky.convo.defs#logLeaveConvo")] - ChatBskyConvoDefsLogLeaveConvo(Box), - #[serde(rename = "chat.bsky.convo.defs#logCreateMessage")] - ChatBskyConvoDefsLogCreateMessage( - Box, - ), - #[serde(rename = "chat.bsky.convo.defs#logDeleteMessage")] - ChatBskyConvoDefsLogDeleteMessage( - Box, - ), -} diff --git a/services/types/src/chat/bsky/convo/get_messages.rs b/services/types/src/chat/bsky/convo/get_messages.rs deleted file mode 100644 index 9e9b62e..0000000 --- a/services/types/src/chat/bsky/convo/get_messages.rs +++ /dev/null @@ -1,39 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.getMessages` namespace. -pub const NSID: &str = "chat.bsky.convo.getMessages"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub convo_id: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub messages: Vec>, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputMessagesItem { - #[serde(rename = "chat.bsky.convo.defs#messageView")] - ChatBskyConvoDefsMessageView(Box), - #[serde(rename = "chat.bsky.convo.defs#deletedMessageView")] - ChatBskyConvoDefsDeletedMessageView( - Box, - ), -} diff --git a/services/types/src/chat/bsky/convo/leave_convo.rs b/services/types/src/chat/bsky/convo/leave_convo.rs deleted file mode 100644 index 72f6750..0000000 --- a/services/types/src/chat/bsky/convo/leave_convo.rs +++ /dev/null @@ -1,24 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.leaveConvo` namespace. -pub const NSID: &str = "chat.bsky.convo.leaveConvo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub convo_id: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub convo_id: String, - pub rev: String, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/chat/bsky/convo/list_convos.rs b/services/types/src/chat/bsky/convo/list_convos.rs deleted file mode 100644 index fae088f..0000000 --- a/services/types/src/chat/bsky/convo/list_convos.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.listConvos` namespace. -pub const NSID: &str = "chat.bsky.convo.listConvos"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub convos: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/chat/bsky/convo/mute_convo.rs b/services/types/src/chat/bsky/convo/mute_convo.rs deleted file mode 100644 index 8fb6536..0000000 --- a/services/types/src/chat/bsky/convo/mute_convo.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.muteConvo` namespace. -pub const NSID: &str = "chat.bsky.convo.muteConvo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub convo_id: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub convo: crate::chat::bsky::convo::defs::ConvoView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/chat/bsky/convo/send_message.rs b/services/types/src/chat/bsky/convo/send_message.rs deleted file mode 100644 index 11c84b4..0000000 --- a/services/types/src/chat/bsky/convo/send_message.rs +++ /dev/null @@ -1,19 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.sendMessage` namespace. -pub const NSID: &str = "chat.bsky.convo.sendMessage"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub convo_id: String, - pub message: crate::chat::bsky::convo::defs::MessageInput, -} -pub type Input = atrium_api::types::Object; -pub type Output = crate::chat::bsky::convo::defs::MessageView; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/chat/bsky/convo/send_message_batch.rs b/services/types/src/chat/bsky/convo/send_message_batch.rs deleted file mode 100644 index 666f669..0000000 --- a/services/types/src/chat/bsky/convo/send_message_batch.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.sendMessageBatch` namespace. -pub const NSID: &str = "chat.bsky.convo.sendMessageBatch"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub items: Vec, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub items: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct BatchItemData { - pub convo_id: String, - pub message: crate::chat::bsky::convo::defs::MessageInput, -} -pub type BatchItem = atrium_api::types::Object; diff --git a/services/types/src/chat/bsky/convo/unmute_convo.rs b/services/types/src/chat/bsky/convo/unmute_convo.rs deleted file mode 100644 index 3584ec8..0000000 --- a/services/types/src/chat/bsky/convo/unmute_convo.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.unmuteConvo` namespace. -pub const NSID: &str = "chat.bsky.convo.unmuteConvo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub convo_id: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub convo: crate::chat::bsky::convo::defs::ConvoView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/chat/bsky/convo/update_read.rs b/services/types/src/chat/bsky/convo/update_read.rs deleted file mode 100644 index f93e32f..0000000 --- a/services/types/src/chat/bsky/convo/update_read.rs +++ /dev/null @@ -1,25 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.updateRead` namespace. -pub const NSID: &str = "chat.bsky.convo.updateRead"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub convo_id: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub message_id: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub convo: crate::chat::bsky::convo::defs::ConvoView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/chat/bsky/moderation.rs b/services/types/src/chat/bsky/moderation.rs deleted file mode 100644 index 5225b27..0000000 --- a/services/types/src/chat/bsky/moderation.rs +++ /dev/null @@ -1,5 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.moderation` namespace. -pub mod get_actor_metadata; -pub mod get_message_context; -pub mod update_actor_access; diff --git a/services/types/src/chat/bsky/moderation/get_actor_metadata.rs b/services/types/src/chat/bsky/moderation/get_actor_metadata.rs deleted file mode 100644 index 88f99de..0000000 --- a/services/types/src/chat/bsky/moderation/get_actor_metadata.rs +++ /dev/null @@ -1,34 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.moderation.getActorMetadata` namespace. -pub const NSID: &str = "chat.bsky.moderation.getActorMetadata"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actor: atrium_api::types::string::Did, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub all: Metadata, - pub day: Metadata, - pub month: Metadata, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MetadataData { - pub convos: i64, - pub convos_started: i64, - pub messages_received: i64, - pub messages_sent: i64, -} -pub type Metadata = atrium_api::types::Object; diff --git a/services/types/src/chat/bsky/moderation/get_message_context.rs b/services/types/src/chat/bsky/moderation/get_message_context.rs deleted file mode 100644 index 78c4939..0000000 --- a/services/types/src/chat/bsky/moderation/get_message_context.rs +++ /dev/null @@ -1,40 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.moderation.getMessageContext` namespace. -pub const NSID: &str = "chat.bsky.moderation.getMessageContext"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub after: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub before: core::option::Option, - ///Conversation that the message is from. NOTE: this field will eventually be required. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub convo_id: core::option::Option, - pub message_id: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub messages: Vec>, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputMessagesItem { - #[serde(rename = "chat.bsky.convo.defs#messageView")] - ChatBskyConvoDefsMessageView(Box), - #[serde(rename = "chat.bsky.convo.defs#deletedMessageView")] - ChatBskyConvoDefsDeletedMessageView( - Box, - ), -} diff --git a/services/types/src/chat/bsky/moderation/update_actor_access.rs b/services/types/src/chat/bsky/moderation/update_actor_access.rs deleted file mode 100644 index a32340b..0000000 --- a/services/types/src/chat/bsky/moderation/update_actor_access.rs +++ /dev/null @@ -1,20 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.moderation.updateActorAccess` namespace. -pub const NSID: &str = "chat.bsky.moderation.updateActorAccess"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub actor: atrium_api::types::string::Did, - pub allow_access: bool, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub r#ref: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/client.rs b/services/types/src/client.rs deleted file mode 100644 index 9c6ddb3..0000000 --- a/services/types/src/client.rs +++ /dev/null @@ -1,6673 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Structs for ATP client, implements all HTTP APIs of XRPC. -///Client struct for the ATP service. -pub struct AtpServiceClient -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - pub service: Service, -} -impl AtpServiceClient -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - pub fn new(xrpc: T) -> Self { - Self { - service: Service::new(std::sync::Arc::new(xrpc)), - } - } -} -pub struct Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - pub app: app::Service, - pub chat: chat::Service, - pub com: com::Service, - pub fm: fm::Service, - pub tools: tools::Service, - pub(crate) _phantom: core::marker::PhantomData, -} -pub mod app { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub bsky: bsky::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod bsky { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub actor: actor::Service, - pub feed: feed::Service, - pub graph: graph::Service, - pub labeler: labeler::Service, - pub notification: notification::Service, - pub unspecced: unspecced::Service, - pub video: video::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod actor { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod feed { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod graph { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod labeler { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod notification { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod unspecced { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod video { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - } -} -pub mod chat { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub bsky: bsky::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod bsky { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub actor: actor::Service, - pub convo: convo::Service, - pub moderation: moderation::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod actor { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod convo { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod moderation { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - } -} -pub mod com { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub atproto: atproto::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod atproto { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub admin: admin::Service, - pub identity: identity::Service, - pub label: label::Service, - pub moderation: moderation::Service, - pub repo: repo::Service, - pub server: server::Service, - pub sync: sync::Service, - pub temp: temp::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod admin { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod identity { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod label { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod moderation { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod repo { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod server { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod sync { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod temp { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - } -} -pub mod fm { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub teal: teal::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod teal { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub alpha: alpha::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod alpha { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub actor: actor::Service, - pub feed: feed::Service, - pub stats: stats::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod actor { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod feed { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod stats { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - } - } -} -pub mod tools { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub ozone: ozone::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod ozone { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub communication: communication::Service, - pub moderation: moderation::Service, - pub server: server::Service, - pub set: set::Service, - pub setting: setting::Service, - pub signature: signature::Service, - pub team: team::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod communication { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod moderation { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod server { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod set { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod setting { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod signature { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod team { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - } -} -impl self::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - app: app::Service::new(std::sync::Arc::clone(&xrpc)), - chat: chat::Service::new(std::sync::Arc::clone(&xrpc)), - com: com::Service::new(std::sync::Arc::clone(&xrpc)), - fm: fm::Service::new(std::sync::Arc::clone(&xrpc)), - tools: tools::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl app::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - bsky: app::bsky::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl app::bsky::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - actor: app::bsky::actor::Service::new(std::sync::Arc::clone(&xrpc)), - feed: app::bsky::feed::Service::new(std::sync::Arc::clone(&xrpc)), - graph: app::bsky::graph::Service::new(std::sync::Arc::clone(&xrpc)), - labeler: app::bsky::labeler::Service::new(std::sync::Arc::clone(&xrpc)), - notification: app::bsky::notification::Service::new( - std::sync::Arc::clone(&xrpc), - ), - unspecced: app::bsky::unspecced::Service::new(std::sync::Arc::clone(&xrpc)), - video: app::bsky::video::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl app::bsky::actor::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Get private preferences attached to the current account. Expected use is synchronization between multiple devices, and import/export during account migration. Requires auth. - pub async fn get_preferences( - &self, - params: crate::app::bsky::actor::get_preferences::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::actor::get_preferences::Output, - crate::app::bsky::actor::get_preferences::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::get_preferences::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get detailed profile view of an actor. Does not require auth, but contains relevant metadata with auth. - pub async fn get_profile( - &self, - params: crate::app::bsky::actor::get_profile::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::actor::get_profile::Output, - crate::app::bsky::actor::get_profile::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::get_profile::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get detailed profile views of multiple actors. - pub async fn get_profiles( - &self, - params: crate::app::bsky::actor::get_profiles::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::actor::get_profiles::Output, - crate::app::bsky::actor::get_profiles::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::get_profiles::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a list of suggested actors. Expected use is discovery of accounts to follow during new account onboarding. - pub async fn get_suggestions( - &self, - params: crate::app::bsky::actor::get_suggestions::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::actor::get_suggestions::Output, - crate::app::bsky::actor::get_suggestions::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::get_suggestions::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Set the private preferences attached to the account. - pub async fn put_preferences( - &self, - input: crate::app::bsky::actor::put_preferences::Input, - ) -> atrium_xrpc::Result<(), crate::app::bsky::actor::put_preferences::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::actor::put_preferences::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Find actors (profiles) matching search criteria. Does not require auth. - pub async fn search_actors( - &self, - params: crate::app::bsky::actor::search_actors::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::actor::search_actors::Output, - crate::app::bsky::actor::search_actors::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::search_actors::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Find actor suggestions for a prefix search term. Expected use is for auto-completion during text field entry. Does not require auth. - pub async fn search_actors_typeahead( - &self, - params: crate::app::bsky::actor::search_actors_typeahead::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::actor::search_actors_typeahead::Output, - crate::app::bsky::actor::search_actors_typeahead::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::search_actors_typeahead::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl app::bsky::feed::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Get information about a feed generator, including policies and offered feed URIs. Does not require auth; implemented by Feed Generator services (not App View). - pub async fn describe_feed_generator( - &self, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::describe_feed_generator::Output, - crate::app::bsky::feed::describe_feed_generator::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::describe_feed_generator::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a list of feeds (feed generator records) created by the actor (in the actor's repo). - pub async fn get_actor_feeds( - &self, - params: crate::app::bsky::feed::get_actor_feeds::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_actor_feeds::Output, - crate::app::bsky::feed::get_actor_feeds::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_actor_feeds::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a list of posts liked by an actor. Requires auth, actor must be the requesting account. - pub async fn get_actor_likes( - &self, - params: crate::app::bsky::feed::get_actor_likes::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_actor_likes::Output, - crate::app::bsky::feed::get_actor_likes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_actor_likes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a view of an actor's 'author feed' (post and reposts by the author). Does not require auth. - pub async fn get_author_feed( - &self, - params: crate::app::bsky::feed::get_author_feed::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_author_feed::Output, - crate::app::bsky::feed::get_author_feed::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_author_feed::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a hydrated feed from an actor's selected feed generator. Implemented by App View. - pub async fn get_feed( - &self, - params: crate::app::bsky::feed::get_feed::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_feed::Output, - crate::app::bsky::feed::get_feed::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_feed::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get information about a feed generator. Implemented by AppView. - pub async fn get_feed_generator( - &self, - params: crate::app::bsky::feed::get_feed_generator::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_feed_generator::Output, - crate::app::bsky::feed::get_feed_generator::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_feed_generator::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get information about a list of feed generators. - pub async fn get_feed_generators( - &self, - params: crate::app::bsky::feed::get_feed_generators::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_feed_generators::Output, - crate::app::bsky::feed::get_feed_generators::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_feed_generators::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a skeleton of a feed provided by a feed generator. Auth is optional, depending on provider requirements, and provides the DID of the requester. Implemented by Feed Generator Service. - pub async fn get_feed_skeleton( - &self, - params: crate::app::bsky::feed::get_feed_skeleton::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_feed_skeleton::Output, - crate::app::bsky::feed::get_feed_skeleton::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_feed_skeleton::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get like records which reference a subject (by AT-URI and CID). - pub async fn get_likes( - &self, - params: crate::app::bsky::feed::get_likes::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_likes::Output, - crate::app::bsky::feed::get_likes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_likes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a feed of recent posts from a list (posts and reposts from any actors on the list). Does not require auth. - pub async fn get_list_feed( - &self, - params: crate::app::bsky::feed::get_list_feed::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_list_feed::Output, - crate::app::bsky::feed::get_list_feed::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_list_feed::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get posts in a thread. Does not require auth, but additional metadata and filtering will be applied for authed requests. - pub async fn get_post_thread( - &self, - params: crate::app::bsky::feed::get_post_thread::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_post_thread::Output, - crate::app::bsky::feed::get_post_thread::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_post_thread::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'. - pub async fn get_posts( - &self, - params: crate::app::bsky::feed::get_posts::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_posts::Output, - crate::app::bsky::feed::get_posts::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_posts::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a list of quotes for a given post. - pub async fn get_quotes( - &self, - params: crate::app::bsky::feed::get_quotes::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_quotes::Output, - crate::app::bsky::feed::get_quotes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_quotes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a list of reposts for a given post. - pub async fn get_reposted_by( - &self, - params: crate::app::bsky::feed::get_reposted_by::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_reposted_by::Output, - crate::app::bsky::feed::get_reposted_by::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_reposted_by::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a list of suggested feeds (feed generators) for the requesting account. - pub async fn get_suggested_feeds( - &self, - params: crate::app::bsky::feed::get_suggested_feeds::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_suggested_feeds::Output, - crate::app::bsky::feed::get_suggested_feeds::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_suggested_feeds::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a view of the requesting account's home timeline. This is expected to be some form of reverse-chronological feed. - pub async fn get_timeline( - &self, - params: crate::app::bsky::feed::get_timeline::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_timeline::Output, - crate::app::bsky::feed::get_timeline::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_timeline::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Find posts matching search criteria, returning views of those posts. - pub async fn search_posts( - &self, - params: crate::app::bsky::feed::search_posts::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::search_posts::Output, - crate::app::bsky::feed::search_posts::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::search_posts::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Send information about interactions with feed items back to the feed generator that served them. - pub async fn send_interactions( - &self, - input: crate::app::bsky::feed::send_interactions::Input, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::send_interactions::Output, - crate::app::bsky::feed::send_interactions::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::feed::send_interactions::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl app::bsky::graph::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Get a list of starter packs created by the actor. - pub async fn get_actor_starter_packs( - &self, - params: crate::app::bsky::graph::get_actor_starter_packs::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_actor_starter_packs::Output, - crate::app::bsky::graph::get_actor_starter_packs::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_actor_starter_packs::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates which accounts the requesting account is currently blocking. Requires auth. - pub async fn get_blocks( - &self, - params: crate::app::bsky::graph::get_blocks::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_blocks::Output, - crate::app::bsky::graph::get_blocks::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_blocks::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates accounts which follow a specified account (actor). - pub async fn get_followers( - &self, - params: crate::app::bsky::graph::get_followers::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_followers::Output, - crate::app::bsky::graph::get_followers::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_followers::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates accounts which a specified account (actor) follows. - pub async fn get_follows( - &self, - params: crate::app::bsky::graph::get_follows::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_follows::Output, - crate::app::bsky::graph::get_follows::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_follows::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates accounts which follow a specified account (actor) and are followed by the viewer. - pub async fn get_known_followers( - &self, - params: crate::app::bsky::graph::get_known_followers::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_known_followers::Output, - crate::app::bsky::graph::get_known_followers::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_known_followers::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Gets a 'view' (with additional context) of a specified list. - pub async fn get_list( - &self, - params: crate::app::bsky::graph::get_list::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_list::Output, - crate::app::bsky::graph::get_list::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_list::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get mod lists that the requesting account (actor) is blocking. Requires auth. - pub async fn get_list_blocks( - &self, - params: crate::app::bsky::graph::get_list_blocks::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_list_blocks::Output, - crate::app::bsky::graph::get_list_blocks::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_list_blocks::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates mod lists that the requesting account (actor) currently has muted. Requires auth. - pub async fn get_list_mutes( - &self, - params: crate::app::bsky::graph::get_list_mutes::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_list_mutes::Output, - crate::app::bsky::graph::get_list_mutes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_list_mutes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates the lists created by a specified account (actor). - pub async fn get_lists( - &self, - params: crate::app::bsky::graph::get_lists::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_lists::Output, - crate::app::bsky::graph::get_lists::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_lists::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates accounts that the requesting account (actor) currently has muted. Requires auth. - pub async fn get_mutes( - &self, - params: crate::app::bsky::graph::get_mutes::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_mutes::Output, - crate::app::bsky::graph::get_mutes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_mutes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates public relationships between one account, and a list of other accounts. Does not require auth. - pub async fn get_relationships( - &self, - params: crate::app::bsky::graph::get_relationships::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_relationships::Output, - crate::app::bsky::graph::get_relationships::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_relationships::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Gets a view of a starter pack. - pub async fn get_starter_pack( - &self, - params: crate::app::bsky::graph::get_starter_pack::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_starter_pack::Output, - crate::app::bsky::graph::get_starter_pack::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_starter_pack::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get views for a list of starter packs. - pub async fn get_starter_packs( - &self, - params: crate::app::bsky::graph::get_starter_packs::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_starter_packs::Output, - crate::app::bsky::graph::get_starter_packs::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_starter_packs::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates follows similar to a given account (actor). Expected use is to recommend additional accounts immediately after following one account. - pub async fn get_suggested_follows_by_actor( - &self, - params: crate::app::bsky::graph::get_suggested_follows_by_actor::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_suggested_follows_by_actor::Output, - crate::app::bsky::graph::get_suggested_follows_by_actor::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_suggested_follows_by_actor::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Creates a mute relationship for the specified account. Mutes are private in Bluesky. Requires auth. - pub async fn mute_actor( - &self, - input: crate::app::bsky::graph::mute_actor::Input, - ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::mute_actor::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::mute_actor::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Creates a mute relationship for the specified list of accounts. Mutes are private in Bluesky. Requires auth. - pub async fn mute_actor_list( - &self, - input: crate::app::bsky::graph::mute_actor_list::Input, - ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::mute_actor_list::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::mute_actor_list::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Mutes a thread preventing notifications from the thread and any of its children. Mutes are private in Bluesky. Requires auth. - pub async fn mute_thread( - &self, - input: crate::app::bsky::graph::mute_thread::Input, - ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::mute_thread::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::mute_thread::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Find starter packs matching search criteria. Does not require auth. - pub async fn search_starter_packs( - &self, - params: crate::app::bsky::graph::search_starter_packs::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::search_starter_packs::Output, - crate::app::bsky::graph::search_starter_packs::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::search_starter_packs::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Unmutes the specified account. Requires auth. - pub async fn unmute_actor( - &self, - input: crate::app::bsky::graph::unmute_actor::Input, - ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::unmute_actor::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::unmute_actor::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Unmutes the specified list of accounts. Requires auth. - pub async fn unmute_actor_list( - &self, - input: crate::app::bsky::graph::unmute_actor_list::Input, - ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::unmute_actor_list::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::unmute_actor_list::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Unmutes the specified thread. Requires auth. - pub async fn unmute_thread( - &self, - input: crate::app::bsky::graph::unmute_thread::Input, - ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::unmute_thread::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::unmute_thread::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl app::bsky::labeler::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Get information about a list of labeler services. - pub async fn get_services( - &self, - params: crate::app::bsky::labeler::get_services::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::labeler::get_services::Output, - crate::app::bsky::labeler::get_services::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::labeler::get_services::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl app::bsky::notification::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Count the number of unread notifications for the requesting account. Requires auth. - pub async fn get_unread_count( - &self, - params: crate::app::bsky::notification::get_unread_count::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::notification::get_unread_count::Output, - crate::app::bsky::notification::get_unread_count::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::notification::get_unread_count::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerate notifications for the requesting account. Requires auth. - pub async fn list_notifications( - &self, - params: crate::app::bsky::notification::list_notifications::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::notification::list_notifications::Output, - crate::app::bsky::notification::list_notifications::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::notification::list_notifications::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Set notification-related preferences for an account. Requires auth. - pub async fn put_preferences( - &self, - input: crate::app::bsky::notification::put_preferences::Input, - ) -> atrium_xrpc::Result< - (), - crate::app::bsky::notification::put_preferences::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::notification::put_preferences::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Register to receive push notifications, via a specified service, for the requesting account. Requires auth. - pub async fn register_push( - &self, - input: crate::app::bsky::notification::register_push::Input, - ) -> atrium_xrpc::Result<(), crate::app::bsky::notification::register_push::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::notification::register_push::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Notify server that the requesting account has seen notifications. Requires auth. - pub async fn update_seen( - &self, - input: crate::app::bsky::notification::update_seen::Input, - ) -> atrium_xrpc::Result<(), crate::app::bsky::notification::update_seen::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::notification::update_seen::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl app::bsky::unspecced::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Get miscellaneous runtime configuration. - pub async fn get_config( - &self, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::get_config::Output, - crate::app::bsky::unspecced::get_config::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_config::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///An unspecced view of globally popular feed generators. - pub async fn get_popular_feed_generators( - &self, - params: crate::app::bsky::unspecced::get_popular_feed_generators::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::get_popular_feed_generators::Output, - crate::app::bsky::unspecced::get_popular_feed_generators::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_popular_feed_generators::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a skeleton of suggested actors. Intended to be called and then hydrated through app.bsky.actor.getSuggestions - pub async fn get_suggestions_skeleton( - &self, - params: crate::app::bsky::unspecced::get_suggestions_skeleton::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::get_suggestions_skeleton::Output, - crate::app::bsky::unspecced::get_suggestions_skeleton::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_suggestions_skeleton::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a list of suggestions (feeds and users) tagged with categories - pub async fn get_tagged_suggestions( - &self, - params: crate::app::bsky::unspecced::get_tagged_suggestions::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::get_tagged_suggestions::Output, - crate::app::bsky::unspecced::get_tagged_suggestions::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_tagged_suggestions::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a list of trending topics - pub async fn get_trending_topics( - &self, - params: crate::app::bsky::unspecced::get_trending_topics::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::get_trending_topics::Output, - crate::app::bsky::unspecced::get_trending_topics::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_trending_topics::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Backend Actors (profile) search, returns only skeleton. - pub async fn search_actors_skeleton( - &self, - params: crate::app::bsky::unspecced::search_actors_skeleton::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::search_actors_skeleton::Output, - crate::app::bsky::unspecced::search_actors_skeleton::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::search_actors_skeleton::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Backend Posts search, returns only skeleton - pub async fn search_posts_skeleton( - &self, - params: crate::app::bsky::unspecced::search_posts_skeleton::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::search_posts_skeleton::Output, - crate::app::bsky::unspecced::search_posts_skeleton::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::search_posts_skeleton::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Backend Starter Pack search, returns only skeleton. - pub async fn search_starter_packs_skeleton( - &self, - params: crate::app::bsky::unspecced::search_starter_packs_skeleton::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::search_starter_packs_skeleton::Output, - crate::app::bsky::unspecced::search_starter_packs_skeleton::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::search_starter_packs_skeleton::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl app::bsky::video::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Get status details for a video processing job. - pub async fn get_job_status( - &self, - params: crate::app::bsky::video::get_job_status::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::video::get_job_status::Output, - crate::app::bsky::video::get_job_status::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::video::get_job_status::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get video upload limits for the authenticated user. - pub async fn get_upload_limits( - &self, - ) -> atrium_xrpc::Result< - crate::app::bsky::video::get_upload_limits::Output, - crate::app::bsky::video::get_upload_limits::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::video::get_upload_limits::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Upload a video to be processed then stored on the PDS. - pub async fn upload_video( - &self, - input: Vec, - ) -> atrium_xrpc::Result< - crate::app::bsky::video::upload_video::Output, - crate::app::bsky::video::upload_video::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - Vec, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::video::upload_video::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Bytes(input)), - encoding: Some(String::from("video/mp4")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl chat::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - bsky: chat::bsky::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl chat::bsky::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - actor: chat::bsky::actor::Service::new(std::sync::Arc::clone(&xrpc)), - convo: chat::bsky::convo::Service::new(std::sync::Arc::clone(&xrpc)), - moderation: chat::bsky::moderation::Service::new( - std::sync::Arc::clone(&xrpc), - ), - _phantom: core::marker::PhantomData, - } - } -} -impl chat::bsky::actor::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - pub async fn delete_account( - &self, - ) -> atrium_xrpc::Result< - crate::chat::bsky::actor::delete_account::Output, - crate::chat::bsky::actor::delete_account::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::actor::delete_account::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn export_account_data( - &self, - ) -> atrium_xrpc::Result< - Vec, - crate::chat::bsky::actor::export_account_data::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::actor::export_account_data::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl chat::bsky::convo::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - pub async fn delete_message_for_self( - &self, - input: crate::chat::bsky::convo::delete_message_for_self::Input, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::delete_message_for_self::Output, - crate::chat::bsky::convo::delete_message_for_self::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::delete_message_for_self::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn get_convo( - &self, - params: crate::chat::bsky::convo::get_convo::Parameters, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::get_convo::Output, - crate::chat::bsky::convo::get_convo::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::get_convo::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn get_convo_for_members( - &self, - params: crate::chat::bsky::convo::get_convo_for_members::Parameters, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::get_convo_for_members::Output, - crate::chat::bsky::convo::get_convo_for_members::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::get_convo_for_members::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn get_log( - &self, - params: crate::chat::bsky::convo::get_log::Parameters, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::get_log::Output, - crate::chat::bsky::convo::get_log::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::get_log::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn get_messages( - &self, - params: crate::chat::bsky::convo::get_messages::Parameters, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::get_messages::Output, - crate::chat::bsky::convo::get_messages::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::get_messages::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn leave_convo( - &self, - input: crate::chat::bsky::convo::leave_convo::Input, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::leave_convo::Output, - crate::chat::bsky::convo::leave_convo::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::leave_convo::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn list_convos( - &self, - params: crate::chat::bsky::convo::list_convos::Parameters, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::list_convos::Output, - crate::chat::bsky::convo::list_convos::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::list_convos::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn mute_convo( - &self, - input: crate::chat::bsky::convo::mute_convo::Input, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::mute_convo::Output, - crate::chat::bsky::convo::mute_convo::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::mute_convo::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn send_message( - &self, - input: crate::chat::bsky::convo::send_message::Input, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::send_message::Output, - crate::chat::bsky::convo::send_message::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::send_message::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn send_message_batch( - &self, - input: crate::chat::bsky::convo::send_message_batch::Input, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::send_message_batch::Output, - crate::chat::bsky::convo::send_message_batch::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::send_message_batch::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn unmute_convo( - &self, - input: crate::chat::bsky::convo::unmute_convo::Input, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::unmute_convo::Output, - crate::chat::bsky::convo::unmute_convo::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::unmute_convo::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn update_read( - &self, - input: crate::chat::bsky::convo::update_read::Input, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::update_read::Output, - crate::chat::bsky::convo::update_read::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::update_read::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl chat::bsky::moderation::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - pub async fn get_actor_metadata( - &self, - params: crate::chat::bsky::moderation::get_actor_metadata::Parameters, - ) -> atrium_xrpc::Result< - crate::chat::bsky::moderation::get_actor_metadata::Output, - crate::chat::bsky::moderation::get_actor_metadata::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::moderation::get_actor_metadata::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn get_message_context( - &self, - params: crate::chat::bsky::moderation::get_message_context::Parameters, - ) -> atrium_xrpc::Result< - crate::chat::bsky::moderation::get_message_context::Output, - crate::chat::bsky::moderation::get_message_context::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::moderation::get_message_context::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn update_actor_access( - &self, - input: crate::chat::bsky::moderation::update_actor_access::Input, - ) -> atrium_xrpc::Result< - (), - crate::chat::bsky::moderation::update_actor_access::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::moderation::update_actor_access::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl com::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - atproto: com::atproto::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl com::atproto::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - admin: com::atproto::admin::Service::new(std::sync::Arc::clone(&xrpc)), - identity: com::atproto::identity::Service::new(std::sync::Arc::clone(&xrpc)), - label: com::atproto::label::Service::new(std::sync::Arc::clone(&xrpc)), - moderation: com::atproto::moderation::Service::new( - std::sync::Arc::clone(&xrpc), - ), - repo: com::atproto::repo::Service::new(std::sync::Arc::clone(&xrpc)), - server: com::atproto::server::Service::new(std::sync::Arc::clone(&xrpc)), - sync: com::atproto::sync::Service::new(std::sync::Arc::clone(&xrpc)), - temp: com::atproto::temp::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl com::atproto::admin::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Delete a user account as an administrator. - pub async fn delete_account( - &self, - input: crate::com::atproto::admin::delete_account::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::admin::delete_account::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::delete_account::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Disable an account from receiving new invite codes, but does not invalidate existing codes. - pub async fn disable_account_invites( - &self, - input: crate::com::atproto::admin::disable_account_invites::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::admin::disable_account_invites::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::disable_account_invites::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Disable some set of codes and/or all codes associated with a set of users. - pub async fn disable_invite_codes( - &self, - input: crate::com::atproto::admin::disable_invite_codes::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::admin::disable_invite_codes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::disable_invite_codes::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Re-enable an account's ability to receive invite codes. - pub async fn enable_account_invites( - &self, - input: crate::com::atproto::admin::enable_account_invites::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::admin::enable_account_invites::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::enable_account_invites::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get details about an account. - pub async fn get_account_info( - &self, - params: crate::com::atproto::admin::get_account_info::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::admin::get_account_info::Output, - crate::com::atproto::admin::get_account_info::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::get_account_info::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get details about some accounts. - pub async fn get_account_infos( - &self, - params: crate::com::atproto::admin::get_account_infos::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::admin::get_account_infos::Output, - crate::com::atproto::admin::get_account_infos::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::get_account_infos::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get an admin view of invite codes. - pub async fn get_invite_codes( - &self, - params: crate::com::atproto::admin::get_invite_codes::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::admin::get_invite_codes::Output, - crate::com::atproto::admin::get_invite_codes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::get_invite_codes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get the service-specific admin status of a subject (account, record, or blob). - pub async fn get_subject_status( - &self, - params: crate::com::atproto::admin::get_subject_status::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::admin::get_subject_status::Output, - crate::com::atproto::admin::get_subject_status::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::get_subject_status::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get list of accounts that matches your search query. - pub async fn search_accounts( - &self, - params: crate::com::atproto::admin::search_accounts::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::admin::search_accounts::Output, - crate::com::atproto::admin::search_accounts::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::search_accounts::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Send email to a user's account email address. - pub async fn send_email( - &self, - input: crate::com::atproto::admin::send_email::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::admin::send_email::Output, - crate::com::atproto::admin::send_email::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::send_email::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Administrative action to update an account's email. - pub async fn update_account_email( - &self, - input: crate::com::atproto::admin::update_account_email::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::admin::update_account_email::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::update_account_email::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Administrative action to update an account's handle. - pub async fn update_account_handle( - &self, - input: crate::com::atproto::admin::update_account_handle::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::admin::update_account_handle::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::update_account_handle::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Update the password for a user account as an administrator. - pub async fn update_account_password( - &self, - input: crate::com::atproto::admin::update_account_password::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::admin::update_account_password::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::update_account_password::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Update the service-specific admin status of a subject (account, record, or blob). - pub async fn update_subject_status( - &self, - input: crate::com::atproto::admin::update_subject_status::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::admin::update_subject_status::Output, - crate::com::atproto::admin::update_subject_status::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::update_subject_status::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl com::atproto::identity::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Describe the credentials that should be included in the DID doc of an account that is migrating to this service. - pub async fn get_recommended_did_credentials( - &self, - ) -> atrium_xrpc::Result< - crate::com::atproto::identity::get_recommended_did_credentials::Output, - crate::com::atproto::identity::get_recommended_did_credentials::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::identity::get_recommended_did_credentials::NSID - .into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Request an email with a code to in order to request a signed PLC operation. Requires Auth. - pub async fn request_plc_operation_signature( - &self, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::identity::request_plc_operation_signature::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::identity::request_plc_operation_signature::NSID - .into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Resolves a handle (domain name) to a DID. - pub async fn resolve_handle( - &self, - params: crate::com::atproto::identity::resolve_handle::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::identity::resolve_handle::Output, - crate::com::atproto::identity::resolve_handle::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::identity::resolve_handle::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Signs a PLC operation to update some value(s) in the requesting DID's document. - pub async fn sign_plc_operation( - &self, - input: crate::com::atproto::identity::sign_plc_operation::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::identity::sign_plc_operation::Output, - crate::com::atproto::identity::sign_plc_operation::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::identity::sign_plc_operation::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Validates a PLC operation to ensure that it doesn't violate a service's constraints or get the identity into a bad state, then submits it to the PLC registry - pub async fn submit_plc_operation( - &self, - input: crate::com::atproto::identity::submit_plc_operation::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::identity::submit_plc_operation::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::identity::submit_plc_operation::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Updates the current account's handle. Verifies handle validity, and updates did:plc document if necessary. Implemented by PDS, and requires auth. - pub async fn update_handle( - &self, - input: crate::com::atproto::identity::update_handle::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::identity::update_handle::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::identity::update_handle::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl com::atproto::label::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth. - pub async fn query_labels( - &self, - params: crate::com::atproto::label::query_labels::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::label::query_labels::Output, - crate::com::atproto::label::query_labels::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::label::query_labels::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl com::atproto::moderation::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Submit a moderation report regarding an atproto account or record. Implemented by moderation services (with PDS proxying), and requires auth. - pub async fn create_report( - &self, - input: crate::com::atproto::moderation::create_report::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::moderation::create_report::Output, - crate::com::atproto::moderation::create_report::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::moderation::create_report::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl com::atproto::repo::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS. - pub async fn apply_writes( - &self, - input: crate::com::atproto::repo::apply_writes::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::repo::apply_writes::Output, - crate::com::atproto::repo::apply_writes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::apply_writes::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Create a single new repository record. Requires auth, implemented by PDS. - pub async fn create_record( - &self, - input: crate::com::atproto::repo::create_record::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::repo::create_record::Output, - crate::com::atproto::repo::create_record::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::create_record::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Delete a repository record, or ensure it doesn't exist. Requires auth, implemented by PDS. - pub async fn delete_record( - &self, - input: crate::com::atproto::repo::delete_record::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::repo::delete_record::Output, - crate::com::atproto::repo::delete_record::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::delete_record::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get information about an account and repository, including the list of collections. Does not require auth. - pub async fn describe_repo( - &self, - params: crate::com::atproto::repo::describe_repo::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::repo::describe_repo::Output, - crate::com::atproto::repo::describe_repo::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::repo::describe_repo::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a single record from a repository. Does not require auth. - pub async fn get_record( - &self, - params: crate::com::atproto::repo::get_record::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::repo::get_record::Output, - crate::com::atproto::repo::get_record::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::repo::get_record::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set. - pub async fn import_repo( - &self, - input: Vec, - ) -> atrium_xrpc::Result<(), crate::com::atproto::repo::import_repo::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - Vec, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::import_repo::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Bytes(input)), - encoding: Some(String::from("application/vnd.ipld.car")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Returns a list of missing blobs for the requesting account. Intended to be used in the account migration flow. - pub async fn list_missing_blobs( - &self, - params: crate::com::atproto::repo::list_missing_blobs::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::repo::list_missing_blobs::Output, - crate::com::atproto::repo::list_missing_blobs::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::repo::list_missing_blobs::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///List a range of records in a repository, matching a specific collection. Does not require auth. - pub async fn list_records( - &self, - params: crate::com::atproto::repo::list_records::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::repo::list_records::Output, - crate::com::atproto::repo::list_records::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::repo::list_records::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Write a repository record, creating or updating it as needed. Requires auth, implemented by PDS. - pub async fn put_record( - &self, - input: crate::com::atproto::repo::put_record::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::repo::put_record::Output, - crate::com::atproto::repo::put_record::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::put_record::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Upload a new blob, to be referenced from a repository record. The blob will be deleted if it is not referenced within a time window (eg, minutes). Blob restrictions (mimetype, size, etc) are enforced when the reference is created. Requires auth, implemented by PDS. - pub async fn upload_blob( - &self, - input: Vec, - ) -> atrium_xrpc::Result< - crate::com::atproto::repo::upload_blob::Output, - crate::com::atproto::repo::upload_blob::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - Vec, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::upload_blob::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Bytes(input)), - encoding: Some(String::from("*/*")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl com::atproto::server::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Activates a currently deactivated account. Used to finalize account migration after the account's repo is imported and identity is setup. - pub async fn activate_account( - &self, - ) -> atrium_xrpc::Result<(), crate::com::atproto::server::activate_account::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::activate_account::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Returns the status of an account, especially as pertaining to import or recovery. Can be called many times over the course of an account migration. Requires auth and can only be called pertaining to oneself. - pub async fn check_account_status( - &self, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::check_account_status::Output, - crate::com::atproto::server::check_account_status::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::check_account_status::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Confirm an email using a token from com.atproto.server.requestEmailConfirmation. - pub async fn confirm_email( - &self, - input: crate::com::atproto::server::confirm_email::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::server::confirm_email::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::confirm_email::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Create an account. Implemented by PDS. - pub async fn create_account( - &self, - input: crate::com::atproto::server::create_account::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::create_account::Output, - crate::com::atproto::server::create_account::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_account::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Create an App Password. - pub async fn create_app_password( - &self, - input: crate::com::atproto::server::create_app_password::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::create_app_password::Output, - crate::com::atproto::server::create_app_password::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_app_password::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Create an invite code. - pub async fn create_invite_code( - &self, - input: crate::com::atproto::server::create_invite_code::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::create_invite_code::Output, - crate::com::atproto::server::create_invite_code::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_invite_code::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Create invite codes. - pub async fn create_invite_codes( - &self, - input: crate::com::atproto::server::create_invite_codes::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::create_invite_codes::Output, - crate::com::atproto::server::create_invite_codes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_invite_codes::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Create an authentication session. - pub async fn create_session( - &self, - input: crate::com::atproto::server::create_session::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::create_session::Output, - crate::com::atproto::server::create_session::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_session::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Deactivates a currently active account. Stops serving of repo, and future writes to repo until reactivated. Used to finalize account migration with the old host after the account has been activated on the new host. - pub async fn deactivate_account( - &self, - input: crate::com::atproto::server::deactivate_account::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::server::deactivate_account::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::deactivate_account::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Delete an actor's account with a token and password. Can only be called after requesting a deletion token. Requires auth. - pub async fn delete_account( - &self, - input: crate::com::atproto::server::delete_account::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::server::delete_account::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::delete_account::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Delete the current session. Requires auth. - pub async fn delete_session( - &self, - ) -> atrium_xrpc::Result<(), crate::com::atproto::server::delete_session::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::delete_session::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Describes the server's account creation requirements and capabilities. Implemented by PDS. - pub async fn describe_server( - &self, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::describe_server::Output, - crate::com::atproto::server::describe_server::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::describe_server::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get all invite codes for the current account. Requires auth. - pub async fn get_account_invite_codes( - &self, - params: crate::com::atproto::server::get_account_invite_codes::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::get_account_invite_codes::Output, - crate::com::atproto::server::get_account_invite_codes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::get_account_invite_codes::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a signed token on behalf of the requesting DID for the requested service. - pub async fn get_service_auth( - &self, - params: crate::com::atproto::server::get_service_auth::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::get_service_auth::Output, - crate::com::atproto::server::get_service_auth::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::get_service_auth::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get information about the current auth session. Requires auth. - pub async fn get_session( - &self, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::get_session::Output, - crate::com::atproto::server::get_session::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::get_session::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///List all App Passwords. - pub async fn list_app_passwords( - &self, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::list_app_passwords::Output, - crate::com::atproto::server::list_app_passwords::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::list_app_passwords::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Refresh an authentication session. Requires auth using the 'refreshJwt' (not the 'accessJwt'). - pub async fn refresh_session( - &self, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::refresh_session::Output, - crate::com::atproto::server::refresh_session::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::refresh_session::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Initiate a user account deletion via email. - pub async fn request_account_delete( - &self, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::server::request_account_delete::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::request_account_delete::NSID - .into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Request an email with a code to confirm ownership of email. - pub async fn request_email_confirmation( - &self, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::server::request_email_confirmation::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::request_email_confirmation::NSID - .into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Request a token in order to update email. - pub async fn request_email_update( - &self, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::request_email_update::Output, - crate::com::atproto::server::request_email_update::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::request_email_update::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Initiate a user account password reset via email. - pub async fn request_password_reset( - &self, - input: crate::com::atproto::server::request_password_reset::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::server::request_password_reset::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::request_password_reset::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Reserve a repo signing key, for use with account creation. Necessary so that a DID PLC update operation can be constructed during an account migraiton. Public and does not require auth; implemented by PDS. NOTE: this endpoint may change when full account migration is implemented. - pub async fn reserve_signing_key( - &self, - input: crate::com::atproto::server::reserve_signing_key::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::reserve_signing_key::Output, - crate::com::atproto::server::reserve_signing_key::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::reserve_signing_key::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Reset a user account password using a token. - pub async fn reset_password( - &self, - input: crate::com::atproto::server::reset_password::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::server::reset_password::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::reset_password::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Revoke an App Password by name. - pub async fn revoke_app_password( - &self, - input: crate::com::atproto::server::revoke_app_password::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::server::revoke_app_password::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::revoke_app_password::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Update an account's email. - pub async fn update_email( - &self, - input: crate::com::atproto::server::update_email::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::server::update_email::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::update_email::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl com::atproto::sync::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Get a blob associated with a given account. Returns the full blob as originally uploaded. Does not require auth; implemented by PDS. - pub async fn get_blob( - &self, - params: crate::com::atproto::sync::get_blob::Parameters, - ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_blob::Error> { - let response = self - .xrpc - .send_xrpc::< - _, - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_blob::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get data blocks from a given repo, by CID. For example, intermediate MST nodes, or records. Does not require auth; implemented by PDS. - pub async fn get_blocks( - &self, - params: crate::com::atproto::sync::get_blocks::Parameters, - ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_blocks::Error> { - let response = self - .xrpc - .send_xrpc::< - _, - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_blocks::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///DEPRECATED - please use com.atproto.sync.getRepo instead - pub async fn get_checkout( - &self, - params: crate::com::atproto::sync::get_checkout::Parameters, - ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_checkout::Error> { - let response = self - .xrpc - .send_xrpc::< - _, - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_checkout::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///DEPRECATED - please use com.atproto.sync.getLatestCommit instead - pub async fn get_head( - &self, - params: crate::com::atproto::sync::get_head::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::sync::get_head::Output, - crate::com::atproto::sync::get_head::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_head::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get the current commit CID & revision of the specified repo. Does not require auth. - pub async fn get_latest_commit( - &self, - params: crate::com::atproto::sync::get_latest_commit::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::sync::get_latest_commit::Output, - crate::com::atproto::sync::get_latest_commit::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_latest_commit::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth. - pub async fn get_record( - &self, - params: crate::com::atproto::sync::get_record::Parameters, - ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_record::Error> { - let response = self - .xrpc - .send_xrpc::< - _, - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_record::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Download a repository export as CAR file. Optionally only a 'diff' since a previous revision. Does not require auth; implemented by PDS. - pub async fn get_repo( - &self, - params: crate::com::atproto::sync::get_repo::Parameters, - ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_repo::Error> { - let response = self - .xrpc - .send_xrpc::< - _, - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_repo::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get the hosting status for a repository, on this server. Expected to be implemented by PDS and Relay. - pub async fn get_repo_status( - &self, - params: crate::com::atproto::sync::get_repo_status::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::sync::get_repo_status::Output, - crate::com::atproto::sync::get_repo_status::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_repo_status::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///List blob CIDs for an account, since some repo revision. Does not require auth; implemented by PDS. - pub async fn list_blobs( - &self, - params: crate::com::atproto::sync::list_blobs::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::sync::list_blobs::Output, - crate::com::atproto::sync::list_blobs::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::list_blobs::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates all the DID, rev, and commit CID for all repos hosted by this service. Does not require auth; implemented by PDS and Relay. - pub async fn list_repos( - &self, - params: crate::com::atproto::sync::list_repos::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::sync::list_repos::Output, - crate::com::atproto::sync::list_repos::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::list_repos::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates all the DIDs which have records with the given collection NSID. - pub async fn list_repos_by_collection( - &self, - params: crate::com::atproto::sync::list_repos_by_collection::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::sync::list_repos_by_collection::Output, - crate::com::atproto::sync::list_repos_by_collection::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::list_repos_by_collection::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay. - pub async fn notify_of_update( - &self, - input: crate::com::atproto::sync::notify_of_update::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::sync::notify_of_update::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::sync::notify_of_update::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Request a service to persistently crawl hosted repos. Expected use is new PDS instances declaring their existence to Relays. Does not require auth. - pub async fn request_crawl( - &self, - input: crate::com::atproto::sync::request_crawl::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::sync::request_crawl::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::sync::request_crawl::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl com::atproto::temp::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Add a handle to the set of reserved handles. - pub async fn add_reserved_handle( - &self, - input: crate::com::atproto::temp::add_reserved_handle::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::temp::add_reserved_handle::Output, - crate::com::atproto::temp::add_reserved_handle::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::temp::add_reserved_handle::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Check accounts location in signup queue. - pub async fn check_signup_queue( - &self, - ) -> atrium_xrpc::Result< - crate::com::atproto::temp::check_signup_queue::Output, - crate::com::atproto::temp::check_signup_queue::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::temp::check_signup_queue::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///DEPRECATED: use queryLabels or subscribeLabels instead -- Fetch all labels from a labeler created after a certain date. - pub async fn fetch_labels( - &self, - params: crate::com::atproto::temp::fetch_labels::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::temp::fetch_labels::Output, - crate::com::atproto::temp::fetch_labels::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::temp::fetch_labels::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Request a verification code to be sent to the supplied phone number - pub async fn request_phone_verification( - &self, - input: crate::com::atproto::temp::request_phone_verification::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::temp::request_phone_verification::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::temp::request_phone_verification::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl fm::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - teal: fm::teal::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl fm::teal::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - alpha: fm::teal::alpha::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl fm::teal::alpha::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - actor: fm::teal::alpha::actor::Service::new(std::sync::Arc::clone(&xrpc)), - feed: fm::teal::alpha::feed::Service::new(std::sync::Arc::clone(&xrpc)), - stats: fm::teal::alpha::stats::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl fm::teal::alpha::actor::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - pub async fn get_profile( - &self, - params: crate::fm::teal::alpha::actor::get_profile::Parameters, - ) -> atrium_xrpc::Result< - crate::fm::teal::alpha::actor::get_profile::Output, - crate::fm::teal::alpha::actor::get_profile::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::fm::teal::alpha::actor::get_profile::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn get_profiles( - &self, - params: crate::fm::teal::alpha::actor::get_profiles::Parameters, - ) -> atrium_xrpc::Result< - crate::fm::teal::alpha::actor::get_profiles::Output, - crate::fm::teal::alpha::actor::get_profiles::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::fm::teal::alpha::actor::get_profiles::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn search_actors( - &self, - params: crate::fm::teal::alpha::actor::search_actors::Parameters, - ) -> atrium_xrpc::Result< - crate::fm::teal::alpha::actor::search_actors::Output, - crate::fm::teal::alpha::actor::search_actors::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::fm::teal::alpha::actor::search_actors::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl fm::teal::alpha::feed::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - pub async fn get_actor_feed( - &self, - params: crate::fm::teal::alpha::feed::get_actor_feed::Parameters, - ) -> atrium_xrpc::Result< - crate::fm::teal::alpha::feed::get_actor_feed::Output, - crate::fm::teal::alpha::feed::get_actor_feed::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::fm::teal::alpha::feed::get_actor_feed::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn get_play( - &self, - params: crate::fm::teal::alpha::feed::get_play::Parameters, - ) -> atrium_xrpc::Result< - crate::fm::teal::alpha::feed::get_play::Output, - crate::fm::teal::alpha::feed::get_play::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::fm::teal::alpha::feed::get_play::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl fm::teal::alpha::stats::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Get latest plays globally - pub async fn get_latest( - &self, - params: crate::fm::teal::alpha::stats::get_latest::Parameters, - ) -> atrium_xrpc::Result< - crate::fm::teal::alpha::stats::get_latest::Output, - crate::fm::teal::alpha::stats::get_latest::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::fm::teal::alpha::stats::get_latest::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn get_top_artists( - &self, - params: crate::fm::teal::alpha::stats::get_top_artists::Parameters, - ) -> atrium_xrpc::Result< - crate::fm::teal::alpha::stats::get_top_artists::Output, - crate::fm::teal::alpha::stats::get_top_artists::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::fm::teal::alpha::stats::get_top_artists::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn get_top_releases( - &self, - params: crate::fm::teal::alpha::stats::get_top_releases::Parameters, - ) -> atrium_xrpc::Result< - crate::fm::teal::alpha::stats::get_top_releases::Output, - crate::fm::teal::alpha::stats::get_top_releases::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::fm::teal::alpha::stats::get_top_releases::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn get_user_top_artists( - &self, - params: crate::fm::teal::alpha::stats::get_user_top_artists::Parameters, - ) -> atrium_xrpc::Result< - crate::fm::teal::alpha::stats::get_user_top_artists::Output, - crate::fm::teal::alpha::stats::get_user_top_artists::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::fm::teal::alpha::stats::get_user_top_artists::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn get_user_top_releases( - &self, - params: crate::fm::teal::alpha::stats::get_user_top_releases::Parameters, - ) -> atrium_xrpc::Result< - crate::fm::teal::alpha::stats::get_user_top_releases::Output, - crate::fm::teal::alpha::stats::get_user_top_releases::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::fm::teal::alpha::stats::get_user_top_releases::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl tools::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - ozone: tools::ozone::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl tools::ozone::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - communication: tools::ozone::communication::Service::new( - std::sync::Arc::clone(&xrpc), - ), - moderation: tools::ozone::moderation::Service::new( - std::sync::Arc::clone(&xrpc), - ), - server: tools::ozone::server::Service::new(std::sync::Arc::clone(&xrpc)), - set: tools::ozone::set::Service::new(std::sync::Arc::clone(&xrpc)), - setting: tools::ozone::setting::Service::new(std::sync::Arc::clone(&xrpc)), - signature: tools::ozone::signature::Service::new( - std::sync::Arc::clone(&xrpc), - ), - team: tools::ozone::team::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl tools::ozone::communication::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Administrative action to create a new, re-usable communication (email for now) template. - pub async fn create_template( - &self, - input: crate::tools::ozone::communication::create_template::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::communication::create_template::Output, - crate::tools::ozone::communication::create_template::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::communication::create_template::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Delete a communication template. - pub async fn delete_template( - &self, - input: crate::tools::ozone::communication::delete_template::Input, - ) -> atrium_xrpc::Result< - (), - crate::tools::ozone::communication::delete_template::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::communication::delete_template::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get list of all communication templates. - pub async fn list_templates( - &self, - ) -> atrium_xrpc::Result< - crate::tools::ozone::communication::list_templates::Output, - crate::tools::ozone::communication::list_templates::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::communication::list_templates::NSID - .into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Administrative action to update an existing communication template. Allows passing partial fields to patch specific fields only. - pub async fn update_template( - &self, - input: crate::tools::ozone::communication::update_template::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::communication::update_template::Output, - crate::tools::ozone::communication::update_template::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::communication::update_template::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl tools::ozone::moderation::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Take a moderation action on an actor. - pub async fn emit_event( - &self, - input: crate::tools::ozone::moderation::emit_event::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::emit_event::Output, - crate::tools::ozone::moderation::emit_event::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::moderation::emit_event::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get details about a moderation event. - pub async fn get_event( - &self, - params: crate::tools::ozone::moderation::get_event::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::get_event::Output, - crate::tools::ozone::moderation::get_event::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::get_event::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get details about a record. - pub async fn get_record( - &self, - params: crate::tools::ozone::moderation::get_record::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::get_record::Output, - crate::tools::ozone::moderation::get_record::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::get_record::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get details about some records. - pub async fn get_records( - &self, - params: crate::tools::ozone::moderation::get_records::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::get_records::Output, - crate::tools::ozone::moderation::get_records::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::get_records::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get details about a repository. - pub async fn get_repo( - &self, - params: crate::tools::ozone::moderation::get_repo::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::get_repo::Output, - crate::tools::ozone::moderation::get_repo::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::get_repo::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get reporter stats for a list of users. - pub async fn get_reporter_stats( - &self, - params: crate::tools::ozone::moderation::get_reporter_stats::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::get_reporter_stats::Output, - crate::tools::ozone::moderation::get_reporter_stats::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::get_reporter_stats::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get details about some repositories. - pub async fn get_repos( - &self, - params: crate::tools::ozone::moderation::get_repos::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::get_repos::Output, - crate::tools::ozone::moderation::get_repos::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::get_repos::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///List moderation events related to a subject. - pub async fn query_events( - &self, - params: crate::tools::ozone::moderation::query_events::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::query_events::Output, - crate::tools::ozone::moderation::query_events::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::query_events::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///View moderation statuses of subjects (record or repo). - pub async fn query_statuses( - &self, - params: crate::tools::ozone::moderation::query_statuses::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::query_statuses::Output, - crate::tools::ozone::moderation::query_statuses::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::query_statuses::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Find repositories based on a search term. - pub async fn search_repos( - &self, - params: crate::tools::ozone::moderation::search_repos::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::search_repos::Output, - crate::tools::ozone::moderation::search_repos::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::search_repos::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl tools::ozone::server::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Get details about ozone's server configuration. - pub async fn get_config( - &self, - ) -> atrium_xrpc::Result< - crate::tools::ozone::server::get_config::Output, - crate::tools::ozone::server::get_config::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::server::get_config::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl tools::ozone::set::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Add values to a specific set. Attempting to add values to a set that does not exist will result in an error. - pub async fn add_values( - &self, - input: crate::tools::ozone::set::add_values::Input, - ) -> atrium_xrpc::Result<(), crate::tools::ozone::set::add_values::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::set::add_values::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Delete an entire set. Attempting to delete a set that does not exist will result in an error. - pub async fn delete_set( - &self, - input: crate::tools::ozone::set::delete_set::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::set::delete_set::Output, - crate::tools::ozone::set::delete_set::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::set::delete_set::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Delete values from a specific set. Attempting to delete values that are not in the set will not result in an error - pub async fn delete_values( - &self, - input: crate::tools::ozone::set::delete_values::Input, - ) -> atrium_xrpc::Result<(), crate::tools::ozone::set::delete_values::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::set::delete_values::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a specific set and its values - pub async fn get_values( - &self, - params: crate::tools::ozone::set::get_values::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::set::get_values::Output, - crate::tools::ozone::set::get_values::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::set::get_values::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Query available sets - pub async fn query_sets( - &self, - params: crate::tools::ozone::set::query_sets::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::set::query_sets::Output, - crate::tools::ozone::set::query_sets::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::set::query_sets::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Create or update set metadata - pub async fn upsert_set( - &self, - input: crate::tools::ozone::set::upsert_set::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::set::upsert_set::Output, - crate::tools::ozone::set::upsert_set::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::set::upsert_set::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl tools::ozone::setting::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///List settings with optional filtering - pub async fn list_options( - &self, - params: crate::tools::ozone::setting::list_options::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::setting::list_options::Output, - crate::tools::ozone::setting::list_options::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::setting::list_options::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Delete settings by key - pub async fn remove_options( - &self, - input: crate::tools::ozone::setting::remove_options::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::setting::remove_options::Output, - crate::tools::ozone::setting::remove_options::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::setting::remove_options::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Create or update setting option - pub async fn upsert_option( - &self, - input: crate::tools::ozone::setting::upsert_option::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::setting::upsert_option::Output, - crate::tools::ozone::setting::upsert_option::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::setting::upsert_option::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl tools::ozone::signature::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Find all correlated threat signatures between 2 or more accounts. - pub async fn find_correlation( - &self, - params: crate::tools::ozone::signature::find_correlation::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::signature::find_correlation::Output, - crate::tools::ozone::signature::find_correlation::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::signature::find_correlation::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get accounts that share some matching threat signatures with the root account. - pub async fn find_related_accounts( - &self, - params: crate::tools::ozone::signature::find_related_accounts::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::signature::find_related_accounts::Output, - crate::tools::ozone::signature::find_related_accounts::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::signature::find_related_accounts::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Search for accounts that match one or more threat signature values. - pub async fn search_accounts( - &self, - params: crate::tools::ozone::signature::search_accounts::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::signature::search_accounts::Output, - crate::tools::ozone::signature::search_accounts::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::signature::search_accounts::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl tools::ozone::team::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Add a member to the ozone team. Requires admin role. - pub async fn add_member( - &self, - input: crate::tools::ozone::team::add_member::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::team::add_member::Output, - crate::tools::ozone::team::add_member::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::team::add_member::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Delete a member from ozone team. Requires admin role. - pub async fn delete_member( - &self, - input: crate::tools::ozone::team::delete_member::Input, - ) -> atrium_xrpc::Result<(), crate::tools::ozone::team::delete_member::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::team::delete_member::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///List all members with access to the ozone service. - pub async fn list_members( - &self, - params: crate::tools::ozone::team::list_members::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::team::list_members::Output, - crate::tools::ozone::team::list_members::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::team::list_members::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Update a member in the ozone service. Requires admin role. - pub async fn update_member( - &self, - input: crate::tools::ozone::team::update_member::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::team::update_member::Output, - crate::tools::ozone::team::update_member::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::team::update_member::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} diff --git a/services/types/src/com.rs b/services/types/src/com.rs deleted file mode 100644 index ff8b139..0000000 --- a/services/types/src/com.rs +++ /dev/null @@ -1,3 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com` namespace. -pub mod atproto; diff --git a/services/types/src/com/atproto.rs b/services/types/src/com/atproto.rs deleted file mode 100644 index b52b599..0000000 --- a/services/types/src/com/atproto.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto` namespace. -pub mod admin; -pub mod identity; -pub mod label; -pub mod lexicon; -pub mod moderation; -pub mod repo; -pub mod server; -pub mod sync; -pub mod temp; diff --git a/services/types/src/com/atproto/admin.rs b/services/types/src/com/atproto/admin.rs deleted file mode 100644 index b72dfaa..0000000 --- a/services/types/src/com/atproto/admin.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin` namespace. -pub mod defs; -pub mod delete_account; -pub mod disable_account_invites; -pub mod disable_invite_codes; -pub mod enable_account_invites; -pub mod get_account_info; -pub mod get_account_infos; -pub mod get_invite_codes; -pub mod get_subject_status; -pub mod search_accounts; -pub mod send_email; -pub mod update_account_email; -pub mod update_account_handle; -pub mod update_account_password; -pub mod update_subject_status; diff --git a/services/types/src/com/atproto/admin/defs.rs b/services/types/src/com/atproto/admin/defs.rs deleted file mode 100644 index ddc3007..0000000 --- a/services/types/src/com/atproto/admin/defs.rs +++ /dev/null @@ -1,60 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AccountViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub deactivated_at: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email_confirmed_at: core::option::Option, - pub handle: atrium_api::types::string::Handle, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invite_note: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invited_by: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invites: core::option::Option< - Vec, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invites_disabled: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub related_records: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub threat_signatures: core::option::Option>, -} -pub type AccountView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RepoBlobRefData { - pub cid: atrium_api::types::string::Cid, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub record_uri: core::option::Option, -} -pub type RepoBlobRef = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RepoRefData { - pub did: atrium_api::types::string::Did, -} -pub type RepoRef = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct StatusAttrData { - pub applied: bool, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub r#ref: core::option::Option, -} -pub type StatusAttr = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ThreatSignatureData { - pub property: String, - pub value: String, -} -pub type ThreatSignature = atrium_api::types::Object; diff --git a/services/types/src/com/atproto/admin/delete_account.rs b/services/types/src/com/atproto/admin/delete_account.rs deleted file mode 100644 index 471a91b..0000000 --- a/services/types/src/com/atproto/admin/delete_account.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.deleteAccount` namespace. -pub const NSID: &str = "com.atproto.admin.deleteAccount"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub did: atrium_api::types::string::Did, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/admin/disable_account_invites.rs b/services/types/src/com/atproto/admin/disable_account_invites.rs deleted file mode 100644 index 4f6d878..0000000 --- a/services/types/src/com/atproto/admin/disable_account_invites.rs +++ /dev/null @@ -1,20 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.disableAccountInvites` namespace. -pub const NSID: &str = "com.atproto.admin.disableAccountInvites"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub account: atrium_api::types::string::Did, - ///Optional reason for disabled invites. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub note: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/admin/disable_invite_codes.rs b/services/types/src/com/atproto/admin/disable_invite_codes.rs deleted file mode 100644 index 365ce3c..0000000 --- a/services/types/src/com/atproto/admin/disable_invite_codes.rs +++ /dev/null @@ -1,20 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.disableInviteCodes` namespace. -pub const NSID: &str = "com.atproto.admin.disableInviteCodes"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub accounts: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub codes: core::option::Option>, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/admin/enable_account_invites.rs b/services/types/src/com/atproto/admin/enable_account_invites.rs deleted file mode 100644 index 13e9966..0000000 --- a/services/types/src/com/atproto/admin/enable_account_invites.rs +++ /dev/null @@ -1,20 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.enableAccountInvites` namespace. -pub const NSID: &str = "com.atproto.admin.enableAccountInvites"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub account: atrium_api::types::string::Did, - ///Optional reason for enabled invites. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub note: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/admin/get_account_info.rs b/services/types/src/com/atproto/admin/get_account_info.rs deleted file mode 100644 index 6746521..0000000 --- a/services/types/src/com/atproto/admin/get_account_info.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.getAccountInfo` namespace. -pub const NSID: &str = "com.atproto.admin.getAccountInfo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub did: atrium_api::types::string::Did, -} -pub type Parameters = atrium_api::types::Object; -pub type Output = crate::com::atproto::admin::defs::AccountView; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/admin/get_account_infos.rs b/services/types/src/com/atproto/admin/get_account_infos.rs deleted file mode 100644 index bfb36a4..0000000 --- a/services/types/src/com/atproto/admin/get_account_infos.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.getAccountInfos` namespace. -pub const NSID: &str = "com.atproto.admin.getAccountInfos"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub dids: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub infos: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/admin/get_invite_codes.rs b/services/types/src/com/atproto/admin/get_invite_codes.rs deleted file mode 100644 index 3f23c90..0000000 --- a/services/types/src/com/atproto/admin/get_invite_codes.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.getInviteCodes` namespace. -pub const NSID: &str = "com.atproto.admin.getInviteCodes"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sort: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub codes: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/admin/get_subject_status.rs b/services/types/src/com/atproto/admin/get_subject_status.rs deleted file mode 100644 index 3598186..0000000 --- a/services/types/src/com/atproto/admin/get_subject_status.rs +++ /dev/null @@ -1,42 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.getSubjectStatus` namespace. -pub const NSID: &str = "com.atproto.admin.getSubjectStatus"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub blob: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub did: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub uri: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub deactivated: core::option::Option, - pub subject: atrium_api::types::Union, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub takedown: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputSubjectRefs { - #[serde(rename = "com.atproto.admin.defs#repoRef")] - ComAtprotoAdminDefsRepoRef(Box), - #[serde(rename = "com.atproto.repo.strongRef")] - ComAtprotoRepoStrongRefMain(Box), - #[serde(rename = "com.atproto.admin.defs#repoBlobRef")] - ComAtprotoAdminDefsRepoBlobRef(Box), -} diff --git a/services/types/src/com/atproto/admin/search_accounts.rs b/services/types/src/com/atproto/admin/search_accounts.rs deleted file mode 100644 index 9e4eb40..0000000 --- a/services/types/src/com/atproto/admin/search_accounts.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.searchAccounts` namespace. -pub const NSID: &str = "com.atproto.admin.searchAccounts"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub accounts: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/admin/send_email.rs b/services/types/src/com/atproto/admin/send_email.rs deleted file mode 100644 index 1599aa1..0000000 --- a/services/types/src/com/atproto/admin/send_email.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.sendEmail` namespace. -pub const NSID: &str = "com.atproto.admin.sendEmail"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Additional comment by the sender that won't be used in the email itself but helpful to provide more context for moderators/reviewers - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, - pub content: String, - pub recipient_did: atrium_api::types::string::Did, - pub sender_did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub sent: bool, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/admin/update_account_email.rs b/services/types/src/com/atproto/admin/update_account_email.rs deleted file mode 100644 index 72e8968..0000000 --- a/services/types/src/com/atproto/admin/update_account_email.rs +++ /dev/null @@ -1,19 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.updateAccountEmail` namespace. -pub const NSID: &str = "com.atproto.admin.updateAccountEmail"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///The handle or DID of the repo. - pub account: atrium_api::types::string::AtIdentifier, - pub email: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/admin/update_account_handle.rs b/services/types/src/com/atproto/admin/update_account_handle.rs deleted file mode 100644 index 84de37e..0000000 --- a/services/types/src/com/atproto/admin/update_account_handle.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.updateAccountHandle` namespace. -pub const NSID: &str = "com.atproto.admin.updateAccountHandle"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub did: atrium_api::types::string::Did, - pub handle: atrium_api::types::string::Handle, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/admin/update_account_password.rs b/services/types/src/com/atproto/admin/update_account_password.rs deleted file mode 100644 index 6bdbd44..0000000 --- a/services/types/src/com/atproto/admin/update_account_password.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.updateAccountPassword` namespace. -pub const NSID: &str = "com.atproto.admin.updateAccountPassword"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub did: atrium_api::types::string::Did, - pub password: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/admin/update_subject_status.rs b/services/types/src/com/atproto/admin/update_subject_status.rs deleted file mode 100644 index cc325ea..0000000 --- a/services/types/src/com/atproto/admin/update_subject_status.rs +++ /dev/null @@ -1,49 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.updateSubjectStatus` namespace. -pub const NSID: &str = "com.atproto.admin.updateSubjectStatus"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub deactivated: core::option::Option, - pub subject: atrium_api::types::Union, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub takedown: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub subject: atrium_api::types::Union, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub takedown: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum InputSubjectRefs { - #[serde(rename = "com.atproto.admin.defs#repoRef")] - ComAtprotoAdminDefsRepoRef(Box), - #[serde(rename = "com.atproto.repo.strongRef")] - ComAtprotoRepoStrongRefMain(Box), - #[serde(rename = "com.atproto.admin.defs#repoBlobRef")] - ComAtprotoAdminDefsRepoBlobRef(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputSubjectRefs { - #[serde(rename = "com.atproto.admin.defs#repoRef")] - ComAtprotoAdminDefsRepoRef(Box), - #[serde(rename = "com.atproto.repo.strongRef")] - ComAtprotoRepoStrongRefMain(Box), - #[serde(rename = "com.atproto.admin.defs#repoBlobRef")] - ComAtprotoAdminDefsRepoBlobRef(Box), -} diff --git a/services/types/src/com/atproto/identity.rs b/services/types/src/com/atproto/identity.rs deleted file mode 100644 index 8c2da83..0000000 --- a/services/types/src/com/atproto/identity.rs +++ /dev/null @@ -1,8 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.identity` namespace. -pub mod get_recommended_did_credentials; -pub mod request_plc_operation_signature; -pub mod resolve_handle; -pub mod sign_plc_operation; -pub mod submit_plc_operation; -pub mod update_handle; diff --git a/services/types/src/com/atproto/identity/get_recommended_did_credentials.rs b/services/types/src/com/atproto/identity/get_recommended_did_credentials.rs deleted file mode 100644 index cd613a1..0000000 --- a/services/types/src/com/atproto/identity/get_recommended_did_credentials.rs +++ /dev/null @@ -1,25 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.identity.getRecommendedDidCredentials` namespace. -pub const NSID: &str = "com.atproto.identity.getRecommendedDidCredentials"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub also_known_as: core::option::Option>, - ///Recommended rotation keys for PLC dids. Should be undefined (or ignored) for did:webs. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rotation_keys: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub services: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub verification_methods: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/identity/request_plc_operation_signature.rs b/services/types/src/com/atproto/identity/request_plc_operation_signature.rs deleted file mode 100644 index 8a8fe72..0000000 --- a/services/types/src/com/atproto/identity/request_plc_operation_signature.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.identity.requestPlcOperationSignature` namespace. -pub const NSID: &str = "com.atproto.identity.requestPlcOperationSignature"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/identity/resolve_handle.rs b/services/types/src/com/atproto/identity/resolve_handle.rs deleted file mode 100644 index 9d1b056..0000000 --- a/services/types/src/com/atproto/identity/resolve_handle.rs +++ /dev/null @@ -1,24 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.identity.resolveHandle` namespace. -pub const NSID: &str = "com.atproto.identity.resolveHandle"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The handle to resolve. - pub handle: atrium_api::types::string::Handle, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub did: atrium_api::types::string::Did, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/identity/sign_plc_operation.rs b/services/types/src/com/atproto/identity/sign_plc_operation.rs deleted file mode 100644 index b12333e..0000000 --- a/services/types/src/com/atproto/identity/sign_plc_operation.rs +++ /dev/null @@ -1,34 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.identity.signPlcOperation` namespace. -pub const NSID: &str = "com.atproto.identity.signPlcOperation"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub also_known_as: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rotation_keys: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub services: core::option::Option, - ///A token received through com.atproto.identity.requestPlcOperationSignature - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub token: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub verification_methods: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///A signed DID PLC operation. - pub operation: atrium_api::types::Unknown, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/identity/submit_plc_operation.rs b/services/types/src/com/atproto/identity/submit_plc_operation.rs deleted file mode 100644 index ecf8fa6..0000000 --- a/services/types/src/com/atproto/identity/submit_plc_operation.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.identity.submitPlcOperation` namespace. -pub const NSID: &str = "com.atproto.identity.submitPlcOperation"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub operation: atrium_api::types::Unknown, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/identity/update_handle.rs b/services/types/src/com/atproto/identity/update_handle.rs deleted file mode 100644 index 0daf75a..0000000 --- a/services/types/src/com/atproto/identity/update_handle.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.identity.updateHandle` namespace. -pub const NSID: &str = "com.atproto.identity.updateHandle"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///The new handle. - pub handle: atrium_api::types::string::Handle, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/label.rs b/services/types/src/com/atproto/label.rs deleted file mode 100644 index af7c0b0..0000000 --- a/services/types/src/com/atproto/label.rs +++ /dev/null @@ -1,5 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.label` namespace. -pub mod defs; -pub mod query_labels; -pub mod subscribe_labels; diff --git a/services/types/src/com/atproto/label/defs.rs b/services/types/src/com/atproto/label/defs.rs deleted file mode 100644 index 6980b10..0000000 --- a/services/types/src/com/atproto/label/defs.rs +++ /dev/null @@ -1,82 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.label.defs` namespace. -///Metadata tag on an atproto resource (eg, repo or record). -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelData { - ///Optionally, CID specifying the specific version of 'uri' resource this label applies to. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - ///Timestamp when this label was created. - pub cts: atrium_api::types::string::Datetime, - ///Timestamp at which this label expires (no longer applies). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub exp: core::option::Option, - ///If true, this is a negation label, overwriting a previous label. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub neg: core::option::Option, - ///Signature of dag-cbor encoded label. - #[serde(default)] - #[serde(with = "serde_bytes")] - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sig: core::option::Option>, - ///DID of the actor who created this label. - pub src: atrium_api::types::string::Did, - ///AT URI of the record, repository (account), or other resource that this label applies to. - pub uri: String, - ///The short string name of the value or type of this label. - pub val: String, - ///The AT Protocol version of the label object. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub ver: core::option::Option, -} -pub type Label = atrium_api::types::Object; -pub type LabelValue = String; -///Declares a label value and its expected interpretations and behaviors. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelValueDefinitionData { - ///Does the user need to have adult content enabled in order to configure this label? - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub adult_only: core::option::Option, - ///What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing. - pub blurs: String, - ///The default setting for this label. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub default_setting: core::option::Option, - ///The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+). - pub identifier: String, - pub locales: Vec, - ///How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing. - pub severity: String, -} -pub type LabelValueDefinition = atrium_api::types::Object; -///Strings which describe the label in the UI, localized into a specific language. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelValueDefinitionStringsData { - ///A longer description of what the label means and why it might be applied. - pub description: String, - ///The code of the language these strings are written in. - pub lang: atrium_api::types::string::Language, - ///A short human-readable name for the label. - pub name: String, -} -pub type LabelValueDefinitionStrings = atrium_api::types::Object< - LabelValueDefinitionStringsData, ->; -///Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SelfLabelData { - ///The short string name of the value or type of this label. - pub val: String, -} -pub type SelfLabel = atrium_api::types::Object; -///Metadata tags on an atproto record, published by the author within the record. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SelfLabelsData { - pub values: Vec, -} -pub type SelfLabels = atrium_api::types::Object; diff --git a/services/types/src/com/atproto/label/query_labels.rs b/services/types/src/com/atproto/label/query_labels.rs deleted file mode 100644 index 6a3aa49..0000000 --- a/services/types/src/com/atproto/label/query_labels.rs +++ /dev/null @@ -1,33 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.label.queryLabels` namespace. -pub const NSID: &str = "com.atproto.label.queryLabels"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Optional list of label sources (DIDs) to filter on. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sources: core::option::Option>, - ///List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI. - pub uri_patterns: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub labels: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/label/subscribe_labels.rs b/services/types/src/com/atproto/label/subscribe_labels.rs deleted file mode 100644 index 72e0980..0000000 --- a/services/types/src/com/atproto/label/subscribe_labels.rs +++ /dev/null @@ -1,52 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.label.subscribeLabels` namespace. -pub const NSID: &str = "com.atproto.label.subscribeLabels"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The last known event seq number to backfill from. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - FutureCursor(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::FutureCursor(msg) => { - write!(_f, "FutureCursor")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InfoData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub message: core::option::Option, - pub name: String, -} -pub type Info = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelsData { - pub labels: Vec, - pub seq: i64, -} -pub type Labels = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum Message { - #[serde(rename = "com.atproto.label.subscribeLabels#labels")] - Labels(Box), - #[serde(rename = "com.atproto.label.subscribeLabels#info")] - Info(Box), -} diff --git a/services/types/src/com/atproto/lexicon.rs b/services/types/src/com/atproto/lexicon.rs deleted file mode 100644 index df4b779..0000000 --- a/services/types/src/com/atproto/lexicon.rs +++ /dev/null @@ -1,9 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.lexicon` namespace. -pub mod schema; -#[derive(Debug)] -pub struct Schema; -impl atrium_api::types::Collection for Schema { - const NSID: &'static str = "com.atproto.lexicon.schema"; - type Record = schema::Record; -} diff --git a/services/types/src/com/atproto/lexicon/schema.rs b/services/types/src/com/atproto/lexicon/schema.rs deleted file mode 100644 index 8ee5aad..0000000 --- a/services/types/src/com/atproto/lexicon/schema.rs +++ /dev/null @@ -1,15 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.lexicon.schema` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - ///Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system. - pub lexicon: i64, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/services/types/src/com/atproto/moderation.rs b/services/types/src/com/atproto/moderation.rs deleted file mode 100644 index e8be7ac..0000000 --- a/services/types/src/com/atproto/moderation.rs +++ /dev/null @@ -1,4 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.moderation` namespace. -pub mod create_report; -pub mod defs; diff --git a/services/types/src/com/atproto/moderation/create_report.rs b/services/types/src/com/atproto/moderation/create_report.rs deleted file mode 100644 index 4a81000..0000000 --- a/services/types/src/com/atproto/moderation/create_report.rs +++ /dev/null @@ -1,50 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.moderation.createReport` namespace. -pub const NSID: &str = "com.atproto.moderation.createReport"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Additional context about the content and violation. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reason: core::option::Option, - ///Indicates the broad category of violation the report is for. - pub reason_type: crate::com::atproto::moderation::defs::ReasonType, - pub subject: atrium_api::types::Union, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub created_at: atrium_api::types::string::Datetime, - pub id: i64, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reason: core::option::Option, - pub reason_type: crate::com::atproto::moderation::defs::ReasonType, - pub reported_by: atrium_api::types::string::Did, - pub subject: atrium_api::types::Union, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum InputSubjectRefs { - #[serde(rename = "com.atproto.admin.defs#repoRef")] - ComAtprotoAdminDefsRepoRef(Box), - #[serde(rename = "com.atproto.repo.strongRef")] - ComAtprotoRepoStrongRefMain(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputSubjectRefs { - #[serde(rename = "com.atproto.admin.defs#repoRef")] - ComAtprotoAdminDefsRepoRef(Box), - #[serde(rename = "com.atproto.repo.strongRef")] - ComAtprotoRepoStrongRefMain(Box), -} diff --git a/services/types/src/com/atproto/moderation/defs.rs b/services/types/src/com/atproto/moderation/defs.rs deleted file mode 100644 index af54502..0000000 --- a/services/types/src/com/atproto/moderation/defs.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.moderation.defs` namespace. -///Appeal: appeal a previously taken moderation action -pub const REASON_APPEAL: &str = "com.atproto.moderation.defs#reasonAppeal"; -///Misleading identity, affiliation, or content -pub const REASON_MISLEADING: &str = "com.atproto.moderation.defs#reasonMisleading"; -///Other: reports not falling under another report category -pub const REASON_OTHER: &str = "com.atproto.moderation.defs#reasonOther"; -///Rude, harassing, explicit, or otherwise unwelcoming behavior -pub const REASON_RUDE: &str = "com.atproto.moderation.defs#reasonRude"; -///Unwanted or mislabeled sexual content -pub const REASON_SEXUAL: &str = "com.atproto.moderation.defs#reasonSexual"; -///Spam: frequent unwanted promotion, replies, mentions -pub const REASON_SPAM: &str = "com.atproto.moderation.defs#reasonSpam"; -pub type ReasonType = String; -///Direct violation of server rules, laws, terms of service -pub const REASON_VIOLATION: &str = "com.atproto.moderation.defs#reasonViolation"; diff --git a/services/types/src/com/atproto/repo.rs b/services/types/src/com/atproto/repo.rs deleted file mode 100644 index 5443544..0000000 --- a/services/types/src/com/atproto/repo.rs +++ /dev/null @@ -1,14 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo` namespace. -pub mod apply_writes; -pub mod create_record; -pub mod defs; -pub mod delete_record; -pub mod describe_repo; -pub mod get_record; -pub mod import_repo; -pub mod list_missing_blobs; -pub mod list_records; -pub mod put_record; -pub mod strong_ref; -pub mod upload_blob; diff --git a/services/types/src/com/atproto/repo/apply_writes.rs b/services/types/src/com/atproto/repo/apply_writes.rs deleted file mode 100644 index daa418e..0000000 --- a/services/types/src/com/atproto/repo/apply_writes.rs +++ /dev/null @@ -1,115 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.applyWrites` namespace. -pub const NSID: &str = "com.atproto.repo.applyWrites"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///The handle or DID of the repo (aka, current account). - pub repo: atrium_api::types::string::AtIdentifier, - ///If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub swap_commit: core::option::Option, - ///Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub validate: core::option::Option, - pub writes: Vec, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub commit: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub results: core::option::Option>, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///Indicates that the 'swapCommit' parameter did not match current commit. - InvalidSwap(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::InvalidSwap(msg) => { - write!(_f, "InvalidSwap")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} -///Operation which creates a new record. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct CreateData { - pub collection: atrium_api::types::string::Nsid, - ///NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rkey: core::option::Option, - pub value: atrium_api::types::Unknown, -} -pub type Create = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct CreateResultData { - pub cid: atrium_api::types::string::Cid, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub validation_status: core::option::Option, -} -pub type CreateResult = atrium_api::types::Object; -///Operation which deletes an existing record. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct DeleteData { - pub collection: atrium_api::types::string::Nsid, - pub rkey: atrium_api::types::string::RecordKey, -} -pub type Delete = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct DeleteResultData {} -pub type DeleteResult = atrium_api::types::Object; -///Operation which updates an existing record. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct UpdateData { - pub collection: atrium_api::types::string::Nsid, - pub rkey: atrium_api::types::string::RecordKey, - pub value: atrium_api::types::Unknown, -} -pub type Update = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct UpdateResultData { - pub cid: atrium_api::types::string::Cid, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub validation_status: core::option::Option, -} -pub type UpdateResult = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum InputWritesItem { - #[serde(rename = "com.atproto.repo.applyWrites#create")] - Create(Box), - #[serde(rename = "com.atproto.repo.applyWrites#update")] - Update(Box), - #[serde(rename = "com.atproto.repo.applyWrites#delete")] - Delete(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputResultsItem { - #[serde(rename = "com.atproto.repo.applyWrites#createResult")] - CreateResult(Box), - #[serde(rename = "com.atproto.repo.applyWrites#updateResult")] - UpdateResult(Box), - #[serde(rename = "com.atproto.repo.applyWrites#deleteResult")] - DeleteResult(Box), -} diff --git a/services/types/src/com/atproto/repo/create_record.rs b/services/types/src/com/atproto/repo/create_record.rs deleted file mode 100644 index 5c67c31..0000000 --- a/services/types/src/com/atproto/repo/create_record.rs +++ /dev/null @@ -1,53 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.createRecord` namespace. -pub const NSID: &str = "com.atproto.repo.createRecord"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///The NSID of the record collection. - pub collection: atrium_api::types::string::Nsid, - ///The record itself. Must contain a $type field. - pub record: atrium_api::types::Unknown, - ///The handle or DID of the repo (aka, current account). - pub repo: atrium_api::types::string::AtIdentifier, - ///The Record Key. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rkey: core::option::Option, - ///Compare and swap with the previous commit by CID. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub swap_commit: core::option::Option, - ///Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub validate: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub cid: atrium_api::types::string::Cid, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub commit: core::option::Option, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub validation_status: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///Indicates that 'swapCommit' didn't match current repo commit. - InvalidSwap(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::InvalidSwap(msg) => { - write!(_f, "InvalidSwap")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/repo/defs.rs b/services/types/src/com/atproto/repo/defs.rs deleted file mode 100644 index 6f9c9f5..0000000 --- a/services/types/src/com/atproto/repo/defs.rs +++ /dev/null @@ -1,9 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct CommitMetaData { - pub cid: atrium_api::types::string::Cid, - pub rev: atrium_api::types::string::Tid, -} -pub type CommitMeta = atrium_api::types::Object; diff --git a/services/types/src/com/atproto/repo/delete_record.rs b/services/types/src/com/atproto/repo/delete_record.rs deleted file mode 100644 index 7f89589..0000000 --- a/services/types/src/com/atproto/repo/delete_record.rs +++ /dev/null @@ -1,45 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.deleteRecord` namespace. -pub const NSID: &str = "com.atproto.repo.deleteRecord"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///The NSID of the record collection. - pub collection: atrium_api::types::string::Nsid, - ///The handle or DID of the repo (aka, current account). - pub repo: atrium_api::types::string::AtIdentifier, - ///The Record Key. - pub rkey: atrium_api::types::string::RecordKey, - ///Compare and swap with the previous commit by CID. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub swap_commit: core::option::Option, - ///Compare and swap with the previous record by CID. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub swap_record: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub commit: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - InvalidSwap(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::InvalidSwap(msg) => { - write!(_f, "InvalidSwap")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/repo/describe_repo.rs b/services/types/src/com/atproto/repo/describe_repo.rs deleted file mode 100644 index e4b189a..0000000 --- a/services/types/src/com/atproto/repo/describe_repo.rs +++ /dev/null @@ -1,31 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.describeRepo` namespace. -pub const NSID: &str = "com.atproto.repo.describeRepo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The handle or DID of the repo. - pub repo: atrium_api::types::string::AtIdentifier, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///List of all the collections (NSIDs) for which this repo contains at least one record. - pub collections: Vec, - pub did: atrium_api::types::string::Did, - ///The complete DID document for this account. - pub did_doc: atrium_api::types::Unknown, - pub handle: atrium_api::types::string::Handle, - ///Indicates if handle is currently valid (resolves bi-directionally) - pub handle_is_correct: bool, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/repo/get_record.rs b/services/types/src/com/atproto/repo/get_record.rs deleted file mode 100644 index f6b6f39..0000000 --- a/services/types/src/com/atproto/repo/get_record.rs +++ /dev/null @@ -1,44 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.getRecord` namespace. -pub const NSID: &str = "com.atproto.repo.getRecord"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The CID of the version of the record. If not specified, then return the most recent version. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - ///The NSID of the record collection. - pub collection: atrium_api::types::string::Nsid, - ///The handle or DID of the repo. - pub repo: atrium_api::types::string::AtIdentifier, - ///The Record Key. - pub rkey: atrium_api::types::string::RecordKey, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - pub uri: String, - pub value: atrium_api::types::Unknown, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - RecordNotFound(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::RecordNotFound(msg) => { - write!(_f, "RecordNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/repo/import_repo.rs b/services/types/src/com/atproto/repo/import_repo.rs deleted file mode 100644 index 587887e..0000000 --- a/services/types/src/com/atproto/repo/import_repo.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.importRepo` namespace. -pub const NSID: &str = "com.atproto.repo.importRepo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/repo/list_missing_blobs.rs b/services/types/src/com/atproto/repo/list_missing_blobs.rs deleted file mode 100644 index 13c8bce..0000000 --- a/services/types/src/com/atproto/repo/list_missing_blobs.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.listMissingBlobs` namespace. -pub const NSID: &str = "com.atproto.repo.listMissingBlobs"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub blobs: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordBlobData { - pub cid: atrium_api::types::string::Cid, - pub record_uri: String, -} -pub type RecordBlob = atrium_api::types::Object; diff --git a/services/types/src/com/atproto/repo/list_records.rs b/services/types/src/com/atproto/repo/list_records.rs deleted file mode 100644 index 21f6f0a..0000000 --- a/services/types/src/com/atproto/repo/list_records.rs +++ /dev/null @@ -1,50 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.listRecords` namespace. -pub const NSID: &str = "com.atproto.repo.listRecords"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The NSID of the record type. - pub collection: atrium_api::types::string::Nsid, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///The number of records to return. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///The handle or DID of the repo. - pub repo: atrium_api::types::string::AtIdentifier, - ///Flag to reverse the order of the returned records. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reverse: core::option::Option, - ///DEPRECATED: The highest sort-ordered rkey to stop at (exclusive) - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rkey_end: core::option::Option, - ///DEPRECATED: The lowest sort-ordered rkey to start from (exclusive) - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rkey_start: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub records: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub cid: atrium_api::types::string::Cid, - pub uri: String, - pub value: atrium_api::types::Unknown, -} -pub type Record = atrium_api::types::Object; diff --git a/services/types/src/com/atproto/repo/put_record.rs b/services/types/src/com/atproto/repo/put_record.rs deleted file mode 100644 index 25099e0..0000000 --- a/services/types/src/com/atproto/repo/put_record.rs +++ /dev/null @@ -1,54 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.putRecord` namespace. -pub const NSID: &str = "com.atproto.repo.putRecord"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///The NSID of the record collection. - pub collection: atrium_api::types::string::Nsid, - ///The record to write. - pub record: atrium_api::types::Unknown, - ///The handle or DID of the repo (aka, current account). - pub repo: atrium_api::types::string::AtIdentifier, - ///The Record Key. - pub rkey: atrium_api::types::string::RecordKey, - ///Compare and swap with the previous commit by CID. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub swap_commit: core::option::Option, - ///Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub swap_record: core::option::Option, - ///Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub validate: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub cid: atrium_api::types::string::Cid, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub commit: core::option::Option, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub validation_status: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - InvalidSwap(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::InvalidSwap(msg) => { - write!(_f, "InvalidSwap")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/repo/strong_ref.rs b/services/types/src/com/atproto/repo/strong_ref.rs deleted file mode 100644 index 8eef6d6..0000000 --- a/services/types/src/com/atproto/repo/strong_ref.rs +++ /dev/null @@ -1,10 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.strongRef` namespace. -//!A URI with a content-hash fingerprint. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MainData { - pub cid: atrium_api::types::string::Cid, - pub uri: String, -} -pub type Main = atrium_api::types::Object; diff --git a/services/types/src/com/atproto/repo/upload_blob.rs b/services/types/src/com/atproto/repo/upload_blob.rs deleted file mode 100644 index 641861d..0000000 --- a/services/types/src/com/atproto/repo/upload_blob.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.uploadBlob` namespace. -pub const NSID: &str = "com.atproto.repo.uploadBlob"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub blob: atrium_api::types::BlobRef, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server.rs b/services/types/src/com/atproto/server.rs deleted file mode 100644 index d9dac6e..0000000 --- a/services/types/src/com/atproto/server.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server` namespace. -pub mod activate_account; -pub mod check_account_status; -pub mod confirm_email; -pub mod create_account; -pub mod create_app_password; -pub mod create_invite_code; -pub mod create_invite_codes; -pub mod create_session; -pub mod deactivate_account; -pub mod defs; -pub mod delete_account; -pub mod delete_session; -pub mod describe_server; -pub mod get_account_invite_codes; -pub mod get_service_auth; -pub mod get_session; -pub mod list_app_passwords; -pub mod refresh_session; -pub mod request_account_delete; -pub mod request_email_confirmation; -pub mod request_email_update; -pub mod request_password_reset; -pub mod reserve_signing_key; -pub mod reset_password; -pub mod revoke_app_password; -pub mod update_email; diff --git a/services/types/src/com/atproto/server/activate_account.rs b/services/types/src/com/atproto/server/activate_account.rs deleted file mode 100644 index 2d367da..0000000 --- a/services/types/src/com/atproto/server/activate_account.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.activateAccount` namespace. -pub const NSID: &str = "com.atproto.server.activateAccount"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/check_account_status.rs b/services/types/src/com/atproto/server/check_account_status.rs deleted file mode 100644 index d95b8a8..0000000 --- a/services/types/src/com/atproto/server/check_account_status.rs +++ /dev/null @@ -1,25 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.checkAccountStatus` namespace. -pub const NSID: &str = "com.atproto.server.checkAccountStatus"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub activated: bool, - pub expected_blobs: i64, - pub imported_blobs: i64, - pub indexed_records: i64, - pub private_state_values: i64, - pub repo_blocks: i64, - pub repo_commit: atrium_api::types::string::Cid, - pub repo_rev: String, - pub valid_did: bool, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/confirm_email.rs b/services/types/src/com/atproto/server/confirm_email.rs deleted file mode 100644 index 16b22e7..0000000 --- a/services/types/src/com/atproto/server/confirm_email.rs +++ /dev/null @@ -1,49 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.confirmEmail` namespace. -pub const NSID: &str = "com.atproto.server.confirmEmail"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub email: String, - pub token: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - AccountNotFound(Option), - ExpiredToken(Option), - InvalidToken(Option), - InvalidEmail(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::AccountNotFound(msg) => { - write!(_f, "AccountNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::ExpiredToken(msg) => { - write!(_f, "ExpiredToken")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::InvalidToken(msg) => { - write!(_f, "InvalidToken")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::InvalidEmail(msg) => { - write!(_f, "InvalidEmail")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/create_account.rs b/services/types/src/com/atproto/server/create_account.rs deleted file mode 100644 index c3d3c3a..0000000 --- a/services/types/src/com/atproto/server/create_account.rs +++ /dev/null @@ -1,104 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.createAccount` namespace. -pub const NSID: &str = "com.atproto.server.createAccount"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Pre-existing atproto DID, being imported to a new account. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub did: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email: core::option::Option, - ///Requested handle for the account. - pub handle: atrium_api::types::string::Handle, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invite_code: core::option::Option, - ///Initial account password. May need to meet instance-specific password strength requirements. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub password: core::option::Option, - ///A signed DID PLC operation to be submitted as part of importing an existing account to this instance. NOTE: this optional field may be updated when full account migration is implemented. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub plc_op: core::option::Option, - ///DID PLC rotation key (aka, recovery key) to be included in PLC creation operation. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub recovery_key: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub verification_code: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub verification_phone: core::option::Option, -} -pub type Input = atrium_api::types::Object; -///Account login session returned on successful account creation. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub access_jwt: String, - ///The DID of the new account. - pub did: atrium_api::types::string::Did, - ///Complete DID document. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub did_doc: core::option::Option, - pub handle: atrium_api::types::string::Handle, - pub refresh_jwt: String, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - InvalidHandle(Option), - InvalidPassword(Option), - InvalidInviteCode(Option), - HandleNotAvailable(Option), - UnsupportedDomain(Option), - UnresolvableDid(Option), - IncompatibleDidDoc(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::InvalidHandle(msg) => { - write!(_f, "InvalidHandle")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::InvalidPassword(msg) => { - write!(_f, "InvalidPassword")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::InvalidInviteCode(msg) => { - write!(_f, "InvalidInviteCode")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::HandleNotAvailable(msg) => { - write!(_f, "HandleNotAvailable")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::UnsupportedDomain(msg) => { - write!(_f, "UnsupportedDomain")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::UnresolvableDid(msg) => { - write!(_f, "UnresolvableDid")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::IncompatibleDidDoc(msg) => { - write!(_f, "IncompatibleDidDoc")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/create_app_password.rs b/services/types/src/com/atproto/server/create_app_password.rs deleted file mode 100644 index 936e5dd..0000000 --- a/services/types/src/com/atproto/server/create_app_password.rs +++ /dev/null @@ -1,42 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.createAppPassword` namespace. -pub const NSID: &str = "com.atproto.server.createAppPassword"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///A short name for the App Password, to help distinguish them. - pub name: String, - ///If an app password has 'privileged' access to possibly sensitive account state. Meant for use with trusted clients. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub privileged: core::option::Option, -} -pub type Input = atrium_api::types::Object; -pub type Output = AppPassword; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - AccountTakedown(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::AccountTakedown(msg) => { - write!(_f, "AccountTakedown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AppPasswordData { - pub created_at: atrium_api::types::string::Datetime, - pub name: String, - pub password: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub privileged: core::option::Option, -} -pub type AppPassword = atrium_api::types::Object; diff --git a/services/types/src/com/atproto/server/create_invite_code.rs b/services/types/src/com/atproto/server/create_invite_code.rs deleted file mode 100644 index d7e2741..0000000 --- a/services/types/src/com/atproto/server/create_invite_code.rs +++ /dev/null @@ -1,25 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.createInviteCode` namespace. -pub const NSID: &str = "com.atproto.server.createInviteCode"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub for_account: core::option::Option, - pub use_count: i64, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub code: String, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/create_invite_codes.rs b/services/types/src/com/atproto/server/create_invite_codes.rs deleted file mode 100644 index f3fcf07..0000000 --- a/services/types/src/com/atproto/server/create_invite_codes.rs +++ /dev/null @@ -1,33 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.createInviteCodes` namespace. -pub const NSID: &str = "com.atproto.server.createInviteCodes"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub code_count: i64, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub for_accounts: core::option::Option>, - pub use_count: i64, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub codes: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AccountCodesData { - pub account: String, - pub codes: Vec, -} -pub type AccountCodes = atrium_api::types::Object; diff --git a/services/types/src/com/atproto/server/create_session.rs b/services/types/src/com/atproto/server/create_session.rs deleted file mode 100644 index ebd5e71..0000000 --- a/services/types/src/com/atproto/server/create_session.rs +++ /dev/null @@ -1,63 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.createSession` namespace. -pub const NSID: &str = "com.atproto.server.createSession"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///When true, instead of throwing error for takendown accounts, a valid response with a narrow scoped token will be returned - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub allow_takendown: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub auth_factor_token: core::option::Option, - ///Handle or other identifier supported by the server for the authenticating user. - pub identifier: String, - pub password: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub access_jwt: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub active: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub did_doc: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email_auth_factor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email_confirmed: core::option::Option, - pub handle: atrium_api::types::string::Handle, - pub refresh_jwt: String, - ///If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - AccountTakedown(Option), - AuthFactorTokenRequired(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::AccountTakedown(msg) => { - write!(_f, "AccountTakedown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::AuthFactorTokenRequired(msg) => { - write!(_f, "AuthFactorTokenRequired")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/deactivate_account.rs b/services/types/src/com/atproto/server/deactivate_account.rs deleted file mode 100644 index ec465e1..0000000 --- a/services/types/src/com/atproto/server/deactivate_account.rs +++ /dev/null @@ -1,19 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.deactivateAccount` namespace. -pub const NSID: &str = "com.atproto.server.deactivateAccount"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///A recommendation to server as to how long they should hold onto the deactivated account before deleting. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub delete_after: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/defs.rs b/services/types/src/com/atproto/server/defs.rs deleted file mode 100644 index fd043b7..0000000 --- a/services/types/src/com/atproto/server/defs.rs +++ /dev/null @@ -1,21 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InviteCodeData { - pub available: i64, - pub code: String, - pub created_at: atrium_api::types::string::Datetime, - pub created_by: String, - pub disabled: bool, - pub for_account: String, - pub uses: Vec, -} -pub type InviteCode = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InviteCodeUseData { - pub used_at: atrium_api::types::string::Datetime, - pub used_by: atrium_api::types::string::Did, -} -pub type InviteCodeUse = atrium_api::types::Object; diff --git a/services/types/src/com/atproto/server/delete_account.rs b/services/types/src/com/atproto/server/delete_account.rs deleted file mode 100644 index a98566e..0000000 --- a/services/types/src/com/atproto/server/delete_account.rs +++ /dev/null @@ -1,36 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.deleteAccount` namespace. -pub const NSID: &str = "com.atproto.server.deleteAccount"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub did: atrium_api::types::string::Did, - pub password: String, - pub token: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ExpiredToken(Option), - InvalidToken(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::ExpiredToken(msg) => { - write!(_f, "ExpiredToken")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::InvalidToken(msg) => { - write!(_f, "InvalidToken")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/delete_session.rs b/services/types/src/com/atproto/server/delete_session.rs deleted file mode 100644 index 8ce2d7b..0000000 --- a/services/types/src/com/atproto/server/delete_session.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.deleteSession` namespace. -pub const NSID: &str = "com.atproto.server.deleteSession"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/describe_server.rs b/services/types/src/com/atproto/server/describe_server.rs deleted file mode 100644 index e5efc0e..0000000 --- a/services/types/src/com/atproto/server/describe_server.rs +++ /dev/null @@ -1,47 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.describeServer` namespace. -pub const NSID: &str = "com.atproto.server.describeServer"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///List of domain suffixes that can be used in account handles. - pub available_user_domains: Vec, - ///Contact information - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub contact: core::option::Option, - pub did: atrium_api::types::string::Did, - ///If true, an invite code must be supplied to create an account on this instance. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invite_code_required: core::option::Option, - ///URLs of service policy documents. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub links: core::option::Option, - ///If true, a phone verification token must be supplied to create an account on this instance. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub phone_verification_required: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ContactData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email: core::option::Option, -} -pub type Contact = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LinksData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub privacy_policy: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub terms_of_service: core::option::Option, -} -pub type Links = atrium_api::types::Object; diff --git a/services/types/src/com/atproto/server/get_account_invite_codes.rs b/services/types/src/com/atproto/server/get_account_invite_codes.rs deleted file mode 100644 index 3020ad3..0000000 --- a/services/types/src/com/atproto/server/get_account_invite_codes.rs +++ /dev/null @@ -1,37 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.getAccountInviteCodes` namespace. -pub const NSID: &str = "com.atproto.server.getAccountInviteCodes"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Controls whether any new 'earned' but not 'created' invites should be created. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub create_available: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub include_used: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub codes: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - DuplicateCreate(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::DuplicateCreate(msg) => { - write!(_f, "DuplicateCreate")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/get_service_auth.rs b/services/types/src/com/atproto/server/get_service_auth.rs deleted file mode 100644 index 20ef929..0000000 --- a/services/types/src/com/atproto/server/get_service_auth.rs +++ /dev/null @@ -1,41 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.getServiceAuth` namespace. -pub const NSID: &str = "com.atproto.server.getServiceAuth"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The DID of the service that the token will be used to authenticate with - pub aud: atrium_api::types::string::Did, - ///The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub exp: core::option::Option, - ///Lexicon (XRPC) method to bind the requested token to - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub lxm: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub token: String, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///Indicates that the requested expiration date is not a valid. May be in the past or may be reliant on the requested scopes. - BadExpiration(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::BadExpiration(msg) => { - write!(_f, "BadExpiration")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/get_session.rs b/services/types/src/com/atproto/server/get_session.rs deleted file mode 100644 index 4212676..0000000 --- a/services/types/src/com/atproto/server/get_session.rs +++ /dev/null @@ -1,31 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.getSession` namespace. -pub const NSID: &str = "com.atproto.server.getSession"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub active: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub did_doc: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email_auth_factor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email_confirmed: core::option::Option, - pub handle: atrium_api::types::string::Handle, - ///If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/list_app_passwords.rs b/services/types/src/com/atproto/server/list_app_passwords.rs deleted file mode 100644 index 3856d48..0000000 --- a/services/types/src/com/atproto/server/list_app_passwords.rs +++ /dev/null @@ -1,36 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.listAppPasswords` namespace. -pub const NSID: &str = "com.atproto.server.listAppPasswords"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub passwords: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - AccountTakedown(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::AccountTakedown(msg) => { - write!(_f, "AccountTakedown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AppPasswordData { - pub created_at: atrium_api::types::string::Datetime, - pub name: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub privileged: core::option::Option, -} -pub type AppPassword = atrium_api::types::Object; diff --git a/services/types/src/com/atproto/server/refresh_session.rs b/services/types/src/com/atproto/server/refresh_session.rs deleted file mode 100644 index 5bde010..0000000 --- a/services/types/src/com/atproto/server/refresh_session.rs +++ /dev/null @@ -1,37 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.refreshSession` namespace. -pub const NSID: &str = "com.atproto.server.refreshSession"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub access_jwt: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub active: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub did_doc: core::option::Option, - pub handle: atrium_api::types::string::Handle, - pub refresh_jwt: String, - ///Hosting status of the account. If not specified, then assume 'active'. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - AccountTakedown(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::AccountTakedown(msg) => { - write!(_f, "AccountTakedown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/request_account_delete.rs b/services/types/src/com/atproto/server/request_account_delete.rs deleted file mode 100644 index c2949ea..0000000 --- a/services/types/src/com/atproto/server/request_account_delete.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.requestAccountDelete` namespace. -pub const NSID: &str = "com.atproto.server.requestAccountDelete"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/request_email_confirmation.rs b/services/types/src/com/atproto/server/request_email_confirmation.rs deleted file mode 100644 index dda81d5..0000000 --- a/services/types/src/com/atproto/server/request_email_confirmation.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.requestEmailConfirmation` namespace. -pub const NSID: &str = "com.atproto.server.requestEmailConfirmation"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/request_email_update.rs b/services/types/src/com/atproto/server/request_email_update.rs deleted file mode 100644 index fa7e8ab..0000000 --- a/services/types/src/com/atproto/server/request_email_update.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.requestEmailUpdate` namespace. -pub const NSID: &str = "com.atproto.server.requestEmailUpdate"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub token_required: bool, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/request_password_reset.rs b/services/types/src/com/atproto/server/request_password_reset.rs deleted file mode 100644 index 2714ed1..0000000 --- a/services/types/src/com/atproto/server/request_password_reset.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.requestPasswordReset` namespace. -pub const NSID: &str = "com.atproto.server.requestPasswordReset"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub email: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/reserve_signing_key.rs b/services/types/src/com/atproto/server/reserve_signing_key.rs deleted file mode 100644 index 48a9983..0000000 --- a/services/types/src/com/atproto/server/reserve_signing_key.rs +++ /dev/null @@ -1,26 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.reserveSigningKey` namespace. -pub const NSID: &str = "com.atproto.server.reserveSigningKey"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///The DID to reserve a key for. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub did: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///The public key for the reserved signing key, in did:key serialization. - pub signing_key: String, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/reset_password.rs b/services/types/src/com/atproto/server/reset_password.rs deleted file mode 100644 index f3bdc16..0000000 --- a/services/types/src/com/atproto/server/reset_password.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.resetPassword` namespace. -pub const NSID: &str = "com.atproto.server.resetPassword"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub password: String, - pub token: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ExpiredToken(Option), - InvalidToken(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::ExpiredToken(msg) => { - write!(_f, "ExpiredToken")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::InvalidToken(msg) => { - write!(_f, "InvalidToken")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/revoke_app_password.rs b/services/types/src/com/atproto/server/revoke_app_password.rs deleted file mode 100644 index ed9ed76..0000000 --- a/services/types/src/com/atproto/server/revoke_app_password.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.revokeAppPassword` namespace. -pub const NSID: &str = "com.atproto.server.revokeAppPassword"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub name: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/server/update_email.rs b/services/types/src/com/atproto/server/update_email.rs deleted file mode 100644 index 013bfd4..0000000 --- a/services/types/src/com/atproto/server/update_email.rs +++ /dev/null @@ -1,46 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.updateEmail` namespace. -pub const NSID: &str = "com.atproto.server.updateEmail"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub email: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email_auth_factor: core::option::Option, - ///Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub token: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ExpiredToken(Option), - InvalidToken(Option), - TokenRequired(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::ExpiredToken(msg) => { - write!(_f, "ExpiredToken")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::InvalidToken(msg) => { - write!(_f, "InvalidToken")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::TokenRequired(msg) => { - write!(_f, "TokenRequired")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/sync.rs b/services/types/src/com/atproto/sync.rs deleted file mode 100644 index 31a3ebb..0000000 --- a/services/types/src/com/atproto/sync.rs +++ /dev/null @@ -1,16 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync` namespace. -pub mod get_blob; -pub mod get_blocks; -pub mod get_checkout; -pub mod get_head; -pub mod get_latest_commit; -pub mod get_record; -pub mod get_repo; -pub mod get_repo_status; -pub mod list_blobs; -pub mod list_repos; -pub mod list_repos_by_collection; -pub mod notify_of_update; -pub mod request_crawl; -pub mod subscribe_repos; diff --git a/services/types/src/com/atproto/sync/get_blob.rs b/services/types/src/com/atproto/sync/get_blob.rs deleted file mode 100644 index 991d8fc..0000000 --- a/services/types/src/com/atproto/sync/get_blob.rs +++ /dev/null @@ -1,58 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.getBlob` namespace. -pub const NSID: &str = "com.atproto.sync.getBlob"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The CID of the blob to fetch - pub cid: atrium_api::types::string::Cid, - ///The DID of the account. - pub did: atrium_api::types::string::Did, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - BlobNotFound(Option), - RepoNotFound(Option), - RepoTakendown(Option), - RepoSuspended(Option), - RepoDeactivated(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::BlobNotFound(msg) => { - write!(_f, "BlobNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoNotFound(msg) => { - write!(_f, "RepoNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoTakendown(msg) => { - write!(_f, "RepoTakendown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoSuspended(msg) => { - write!(_f, "RepoSuspended")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoDeactivated(msg) => { - write!(_f, "RepoDeactivated")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/sync/get_blocks.rs b/services/types/src/com/atproto/sync/get_blocks.rs deleted file mode 100644 index 54855f4..0000000 --- a/services/types/src/com/atproto/sync/get_blocks.rs +++ /dev/null @@ -1,57 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.getBlocks` namespace. -pub const NSID: &str = "com.atproto.sync.getBlocks"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub cids: Vec, - ///The DID of the repo. - pub did: atrium_api::types::string::Did, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - BlockNotFound(Option), - RepoNotFound(Option), - RepoTakendown(Option), - RepoSuspended(Option), - RepoDeactivated(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::BlockNotFound(msg) => { - write!(_f, "BlockNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoNotFound(msg) => { - write!(_f, "RepoNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoTakendown(msg) => { - write!(_f, "RepoTakendown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoSuspended(msg) => { - write!(_f, "RepoSuspended")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoDeactivated(msg) => { - write!(_f, "RepoDeactivated")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/sync/get_checkout.rs b/services/types/src/com/atproto/sync/get_checkout.rs deleted file mode 100644 index 2e0af82..0000000 --- a/services/types/src/com/atproto/sync/get_checkout.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.getCheckout` namespace. -pub const NSID: &str = "com.atproto.sync.getCheckout"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The DID of the repo. - pub did: atrium_api::types::string::Did, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/sync/get_head.rs b/services/types/src/com/atproto/sync/get_head.rs deleted file mode 100644 index 3911bd2..0000000 --- a/services/types/src/com/atproto/sync/get_head.rs +++ /dev/null @@ -1,34 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.getHead` namespace. -pub const NSID: &str = "com.atproto.sync.getHead"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The DID of the repo. - pub did: atrium_api::types::string::Did, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub root: atrium_api::types::string::Cid, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - HeadNotFound(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::HeadNotFound(msg) => { - write!(_f, "HeadNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/sync/get_latest_commit.rs b/services/types/src/com/atproto/sync/get_latest_commit.rs deleted file mode 100644 index f775c6e..0000000 --- a/services/types/src/com/atproto/sync/get_latest_commit.rs +++ /dev/null @@ -1,56 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.getLatestCommit` namespace. -pub const NSID: &str = "com.atproto.sync.getLatestCommit"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The DID of the repo. - pub did: atrium_api::types::string::Did, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub cid: atrium_api::types::string::Cid, - pub rev: atrium_api::types::string::Tid, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - RepoNotFound(Option), - RepoTakendown(Option), - RepoSuspended(Option), - RepoDeactivated(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::RepoNotFound(msg) => { - write!(_f, "RepoNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoTakendown(msg) => { - write!(_f, "RepoTakendown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoSuspended(msg) => { - write!(_f, "RepoSuspended")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoDeactivated(msg) => { - write!(_f, "RepoDeactivated")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/sync/get_record.rs b/services/types/src/com/atproto/sync/get_record.rs deleted file mode 100644 index f58e506..0000000 --- a/services/types/src/com/atproto/sync/get_record.rs +++ /dev/null @@ -1,62 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.getRecord` namespace. -pub const NSID: &str = "com.atproto.sync.getRecord"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub collection: atrium_api::types::string::Nsid, - ///DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub commit: core::option::Option, - ///The DID of the repo. - pub did: atrium_api::types::string::Did, - ///Record Key - pub rkey: atrium_api::types::string::RecordKey, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - RecordNotFound(Option), - RepoNotFound(Option), - RepoTakendown(Option), - RepoSuspended(Option), - RepoDeactivated(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::RecordNotFound(msg) => { - write!(_f, "RecordNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoNotFound(msg) => { - write!(_f, "RepoNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoTakendown(msg) => { - write!(_f, "RepoTakendown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoSuspended(msg) => { - write!(_f, "RepoSuspended")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoDeactivated(msg) => { - write!(_f, "RepoDeactivated")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/sync/get_repo.rs b/services/types/src/com/atproto/sync/get_repo.rs deleted file mode 100644 index 43a4691..0000000 --- a/services/types/src/com/atproto/sync/get_repo.rs +++ /dev/null @@ -1,52 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.getRepo` namespace. -pub const NSID: &str = "com.atproto.sync.getRepo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The DID of the repo. - pub did: atrium_api::types::string::Did, - ///The revision ('rev') of the repo to create a diff from. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub since: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - RepoNotFound(Option), - RepoTakendown(Option), - RepoSuspended(Option), - RepoDeactivated(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::RepoNotFound(msg) => { - write!(_f, "RepoNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoTakendown(msg) => { - write!(_f, "RepoTakendown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoSuspended(msg) => { - write!(_f, "RepoSuspended")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoDeactivated(msg) => { - write!(_f, "RepoDeactivated")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/sync/get_repo_status.rs b/services/types/src/com/atproto/sync/get_repo_status.rs deleted file mode 100644 index b90f998..0000000 --- a/services/types/src/com/atproto/sync/get_repo_status.rs +++ /dev/null @@ -1,41 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.getRepoStatus` namespace. -pub const NSID: &str = "com.atproto.sync.getRepoStatus"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The DID of the repo. - pub did: atrium_api::types::string::Did, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub active: bool, - pub did: atrium_api::types::string::Did, - ///Optional field, the current rev of the repo, if active=true - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rev: core::option::Option, - ///If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - RepoNotFound(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::RepoNotFound(msg) => { - write!(_f, "RepoNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/sync/list_blobs.rs b/services/types/src/com/atproto/sync/list_blobs.rs deleted file mode 100644 index f2d3f48..0000000 --- a/services/types/src/com/atproto/sync/list_blobs.rs +++ /dev/null @@ -1,64 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.listBlobs` namespace. -pub const NSID: &str = "com.atproto.sync.listBlobs"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///The DID of the repo. - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Optional revision of the repo to list blobs since. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub since: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub cids: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - RepoNotFound(Option), - RepoTakendown(Option), - RepoSuspended(Option), - RepoDeactivated(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::RepoNotFound(msg) => { - write!(_f, "RepoNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoTakendown(msg) => { - write!(_f, "RepoTakendown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoSuspended(msg) => { - write!(_f, "RepoSuspended")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoDeactivated(msg) => { - write!(_f, "RepoDeactivated")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/com/atproto/sync/list_repos.rs b/services/types/src/com/atproto/sync/list_repos.rs deleted file mode 100644 index 0a9bf9a..0000000 --- a/services/types/src/com/atproto/sync/list_repos.rs +++ /dev/null @@ -1,42 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.listRepos` namespace. -pub const NSID: &str = "com.atproto.sync.listRepos"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub repos: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RepoData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub active: core::option::Option, - pub did: atrium_api::types::string::Did, - ///Current repo commit CID - pub head: atrium_api::types::string::Cid, - pub rev: atrium_api::types::string::Tid, - ///If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, -} -pub type Repo = atrium_api::types::Object; diff --git a/services/types/src/com/atproto/sync/list_repos_by_collection.rs b/services/types/src/com/atproto/sync/list_repos_by_collection.rs deleted file mode 100644 index 9343acf..0000000 --- a/services/types/src/com/atproto/sync/list_repos_by_collection.rs +++ /dev/null @@ -1,36 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.listReposByCollection` namespace. -pub const NSID: &str = "com.atproto.sync.listReposByCollection"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub collection: atrium_api::types::string::Nsid, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Maximum size of response set. Recommend setting a large maximum (1000+) when enumerating large DID lists. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub repos: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RepoData { - pub did: atrium_api::types::string::Did, -} -pub type Repo = atrium_api::types::Object; diff --git a/services/types/src/com/atproto/sync/notify_of_update.rs b/services/types/src/com/atproto/sync/notify_of_update.rs deleted file mode 100644 index 7b29ad2..0000000 --- a/services/types/src/com/atproto/sync/notify_of_update.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.notifyOfUpdate` namespace. -pub const NSID: &str = "com.atproto.sync.notifyOfUpdate"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Hostname of the current service (usually a PDS) that is notifying of update. - pub hostname: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/sync/request_crawl.rs b/services/types/src/com/atproto/sync/request_crawl.rs deleted file mode 100644 index b5585a8..0000000 --- a/services/types/src/com/atproto/sync/request_crawl.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.requestCrawl` namespace. -pub const NSID: &str = "com.atproto.sync.requestCrawl"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Hostname of the current service (eg, PDS) that is requesting to be crawled. - pub hostname: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/sync/subscribe_repos.rs b/services/types/src/com/atproto/sync/subscribe_repos.rs deleted file mode 100644 index ade5735..0000000 --- a/services/types/src/com/atproto/sync/subscribe_repos.rs +++ /dev/null @@ -1,161 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.subscribeRepos` namespace. -pub const NSID: &str = "com.atproto.sync.subscribeRepos"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The last known event seq number to backfill from. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - FutureCursor(Option), - ///If the consumer of the stream can not keep up with events, and a backlog gets too large, the server will drop the connection. - ConsumerTooSlow(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::FutureCursor(msg) => { - write!(_f, "FutureCursor")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::ConsumerTooSlow(msg) => { - write!(_f, "ConsumerTooSlow")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} -///Represents a change to an account's status on a host (eg, PDS or Relay). The semantics of this event are that the status is at the host which emitted the event, not necessarily that at the currently active PDS. Eg, a Relay takedown would emit a takedown with active=false, even if the PDS is still active. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AccountData { - ///Indicates that the account has a repository which can be fetched from the host that emitted this event. - pub active: bool, - pub did: atrium_api::types::string::Did, - pub seq: i64, - ///If active=false, this optional field indicates a reason for why the account is not active. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, - pub time: atrium_api::types::string::Datetime, -} -pub type Account = atrium_api::types::Object; -///Represents an update of repository state. Note that empty commits are allowed, which include no repo data changes, but an update to rev and signature. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct CommitData { - pub blobs: Vec, - ///CAR file containing relevant blocks, as a diff since the previous repo state. - #[serde(with = "serde_bytes")] - pub blocks: Vec, - ///Repo commit object CID. - pub commit: atrium_api::types::CidLink, - pub ops: Vec, - ///DEPRECATED -- unused. WARNING -- nullable and optional; stick with optional to ensure golang interoperability. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub prev: core::option::Option, - ///DEPRECATED -- unused - pub rebase: bool, - ///The repo this event comes from. - pub repo: atrium_api::types::string::Did, - ///The rev of the emitted commit. Note that this information is also in the commit object included in blocks, unless this is a tooBig event. - pub rev: atrium_api::types::string::Tid, - ///The stream sequence number of this message. - pub seq: i64, - ///The rev of the last emitted commit from this repo (if any). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub since: core::option::Option, - ///Timestamp of when this message was originally broadcast. - pub time: atrium_api::types::string::Datetime, - ///Indicates that this commit contained too many ops, or data size was too large. Consumers will need to make a separate request to get missing data. - pub too_big: bool, -} -pub type Commit = atrium_api::types::Object; -///DEPRECATED -- Use #identity event instead -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct HandleData { - pub did: atrium_api::types::string::Did, - pub handle: atrium_api::types::string::Handle, - pub seq: i64, - pub time: atrium_api::types::string::Datetime, -} -pub type Handle = atrium_api::types::Object; -///Represents a change to an account's identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct IdentityData { - pub did: atrium_api::types::string::Did, - ///The current handle for the account, or 'handle.invalid' if validation fails. This field is optional, might have been validated or passed-through from an upstream source. Semantics and behaviors for PDS vs Relay may evolve in the future; see atproto specs for more details. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub handle: core::option::Option, - pub seq: i64, - pub time: atrium_api::types::string::Datetime, -} -pub type Identity = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InfoData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub message: core::option::Option, - pub name: String, -} -pub type Info = atrium_api::types::Object; -///DEPRECATED -- Use #account event instead -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MigrateData { - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub migrate_to: core::option::Option, - pub seq: i64, - pub time: atrium_api::types::string::Datetime, -} -pub type Migrate = atrium_api::types::Object; -///A repo operation, ie a mutation of a single record. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RepoOpData { - pub action: String, - ///For creates and updates, the new record CID. For deletions, null. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - pub path: String, -} -pub type RepoOp = atrium_api::types::Object; -///DEPRECATED -- Use #account event instead -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct TombstoneData { - pub did: atrium_api::types::string::Did, - pub seq: i64, - pub time: atrium_api::types::string::Datetime, -} -pub type Tombstone = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum Message { - #[serde(rename = "com.atproto.sync.subscribeRepos#commit")] - Commit(Box), - #[serde(rename = "com.atproto.sync.subscribeRepos#identity")] - Identity(Box), - #[serde(rename = "com.atproto.sync.subscribeRepos#account")] - Account(Box), - #[serde(rename = "com.atproto.sync.subscribeRepos#handle")] - Handle(Box), - #[serde(rename = "com.atproto.sync.subscribeRepos#migrate")] - Migrate(Box), - #[serde(rename = "com.atproto.sync.subscribeRepos#tombstone")] - Tombstone(Box), - #[serde(rename = "com.atproto.sync.subscribeRepos#info")] - Info(Box), -} diff --git a/services/types/src/com/atproto/temp.rs b/services/types/src/com/atproto/temp.rs deleted file mode 100644 index daafee4..0000000 --- a/services/types/src/com/atproto/temp.rs +++ /dev/null @@ -1,6 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.temp` namespace. -pub mod add_reserved_handle; -pub mod check_signup_queue; -pub mod fetch_labels; -pub mod request_phone_verification; diff --git a/services/types/src/com/atproto/temp/add_reserved_handle.rs b/services/types/src/com/atproto/temp/add_reserved_handle.rs deleted file mode 100644 index 8bd32e4..0000000 --- a/services/types/src/com/atproto/temp/add_reserved_handle.rs +++ /dev/null @@ -1,21 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.temp.addReservedHandle` namespace. -pub const NSID: &str = "com.atproto.temp.addReservedHandle"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub handle: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData {} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/temp/check_signup_queue.rs b/services/types/src/com/atproto/temp/check_signup_queue.rs deleted file mode 100644 index 5994de2..0000000 --- a/services/types/src/com/atproto/temp/check_signup_queue.rs +++ /dev/null @@ -1,21 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.temp.checkSignupQueue` namespace. -pub const NSID: &str = "com.atproto.temp.checkSignupQueue"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub activated: bool, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub estimated_time_ms: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub place_in_queue: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/temp/fetch_labels.rs b/services/types/src/com/atproto/temp/fetch_labels.rs deleted file mode 100644 index 262a388..0000000 --- a/services/types/src/com/atproto/temp/fetch_labels.rs +++ /dev/null @@ -1,26 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.temp.fetchLabels` namespace. -pub const NSID: &str = "com.atproto.temp.fetchLabels"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub since: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub labels: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/com/atproto/temp/request_phone_verification.rs b/services/types/src/com/atproto/temp/request_phone_verification.rs deleted file mode 100644 index 4b9e334..0000000 --- a/services/types/src/com/atproto/temp/request_phone_verification.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.temp.requestPhoneVerification` namespace. -pub const NSID: &str = "com.atproto.temp.requestPhoneVerification"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub phone_number: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/fm.rs b/services/types/src/fm.rs deleted file mode 100644 index 879c381..0000000 --- a/services/types/src/fm.rs +++ /dev/null @@ -1,3 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm` namespace. -pub mod teal; diff --git a/services/types/src/fm/teal.rs b/services/types/src/fm/teal.rs deleted file mode 100644 index 7044956..0000000 --- a/services/types/src/fm/teal.rs +++ /dev/null @@ -1,3 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal` namespace. -pub mod alpha; diff --git a/services/types/src/fm/teal/alpha.rs b/services/types/src/fm/teal/alpha.rs deleted file mode 100644 index c19034c..0000000 --- a/services/types/src/fm/teal/alpha.rs +++ /dev/null @@ -1,6 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha` namespace. -pub mod actor; -pub mod feed; -pub mod music; -pub mod stats; diff --git a/services/types/src/fm/teal/alpha/actor.rs b/services/types/src/fm/teal/alpha/actor.rs deleted file mode 100644 index 40334a8..0000000 --- a/services/types/src/fm/teal/alpha/actor.rs +++ /dev/null @@ -1,20 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.actor` namespace. -pub mod defs; -pub mod get_profile; -pub mod get_profiles; -pub mod profile; -pub mod search_actors; -pub mod status; -#[derive(Debug)] -pub struct Profile; -impl atrium_api::types::Collection for Profile { - const NSID: &'static str = "fm.teal.alpha.actor.profile"; - type Record = profile::Record; -} -#[derive(Debug)] -pub struct Status; -impl atrium_api::types::Collection for Status { - const NSID: &'static str = "fm.teal.alpha.actor.status"; - type Record = status::Record; -} diff --git a/services/types/src/fm/teal/alpha/actor/defs.rs b/services/types/src/fm/teal/alpha/actor/defs.rs deleted file mode 100644 index b003d54..0000000 --- a/services/types/src/fm/teal/alpha/actor/defs.rs +++ /dev/null @@ -1,50 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.actor.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MiniProfileViewData { - ///IPLD of the avatar - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - ///The decentralized identifier of the actor - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub did: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub display_name: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub handle: core::option::Option, -} -pub type MiniProfileView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ProfileViewData { - ///IPLD of the avatar - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - ///IPLD of the banner image - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub banner: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option, - ///Free-form profile description text. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - ///Annotations of text in the profile description (mentions, URLs, hashtags, etc). May be changed to another (backwards compatible) lexicon. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description_facets: core::option::Option< - Vec, - >, - ///The decentralized identifier of the actor - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub did: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub display_name: core::option::Option, - ///The user's most recent item featured on their profile. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub featured_item: core::option::Option< - crate::fm::teal::alpha::actor::profile::FeaturedItem, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, -} -pub type ProfileView = atrium_api::types::Object; diff --git a/services/types/src/fm/teal/alpha/actor/get_profile.rs b/services/types/src/fm/teal/alpha/actor/get_profile.rs deleted file mode 100644 index 948ab0c..0000000 --- a/services/types/src/fm/teal/alpha/actor/get_profile.rs +++ /dev/null @@ -1,25 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.actor.getProfile` namespace. -//!This lexicon is in a not officially released state. It is subject to change. | Retrieves a play given an author DID and record key. -pub const NSID: &str = "fm.teal.alpha.actor.getProfile"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The author's DID - pub actor: atrium_api::types::string::AtIdentifier, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub actor: crate::fm::teal::alpha::actor::defs::ProfileView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/fm/teal/alpha/actor/get_profiles.rs b/services/types/src/fm/teal/alpha/actor/get_profiles.rs deleted file mode 100644 index 5023ad3..0000000 --- a/services/types/src/fm/teal/alpha/actor/get_profiles.rs +++ /dev/null @@ -1,25 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.actor.getProfiles` namespace. -//!This lexicon is in a not officially released state. It is subject to change. | Retrieves the associated profile. -pub const NSID: &str = "fm.teal.alpha.actor.getProfiles"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Array of actor DIDs - pub actors: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub actors: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/fm/teal/alpha/actor/profile.rs b/services/types/src/fm/teal/alpha/actor/profile.rs deleted file mode 100644 index e99b01e..0000000 --- a/services/types/src/fm/teal/alpha/actor/profile.rs +++ /dev/null @@ -1,43 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.actor.profile` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - ///Small image to be displayed next to posts from account. AKA, 'profile picture' - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - ///Larger horizontal image to display behind profile view. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub banner: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option, - ///Free-form profile description text. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - ///Annotations of text in the profile description (mentions, URLs, hashtags, etc). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description_facets: core::option::Option< - Vec, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub display_name: core::option::Option, - ///The user's most recent item featured on their profile. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub featured_item: core::option::Option, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct FeaturedItemData { - ///The Musicbrainz ID of the item - pub mbid: String, - ///The type of the item. Must be a valid Musicbrainz type, e.g. album, track, recording, etc. - pub r#type: String, -} -pub type FeaturedItem = atrium_api::types::Object; diff --git a/services/types/src/fm/teal/alpha/actor/search_actors.rs b/services/types/src/fm/teal/alpha/actor/search_actors.rs deleted file mode 100644 index 94e0cd0..0000000 --- a/services/types/src/fm/teal/alpha/actor/search_actors.rs +++ /dev/null @@ -1,34 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.actor.searchActors` namespace. -//!This lexicon is in a not officially released state. It is subject to change. | Searches for actors based on profile contents. -pub const NSID: &str = "fm.teal.alpha.actor.searchActors"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Cursor for pagination - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///The maximum number of actors to return - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///The search query - pub q: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub actors: Vec, - ///Cursor for pagination - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/fm/teal/alpha/actor/status.rs b/services/types/src/fm/teal/alpha/actor/status.rs deleted file mode 100644 index c1fb374..0000000 --- a/services/types/src/fm/teal/alpha/actor/status.rs +++ /dev/null @@ -1,20 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.actor.status` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - ///The unix timestamp of the expiry time of the item. If unavailable, default to 10 minutes past the start time. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub expiry: core::option::Option, - pub item: crate::fm::teal::alpha::feed::defs::PlayView, - ///The unix timestamp of when the item was recorded - pub time: atrium_api::types::string::Datetime, -} -pub type Record = atrium_api::types::Object; -pub type Main = Record; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/services/types/src/fm/teal/alpha/feed.rs b/services/types/src/fm/teal/alpha/feed.rs deleted file mode 100644 index 091fca3..0000000 --- a/services/types/src/fm/teal/alpha/feed.rs +++ /dev/null @@ -1,12 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.feed` namespace. -pub mod defs; -pub mod get_actor_feed; -pub mod get_play; -pub mod play; -#[derive(Debug)] -pub struct Play; -impl atrium_api::types::Collection for Play { - const NSID: &'static str = "fm.teal.alpha.feed.play"; - type Record = play::Record; -} diff --git a/services/types/src/fm/teal/alpha/feed/defs.rs b/services/types/src/fm/teal/alpha/feed/defs.rs deleted file mode 100644 index 18f6882..0000000 --- a/services/types/src/fm/teal/alpha/feed/defs.rs +++ /dev/null @@ -1,52 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.feed.defs` namespace. -//!This lexicon is in a not officially released state. It is subject to change. | Misc. items related to feeds. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ArtistData { - ///The Musicbrainz ID of the artist - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub artist_mb_id: core::option::Option, - ///The name of the artist - pub artist_name: String, -} -pub type Artist = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct PlayViewData { - ///Array of artists in order of original appearance. - pub artists: Vec, - ///The length of the track in seconds - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub duration: core::option::Option, - ///The ISRC code associated with the recording - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub isrc: core::option::Option, - ///The base domain of the music service. e.g. music.apple.com, tidal.com, spotify.com. Defaults to 'local' if not provided. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub music_service_base_domain: core::option::Option, - ///The URL associated with this track - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub origin_url: core::option::Option, - ///The unix timestamp of when the track was played - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub played_time: core::option::Option, - ///The Musicbrainz recording ID of the track - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub recording_mb_id: core::option::Option, - ///The Musicbrainz release ID - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub release_mb_id: core::option::Option, - ///The name of the release/album - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub release_name: core::option::Option, - ///A user-agent style string specifying the user agent. e.g. tealtracker/0.0.1b (Linux; Android 13; SM-A715F). Defaults to 'manual/unknown' if not provided. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub submission_client_agent: core::option::Option, - ///The Musicbrainz ID of the track - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub track_mb_id: core::option::Option, - ///The name of the track - pub track_name: String, -} -pub type PlayView = atrium_api::types::Object; diff --git a/services/types/src/fm/teal/alpha/feed/get_actor_feed.rs b/services/types/src/fm/teal/alpha/feed/get_actor_feed.rs deleted file mode 100644 index 47bfc35..0000000 --- a/services/types/src/fm/teal/alpha/feed/get_actor_feed.rs +++ /dev/null @@ -1,31 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.feed.getActorFeed` namespace. -//!This lexicon is in a not officially released state. It is subject to change. | Retrieves multiple plays from the index or via an author's DID. -pub const NSID: &str = "fm.teal.alpha.feed.getActorFeed"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The author's DID for the play - pub author_did: atrium_api::types::string::AtIdentifier, - ///The cursor to start the query from - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///The upper limit of tracks to get per request. Default is 20, max is 50. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub plays: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/fm/teal/alpha/feed/get_play.rs b/services/types/src/fm/teal/alpha/feed/get_play.rs deleted file mode 100644 index fd3d14c..0000000 --- a/services/types/src/fm/teal/alpha/feed/get_play.rs +++ /dev/null @@ -1,27 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.feed.getPlay` namespace. -//!This lexicon is in a not officially released state. It is subject to change. | Retrieves a play given an author DID and record key. -pub const NSID: &str = "fm.teal.alpha.feed.getPlay"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The author's DID for the play - pub author_did: atrium_api::types::string::AtIdentifier, - ///The record key of the play - pub rkey: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub play: crate::fm::teal::alpha::feed::defs::PlayView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/fm/teal/alpha/feed/play.rs b/services/types/src/fm/teal/alpha/feed/play.rs deleted file mode 100644 index 55fcbf4..0000000 --- a/services/types/src/fm/teal/alpha/feed/play.rs +++ /dev/null @@ -1,55 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.feed.play` namespace. -//!This lexicon is in a not officially released state. It is subject to change. | A declaration of a teal.fm play. Plays are submitted as a result of a user listening to a track. Plays should be marked as tracked when a user has listened to the entire track if it's under 2 minutes long, or half of the track's duration up to 4 minutes, whichever is longest. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - ///Array of Musicbrainz artist IDs. Prefer using 'artists'. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub artist_mb_ids: core::option::Option>, - ///Array of artist names in order of original appearance. Prefer using 'artists'. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub artist_names: core::option::Option>, - ///Array of artists in order of original appearance. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub artists: core::option::Option>, - ///The length of the track in seconds - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub duration: core::option::Option, - ///The ISRC code associated with the recording - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub isrc: core::option::Option, - ///The base domain of the music service. e.g. music.apple.com, tidal.com, spotify.com. Defaults to 'local' if unavailable or not provided. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub music_service_base_domain: core::option::Option, - ///The URL associated with this track - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub origin_url: core::option::Option, - ///The unix timestamp of when the track was played - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub played_time: core::option::Option, - ///The Musicbrainz recording ID of the track - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub recording_mb_id: core::option::Option, - ///The Musicbrainz release ID - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub release_mb_id: core::option::Option, - ///The name of the release/album - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub release_name: core::option::Option, - ///A metadata string specifying the user agent where the format is `/ (; ; )`. If string is provided, only `app-identifier` and `version` are required. `app-identifier` is recommended to be in reverse dns format. Defaults to 'manual/unknown' if unavailable or not provided. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub submission_client_agent: core::option::Option, - ///The Musicbrainz ID of the track - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub track_mb_id: core::option::Option, - ///The name of the track - pub track_name: String, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/services/types/src/fm/teal/alpha/music.rs b/services/types/src/fm/teal/alpha/music.rs deleted file mode 100644 index 01c208c..0000000 --- a/services/types/src/fm/teal/alpha/music.rs +++ /dev/null @@ -1,7 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.music` namespace. -pub mod defs; -pub mod get_top_artists; -pub mod get_top_releases; -pub mod get_user_top_artists; -pub mod get_user_top_releases; diff --git a/services/types/src/fm/teal/alpha/music/defs.rs b/services/types/src/fm/teal/alpha/music/defs.rs deleted file mode 100644 index 95261f7..0000000 --- a/services/types/src/fm/teal/alpha/music/defs.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.music.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ArtistViewData { - ///MusicBrainz artist ID - pub mbid: String, - ///Artist name - pub name: String, - ///Total number of plays for this artist - pub play_count: i64, -} -pub type ArtistView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordingViewData { - ///MusicBrainz recording ID - pub mbid: String, - ///Recording/track name - pub name: String, - ///Total number of plays for this recording - pub play_count: i64, -} -pub type RecordingView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ReleaseViewData { - ///MusicBrainz release ID - pub mbid: String, - ///Release/album name - pub name: String, - ///Total number of plays for this release - pub play_count: i64, -} -pub type ReleaseView = atrium_api::types::Object; diff --git a/services/types/src/fm/teal/alpha/music/get_top_artists.rs b/services/types/src/fm/teal/alpha/music/get_top_artists.rs deleted file mode 100644 index 69b831a..0000000 --- a/services/types/src/fm/teal/alpha/music/get_top_artists.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.music.getTopArtists` namespace. -//!Get top artists by play count -pub const NSID: &str = "fm.teal.alpha.music.getTopArtists"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Pagination cursor - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Number of artists to return - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Time period for top artists - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub period: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub artists: Vec, - ///Next page cursor - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/fm/teal/alpha/music/get_top_releases.rs b/services/types/src/fm/teal/alpha/music/get_top_releases.rs deleted file mode 100644 index ef78981..0000000 --- a/services/types/src/fm/teal/alpha/music/get_top_releases.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.music.getTopReleases` namespace. -//!Get top releases/albums by play count -pub const NSID: &str = "fm.teal.alpha.music.getTopReleases"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Pagination cursor - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Number of releases to return - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Time period for top releases - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub period: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///Next page cursor - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub releases: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/fm/teal/alpha/music/get_user_top_artists.rs b/services/types/src/fm/teal/alpha/music/get_user_top_artists.rs deleted file mode 100644 index 5c01427..0000000 --- a/services/types/src/fm/teal/alpha/music/get_user_top_artists.rs +++ /dev/null @@ -1,37 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.music.getUserTopArtists` namespace. -//!Get a user's top artists by play count -pub const NSID: &str = "fm.teal.alpha.music.getUserTopArtists"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The user's DID or handle - pub actor: atrium_api::types::string::AtIdentifier, - ///Pagination cursor - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Number of artists to return - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Time period for top artists - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub period: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub artists: Vec, - ///Next page cursor - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/fm/teal/alpha/music/get_user_top_releases.rs b/services/types/src/fm/teal/alpha/music/get_user_top_releases.rs deleted file mode 100644 index 7e5077a..0000000 --- a/services/types/src/fm/teal/alpha/music/get_user_top_releases.rs +++ /dev/null @@ -1,37 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.music.getUserTopReleases` namespace. -//!Get a user's top releases/albums by play count -pub const NSID: &str = "fm.teal.alpha.music.getUserTopReleases"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The user's DID or handle - pub actor: atrium_api::types::string::AtIdentifier, - ///Pagination cursor - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Number of releases to return - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Time period for top releases - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub period: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///Next page cursor - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub releases: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/fm/teal/alpha/stats.rs b/services/types/src/fm/teal/alpha/stats.rs deleted file mode 100644 index 8fa387f..0000000 --- a/services/types/src/fm/teal/alpha/stats.rs +++ /dev/null @@ -1,8 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.stats` namespace. -pub mod defs; -pub mod get_latest; -pub mod get_top_artists; -pub mod get_top_releases; -pub mod get_user_top_artists; -pub mod get_user_top_releases; diff --git a/services/types/src/fm/teal/alpha/stats/defs.rs b/services/types/src/fm/teal/alpha/stats/defs.rs deleted file mode 100644 index 39a33c9..0000000 --- a/services/types/src/fm/teal/alpha/stats/defs.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.stats.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ArtistViewData { - ///MusicBrainz artist ID - pub mbid: String, - ///Artist name - pub name: String, - ///Total number of plays for this artist - pub play_count: i64, -} -pub type ArtistView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordingViewData { - ///MusicBrainz recording ID - pub mbid: String, - ///Recording/track name - pub name: String, - ///Total number of plays for this recording - pub play_count: i64, -} -pub type RecordingView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ReleaseViewData { - ///MusicBrainz release ID - pub mbid: String, - ///Release/album name - pub name: String, - ///Total number of plays for this release - pub play_count: i64, -} -pub type ReleaseView = atrium_api::types::Object; diff --git a/services/types/src/fm/teal/alpha/stats/get_latest.rs b/services/types/src/fm/teal/alpha/stats/get_latest.rs deleted file mode 100644 index c398bae..0000000 --- a/services/types/src/fm/teal/alpha/stats/get_latest.rs +++ /dev/null @@ -1,25 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.stats.getLatest` namespace. -pub const NSID: &str = "fm.teal.alpha.stats.getLatest"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Number of latest plays to return - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub plays: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/fm/teal/alpha/stats/get_top_artists.rs b/services/types/src/fm/teal/alpha/stats/get_top_artists.rs deleted file mode 100644 index 7890067..0000000 --- a/services/types/src/fm/teal/alpha/stats/get_top_artists.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.stats.getTopArtists` namespace. -//!Get top artists by play count -pub const NSID: &str = "fm.teal.alpha.stats.getTopArtists"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Pagination cursor - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Number of artists to return - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Time period for top artists - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub period: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub artists: Vec, - ///Next page cursor - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/fm/teal/alpha/stats/get_top_releases.rs b/services/types/src/fm/teal/alpha/stats/get_top_releases.rs deleted file mode 100644 index c83c1f8..0000000 --- a/services/types/src/fm/teal/alpha/stats/get_top_releases.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.stats.getTopReleases` namespace. -//!Get top releases/albums by play count -pub const NSID: &str = "fm.teal.alpha.stats.getTopReleases"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Pagination cursor - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Number of releases to return - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Time period for top releases - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub period: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///Next page cursor - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub releases: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/fm/teal/alpha/stats/get_user_top_artists.rs b/services/types/src/fm/teal/alpha/stats/get_user_top_artists.rs deleted file mode 100644 index d4533ec..0000000 --- a/services/types/src/fm/teal/alpha/stats/get_user_top_artists.rs +++ /dev/null @@ -1,37 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.stats.getUserTopArtists` namespace. -//!Get a user's top artists by play count -pub const NSID: &str = "fm.teal.alpha.stats.getUserTopArtists"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The user's DID or handle - pub actor: atrium_api::types::string::AtIdentifier, - ///Pagination cursor - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Number of artists to return - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Time period for top artists - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub period: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub artists: Vec, - ///Next page cursor - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/fm/teal/alpha/stats/get_user_top_releases.rs b/services/types/src/fm/teal/alpha/stats/get_user_top_releases.rs deleted file mode 100644 index 34a8fff..0000000 --- a/services/types/src/fm/teal/alpha/stats/get_user_top_releases.rs +++ /dev/null @@ -1,37 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `fm.teal.alpha.stats.getUserTopReleases` namespace. -//!Get a user's top releases/albums by play count -pub const NSID: &str = "fm.teal.alpha.stats.getUserTopReleases"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The user's DID or handle - pub actor: atrium_api::types::string::AtIdentifier, - ///Pagination cursor - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Number of releases to return - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Time period for top releases - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub period: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///Next page cursor - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub releases: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/jobs.rs b/services/types/src/jobs.rs deleted file mode 100644 index 17841ee..0000000 --- a/services/types/src/jobs.rs +++ /dev/null @@ -1,70 +0,0 @@ -use chrono::{DateTime, Utc}; -use serde::{Deserialize, Serialize}; -use uuid::Uuid; - -/// CAR import job data for Redis queue -#[derive(Debug, Clone, Serialize, Deserialize)] -pub struct CarImportJob { - /// Unique identifier for this job - pub request_id: Uuid, - /// Identity to import (handle or DID) - pub identity: String, - /// Optional revision/cursor for incremental imports - pub since: Option, - /// When the job was created - pub created_at: DateTime, - /// Optional description for tracking - pub description: Option, -} - -/// Job status tracking -#[derive(Debug, Clone, Serialize, Deserialize)] -pub struct CarImportJobStatus { - /// Current status of the job - pub status: JobStatus, - /// When the job was created - pub created_at: DateTime, - /// When processing started (if applicable) - pub started_at: Option>, - /// When the job completed (if applicable) - pub completed_at: Option>, - /// Error message if failed - pub error_message: Option, - /// Current progress information - pub progress: Option, -} - -/// Job status enumeration -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(rename_all = "lowercase")] -pub enum JobStatus { - Pending, - Processing, - Completed, - Failed, -} - -/// Progress information for long-running jobs -#[derive(Debug, Clone, Serialize, Deserialize)] -pub struct JobProgress { - /// Current step description - pub step: String, - /// User DID (if resolved) - pub user_did: Option, - /// PDS host (if discovered) - pub pds_host: Option, - /// CAR file size in bytes (if fetched) - pub car_size_bytes: Option, - /// Number of IPLD blocks processed - pub blocks_processed: Option, -} - -/// Redis queue constants -pub mod queue_keys { - pub const CAR_IMPORT_JOBS: &str = "car_import_jobs"; - pub const CAR_IMPORT_FAILED: &str = "car_import_failed"; - - pub fn job_status_key(job_id: &uuid::Uuid) -> String { - format!("car_import_status:{}", job_id) - } -} \ No newline at end of file diff --git a/services/types/src/lib.rs b/services/types/src/lib.rs deleted file mode 100644 index 6c01afa..0000000 --- a/services/types/src/lib.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -pub mod record; -pub mod client; -pub mod tools; -pub mod app; -pub mod chat; -pub mod fm; -pub mod com; - -// Manual modules for job queue types -pub mod jobs; diff --git a/services/types/src/record.rs b/services/types/src/record.rs deleted file mode 100644 index 677b6d8..0000000 --- a/services/types/src/record.rs +++ /dev/null @@ -1,239 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!A collection of known record types. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum KnownRecord { - #[serde(rename = "app.bsky.actor.profile")] - AppBskyActorProfile(Box), - #[serde(rename = "app.bsky.feed.generator")] - AppBskyFeedGenerator(Box), - #[serde(rename = "app.bsky.feed.like")] - AppBskyFeedLike(Box), - #[serde(rename = "app.bsky.feed.post")] - AppBskyFeedPost(Box), - #[serde(rename = "app.bsky.feed.postgate")] - AppBskyFeedPostgate(Box), - #[serde(rename = "app.bsky.feed.repost")] - AppBskyFeedRepost(Box), - #[serde(rename = "app.bsky.feed.threadgate")] - AppBskyFeedThreadgate(Box), - #[serde(rename = "app.bsky.graph.block")] - AppBskyGraphBlock(Box), - #[serde(rename = "app.bsky.graph.follow")] - AppBskyGraphFollow(Box), - #[serde(rename = "app.bsky.graph.list")] - AppBskyGraphList(Box), - #[serde(rename = "app.bsky.graph.listblock")] - AppBskyGraphListblock(Box), - #[serde(rename = "app.bsky.graph.listitem")] - AppBskyGraphListitem(Box), - #[serde(rename = "app.bsky.graph.starterpack")] - AppBskyGraphStarterpack(Box), - #[serde(rename = "app.bsky.labeler.service")] - AppBskyLabelerService(Box), - #[serde(rename = "chat.bsky.actor.declaration")] - ChatBskyActorDeclaration(Box), - #[serde(rename = "com.atproto.lexicon.schema")] - ComAtprotoLexiconSchema(Box), - #[serde(rename = "fm.teal.alpha.actor.profile")] - FmTealAlphaActorProfile(Box), - #[serde(rename = "fm.teal.alpha.actor.status")] - FmTealAlphaActorStatus(Box), - #[serde(rename = "fm.teal.alpha.feed.play")] - FmTealAlphaFeedPlay(Box), -} -impl From for KnownRecord { - fn from(record: crate::app::bsky::actor::profile::Record) -> Self { - KnownRecord::AppBskyActorProfile(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::app::bsky::actor::profile::RecordData) -> Self { - KnownRecord::AppBskyActorProfile(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::app::bsky::feed::generator::Record) -> Self { - KnownRecord::AppBskyFeedGenerator(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::app::bsky::feed::generator::RecordData) -> Self { - KnownRecord::AppBskyFeedGenerator(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::app::bsky::feed::like::Record) -> Self { - KnownRecord::AppBskyFeedLike(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::app::bsky::feed::like::RecordData) -> Self { - KnownRecord::AppBskyFeedLike(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::app::bsky::feed::post::Record) -> Self { - KnownRecord::AppBskyFeedPost(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::app::bsky::feed::post::RecordData) -> Self { - KnownRecord::AppBskyFeedPost(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::app::bsky::feed::postgate::Record) -> Self { - KnownRecord::AppBskyFeedPostgate(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::app::bsky::feed::postgate::RecordData) -> Self { - KnownRecord::AppBskyFeedPostgate(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::app::bsky::feed::repost::Record) -> Self { - KnownRecord::AppBskyFeedRepost(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::app::bsky::feed::repost::RecordData) -> Self { - KnownRecord::AppBskyFeedRepost(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::app::bsky::feed::threadgate::Record) -> Self { - KnownRecord::AppBskyFeedThreadgate(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::app::bsky::feed::threadgate::RecordData) -> Self { - KnownRecord::AppBskyFeedThreadgate(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::app::bsky::graph::block::Record) -> Self { - KnownRecord::AppBskyGraphBlock(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::app::bsky::graph::block::RecordData) -> Self { - KnownRecord::AppBskyGraphBlock(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::app::bsky::graph::follow::Record) -> Self { - KnownRecord::AppBskyGraphFollow(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::app::bsky::graph::follow::RecordData) -> Self { - KnownRecord::AppBskyGraphFollow(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::app::bsky::graph::list::Record) -> Self { - KnownRecord::AppBskyGraphList(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::app::bsky::graph::list::RecordData) -> Self { - KnownRecord::AppBskyGraphList(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::app::bsky::graph::listblock::Record) -> Self { - KnownRecord::AppBskyGraphListblock(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::app::bsky::graph::listblock::RecordData) -> Self { - KnownRecord::AppBskyGraphListblock(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::app::bsky::graph::listitem::Record) -> Self { - KnownRecord::AppBskyGraphListitem(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::app::bsky::graph::listitem::RecordData) -> Self { - KnownRecord::AppBskyGraphListitem(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::app::bsky::graph::starterpack::Record) -> Self { - KnownRecord::AppBskyGraphStarterpack(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::app::bsky::graph::starterpack::RecordData) -> Self { - KnownRecord::AppBskyGraphStarterpack(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::app::bsky::labeler::service::Record) -> Self { - KnownRecord::AppBskyLabelerService(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::app::bsky::labeler::service::RecordData) -> Self { - KnownRecord::AppBskyLabelerService(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::chat::bsky::actor::declaration::Record) -> Self { - KnownRecord::ChatBskyActorDeclaration(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::chat::bsky::actor::declaration::RecordData) -> Self { - KnownRecord::ChatBskyActorDeclaration(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::com::atproto::lexicon::schema::Record) -> Self { - KnownRecord::ComAtprotoLexiconSchema(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::com::atproto::lexicon::schema::RecordData) -> Self { - KnownRecord::ComAtprotoLexiconSchema(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::fm::teal::alpha::actor::profile::Record) -> Self { - KnownRecord::FmTealAlphaActorProfile(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::fm::teal::alpha::actor::profile::RecordData) -> Self { - KnownRecord::FmTealAlphaActorProfile(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::fm::teal::alpha::actor::status::Record) -> Self { - KnownRecord::FmTealAlphaActorStatus(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::fm::teal::alpha::actor::status::RecordData) -> Self { - KnownRecord::FmTealAlphaActorStatus(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::fm::teal::alpha::feed::play::Record) -> Self { - KnownRecord::FmTealAlphaFeedPlay(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::fm::teal::alpha::feed::play::RecordData) -> Self { - KnownRecord::FmTealAlphaFeedPlay(Box::new(record_data.into())) - } -} -impl Into for KnownRecord { - fn into(self) -> atrium_api::types::Unknown { - atrium_api::types::TryIntoUnknown::try_into_unknown(&self).unwrap() - } -} diff --git a/services/types/src/tools.rs b/services/types/src/tools.rs deleted file mode 100644 index fa1e1fc..0000000 --- a/services/types/src/tools.rs +++ /dev/null @@ -1,3 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools` namespace. -pub mod ozone; diff --git a/services/types/src/tools/ozone.rs b/services/types/src/tools/ozone.rs deleted file mode 100644 index f52ad3c..0000000 --- a/services/types/src/tools/ozone.rs +++ /dev/null @@ -1,9 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone` namespace. -pub mod communication; -pub mod moderation; -pub mod server; -pub mod set; -pub mod setting; -pub mod signature; -pub mod team; diff --git a/services/types/src/tools/ozone/communication.rs b/services/types/src/tools/ozone/communication.rs deleted file mode 100644 index e41a76b..0000000 --- a/services/types/src/tools/ozone/communication.rs +++ /dev/null @@ -1,7 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.communication` namespace. -pub mod create_template; -pub mod defs; -pub mod delete_template; -pub mod list_templates; -pub mod update_template; diff --git a/services/types/src/tools/ozone/communication/create_template.rs b/services/types/src/tools/ozone/communication/create_template.rs deleted file mode 100644 index 4ff278b..0000000 --- a/services/types/src/tools/ozone/communication/create_template.rs +++ /dev/null @@ -1,39 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.communication.createTemplate` namespace. -pub const NSID: &str = "tools.ozone.communication.createTemplate"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Content of the template, markdown supported, can contain variable placeholders. - pub content_markdown: String, - ///DID of the user who is creating the template. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_by: core::option::Option, - ///Message language. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub lang: core::option::Option, - ///Name of the template. - pub name: String, - ///Subject of the message, used in emails. - pub subject: String, -} -pub type Input = atrium_api::types::Object; -pub type Output = crate::tools::ozone::communication::defs::TemplateView; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - DuplicateTemplateName(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::DuplicateTemplateName(msg) => { - write!(_f, "DuplicateTemplateName")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/communication/defs.rs b/services/types/src/tools/ozone/communication/defs.rs deleted file mode 100644 index 976fb91..0000000 --- a/services/types/src/tools/ozone/communication/defs.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.communication.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct TemplateViewData { - ///Subject of the message, used in emails. - pub content_markdown: String, - pub created_at: atrium_api::types::string::Datetime, - pub disabled: bool, - pub id: String, - ///Message language. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub lang: core::option::Option, - ///DID of the user who last updated the template. - pub last_updated_by: atrium_api::types::string::Did, - ///Name of the template. - pub name: String, - ///Content of the template, can contain markdown and variable placeholders. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject: core::option::Option, - pub updated_at: atrium_api::types::string::Datetime, -} -pub type TemplateView = atrium_api::types::Object; diff --git a/services/types/src/tools/ozone/communication/delete_template.rs b/services/types/src/tools/ozone/communication/delete_template.rs deleted file mode 100644 index 60d6b48..0000000 --- a/services/types/src/tools/ozone/communication/delete_template.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.communication.deleteTemplate` namespace. -pub const NSID: &str = "tools.ozone.communication.deleteTemplate"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub id: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/communication/list_templates.rs b/services/types/src/tools/ozone/communication/list_templates.rs deleted file mode 100644 index 8ef3239..0000000 --- a/services/types/src/tools/ozone/communication/list_templates.rs +++ /dev/null @@ -1,19 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.communication.listTemplates` namespace. -pub const NSID: &str = "tools.ozone.communication.listTemplates"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub communication_templates: Vec< - crate::tools::ozone::communication::defs::TemplateView, - >, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/communication/update_template.rs b/services/types/src/tools/ozone/communication/update_template.rs deleted file mode 100644 index 02c46a7..0000000 --- a/services/types/src/tools/ozone/communication/update_template.rs +++ /dev/null @@ -1,46 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.communication.updateTemplate` namespace. -pub const NSID: &str = "tools.ozone.communication.updateTemplate"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Content of the template, markdown supported, can contain variable placeholders. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub content_markdown: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub disabled: core::option::Option, - ///ID of the template to be updated. - pub id: String, - ///Message language. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub lang: core::option::Option, - ///Name of the template. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub name: core::option::Option, - ///Subject of the message, used in emails. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject: core::option::Option, - ///DID of the user who is updating the template. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub updated_by: core::option::Option, -} -pub type Input = atrium_api::types::Object; -pub type Output = crate::tools::ozone::communication::defs::TemplateView; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - DuplicateTemplateName(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::DuplicateTemplateName(msg) => { - write!(_f, "DuplicateTemplateName")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/moderation.rs b/services/types/src/tools/ozone/moderation.rs deleted file mode 100644 index 78c10cd..0000000 --- a/services/types/src/tools/ozone/moderation.rs +++ /dev/null @@ -1,13 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation` namespace. -pub mod defs; -pub mod emit_event; -pub mod get_event; -pub mod get_record; -pub mod get_records; -pub mod get_repo; -pub mod get_reporter_stats; -pub mod get_repos; -pub mod query_events; -pub mod query_statuses; -pub mod search_repos; diff --git a/services/types/src/tools/ozone/moderation/defs.rs b/services/types/src/tools/ozone/moderation/defs.rs deleted file mode 100644 index fb8d9b4..0000000 --- a/services/types/src/tools/ozone/moderation/defs.rs +++ /dev/null @@ -1,670 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.defs` namespace. -///Logs account status related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AccountEventData { - ///Indicates that the account has a repository which can be fetched from the host that emitted this event. - pub active: bool, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, - pub timestamp: atrium_api::types::string::Datetime, -} -pub type AccountEvent = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AccountHostingData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub deactivated_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub deleted_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reactivated_at: core::option::Option, - pub status: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub updated_at: core::option::Option, -} -pub type AccountHosting = atrium_api::types::Object; -///Statistics about a particular account subject -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AccountStatsData { - ///Total number of appeals against a moderation action on the account - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub appeal_count: core::option::Option, - ///Number of times the account was escalated - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub escalate_count: core::option::Option, - ///Total number of reports on the account - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub report_count: core::option::Option, - ///Number of times the account was suspended - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub suspend_count: core::option::Option, - ///Number of times the account was taken down - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub takedown_count: core::option::Option, -} -pub type AccountStats = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct BlobViewData { - pub cid: atrium_api::types::string::Cid, - pub created_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub details: core::option::Option>, - pub mime_type: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub moderation: core::option::Option, - pub size: i64, -} -pub type BlobView = atrium_api::types::Object; -///Logs identity related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct IdentityEventData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub handle: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub pds_host: core::option::Option, - pub timestamp: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub tombstone: core::option::Option, -} -pub type IdentityEvent = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ImageDetailsData { - pub height: i64, - pub width: i64, -} -pub type ImageDetails = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventAcknowledgeData { - ///If true, all other reports on content authored by this account will be resolved (acknowledged). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub acknowledge_account_subjects: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, -} -pub type ModEventAcknowledge = atrium_api::types::Object; -///Add a comment to a subject -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventCommentData { - pub comment: String, - ///Make the comment persistent on the subject - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sticky: core::option::Option, -} -pub type ModEventComment = atrium_api::types::Object; -///Divert a record's blobs to a 3rd party service for further scanning/tagging -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventDivertData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, -} -pub type ModEventDivert = atrium_api::types::Object; -///Keep a log of outgoing email to a user -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventEmailData { - ///Additional comment about the outgoing comm. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, - ///The content of the email sent to the user. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub content: core::option::Option, - ///The subject line of the email sent to the user. - pub subject_line: String, -} -pub type ModEventEmail = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventEscalateData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, -} -pub type ModEventEscalate = atrium_api::types::Object; -///Apply/Negate labels on a subject -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventLabelData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, - pub create_label_vals: Vec, - ///Indicates how long the label will remain on the subject. Only applies on labels that are being added. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub duration_in_hours: core::option::Option, - pub negate_label_vals: Vec, -} -pub type ModEventLabel = atrium_api::types::Object; -///Mute incoming reports on a subject -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventMuteData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, - ///Indicates how long the subject should remain muted. - pub duration_in_hours: i64, -} -pub type ModEventMute = atrium_api::types::Object; -///Mute incoming reports from an account -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventMuteReporterData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, - ///Indicates how long the account should remain muted. Falsy value here means a permanent mute. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub duration_in_hours: core::option::Option, -} -pub type ModEventMuteReporter = atrium_api::types::Object; -///Set priority score of the subject. Higher score means higher priority. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventPriorityScoreData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, - pub score: atrium_api::types::LimitedU8<100u8>, -} -pub type ModEventPriorityScore = atrium_api::types::Object; -///Report a subject -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventReportData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, - ///Set to true if the reporter was muted from reporting at the time of the event. These reports won't impact the reviewState of the subject. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub is_reporter_muted: core::option::Option, - pub report_type: crate::com::atproto::moderation::defs::ReasonType, -} -pub type ModEventReport = atrium_api::types::Object; -///Resolve appeal on a subject -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventResolveAppealData { - ///Describe resolution. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, -} -pub type ModEventResolveAppeal = atrium_api::types::Object; -///Revert take down action on a subject -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventReverseTakedownData { - ///Describe reasoning behind the reversal. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, -} -pub type ModEventReverseTakedown = atrium_api::types::Object< - ModEventReverseTakedownData, ->; -///Add/Remove a tag on a subject -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventTagData { - ///Tags to be added to the subject. If already exists, won't be duplicated. - pub add: Vec, - ///Additional comment about added/removed tags. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, - ///Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated. - pub remove: Vec, -} -pub type ModEventTag = atrium_api::types::Object; -///Take down a subject permanently or temporarily -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventTakedownData { - ///If true, all other reports on content authored by this account will be resolved (acknowledged). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub acknowledge_account_subjects: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, - ///Indicates how long the takedown should be in effect before automatically expiring. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub duration_in_hours: core::option::Option, - ///Names/Keywords of the policies that drove the decision. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub policies: core::option::Option>, -} -pub type ModEventTakedown = atrium_api::types::Object; -///Unmute action on a subject -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventUnmuteData { - ///Describe reasoning behind the reversal. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, -} -pub type ModEventUnmute = atrium_api::types::Object; -///Unmute incoming reports from an account -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventUnmuteReporterData { - ///Describe reasoning behind the reversal. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, -} -pub type ModEventUnmuteReporter = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventViewData { - pub created_at: atrium_api::types::string::Datetime, - pub created_by: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub creator_handle: core::option::Option, - pub event: atrium_api::types::Union, - pub id: i64, - pub subject: atrium_api::types::Union, - pub subject_blob_cids: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_handle: core::option::Option, -} -pub type ModEventView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventViewDetailData { - pub created_at: atrium_api::types::string::Datetime, - pub created_by: atrium_api::types::string::Did, - pub event: atrium_api::types::Union, - pub id: i64, - pub subject: atrium_api::types::Union, - pub subject_blobs: Vec, -} -pub type ModEventViewDetail = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModerationData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_status: core::option::Option, -} -pub type Moderation = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModerationDetailData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_status: core::option::Option, -} -pub type ModerationDetail = atrium_api::types::Object; -///Logs lifecycle event on a record subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordEventData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, - pub op: String, - pub timestamp: atrium_api::types::string::Datetime, -} -pub type RecordEvent = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordHostingData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub deleted_at: core::option::Option, - pub status: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub updated_at: core::option::Option, -} -pub type RecordHosting = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordViewData { - pub blob_cids: Vec, - pub cid: atrium_api::types::string::Cid, - pub indexed_at: atrium_api::types::string::Datetime, - pub moderation: Moderation, - pub repo: RepoView, - pub uri: String, - pub value: atrium_api::types::Unknown, -} -pub type RecordView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordViewDetailData { - pub blobs: Vec, - pub cid: atrium_api::types::string::Cid, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - pub moderation: ModerationDetail, - pub repo: RepoView, - pub uri: String, - pub value: atrium_api::types::Unknown, -} -pub type RecordViewDetail = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordViewNotFoundData { - pub uri: String, -} -pub type RecordViewNotFound = atrium_api::types::Object; -///Statistics about a set of record subject items -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordsStatsData { - ///Number of items that were appealed at least once - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub appealed_count: core::option::Option, - ///Number of items that were escalated at least once - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub escalated_count: core::option::Option, - ///Number of item currently in "reviewOpen" or "reviewEscalated" state - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub pending_count: core::option::Option, - ///Number of item currently in "reviewNone" or "reviewClosed" state - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub processed_count: core::option::Option, - ///Number of items that were reported at least once - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reported_count: core::option::Option, - ///Total number of item in the set - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_count: core::option::Option, - ///Number of item currently taken down - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub takendown_count: core::option::Option, - ///Cumulative sum of the number of reports on the items in the set - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub total_reports: core::option::Option, -} -pub type RecordsStats = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RepoViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub deactivated_at: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email: core::option::Option, - pub handle: atrium_api::types::string::Handle, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invite_note: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invited_by: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invites_disabled: core::option::Option, - pub moderation: Moderation, - pub related_records: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub threat_signatures: core::option::Option< - Vec, - >, -} -pub type RepoView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RepoViewDetailData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub deactivated_at: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email_confirmed_at: core::option::Option, - pub handle: atrium_api::types::string::Handle, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invite_note: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invited_by: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invites: core::option::Option< - Vec, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invites_disabled: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - pub moderation: ModerationDetail, - pub related_records: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub threat_signatures: core::option::Option< - Vec, - >, -} -pub type RepoViewDetail = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RepoViewNotFoundData { - pub did: atrium_api::types::string::Did, -} -pub type RepoViewNotFound = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ReporterStatsData { - ///The total number of reports made by the user on accounts. - pub account_report_count: i64, - pub did: atrium_api::types::string::Did, - ///The total number of accounts labeled as a result of the user's reports. - pub labeled_account_count: i64, - ///The total number of records labeled as a result of the user's reports. - pub labeled_record_count: i64, - ///The total number of reports made by the user on records. - pub record_report_count: i64, - ///The total number of accounts reported by the user. - pub reported_account_count: i64, - ///The total number of records reported by the user. - pub reported_record_count: i64, - ///The total number of accounts taken down as a result of the user's reports. - pub takendown_account_count: i64, - ///The total number of records taken down as a result of the user's reports. - pub takendown_record_count: i64, -} -pub type ReporterStats = atrium_api::types::Object; -///Moderator review status of a subject: Closed. Indicates that the subject was already reviewed and resolved by a moderator -pub const REVIEW_CLOSED: &str = "tools.ozone.moderation.defs#reviewClosed"; -///Moderator review status of a subject: Escalated. Indicates that the subject was escalated for review by a moderator -pub const REVIEW_ESCALATED: &str = "tools.ozone.moderation.defs#reviewEscalated"; -///Moderator review status of a subject: Unnecessary. Indicates that the subject does not need a review at the moment but there is probably some moderation related metadata available for it -pub const REVIEW_NONE: &str = "tools.ozone.moderation.defs#reviewNone"; -///Moderator review status of a subject: Open. Indicates that the subject needs to be reviewed by a moderator -pub const REVIEW_OPEN: &str = "tools.ozone.moderation.defs#reviewOpen"; -pub type SubjectReviewState = String; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SubjectStatusViewData { - ///Statistics related to the account subject - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub account_stats: core::option::Option, - ///True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub appealed: core::option::Option, - ///Sticky comment on the subject. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, - ///Timestamp referencing the first moderation status impacting event was emitted on the subject - pub created_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hosting: core::option::Option< - atrium_api::types::Union, - >, - pub id: i64, - ///Timestamp referencing when the author of the subject appealed a moderation action - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub last_appealed_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub last_reported_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub last_reviewed_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub last_reviewed_by: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub mute_reporting_until: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub mute_until: core::option::Option, - ///Numeric value representing the level of priority. Higher score means higher priority. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub priority_score: core::option::Option>, - ///Statistics related to the record subjects authored by the subject's account - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub records_stats: core::option::Option, - pub review_state: SubjectReviewState, - pub subject: atrium_api::types::Union, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_blob_cids: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_repo_handle: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub suspend_until: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub tags: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub takendown: core::option::Option, - ///Timestamp referencing when the last update was made to the moderation status of the subject - pub updated_at: atrium_api::types::string::Datetime, -} -pub type SubjectStatusView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct VideoDetailsData { - pub height: i64, - pub length: i64, - pub width: i64, -} -pub type VideoDetails = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum BlobViewDetailsRefs { - #[serde(rename = "tools.ozone.moderation.defs#imageDetails")] - ImageDetails(Box), - #[serde(rename = "tools.ozone.moderation.defs#videoDetails")] - VideoDetails(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ModEventViewDetailEventRefs { - #[serde(rename = "tools.ozone.moderation.defs#modEventTakedown")] - ModEventTakedown(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventReverseTakedown")] - ModEventReverseTakedown(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventComment")] - ModEventComment(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventReport")] - ModEventReport(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventLabel")] - ModEventLabel(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventAcknowledge")] - ModEventAcknowledge(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventEscalate")] - ModEventEscalate(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventMute")] - ModEventMute(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventUnmute")] - ModEventUnmute(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventMuteReporter")] - ModEventMuteReporter(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventUnmuteReporter")] - ModEventUnmuteReporter(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventEmail")] - ModEventEmail(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventResolveAppeal")] - ModEventResolveAppeal(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventDivert")] - ModEventDivert(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventTag")] - ModEventTag(Box), - #[serde(rename = "tools.ozone.moderation.defs#accountEvent")] - AccountEvent(Box), - #[serde(rename = "tools.ozone.moderation.defs#identityEvent")] - IdentityEvent(Box), - #[serde(rename = "tools.ozone.moderation.defs#recordEvent")] - RecordEvent(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventPriorityScore")] - ModEventPriorityScore(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ModEventViewDetailSubjectRefs { - #[serde(rename = "tools.ozone.moderation.defs#repoView")] - RepoView(Box), - #[serde(rename = "tools.ozone.moderation.defs#repoViewNotFound")] - RepoViewNotFound(Box), - #[serde(rename = "tools.ozone.moderation.defs#recordView")] - RecordView(Box), - #[serde(rename = "tools.ozone.moderation.defs#recordViewNotFound")] - RecordViewNotFound(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ModEventViewEventRefs { - #[serde(rename = "tools.ozone.moderation.defs#modEventTakedown")] - ModEventTakedown(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventReverseTakedown")] - ModEventReverseTakedown(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventComment")] - ModEventComment(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventReport")] - ModEventReport(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventLabel")] - ModEventLabel(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventAcknowledge")] - ModEventAcknowledge(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventEscalate")] - ModEventEscalate(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventMute")] - ModEventMute(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventUnmute")] - ModEventUnmute(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventMuteReporter")] - ModEventMuteReporter(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventUnmuteReporter")] - ModEventUnmuteReporter(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventEmail")] - ModEventEmail(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventResolveAppeal")] - ModEventResolveAppeal(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventDivert")] - ModEventDivert(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventTag")] - ModEventTag(Box), - #[serde(rename = "tools.ozone.moderation.defs#accountEvent")] - AccountEvent(Box), - #[serde(rename = "tools.ozone.moderation.defs#identityEvent")] - IdentityEvent(Box), - #[serde(rename = "tools.ozone.moderation.defs#recordEvent")] - RecordEvent(Box), - #[serde(rename = "tools.ozone.moderation.defs#modEventPriorityScore")] - ModEventPriorityScore(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ModEventViewSubjectRefs { - #[serde(rename = "com.atproto.admin.defs#repoRef")] - ComAtprotoAdminDefsRepoRef(Box), - #[serde(rename = "com.atproto.repo.strongRef")] - ComAtprotoRepoStrongRefMain(Box), - #[serde(rename = "chat.bsky.convo.defs#messageRef")] - ChatBskyConvoDefsMessageRef(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum SubjectStatusViewHostingRefs { - #[serde(rename = "tools.ozone.moderation.defs#accountHosting")] - AccountHosting(Box), - #[serde(rename = "tools.ozone.moderation.defs#recordHosting")] - RecordHosting(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum SubjectStatusViewSubjectRefs { - #[serde(rename = "com.atproto.admin.defs#repoRef")] - ComAtprotoAdminDefsRepoRef(Box), - #[serde(rename = "com.atproto.repo.strongRef")] - ComAtprotoRepoStrongRefMain(Box), -} diff --git a/services/types/src/tools/ozone/moderation/emit_event.rs b/services/types/src/tools/ozone/moderation/emit_event.rs deleted file mode 100644 index 2c5eac7..0000000 --- a/services/types/src/tools/ozone/moderation/emit_event.rs +++ /dev/null @@ -1,116 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.emitEvent` namespace. -pub const NSID: &str = "tools.ozone.moderation.emitEvent"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub created_by: atrium_api::types::string::Did, - pub event: atrium_api::types::Union, - pub subject: atrium_api::types::Union, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_blob_cids: core::option::Option>, -} -pub type Input = atrium_api::types::Object; -pub type Output = crate::tools::ozone::moderation::defs::ModEventView; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - SubjectHasAction(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::SubjectHasAction(msg) => { - write!(_f, "SubjectHasAction")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum InputEventRefs { - #[serde(rename = "tools.ozone.moderation.defs#modEventTakedown")] - ToolsOzoneModerationDefsModEventTakedown( - Box, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventAcknowledge")] - ToolsOzoneModerationDefsModEventAcknowledge( - Box, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventEscalate")] - ToolsOzoneModerationDefsModEventEscalate( - Box, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventComment")] - ToolsOzoneModerationDefsModEventComment( - Box, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventLabel")] - ToolsOzoneModerationDefsModEventLabel( - Box, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventReport")] - ToolsOzoneModerationDefsModEventReport( - Box, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventMute")] - ToolsOzoneModerationDefsModEventMute( - Box, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventUnmute")] - ToolsOzoneModerationDefsModEventUnmute( - Box, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventMuteReporter")] - ToolsOzoneModerationDefsModEventMuteReporter( - Box, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventUnmuteReporter")] - ToolsOzoneModerationDefsModEventUnmuteReporter( - Box, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventReverseTakedown")] - ToolsOzoneModerationDefsModEventReverseTakedown( - Box, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventResolveAppeal")] - ToolsOzoneModerationDefsModEventResolveAppeal( - Box, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventEmail")] - ToolsOzoneModerationDefsModEventEmail( - Box, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventTag")] - ToolsOzoneModerationDefsModEventTag( - Box, - ), - #[serde(rename = "tools.ozone.moderation.defs#accountEvent")] - ToolsOzoneModerationDefsAccountEvent( - Box, - ), - #[serde(rename = "tools.ozone.moderation.defs#identityEvent")] - ToolsOzoneModerationDefsIdentityEvent( - Box, - ), - #[serde(rename = "tools.ozone.moderation.defs#recordEvent")] - ToolsOzoneModerationDefsRecordEvent( - Box, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventPriorityScore")] - ToolsOzoneModerationDefsModEventPriorityScore( - Box, - ), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum InputSubjectRefs { - #[serde(rename = "com.atproto.admin.defs#repoRef")] - ComAtprotoAdminDefsRepoRef(Box), - #[serde(rename = "com.atproto.repo.strongRef")] - ComAtprotoRepoStrongRefMain(Box), -} diff --git a/services/types/src/tools/ozone/moderation/get_event.rs b/services/types/src/tools/ozone/moderation/get_event.rs deleted file mode 100644 index 2f72078..0000000 --- a/services/types/src/tools/ozone/moderation/get_event.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.getEvent` namespace. -pub const NSID: &str = "tools.ozone.moderation.getEvent"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub id: i64, -} -pub type Parameters = atrium_api::types::Object; -pub type Output = crate::tools::ozone::moderation::defs::ModEventViewDetail; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/moderation/get_record.rs b/services/types/src/tools/ozone/moderation/get_record.rs deleted file mode 100644 index 7797091..0000000 --- a/services/types/src/tools/ozone/moderation/get_record.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.getRecord` namespace. -pub const NSID: &str = "tools.ozone.moderation.getRecord"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - pub uri: String, -} -pub type Parameters = atrium_api::types::Object; -pub type Output = crate::tools::ozone::moderation::defs::RecordViewDetail; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - RecordNotFound(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::RecordNotFound(msg) => { - write!(_f, "RecordNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/moderation/get_records.rs b/services/types/src/tools/ozone/moderation/get_records.rs deleted file mode 100644 index dc2ab85..0000000 --- a/services/types/src/tools/ozone/moderation/get_records.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.getRecords` namespace. -pub const NSID: &str = "tools.ozone.moderation.getRecords"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub uris: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub records: Vec>, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputRecordsItem { - #[serde(rename = "tools.ozone.moderation.defs#recordViewDetail")] - ToolsOzoneModerationDefsRecordViewDetail( - Box, - ), - #[serde(rename = "tools.ozone.moderation.defs#recordViewNotFound")] - ToolsOzoneModerationDefsRecordViewNotFound( - Box, - ), -} diff --git a/services/types/src/tools/ozone/moderation/get_repo.rs b/services/types/src/tools/ozone/moderation/get_repo.rs deleted file mode 100644 index ea426a0..0000000 --- a/services/types/src/tools/ozone/moderation/get_repo.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.getRepo` namespace. -pub const NSID: &str = "tools.ozone.moderation.getRepo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub did: atrium_api::types::string::Did, -} -pub type Parameters = atrium_api::types::Object; -pub type Output = crate::tools::ozone::moderation::defs::RepoViewDetail; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - RepoNotFound(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::RepoNotFound(msg) => { - write!(_f, "RepoNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/moderation/get_reporter_stats.rs b/services/types/src/tools/ozone/moderation/get_reporter_stats.rs deleted file mode 100644 index f0c4ad2..0000000 --- a/services/types/src/tools/ozone/moderation/get_reporter_stats.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.getReporterStats` namespace. -pub const NSID: &str = "tools.ozone.moderation.getReporterStats"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub dids: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub stats: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/moderation/get_repos.rs b/services/types/src/tools/ozone/moderation/get_repos.rs deleted file mode 100644 index 67a2ea2..0000000 --- a/services/types/src/tools/ozone/moderation/get_repos.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.getRepos` namespace. -pub const NSID: &str = "tools.ozone.moderation.getRepos"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub dids: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub repos: Vec>, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputReposItem { - #[serde(rename = "tools.ozone.moderation.defs#repoViewDetail")] - ToolsOzoneModerationDefsRepoViewDetail( - Box, - ), - #[serde(rename = "tools.ozone.moderation.defs#repoViewNotFound")] - ToolsOzoneModerationDefsRepoViewNotFound( - Box, - ), -} diff --git a/services/types/src/tools/ozone/moderation/query_events.rs b/services/types/src/tools/ozone/moderation/query_events.rs deleted file mode 100644 index b6a740f..0000000 --- a/services/types/src/tools/ozone/moderation/query_events.rs +++ /dev/null @@ -1,75 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.queryEvents` namespace. -pub const NSID: &str = "tools.ozone.moderation.queryEvents"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///If specified, only events where all of these labels were added are returned - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub added_labels: core::option::Option>, - ///If specified, only events where all of these tags were added are returned - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub added_tags: core::option::Option>, - ///If specified, only events where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub collections: core::option::Option>, - ///If specified, only events with comments containing the keyword are returned. Apply || separator to use multiple keywords and match using OR condition. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, - ///Retrieve events created after a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_after: core::option::Option, - ///Retrieve events created before a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_before: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_by: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///If true, only events with comments are returned - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub has_comment: core::option::Option, - ///If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub include_all_user_records: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub policies: core::option::Option>, - ///If specified, only events where all of these labels were removed are returned - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub removed_labels: core::option::Option>, - ///If specified, only events where all of these tags were removed are returned - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub removed_tags: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub report_types: core::option::Option>, - ///Sort direction for the events. Defaults to descending order of created at timestamp. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sort_direction: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject: core::option::Option, - ///If specified, only events where the subject is of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_type: core::option::Option, - ///The types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent) to filter by. If not specified, all events are returned. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub types: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub events: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/moderation/query_statuses.rs b/services/types/src/tools/ozone/moderation/query_statuses.rs deleted file mode 100644 index 8ce0878..0000000 --- a/services/types/src/tools/ozone/moderation/query_statuses.rs +++ /dev/null @@ -1,123 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.queryStatuses` namespace. -pub const NSID: &str = "tools.ozone.moderation.queryStatuses"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Get subjects in unresolved appealed status - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub appealed: core::option::Option, - ///If specified, subjects belonging to the given collections will be returned. When subjectType is set to 'account', this will be ignored. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub collections: core::option::Option>, - ///Search subjects by keyword from comments - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub exclude_tags: core::option::Option>, - ///Search subjects where the associated record/account was deleted after a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hosting_deleted_after: core::option::Option, - ///Search subjects where the associated record/account was deleted before a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hosting_deleted_before: core::option::Option< - atrium_api::types::string::Datetime, - >, - ///Search subjects by the status of the associated record/account - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hosting_statuses: core::option::Option>, - ///Search subjects where the associated record/account was updated after a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hosting_updated_after: core::option::Option, - ///Search subjects where the associated record/account was updated before a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hosting_updated_before: core::option::Option< - atrium_api::types::string::Datetime, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub ignore_subjects: core::option::Option>, - ///All subjects, or subjects from given 'collections' param, belonging to the account specified in the 'subject' param will be returned. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub include_all_user_records: core::option::Option, - ///By default, we don't include muted subjects in the results. Set this to true to include them. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub include_muted: core::option::Option, - ///Get all subject statuses that were reviewed by a specific moderator - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub last_reviewed_by: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///If specified, only subjects that belong to an account that has at least this many suspensions will be returned. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub min_account_suspend_count: core::option::Option, - ///If specified, only subjects that have priority score value above the given value will be returned. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub min_priority_score: core::option::Option>, - ///If specified, only subjects that belong to an account that has at least this many reported records will be returned. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub min_reported_records_count: core::option::Option, - ///If specified, only subjects that belong to an account that has at least this many taken down records will be returned. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub min_takendown_records_count: core::option::Option, - ///When set to true, only muted subjects and reporters will be returned. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub only_muted: core::option::Option, - ///Number of queues being used by moderators. Subjects will be split among all queues. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub queue_count: core::option::Option, - ///Index of the queue to fetch subjects from. Works only when queueCount value is specified. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub queue_index: core::option::Option, - ///A seeder to shuffle/balance the queue items. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub queue_seed: core::option::Option, - ///Search subjects reported after a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reported_after: core::option::Option, - ///Search subjects reported before a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reported_before: core::option::Option, - ///Specify when fetching subjects in a certain state - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub review_state: core::option::Option, - ///Search subjects reviewed after a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reviewed_after: core::option::Option, - ///Search subjects reviewed before a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reviewed_before: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sort_direction: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sort_field: core::option::Option, - ///The subject to get the status for. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject: core::option::Option, - ///If specified, subjects of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_type: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub tags: core::option::Option>, - ///Get subjects that were taken down - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub takendown: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub subject_statuses: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/moderation/search_repos.rs b/services/types/src/tools/ozone/moderation/search_repos.rs deleted file mode 100644 index 5643ed2..0000000 --- a/services/types/src/tools/ozone/moderation/search_repos.rs +++ /dev/null @@ -1,33 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.searchRepos` namespace. -pub const NSID: &str = "tools.ozone.moderation.searchRepos"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub q: core::option::Option, - ///DEPRECATED: use 'q' instead - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub term: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub repos: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/server.rs b/services/types/src/tools/ozone/server.rs deleted file mode 100644 index 321b48f..0000000 --- a/services/types/src/tools/ozone/server.rs +++ /dev/null @@ -1,3 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.server` namespace. -pub mod get_config; diff --git a/services/types/src/tools/ozone/server/get_config.rs b/services/types/src/tools/ozone/server/get_config.rs deleted file mode 100644 index a9bba30..0000000 --- a/services/types/src/tools/ozone/server/get_config.rs +++ /dev/null @@ -1,40 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.server.getConfig` namespace. -pub const NSID: &str = "tools.ozone.server.getConfig"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub appview: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub blob_divert: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub chat: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub pds: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ServiceConfigData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub url: core::option::Option, -} -pub type ServiceConfig = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewerConfigData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub role: core::option::Option, -} -pub type ViewerConfig = atrium_api::types::Object; diff --git a/services/types/src/tools/ozone/set.rs b/services/types/src/tools/ozone/set.rs deleted file mode 100644 index 933c363..0000000 --- a/services/types/src/tools/ozone/set.rs +++ /dev/null @@ -1,9 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.set` namespace. -pub mod add_values; -pub mod defs; -pub mod delete_set; -pub mod delete_values; -pub mod get_values; -pub mod query_sets; -pub mod upsert_set; diff --git a/services/types/src/tools/ozone/set/add_values.rs b/services/types/src/tools/ozone/set/add_values.rs deleted file mode 100644 index 3f2c014..0000000 --- a/services/types/src/tools/ozone/set/add_values.rs +++ /dev/null @@ -1,20 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.set.addValues` namespace. -pub const NSID: &str = "tools.ozone.set.addValues"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Name of the set to add values to - pub name: String, - ///Array of string values to add to the set - pub values: Vec, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/set/defs.rs b/services/types/src/tools/ozone/set/defs.rs deleted file mode 100644 index 8df6c09..0000000 --- a/services/types/src/tools/ozone/set/defs.rs +++ /dev/null @@ -1,21 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.set.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SetData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - pub name: String, -} -pub type Set = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SetViewData { - pub created_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - pub name: String, - pub set_size: i64, - pub updated_at: atrium_api::types::string::Datetime, -} -pub type SetView = atrium_api::types::Object; diff --git a/services/types/src/tools/ozone/set/delete_set.rs b/services/types/src/tools/ozone/set/delete_set.rs deleted file mode 100644 index 173ebed..0000000 --- a/services/types/src/tools/ozone/set/delete_set.rs +++ /dev/null @@ -1,33 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.set.deleteSet` namespace. -pub const NSID: &str = "tools.ozone.set.deleteSet"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Name of the set to delete - pub name: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData {} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///set with the given name does not exist - SetNotFound(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::SetNotFound(msg) => { - write!(_f, "SetNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/set/delete_values.rs b/services/types/src/tools/ozone/set/delete_values.rs deleted file mode 100644 index 4f4da58..0000000 --- a/services/types/src/tools/ozone/set/delete_values.rs +++ /dev/null @@ -1,31 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.set.deleteValues` namespace. -pub const NSID: &str = "tools.ozone.set.deleteValues"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Name of the set to delete values from - pub name: String, - ///Array of string values to delete from the set - pub values: Vec, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///set with the given name does not exist - SetNotFound(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::SetNotFound(msg) => { - write!(_f, "SetNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/set/get_values.rs b/services/types/src/tools/ozone/set/get_values.rs deleted file mode 100644 index 2d9d946..0000000 --- a/services/types/src/tools/ozone/set/get_values.rs +++ /dev/null @@ -1,41 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.set.getValues` namespace. -pub const NSID: &str = "tools.ozone.set.getValues"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - pub name: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub set: crate::tools::ozone::set::defs::SetView, - pub values: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///set with the given name does not exist - SetNotFound(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::SetNotFound(msg) => { - write!(_f, "SetNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/set/query_sets.rs b/services/types/src/tools/ozone/set/query_sets.rs deleted file mode 100644 index d1b3d20..0000000 --- a/services/types/src/tools/ozone/set/query_sets.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.set.querySets` namespace. -pub const NSID: &str = "tools.ozone.set.querySets"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub name_prefix: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sort_by: core::option::Option, - ///Defaults to ascending order of name field. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sort_direction: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub sets: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/set/upsert_set.rs b/services/types/src/tools/ozone/set/upsert_set.rs deleted file mode 100644 index 64e92da..0000000 --- a/services/types/src/tools/ozone/set/upsert_set.rs +++ /dev/null @@ -1,13 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.set.upsertSet` namespace. -pub const NSID: &str = "tools.ozone.set.upsertSet"; -pub type Input = crate::tools::ozone::set::defs::Set; -pub type Output = crate::tools::ozone::set::defs::SetView; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/setting.rs b/services/types/src/tools/ozone/setting.rs deleted file mode 100644 index 33baf19..0000000 --- a/services/types/src/tools/ozone/setting.rs +++ /dev/null @@ -1,6 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.setting` namespace. -pub mod defs; -pub mod list_options; -pub mod remove_options; -pub mod upsert_option; diff --git a/services/types/src/tools/ozone/setting/defs.rs b/services/types/src/tools/ozone/setting/defs.rs deleted file mode 100644 index 14d25d8..0000000 --- a/services/types/src/tools/ozone/setting/defs.rs +++ /dev/null @@ -1,21 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.setting.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OptionData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option, - pub created_by: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - pub did: atrium_api::types::string::Did, - pub key: atrium_api::types::string::Nsid, - pub last_updated_by: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub manager_role: core::option::Option, - pub scope: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub updated_at: core::option::Option, - pub value: atrium_api::types::Unknown, -} -pub type Option = atrium_api::types::Object; diff --git a/services/types/src/tools/ozone/setting/list_options.rs b/services/types/src/tools/ozone/setting/list_options.rs deleted file mode 100644 index ffea4f5..0000000 --- a/services/types/src/tools/ozone/setting/list_options.rs +++ /dev/null @@ -1,36 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.setting.listOptions` namespace. -pub const NSID: &str = "tools.ozone.setting.listOptions"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Filter for only the specified keys. Ignored if prefix is provided - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub keys: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Filter keys by prefix - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub prefix: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub scope: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub options: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/setting/remove_options.rs b/services/types/src/tools/ozone/setting/remove_options.rs deleted file mode 100644 index f2e7f61..0000000 --- a/services/types/src/tools/ozone/setting/remove_options.rs +++ /dev/null @@ -1,22 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.setting.removeOptions` namespace. -pub const NSID: &str = "tools.ozone.setting.removeOptions"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub keys: Vec, - pub scope: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData {} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/setting/upsert_option.rs b/services/types/src/tools/ozone/setting/upsert_option.rs deleted file mode 100644 index 9754206..0000000 --- a/services/types/src/tools/ozone/setting/upsert_option.rs +++ /dev/null @@ -1,29 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.setting.upsertOption` namespace. -pub const NSID: &str = "tools.ozone.setting.upsertOption"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - pub key: atrium_api::types::string::Nsid, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub manager_role: core::option::Option, - pub scope: String, - pub value: atrium_api::types::Unknown, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub option: crate::tools::ozone::setting::defs::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/signature.rs b/services/types/src/tools/ozone/signature.rs deleted file mode 100644 index 7030a76..0000000 --- a/services/types/src/tools/ozone/signature.rs +++ /dev/null @@ -1,6 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.signature` namespace. -pub mod defs; -pub mod find_correlation; -pub mod find_related_accounts; -pub mod search_accounts; diff --git a/services/types/src/tools/ozone/signature/defs.rs b/services/types/src/tools/ozone/signature/defs.rs deleted file mode 100644 index 8049c67..0000000 --- a/services/types/src/tools/ozone/signature/defs.rs +++ /dev/null @@ -1,9 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.signature.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SigDetailData { - pub property: String, - pub value: String, -} -pub type SigDetail = atrium_api::types::Object; diff --git a/services/types/src/tools/ozone/signature/find_correlation.rs b/services/types/src/tools/ozone/signature/find_correlation.rs deleted file mode 100644 index e189c76..0000000 --- a/services/types/src/tools/ozone/signature/find_correlation.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.signature.findCorrelation` namespace. -pub const NSID: &str = "tools.ozone.signature.findCorrelation"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub dids: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub details: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/signature/find_related_accounts.rs b/services/types/src/tools/ozone/signature/find_related_accounts.rs deleted file mode 100644 index a8081c4..0000000 --- a/services/types/src/tools/ozone/signature/find_related_accounts.rs +++ /dev/null @@ -1,39 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.signature.findRelatedAccounts` namespace. -pub const NSID: &str = "tools.ozone.signature.findRelatedAccounts"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub accounts: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RelatedAccountData { - pub account: crate::com::atproto::admin::defs::AccountView, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub similarities: core::option::Option< - Vec, - >, -} -pub type RelatedAccount = atrium_api::types::Object; diff --git a/services/types/src/tools/ozone/signature/search_accounts.rs b/services/types/src/tools/ozone/signature/search_accounts.rs deleted file mode 100644 index d292747..0000000 --- a/services/types/src/tools/ozone/signature/search_accounts.rs +++ /dev/null @@ -1,29 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.signature.searchAccounts` namespace. -pub const NSID: &str = "tools.ozone.signature.searchAccounts"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - pub values: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub accounts: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/team.rs b/services/types/src/tools/ozone/team.rs deleted file mode 100644 index a2eec69..0000000 --- a/services/types/src/tools/ozone/team.rs +++ /dev/null @@ -1,7 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.team` namespace. -pub mod add_member; -pub mod defs; -pub mod delete_member; -pub mod list_members; -pub mod update_member; diff --git a/services/types/src/tools/ozone/team/add_member.rs b/services/types/src/tools/ozone/team/add_member.rs deleted file mode 100644 index d08ffea..0000000 --- a/services/types/src/tools/ozone/team/add_member.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.team.addMember` namespace. -pub const NSID: &str = "tools.ozone.team.addMember"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub did: atrium_api::types::string::Did, - pub role: String, -} -pub type Input = atrium_api::types::Object; -pub type Output = crate::tools::ozone::team::defs::Member; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///Member already exists in the team. - MemberAlreadyExists(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::MemberAlreadyExists(msg) => { - write!(_f, "MemberAlreadyExists")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/team/defs.rs b/services/types/src/tools/ozone/team/defs.rs deleted file mode 100644 index dc91be7..0000000 --- a/services/types/src/tools/ozone/team/defs.rs +++ /dev/null @@ -1,27 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.team.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MemberData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub disabled: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub last_updated_by: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub profile: core::option::Option< - crate::app::bsky::actor::defs::ProfileViewDetailed, - >, - pub role: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub updated_at: core::option::Option, -} -pub type Member = atrium_api::types::Object; -///Admin role. Highest level of access, can perform all actions. -pub const ROLE_ADMIN: &str = "tools.ozone.team.defs#roleAdmin"; -///Moderator role. Can perform most actions. -pub const ROLE_MODERATOR: &str = "tools.ozone.team.defs#roleModerator"; -///Triage role. Mostly intended for monitoring and escalating issues. -pub const ROLE_TRIAGE: &str = "tools.ozone.team.defs#roleTriage"; diff --git a/services/types/src/tools/ozone/team/delete_member.rs b/services/types/src/tools/ozone/team/delete_member.rs deleted file mode 100644 index 7ba784d..0000000 --- a/services/types/src/tools/ozone/team/delete_member.rs +++ /dev/null @@ -1,36 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.team.deleteMember` namespace. -pub const NSID: &str = "tools.ozone.team.deleteMember"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub did: atrium_api::types::string::Did, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///The member being deleted does not exist - MemberNotFound(Option), - ///You can not delete yourself from the team - CannotDeleteSelf(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::MemberNotFound(msg) => { - write!(_f, "MemberNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::CannotDeleteSelf(msg) => { - write!(_f, "CannotDeleteSelf")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/team/list_members.rs b/services/types/src/tools/ozone/team/list_members.rs deleted file mode 100644 index 8731aa0..0000000 --- a/services/types/src/tools/ozone/team/list_members.rs +++ /dev/null @@ -1,32 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.team.listMembers` namespace. -pub const NSID: &str = "tools.ozone.team.listMembers"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub disabled: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub roles: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub members: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/services/types/src/tools/ozone/team/update_member.rs b/services/types/src/tools/ozone/team/update_member.rs deleted file mode 100644 index f71a50b..0000000 --- a/services/types/src/tools/ozone/team/update_member.rs +++ /dev/null @@ -1,33 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.team.updateMember` namespace. -pub const NSID: &str = "tools.ozone.team.updateMember"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub disabled: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub role: core::option::Option, -} -pub type Input = atrium_api::types::Object; -pub type Output = crate::tools::ozone::team::defs::Member; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///The member being updated does not exist in the team - MemberNotFound(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::MemberNotFound(msg) => { - write!(_f, "MemberNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -}