Something went wrong. Try again.
Monorepo for Tangled tangled.org
Something went wrong. Try again.
Go
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package tangled
// schema: sh.tangled.actor.getProfileActivity
import ( "context"
"github.com/bluesky-social/indigo/lex/util")
const ( ActorGetProfileActivityNSID = "sh.tangled.actor.getProfileActivity")
// ActorGetProfileActivity_ActivityMonth is a "activityMonth" in the sh.tangled.actor.getProfileActivity schema.type ActorGetProfileActivity_ActivityMonth struct { Commits int64 `json:"commits" cborgen:"commits"` Issues []*ActorGetProfileActivity_IssueActivity `json:"issues" cborgen:"issues"` Pulls []*ActorGetProfileActivity_PullActivity `json:"pulls" cborgen:"pulls"` Repos []*ActorGetProfileActivity_RepoActivity `json:"repos" cborgen:"repos"` // start: Start of this UTC calendar month. Start string `json:"start" cborgen:"start"`}
// ActorGetProfileActivity_IssueActivity is a "issueActivity" in the sh.tangled.actor.getProfileActivity schema.type ActorGetProfileActivity_IssueActivity struct { Repo *ActorGetProfileActivity_RepoRef `json:"repo" cborgen:"repo"` State string `json:"state" cborgen:"state"` Title string `json:"title" cborgen:"title"` Uri string `json:"uri" cborgen:"uri"`}
// ActorGetProfileActivity_Output is the output of a sh.tangled.actor.getProfileActivity call.type ActorGetProfileActivity_Output struct { Months []*ActorGetProfileActivity_ActivityMonth `json:"months" cborgen:"months"` // truncated: True when the result reached the server activity-item safety limit. Truncated bool `json:"truncated" cborgen:"truncated"`}
// ActorGetProfileActivity_PullActivity is a "pullActivity" in the sh.tangled.actor.getProfileActivity schema.type ActorGetProfileActivity_PullActivity struct { Repo *ActorGetProfileActivity_RepoRef `json:"repo" cborgen:"repo"` State string `json:"state" cborgen:"state"` Title string `json:"title" cborgen:"title"` Uri string `json:"uri" cborgen:"uri"`}
// ActorGetProfileActivity_RepoActivity is a "repoActivity" in the sh.tangled.actor.getProfileActivity schema.type ActorGetProfileActivity_RepoActivity struct { Kind string `json:"kind" cborgen:"kind"` Repo *ActorGetProfileActivity_RepoRef `json:"repo" cborgen:"repo"`}
// ActorGetProfileActivity_RepoRef is a "repoRef" in the sh.tangled.actor.getProfileActivity schema.type ActorGetProfileActivity_RepoRef struct { Did *string `json:"did,omitempty" cborgen:"did,omitempty"` Name string `json:"name" cborgen:"name"` OwnerDid string `json:"ownerDid" cborgen:"ownerDid"` OwnerHandle string `json:"ownerHandle" cborgen:"ownerHandle"` Uri string `json:"uri" cborgen:"uri"`}
// ActorGetProfileActivity calls the XRPC method "sh.tangled.actor.getProfileActivity".//// actor: Actor whose activity to return.// months: Number of UTC calendar months to include, including the current month.func ActorGetProfileActivity(ctx context.Context, c util.LexClient, actor string, months int64) (*ActorGetProfileActivity_Output, error) { var out ActorGetProfileActivity_Output
params := map[string]interface{}{} params["actor"] = actor if months != 0 { params["months"] = months } if err := c.LexDo(ctx, util.Query, "", "sh.tangled.actor.getProfileActivity", params, nil, &out); err != nil { return nil, err }
return &out, nil}