Skip to content

Commit

Permalink
gen schemas stability
Browse files Browse the repository at this point in the history
  • Loading branch information
zoedsoupe committed Oct 29, 2024
1 parent 7f9d76f commit 61d7557
Show file tree
Hide file tree
Showing 428 changed files with 7,802 additions and 116 deletions.
1,079 changes: 971 additions & 108 deletions lib/mix/tasks/gen_schemas.ex

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/adult_content_pref.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.AdultContentPref do
@moduledoc """
Generated schema for adultContentPref
**Description**: No description provided.
"""

@enforce_keys [:enabled]
defstruct enabled: nil

@type t :: %__MODULE__{
enabled: boolean()
}
end
15 changes: 15 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/bsky_app_progress_guide.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.BskyAppProgressGuide do
@moduledoc """
Generated schema for bskyAppProgressGuide
**Description**: If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress.
"""

@enforce_keys [:guide]
defstruct guide: nil

@type t :: %__MODULE__{
guide: String.t()
}
end
16 changes: 16 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/bsky_app_state_pref.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.BskyAppStatePref do
@moduledoc """
Generated schema for bskyAppStatePref
**Description**: A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this.
"""

defstruct active_progress_guide: nil, nuxs: nil, queued_nudges: nil

@type t :: %__MODULE__{
active_progress_guide: ProtoRune.App.Bsky.Actor.Defs.BskyAppProgressGuide.t(),
nuxs: list(ProtoRune.App.Bsky.Actor.Defs.Nux.t()),
queued_nudges: list(String.t())
}
end
17 changes: 17 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/content_label_pref.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.ContentLabelPref do
@moduledoc """
Generated schema for contentLabelPref
**Description**: No description provided.
"""

@enforce_keys [:label, :visibility]
defstruct label: nil, labeler_did: nil, visibility: nil

@type t :: %__MODULE__{
label: String.t(),
labeler_did: String.t(),
visibility: :ignore | :show | :warn | :hide
}
end
25 changes: 25 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/feed_view_pref.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.FeedViewPref do
@moduledoc """
Generated schema for feedViewPref
**Description**: No description provided.
"""

@enforce_keys [:feed]
defstruct feed: nil,
hide_quote_posts: nil,
hide_replies: nil,
hide_replies_by_like_count: nil,
hide_replies_by_unfollowed: nil,
hide_reposts: nil

@type t :: %__MODULE__{
feed: String.t(),
hide_quote_posts: boolean(),
hide_replies: boolean(),
hide_replies_by_like_count: integer(),
hide_replies_by_unfollowed: boolean(),
hide_reposts: boolean()
}
end
15 changes: 15 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/hidden_posts_pref.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.HiddenPostsPref do
@moduledoc """
Generated schema for hiddenPostsPref
**Description**: No description provided.
"""

@enforce_keys [:items]
defstruct items: nil

@type t :: %__MODULE__{
items: list(String.t())
}
end
15 changes: 15 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/interests_pref.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.InterestsPref do
@moduledoc """
Generated schema for interestsPref
**Description**: No description provided.
"""

@enforce_keys [:tags]
defstruct tags: nil

@type t :: %__MODULE__{
tags: list(String.t())
}
end
16 changes: 16 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/known_followers.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.KnownFollowers do
@moduledoc """
Generated schema for knownFollowers
**Description**: The subject's followers whom you also follow
"""

@enforce_keys [:count, :followers]
defstruct count: nil, followers: nil

@type t :: %__MODULE__{
count: integer(),
followers: list(ProtoRune.App.Bsky.Actor.Defs.ProfileViewBasic.t())
}
end
15 changes: 15 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/labeler_pref_item.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.LabelerPrefItem do
@moduledoc """
Generated schema for labelerPrefItem
**Description**: No description provided.
"""

@enforce_keys [:did]
defstruct did: nil

@type t :: %__MODULE__{
did: String.t()
}
end
15 changes: 15 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/labelers_pref.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.LabelersPref do
@moduledoc """
Generated schema for labelersPref
**Description**: No description provided.
"""

@enforce_keys [:labelers]
defstruct labelers: nil

@type t :: %__MODULE__{
labelers: list(ProtoRune.App.Bsky.Actor.Defs.LabelerPrefItem.t())
}
end
19 changes: 19 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/muted_word.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.MutedWord do
@moduledoc """
Generated schema for mutedWord
**Description**: A word that the account owner has muted.
"""

@enforce_keys [:value, :targets]
defstruct actor_target: nil, expires_at: nil, id: nil, targets: nil, value: nil

@type t :: %__MODULE__{
actor_target: :all | :"exclude-following",
expires_at: String.t(),
id: String.t(),
targets: list(ProtoRune.App.Bsky.Actor.Defs.MutedWordTarget.t()),
value: String.t()
}
end
10 changes: 10 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/muted_word_target.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.MutedWordTarget do
@moduledoc """
Generated schema for mutedWordTarget
**Description**: No description provided.
"""

