+2
api/atproto/servercreateSession.go
+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
+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
+
}
+35
api/bsky/graphsearchStarterPacks.go
+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
+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
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
+
}
+34
api/bsky/unspeccedgetTrendingTopics.go
+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
+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
+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
}