Something went wrong. Try again.
Monorepo for Tangled forked from tangled.org/core
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package org_tangled
// schema: org.tangled.actor.getProfileActivity
import ( "context"
"github.com/bluesky-social/indigo/lex/util")
const ( ActorGetProfileActivityNSID = "org.tangled.actor.getProfileActivity")
// ActorGetProfileActivity_ActivityMonth is a "activityMonth" in the org.tangled.actor.getProfileActivity schema.type ActorGetProfileActivity_ActivityMonth struct { // commitRepos: Repos the actor committed to this month, busiest first. CommitRepos []*ActorGetProfileActivity_CommitRepoActivity `json:"commitRepos,omitempty" cborgen:"commitRepos,omitempty"` 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_CommitActivity is a "commitActivity" in the org.tangled.actor.getProfileActivity schema.type ActorGetProfileActivity_CommitActivity struct { CommittedAt string `json:"committedAt" cborgen:"committedAt"` Sha string `json:"sha" cborgen:"sha"` Subject string `json:"subject" cborgen:"subject"`}
// ActorGetProfileActivity_CommitRepoActivity is a "commitRepoActivity" in the org.tangled.actor.getProfileActivity schema.type ActorGetProfileActivity_CommitRepoActivity struct { Commits int64 `json:"commits" cborgen:"commits"` // recent: Most recent commits in this repo during the month. Recent []*ActorGetProfileActivity_CommitActivity `json:"recent" cborgen:"recent"` Repo *ActorGetProfileActivity_RepoRef `json:"repo" cborgen:"repo"`}
// ActorGetProfileActivity_IssueActivity is a "issueActivity" in the org.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 org.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 org.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 org.tangled.actor.getProfileActivity schema.type ActorGetProfileActivity_RepoActivity struct { Description *string `json:"description,omitempty" cborgen:"description,omitempty"` Kind string `json:"kind" cborgen:"kind"` Repo *ActorGetProfileActivity_RepoRef `json:"repo" cborgen:"repo"`}
// ActorGetProfileActivity_RepoRef is a "repoRef" in the org.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 "org.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, "", "org.tangled.actor.getProfileActivity", params, nil, &out); err != nil { return nil, err }
return &out, nil}