@type t :: :content | :tag
end
15 changes: 15 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/muted_words_pref.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.MutedWordsPref do
@moduledoc """
Generated schema for mutedWordsPref
**Description**: No description provided.
"""

@enforce_keys [:items]
defstruct items: nil

@type t :: %__MODULE__{
items: list(ProtoRune.App.Bsky.Actor.Defs.MutedWord.t())
}
end
18 changes: 18 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/nux.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.Nux do
@moduledoc """
Generated schema for nux
**Description**: A new user experiences (NUX) storage object
"""

@enforce_keys [:id, :completed]
defstruct completed: nil, data: nil, expires_at: nil, id: nil

@type t :: %__MODULE__{
completed: boolean(),
data: String.t(),
expires_at: String.t(),
id: String.t()
}
end
14 changes: 14 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/personal_details_pref.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.PersonalDetailsPref do
@moduledoc """
Generated schema for personalDetailsPref
**Description**: No description provided.
"""

defstruct birth_date: nil

@type t :: %__MODULE__{
birth_date: String.t()
}
end
22 changes: 22 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/preferences.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.Preferences do
@moduledoc """
Generated schema for preferences
**Description**: No description provided.
"""

@type t ::
ProtoRune.App.Bsky.Actor.Defs.AdultContentPref.t()
| ProtoRune.App.Bsky.Actor.Defs.ContentLabelPref.t()
| ProtoRune.App.Bsky.Actor.Defs.SavedFeedsPref.t()
| ProtoRune.App.Bsky.Actor.Defs.SavedFeedsPrefV2.t()
| ProtoRune.App.Bsky.Actor.Defs.PersonalDetailsPref.t()
| ProtoRune.App.Bsky.Actor.Defs.FeedViewPref.t()
| ProtoRune.App.Bsky.Actor.Defs.ThreadViewPref.t()
| ProtoRune.App.Bsky.Actor.Defs.InterestsPref.t()
| ProtoRune.App.Bsky.Actor.Defs.MutedWordsPref.t()
| ProtoRune.App.Bsky.Actor.Defs.HiddenPostsPref.t()
| ProtoRune.App.Bsky.Actor.Defs.BskyAppStatePref.t()
| ProtoRune.App.Bsky.Actor.Defs.LabelersPref.t()
end
18 changes: 18 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/profile_associated.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.ProfileAssociated do
@moduledoc """
Generated schema for profileAssociated
**Description**: No description provided.
"""

defstruct chat: nil, feedgens: nil, labeler: nil, lists: nil, starter_packs: nil

@type t :: %__MODULE__{
chat: ProtoRune.App.Bsky.Actor.Defs.ProfileAssociatedChat.t(),
feedgens: integer(),
labeler: boolean(),
lists: integer(),
starter_packs: integer()
}
end
15 changes: 15 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/profile_associated_chat.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.ProfileAssociatedChat do
@moduledoc """
Generated schema for profileAssociatedChat
**Description**: No description provided.
"""

@enforce_keys [:allow_incoming]
defstruct allow_incoming: nil

@type t :: %__MODULE__{
allow_incoming: :all | :none | :following
}
end
33 changes: 33 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/profile_view.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.ProfileView do
@moduledoc """
Generated schema for profileView
**Description**: No description provided.
"""

@enforce_keys [:did, :handle]
defstruct associated: nil,
avatar: nil,
created_at: nil,
description: nil,
did: nil,
display_name: nil,
handle: nil,
indexed_at: nil,
labels: nil,
viewer: nil

@type t :: %__MODULE__{
associated: ProtoRune.App.Bsky.Actor.Defs.ProfileAssociated.t(),
avatar: String.t(),
created_at: String.t(),
description: String.t(),
did: String.t(),
display_name: String.t(),
handle: String.t(),
indexed_at: String.t(),
labels: list(ProtoRune.Com.Atproto.Label.Defs.Label.t()),
viewer: ProtoRune.App.Bsky.Actor.Defs.ViewerState.t()
}
end
29 changes: 29 additions & 0 deletions lib/proto_rune/app/bsky/actor/defs/profile_view_basic.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This module was generated by Mix.Tasks.GenSchemas
defmodule ProtoRune.App.Bsky.Actor.Defs.ProfileViewBasic do
@moduledoc """
Generated schema for profileViewBasic
**Description**: No description provided.
"""

@enforce_keys [:did, :handle]
defstruct associated: nil,
avatar: nil,
created_at: nil,
did: nil,
display_name: nil,
handle: nil,
labels: nil,
viewer: nil

@type t :: %__MODULE__{
associated: ProtoRune.App.Bsky.Actor.Defs.ProfileAssociated.t(),
avatar: String.t(),
created_at: String.t(),
did: String.t(),
display_name: String.t(),
handle: String.t(),
labels: list(ProtoRune.Com.Atproto.Label.Defs.Label.t()),
viewer: ProtoRune.App.Bsky.Actor.Defs.ViewerState.t()
}
end
Loading

0 comments on commit 61d7557

Please sign in to comment.