this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add suggestions recid codegen (#907)

authored by

Hailey and committed by
GitHub
7d0ca5d0 3c27339b

+169 -5
+2
api/atproto/servercreateSession.go
··· 12 12 13 13 // ServerCreateSession_Input is the input argument to a com.atproto.server.createSession call. 14 14 type ServerCreateSession_Input struct { 15 + // allowTakendown: When true, instead of throwing error for takendown accounts, a valid response with a narrow scoped token will be returned 16 + AllowTakendown *bool `json:"allowTakendown,omitempty" cborgen:"allowTakendown,omitempty"` 15 17 AuthFactorToken *string `json:"authFactorToken,omitempty" cborgen:"authFactorToken,omitempty"` 16 18 // identifier: Handle or other identifier supported by the server for the authenticating user. 17 19 Identifier string `json:"identifier" cborgen:"identifier"`
+30
api/atproto/tempaddReservedHandle.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package atproto 4 + 5 + // schema: com.atproto.temp.addReservedHandle 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // TempAddReservedHandle_Input is the input argument to a com.atproto.temp.addReservedHandle call. 14 + type TempAddReservedHandle_Input struct { 15 + Handle string `json:"handle" cborgen:"handle"` 16 + } 17 + 18 + // TempAddReservedHandle_Output is the output of a com.atproto.temp.addReservedHandle call. 19 + type TempAddReservedHandle_Output struct { 20 + } 21 + 22 + // TempAddReservedHandle calls the XRPC method "com.atproto.temp.addReservedHandle". 23 + func TempAddReservedHandle(ctx context.Context, c *xrpc.Client, input *TempAddReservedHandle_Input) (*TempAddReservedHandle_Output, error) { 24 + var out TempAddReservedHandle_Output 25 + if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.temp.addReservedHandle", nil, input, &out); err != nil { 26 + return nil, err 27 + } 28 + 29 + return &out, nil 30 + }
+2
api/bsky/actorgetSuggestions.go
··· 14 14 type ActorGetSuggestions_Output struct { 15 15 Actors []*ActorDefs_ProfileView `json:"actors" cborgen:"actors"` 16 16 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 17 + // recId: Snowflake for this recommendation, use when submitting recommendation events. 18 + RecId *int64 `json:"recId,omitempty" cborgen:"recId,omitempty"` 17 19 } 18 20 19 21 // ActorGetSuggestions calls the XRPC method "app.bsky.actor.getSuggestions".
+3 -1
api/bsky/graphgetSuggestedFollowsByActor.go
··· 13 13 // GraphGetSuggestedFollowsByActor_Output is the output of a app.bsky.graph.getSuggestedFollowsByActor call. 14 14 type GraphGetSuggestedFollowsByActor_Output struct { 15 15 // isFallback: If true, response has fallen-back to generic results, and is not scoped using relativeToDid 16 - IsFallback *bool `json:"isFallback,omitempty" cborgen:"isFallback,omitempty"` 16 + IsFallback *bool `json:"isFallback,omitempty" cborgen:"isFallback,omitempty"` 17 + // recId: Snowflake for this recommendation, use when submitting recommendation events. 18 + RecId *int64 `json:"recId,omitempty" cborgen:"recId,omitempty"` 17 19 Suggestions []*ActorDefs_ProfileView `json:"suggestions" cborgen:"suggestions"` 18 20 } 19 21
+35
api/bsky/graphsearchStarterPacks.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package bsky 4 + 5 + // schema: app.bsky.graph.searchStarterPacks 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // GraphSearchStarterPacks_Output is the output of a app.bsky.graph.searchStarterPacks call. 14 + type GraphSearchStarterPacks_Output struct { 15 + Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 16 + StarterPacks []*GraphDefs_StarterPackViewBasic `json:"starterPacks" cborgen:"starterPacks"` 17 + } 18 + 19 + // GraphSearchStarterPacks calls the XRPC method "app.bsky.graph.searchStarterPacks". 20 + // 21 + // q: Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. 22 + func GraphSearchStarterPacks(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string) (*GraphSearchStarterPacks_Output, error) { 23 + var out GraphSearchStarterPacks_Output 24 + 25 + params := map[string]interface{}{ 26 + "cursor": cursor, 27 + "limit": limit, 28 + "q": q, 29 + } 30 + if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.searchStarterPacks", params, nil, &out); err != nil { 31 + return nil, err 32 + } 33 + 34 + return &out, nil 35 + }
+4 -1
api/bsky/notificationlistNotifications.go
··· 35 35 } 36 36 37 37 // NotificationListNotifications calls the XRPC method "app.bsky.notification.listNotifications". 38 - func NotificationListNotifications(ctx context.Context, c *xrpc.Client, cursor string, limit int64, priority bool, seenAt string) (*NotificationListNotifications_Output, error) { 38 + // 39 + // reasons: Notification reasons to include in response. 40 + func NotificationListNotifications(ctx context.Context, c *xrpc.Client, cursor string, limit int64, priority bool, reasons []string, seenAt string) (*NotificationListNotifications_Output, error) { 39 41 var out NotificationListNotifications_Output 40 42 41 43 params := map[string]interface{}{ 42 44 "cursor": cursor, 43 45 "limit": limit, 44 46 "priority": priority, 47 + "reasons": reasons, 45 48 "seenAt": seenAt, 46 49 } 47 50 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.notification.listNotifications", params, nil, &out); err != nil {
+13
api/bsky/unspecceddefs.go
··· 13 13 type UnspeccedDefs_SkeletonSearchPost struct { 14 14 Uri string `json:"uri" cborgen:"uri"` 15 15 } 16 + 17 + // UnspeccedDefs_SkeletonSearchStarterPack is a "skeletonSearchStarterPack" in the app.bsky.unspecced.defs schema. 18 + type UnspeccedDefs_SkeletonSearchStarterPack struct { 19 + Uri string `json:"uri" cborgen:"uri"` 20 + } 21 + 22 + // UnspeccedDefs_TrendingTopic is a "trendingTopic" in the app.bsky.unspecced.defs schema. 23 + type UnspeccedDefs_TrendingTopic struct { 24 + Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 25 + DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"` 26 + Link string `json:"link" cborgen:"link"` 27 + Topic string `json:"topic" cborgen:"topic"` 28 + }
+2
api/bsky/unspeccedgetSuggestionsSkeleton.go
··· 14 14 type UnspeccedGetSuggestionsSkeleton_Output struct { 15 15 Actors []*UnspeccedDefs_SkeletonSearchActor `json:"actors" cborgen:"actors"` 16 16 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 17 + // recId: Snowflake for this recommendation, use when submitting recommendation events. 18 + RecId *int64 `json:"recId,omitempty" cborgen:"recId,omitempty"` 17 19 // relativeToDid: DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer. 18 20 RelativeToDid *string `json:"relativeToDid,omitempty" cborgen:"relativeToDid,omitempty"` 19 21 }
+34
api/bsky/unspeccedgetTrendingTopics.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package bsky 4 + 5 + // schema: app.bsky.unspecced.getTrendingTopics 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // UnspeccedGetTrendingTopics_Output is the output of a app.bsky.unspecced.getTrendingTopics call. 14 + type UnspeccedGetTrendingTopics_Output struct { 15 + Suggested []*UnspeccedDefs_TrendingTopic `json:"suggested" cborgen:"suggested"` 16 + Topics []*UnspeccedDefs_TrendingTopic `json:"topics" cborgen:"topics"` 17 + } 18 + 19 + // UnspeccedGetTrendingTopics calls the XRPC method "app.bsky.unspecced.getTrendingTopics". 20 + // 21 + // viewer: DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. 22 + func UnspeccedGetTrendingTopics(ctx context.Context, c *xrpc.Client, limit int64, viewer string) (*UnspeccedGetTrendingTopics_Output, error) { 23 + var out UnspeccedGetTrendingTopics_Output 24 + 25 + params := map[string]interface{}{ 26 + "limit": limit, 27 + "viewer": viewer, 28 + } 29 + if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getTrendingTopics", params, nil, &out); err != nil { 30 + return nil, err 31 + } 32 + 33 + return &out, nil 34 + }
+40
api/bsky/unspeccedsearchStarterPacksSkeleton.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package bsky 4 + 5 + // schema: app.bsky.unspecced.searchStarterPacksSkeleton 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // UnspeccedSearchStarterPacksSkeleton_Output is the output of a app.bsky.unspecced.searchStarterPacksSkeleton call. 14 + type UnspeccedSearchStarterPacksSkeleton_Output struct { 15 + Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 16 + // hitsTotal: Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. 17 + HitsTotal *int64 `json:"hitsTotal,omitempty" cborgen:"hitsTotal,omitempty"` 18 + StarterPacks []*UnspeccedDefs_SkeletonSearchStarterPack `json:"starterPacks" cborgen:"starterPacks"` 19 + } 20 + 21 + // UnspeccedSearchStarterPacksSkeleton calls the XRPC method "app.bsky.unspecced.searchStarterPacksSkeleton". 22 + // 23 + // cursor: Optional pagination mechanism; may not necessarily allow scrolling through entire result set. 24 + // q: Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. 25 + // viewer: DID of the account making the request (not included for public/unauthenticated queries). 26 + func UnspeccedSearchStarterPacksSkeleton(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string, viewer string) (*UnspeccedSearchStarterPacksSkeleton_Output, error) { 27 + var out UnspeccedSearchStarterPacksSkeleton_Output 28 + 29 + params := map[string]interface{}{ 30 + "cursor": cursor, 31 + "limit": limit, 32 + "q": q, 33 + "viewer": viewer, 34 + } 35 + if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.searchStarterPacksSkeleton", params, nil, &out); err != nil { 36 + return nil, err 37 + } 38 + 39 + return &out, nil 40 + }
+1
api/chat/convodefs.go
··· 18 18 LastMessage *ConvoDefs_ConvoView_LastMessage `json:"lastMessage,omitempty" cborgen:"lastMessage,omitempty"` 19 19 Members []*ActorDefs_ProfileViewBasic `json:"members" cborgen:"members"` 20 20 Muted bool `json:"muted" cborgen:"muted"` 21 + Opened *bool `json:"opened,omitempty" cborgen:"opened,omitempty"` 21 22 Rev string `json:"rev" cborgen:"rev"` 22 23 UnreadCount int64 `json:"unreadCount" cborgen:"unreadCount"` 23 24 }
+1 -1
cmd/gosky/bsky.go
··· 335 335 return err 336 336 } 337 337 338 - notifs, err := appbsky.NotificationListNotifications(ctx, xrpcc, "", 50, false, "") 338 + notifs, err := appbsky.NotificationListNotifications(ctx, xrpcc, "", 50, false, nil, "") 339 339 if err != nil { 340 340 return err 341 341 }
+1 -1
fakedata/generators.go
··· 390 390 func BrowseAccount(xrpcc *xrpc.Client, acc *AccountContext) error { 391 391 // fetch notifications 392 392 maxNotif := 50 393 - resp, err := appbsky.NotificationListNotifications(context.TODO(), xrpcc, "", int64(maxNotif), false, "") 393 + resp, err := appbsky.NotificationListNotifications(context.TODO(), xrpcc, "", int64(maxNotif), false, nil, "") 394 394 if err != nil { 395 395 return err 396 396 }
+1 -1
testing/utils.go
··· 471 471 t.Helper() 472 472 473 473 ctx := context.TODO() 474 - resp, err := bsky.NotificationListNotifications(ctx, u.client, "", 100, false, "") 474 + resp, err := bsky.NotificationListNotifications(ctx, u.client, "", 100, false, nil, "") 475 475 if err != nil { 476 476 t.Fatal(err) 477 477 }