Skip to content

Commit 1a5d742

Browse files
authored
Endpoint for onboarding starter packs (#4228)
1 parent c16080e commit 1a5d742

22 files changed

+1015
-0
lines changed

.changeset/chilled-cars-attend.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@atproto/api": patch
3+
---
4+
5+
Add app.bsky.unspecced.getOnboardingSuggestedStarterPacks

.changeset/swift-lizards-share.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@atproto/api": patch
3+
---
4+
5+
Add app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"lexicon": 1,
3+
"id": "app.bsky.unspecced.getOnboardingSuggestedStarterPacks",
4+
"defs": {
5+
"main": {
6+
"type": "query",
7+
"description": "Get a list of suggested starterpacks for onboarding",
8+
"parameters": {
9+
"type": "params",
10+
"properties": {
11+
"limit": {
12+
"type": "integer",
13+
"minimum": 1,
14+
"maximum": 25,
15+
"default": 10
16+
}
17+
}
18+
},
19+
"output": {
20+
"encoding": "application/json",
21+
"schema": {
22+
"type": "object",
23+
"required": ["starterPacks"],
24+
"properties": {
25+
"starterPacks": {
26+
"type": "array",
27+
"items": {
28+
"type": "ref",
29+
"ref": "app.bsky.graph.defs#starterPackView"
30+
}
31+
}
32+
}
33+
}
34+
}
35+
}
36+
}
37+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"lexicon": 1,
3+
"id": "app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton",
4+
"defs": {
5+
"main": {
6+
"type": "query",
7+
"description": "Get a skeleton of suggested starterpacks for onboarding. Intended to be called and hydrated by app.bsky.unspecced.getOnboardingSuggestedStarterPacks",
8+
"parameters": {
9+
"type": "params",
10+
"properties": {
11+
"viewer": {
12+
"type": "string",
13+
"format": "did",
14+
"description": "DID of the account making the request (not included for public/unauthenticated queries)."
15+
},
16+
"limit": {
17+
"type": "integer",
18+
"minimum": 1,
19+
"maximum": 25,
20+
"default": 10
21+
}
22+
}
23+
},
24+
"output": {
25+
"encoding": "application/json",
26+
"schema": {
27+
"type": "object",
28+
"required": ["starterPacks"],
29+
"properties": {
30+
"starterPacks": {
31+
"type": "array",
32+
"items": {
33+
"type": "string",
34+
"format": "at-uri"
35+
}
36+
}
37+
}
38+
}
39+
}
40+
}
41+
}
42+
}

packages/api/src/client/index.ts

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/api/src/client/lexicons.ts

Lines changed: 85 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/api/src/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.ts

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/api/src/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacksSkeleton.ts

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)