porting all github actions from bluesky-social/indigo to tangled CI

Update lexgen for bsky lexicons

+110 -18
api/bsky/actordefs.go
··· 260 260 ActorDefs_BskyAppStatePref *ActorDefs_BskyAppStatePref 261 261 ActorDefs_LabelersPref *ActorDefs_LabelersPref 262 262 ActorDefs_PostInteractionSettingsPref *ActorDefs_PostInteractionSettingsPref 263 + ActorDefs_VerificationPrefs *ActorDefs_VerificationPrefs 263 264 } 264 265 265 266 func (t *ActorDefs_Preferences_Elem) MarshalJSON() ([]byte, error) { ··· 315 316 t.ActorDefs_PostInteractionSettingsPref.LexiconTypeID = "app.bsky.actor.defs#postInteractionSettingsPref" 316 317 return json.Marshal(t.ActorDefs_PostInteractionSettingsPref) 317 318 } 319 + if t.ActorDefs_VerificationPrefs != nil { 320 + t.ActorDefs_VerificationPrefs.LexiconTypeID = "app.bsky.actor.defs#verificationPrefs" 321 + return json.Marshal(t.ActorDefs_VerificationPrefs) 322 + } 318 323 return nil, fmt.Errorf("cannot marshal empty enum") 319 324 } 320 325 func (t *ActorDefs_Preferences_Elem) UnmarshalJSON(b []byte) error { ··· 363 368 case "app.bsky.actor.defs#postInteractionSettingsPref": 364 369 t.ActorDefs_PostInteractionSettingsPref = new(ActorDefs_PostInteractionSettingsPref) 365 370 return json.Unmarshal(b, t.ActorDefs_PostInteractionSettingsPref) 371 + case "app.bsky.actor.defs#verificationPrefs": 372 + t.ActorDefs_VerificationPrefs = new(ActorDefs_VerificationPrefs) 373 + return json.Unmarshal(b, t.ActorDefs_VerificationPrefs) 366 374 367 375 default: 368 376 return nil ··· 385 393 386 394 // ActorDefs_ProfileView is a "profileView" in the app.bsky.actor.defs schema. 387 395 type ActorDefs_ProfileView struct { 388 - Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 389 - Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 390 - CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 391 - Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 392 - Did string `json:"did" cborgen:"did"` 393 - DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"` 394 - Handle string `json:"handle" cborgen:"handle"` 395 - IndexedAt *string `json:"indexedAt,omitempty" cborgen:"indexedAt,omitempty"` 396 - Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 397 - Viewer *ActorDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 396 + Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 397 + Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 398 + CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 399 + Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 400 + Did string `json:"did" cborgen:"did"` 401 + DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"` 402 + Handle string `json:"handle" cborgen:"handle"` 403 + IndexedAt *string `json:"indexedAt,omitempty" cborgen:"indexedAt,omitempty"` 404 + Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 405 + Status *ActorDefs_StatusView `json:"status,omitempty" cborgen:"status,omitempty"` 406 + Verification *ActorDefs_VerificationState `json:"verification,omitempty" cborgen:"verification,omitempty"` 407 + Viewer *ActorDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 398 408 } 399 409 400 410 // ActorDefs_ProfileViewBasic is a "profileViewBasic" in the app.bsky.actor.defs schema. 401 411 type ActorDefs_ProfileViewBasic struct { 402 - Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 403 - Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 404 - CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 405 - Did string `json:"did" cborgen:"did"` 406 - DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"` 407 - Handle string `json:"handle" cborgen:"handle"` 408 - Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 409 - Viewer *ActorDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 412 + Associated *ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 413 + Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 414 + CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 415 + Did string `json:"did" cborgen:"did"` 416 + DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"` 417 + Handle string `json:"handle" cborgen:"handle"` 418 + Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 419 + Status *ActorDefs_StatusView `json:"status,omitempty" cborgen:"status,omitempty"` 420 + Verification *ActorDefs_VerificationState `json:"verification,omitempty" cborgen:"verification,omitempty"` 421 + Viewer *ActorDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 410 422 } 411 423 412 424 // ActorDefs_ProfileViewDetailed is a "profileViewDetailed" in the app.bsky.actor.defs schema. ··· 426 438 Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 427 439 PinnedPost *comatprototypes.RepoStrongRef `json:"pinnedPost,omitempty" cborgen:"pinnedPost,omitempty"` 428 440 PostsCount *int64 `json:"postsCount,omitempty" cborgen:"postsCount,omitempty"` 441 + Status *ActorDefs_StatusView `json:"status,omitempty" cborgen:"status,omitempty"` 442 + Verification *ActorDefs_VerificationState `json:"verification,omitempty" cborgen:"verification,omitempty"` 429 443 Viewer *ActorDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 430 444 } 431 445 ··· 455 469 Items []*ActorDefs_SavedFeed `json:"items" cborgen:"items"` 456 470 } 457 471 472 + // ActorDefs_StatusView is a "statusView" in the app.bsky.actor.defs schema. 473 + type ActorDefs_StatusView struct { 474 + // embed: An optional embed associated with the status. 475 + Embed *ActorDefs_StatusView_Embed `json:"embed,omitempty" cborgen:"embed,omitempty"` 476 + // expiresAt: The date when this status will expire. The application might choose to no longer return the status after expiration. 477 + ExpiresAt *string `json:"expiresAt,omitempty" cborgen:"expiresAt,omitempty"` 478 + // isActive: True if the status is not expired, false if it is expired. Only present if expiration was set. 479 + IsActive *bool `json:"isActive,omitempty" cborgen:"isActive,omitempty"` 480 + Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"` 481 + // status: The status for the account. 482 + Status string `json:"status" cborgen:"status"` 483 + } 484 + 485 + // An optional embed associated with the status. 486 + type ActorDefs_StatusView_Embed struct { 487 + EmbedExternal_View *EmbedExternal_View 488 + } 489 + 490 + func (t *ActorDefs_StatusView_Embed) MarshalJSON() ([]byte, error) { 491 + if t.EmbedExternal_View != nil { 492 + t.EmbedExternal_View.LexiconTypeID = "app.bsky.embed.external#view" 493 + return json.Marshal(t.EmbedExternal_View) 494 + } 495 + return nil, fmt.Errorf("cannot marshal empty enum") 496 + } 497 + func (t *ActorDefs_StatusView_Embed) UnmarshalJSON(b []byte) error { 498 + typ, err := util.TypeExtract(b) 499 + if err != nil { 500 + return err 501 + } 502 + 503 + switch typ { 504 + case "app.bsky.embed.external#view": 505 + t.EmbedExternal_View = new(EmbedExternal_View) 506 + return json.Unmarshal(b, t.EmbedExternal_View) 507 + 508 + default: 509 + return nil 510 + } 511 + } 512 + 458 513 // ActorDefs_ThreadViewPref is a "threadViewPref" in the app.bsky.actor.defs schema. 459 514 // 460 515 // RECORDTYPE: ActorDefs_ThreadViewPref ··· 464 519 PrioritizeFollowedUsers *bool `json:"prioritizeFollowedUsers,omitempty" cborgen:"prioritizeFollowedUsers,omitempty"` 465 520 // sort: Sorting mode for threads. 466 521 Sort *string `json:"sort,omitempty" cborgen:"sort,omitempty"` 522 + } 523 + 524 + // ActorDefs_VerificationPrefs is a "verificationPrefs" in the app.bsky.actor.defs schema. 525 + // 526 + // Preferences for how verified accounts appear in the app. 527 + // 528 + // RECORDTYPE: ActorDefs_VerificationPrefs 529 + type ActorDefs_VerificationPrefs struct { 530 + LexiconTypeID string `json:"$type,const=app.bsky.actor.defs#verificationPrefs" cborgen:"$type,const=app.bsky.actor.defs#verificationPrefs"` 531 + // hideBadges: Hide the blue check badges for verified accounts and trusted verifiers. 532 + HideBadges *bool `json:"hideBadges,omitempty" cborgen:"hideBadges,omitempty"` 533 + } 534 + 535 + // ActorDefs_VerificationState is a "verificationState" in the app.bsky.actor.defs schema. 536 + // 537 + // Represents the verification information about the user this object is attached to. 538 + type ActorDefs_VerificationState struct { 539 + // trustedVerifierStatus: The user's status as a trusted verifier. 540 + TrustedVerifierStatus string `json:"trustedVerifierStatus" cborgen:"trustedVerifierStatus"` 541 + // verifications: All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included. 542 + Verifications []*ActorDefs_VerificationView `json:"verifications" cborgen:"verifications"` 543 + // verifiedStatus: The user's status as a verified account. 544 + VerifiedStatus string `json:"verifiedStatus" cborgen:"verifiedStatus"` 545 + } 546 + 547 + // ActorDefs_VerificationView is a "verificationView" in the app.bsky.actor.defs schema. 548 + // 549 + // An individual verification for an associated subject. 550 + type ActorDefs_VerificationView struct { 551 + // createdAt: Timestamp when the verification was created. 552 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 553 + // isValid: True if the verification passes validation, otherwise false. 554 + IsValid bool `json:"isValid" cborgen:"isValid"` 555 + // issuer: The user who issued this verification. 556 + Issuer string `json:"issuer" cborgen:"issuer"` 557 + // uri: The AT-URI of the verification record. 558 + Uri string `json:"uri" cborgen:"uri"` 467 559 } 468 560 469 561 // ActorDefs_ViewerState is a "viewerState" in the app.bsky.actor.defs schema.
+85
api/bsky/actorstatus.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package bsky 4 + 5 + // schema: app.bsky.actor.status 6 + 7 + import ( 8 + "bytes" 9 + "encoding/json" 10 + "fmt" 11 + "io" 12 + 13 + "github.com/bluesky-social/indigo/lex/util" 14 + cbg "github.com/whyrusleeping/cbor-gen" 15 + ) 16 + 17 + func init() { 18 + util.RegisterType("app.bsky.actor.status", &ActorStatus{}) 19 + } // 20 + // RECORDTYPE: ActorStatus 21 + type ActorStatus struct { 22 + LexiconTypeID string `json:"$type,const=app.bsky.actor.status" cborgen:"$type,const=app.bsky.actor.status"` 23 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 24 + // durationMinutes: The duration of the status in minutes. Applications can choose to limit the duration. 25 + DurationMinutes *int64 `json:"durationMinutes,omitempty" cborgen:"durationMinutes,omitempty"` 26 + // embed: An optional embed associated with the status. 27 + Embed *ActorStatus_Embed `json:"embed,omitempty" cborgen:"embed,omitempty"` 28 + // status: The status for the account. 29 + Status string `json:"status" cborgen:"status"` 30 + } 31 + 32 + // An optional embed associated with the status. 33 + type ActorStatus_Embed struct { 34 + EmbedExternal *EmbedExternal 35 + } 36 + 37 + func (t *ActorStatus_Embed) MarshalJSON() ([]byte, error) { 38 + if t.EmbedExternal != nil { 39 + t.EmbedExternal.LexiconTypeID = "app.bsky.embed.external" 40 + return json.Marshal(t.EmbedExternal) 41 + } 42 + return nil, fmt.Errorf("cannot marshal empty enum") 43 + } 44 + func (t *ActorStatus_Embed) UnmarshalJSON(b []byte) error { 45 + typ, err := util.TypeExtract(b) 46 + if err != nil { 47 + return err 48 + } 49 + 50 + switch typ { 51 + case "app.bsky.embed.external": 52 + t.EmbedExternal = new(EmbedExternal) 53 + return json.Unmarshal(b, t.EmbedExternal) 54 + 55 + default: 56 + return nil 57 + } 58 + } 59 + 60 + func (t *ActorStatus_Embed) MarshalCBOR(w io.Writer) error { 61 + 62 + if t == nil { 63 + _, err := w.Write(cbg.CborNull) 64 + return err 65 + } 66 + if t.EmbedExternal != nil { 67 + return t.EmbedExternal.MarshalCBOR(w) 68 + } 69 + return fmt.Errorf("cannot cbor marshal empty enum") 70 + } 71 + func (t *ActorStatus_Embed) UnmarshalCBOR(r io.Reader) error { 72 + typ, b, err := util.CborTypeExtractReader(r) 73 + if err != nil { 74 + return err 75 + } 76 + 77 + switch typ { 78 + case "app.bsky.embed.external": 79 + t.EmbedExternal = new(EmbedExternal) 80 + return t.EmbedExternal.UnmarshalCBOR(bytes.NewReader(b)) 81 + 82 + default: 83 + return nil 84 + } 85 + }
+280
api/bsky/cbor_gen.go
··· 8740 8740 8741 8741 return nil 8742 8742 } 8743 + func (t *ActorStatus) MarshalCBOR(w io.Writer) error { 8744 + if t == nil { 8745 + _, err := w.Write(cbg.CborNull) 8746 + return err 8747 + } 8748 + 8749 + cw := cbg.NewCborWriter(w) 8750 + fieldCount := 5 8751 + 8752 + if t.DurationMinutes == nil { 8753 + fieldCount-- 8754 + } 8755 + 8756 + if t.Embed == nil { 8757 + fieldCount-- 8758 + } 8759 + 8760 + if _, err := cw.Write(cbg.CborEncodeMajorType(cbg.MajMap, uint64(fieldCount))); err != nil { 8761 + return err 8762 + } 8763 + 8764 + // t.LexiconTypeID (string) (string) 8765 + if len("$type") > 1000000 { 8766 + return xerrors.Errorf("Value in field \"$type\" was too long") 8767 + } 8768 + 8769 + if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("$type"))); err != nil { 8770 + return err 8771 + } 8772 + if _, err := cw.WriteString(string("$type")); err != nil { 8773 + return err 8774 + } 8775 + 8776 + if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("app.bsky.actor.status"))); err != nil { 8777 + return err 8778 + } 8779 + if _, err := cw.WriteString(string("app.bsky.actor.status")); err != nil { 8780 + return err 8781 + } 8782 + 8783 + // t.Embed (bsky.ActorStatus_Embed) (struct) 8784 + if t.Embed != nil { 8785 + 8786 + if len("embed") > 1000000 { 8787 + return xerrors.Errorf("Value in field \"embed\" was too long") 8788 + } 8789 + 8790 + if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("embed"))); err != nil { 8791 + return err 8792 + } 8793 + if _, err := cw.WriteString(string("embed")); err != nil { 8794 + return err 8795 + } 8796 + 8797 + if err := t.Embed.MarshalCBOR(cw); err != nil { 8798 + return err 8799 + } 8800 + } 8801 + 8802 + // t.Status (string) (string) 8803 + if len("status") > 1000000 { 8804 + return xerrors.Errorf("Value in field \"status\" was too long") 8805 + } 8806 + 8807 + if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("status"))); err != nil { 8808 + return err 8809 + } 8810 + if _, err := cw.WriteString(string("status")); err != nil { 8811 + return err 8812 + } 8813 + 8814 + if len(t.Status) > 1000000 { 8815 + return xerrors.Errorf("Value in field t.Status was too long") 8816 + } 8817 + 8818 + if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(t.Status))); err != nil { 8819 + return err 8820 + } 8821 + if _, err := cw.WriteString(string(t.Status)); err != nil { 8822 + return err 8823 + } 8824 + 8825 + // t.CreatedAt (string) (string) 8826 + if len("createdAt") > 1000000 { 8827 + return xerrors.Errorf("Value in field \"createdAt\" was too long") 8828 + } 8829 + 8830 + if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("createdAt"))); err != nil { 8831 + return err 8832 + } 8833 + if _, err := cw.WriteString(string("createdAt")); err != nil { 8834 + return err 8835 + } 8836 + 8837 + if len(t.CreatedAt) > 1000000 { 8838 + return xerrors.Errorf("Value in field t.CreatedAt was too long") 8839 + } 8840 + 8841 + if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(t.CreatedAt))); err != nil { 8842 + return err 8843 + } 8844 + if _, err := cw.WriteString(string(t.CreatedAt)); err != nil { 8845 + return err 8846 + } 8847 + 8848 + // t.DurationMinutes (int64) (int64) 8849 + if t.DurationMinutes != nil { 8850 + 8851 + if len("durationMinutes") > 1000000 { 8852 + return xerrors.Errorf("Value in field \"durationMinutes\" was too long") 8853 + } 8854 + 8855 + if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("durationMinutes"))); err != nil { 8856 + return err 8857 + } 8858 + if _, err := cw.WriteString(string("durationMinutes")); err != nil { 8859 + return err 8860 + } 8861 + 8862 + if t.DurationMinutes == nil { 8863 + if _, err := cw.Write(cbg.CborNull); err != nil { 8864 + return err 8865 + } 8866 + } else { 8867 + if *t.DurationMinutes >= 0 { 8868 + if err := cw.WriteMajorTypeHeader(cbg.MajUnsignedInt, uint64(*t.DurationMinutes)); err != nil { 8869 + return err 8870 + } 8871 + } else { 8872 + if err := cw.WriteMajorTypeHeader(cbg.MajNegativeInt, uint64(-*t.DurationMinutes-1)); err != nil { 8873 + return err 8874 + } 8875 + } 8876 + } 8877 + 8878 + } 8879 + return nil 8880 + } 8881 + 8882 + func (t *ActorStatus) UnmarshalCBOR(r io.Reader) (err error) { 8883 + *t = ActorStatus{} 8884 + 8885 + cr := cbg.NewCborReader(r) 8886 + 8887 + maj, extra, err := cr.ReadHeader() 8888 + if err != nil { 8889 + return err 8890 + } 8891 + defer func() { 8892 + if err == io.EOF { 8893 + err = io.ErrUnexpectedEOF 8894 + } 8895 + }() 8896 + 8897 + if maj != cbg.MajMap { 8898 + return fmt.Errorf("cbor input should be of type map") 8899 + } 8900 + 8901 + if extra > cbg.MaxLength { 8902 + return fmt.Errorf("ActorStatus: map struct too large (%d)", extra) 8903 + } 8904 + 8905 + n := extra 8906 + 8907 + nameBuf := make([]byte, 15) 8908 + for i := uint64(0); i < n; i++ { 8909 + nameLen, ok, err := cbg.ReadFullStringIntoBuf(cr, nameBuf, 1000000) 8910 + if err != nil { 8911 + return err 8912 + } 8913 + 8914 + if !ok { 8915 + // Field doesn't exist on this type, so ignore it 8916 + if err := cbg.ScanForLinks(cr, func(cid.Cid) {}); err != nil { 8917 + return err 8918 + } 8919 + continue 8920 + } 8921 + 8922 + switch string(nameBuf[:nameLen]) { 8923 + // t.LexiconTypeID (string) (string) 8924 + case "$type": 8925 + 8926 + { 8927 + sval, err := cbg.ReadStringWithMax(cr, 1000000) 8928 + if err != nil { 8929 + return err 8930 + } 8931 + 8932 + t.LexiconTypeID = string(sval) 8933 + } 8934 + // t.Embed (bsky.ActorStatus_Embed) (struct) 8935 + case "embed": 8936 + 8937 + { 8938 + 8939 + b, err := cr.ReadByte() 8940 + if err != nil { 8941 + return err 8942 + } 8943 + if b != cbg.CborNull[0] { 8944 + if err := cr.UnreadByte(); err != nil { 8945 + return err 8946 + } 8947 + t.Embed = new(ActorStatus_Embed) 8948 + if err := t.Embed.UnmarshalCBOR(cr); err != nil { 8949 + return xerrors.Errorf("unmarshaling t.Embed pointer: %w", err) 8950 + } 8951 + } 8952 + 8953 + } 8954 + // t.Status (string) (string) 8955 + case "status": 8956 + 8957 + { 8958 + sval, err := cbg.ReadStringWithMax(cr, 1000000) 8959 + if err != nil { 8960 + return err 8961 + } 8962 + 8963 + t.Status = string(sval) 8964 + } 8965 + // t.CreatedAt (string) (string) 8966 + case "createdAt": 8967 + 8968 + { 8969 + sval, err := cbg.ReadStringWithMax(cr, 1000000) 8970 + if err != nil { 8971 + return err 8972 + } 8973 + 8974 + t.CreatedAt = string(sval) 8975 + } 8976 + // t.DurationMinutes (int64) (int64) 8977 + case "durationMinutes": 8978 + { 8979 + 8980 + b, err := cr.ReadByte() 8981 + if err != nil { 8982 + return err 8983 + } 8984 + if b != cbg.CborNull[0] { 8985 + if err := cr.UnreadByte(); err != nil { 8986 + return err 8987 + } 8988 + maj, extra, err := cr.ReadHeader() 8989 + if err != nil { 8990 + return err 8991 + } 8992 + var extraI int64 8993 + switch maj { 8994 + case cbg.MajUnsignedInt: 8995 + extraI = int64(extra) 8996 + if extraI < 0 { 8997 + return fmt.Errorf("int64 positive overflow") 8998 + } 8999 + case cbg.MajNegativeInt: 9000 + extraI = int64(extra) 9001 + if extraI < 0 { 9002 + return fmt.Errorf("int64 negative overflow") 9003 + } 9004 + extraI = -1 - extraI 9005 + default: 9006 + return fmt.Errorf("wrong type for int64 field: %d", maj) 9007 + } 9008 + 9009 + t.DurationMinutes = (*int64)(&extraI) 9010 + } 9011 + } 9012 + 9013 + default: 9014 + // Field doesn't exist on this type, so ignore it 9015 + if err := cbg.ScanForLinks(r, func(cid.Cid) {}); err != nil { 9016 + return err 9017 + } 9018 + } 9019 + } 9020 + 9021 + return nil 9022 + }
+9
api/bsky/notificationdefs.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package bsky 4 + 5 + // schema: app.bsky.notification.defs 6 + 7 + // NotificationDefs_RecordDeleted is a "recordDeleted" in the app.bsky.notification.defs schema. 8 + type NotificationDefs_RecordDeleted struct { 9 + }
+1 -1
api/bsky/notificationlistNotifications.go
··· 19 19 IndexedAt string `json:"indexedAt" cborgen:"indexedAt"` 20 20 IsRead bool `json:"isRead" cborgen:"isRead"` 21 21 Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 22 - // reason: Expected values are 'like', 'repost', 'follow', 'mention', 'reply', 'quote', and 'starterpack-joined'. 22 + // reason: Expected values are 'like', 'repost', 'follow', 'mention', 'reply', 'quote', 'starterpack-joined', 'verified', and 'unverified'. 23 23 Reason string `json:"reason" cborgen:"reason"` 24 24 ReasonSubject *string `json:"reasonSubject,omitempty" cborgen:"reasonSubject,omitempty"` 25 25 Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"`
+1 -1
api/bsky/unspeccedgetSuggestedUsers.go
··· 12 12 13 13 // UnspeccedGetSuggestedUsers_Output is the output of a app.bsky.unspecced.getSuggestedUsers call. 14 14 type UnspeccedGetSuggestedUsers_Output struct { 15 - Actors []*ActorDefs_ProfileViewBasic `json:"actors" cborgen:"actors"` 15 + Actors []*ActorDefs_ProfileView `json:"actors" cborgen:"actors"` 16 16 } 17 17 18 18 // UnspeccedGetSuggestedUsers calls the XRPC method "app.bsky.unspecced.getSuggestedUsers".
+8 -7
api/chat/actordefs.go
··· 13 13 type ActorDefs_ProfileViewBasic struct { 14 14 Associated *appbskytypes.ActorDefs_ProfileAssociated `json:"associated,omitempty" cborgen:"associated,omitempty"` 15 15 Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"` 16 - // chatDisabled: Set to true when the actor cannot actively participate in converations 17 - ChatDisabled *bool `json:"chatDisabled,omitempty" cborgen:"chatDisabled,omitempty"` 18 - Did string `json:"did" cborgen:"did"` 19 - DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"` 20 - Handle string `json:"handle" cborgen:"handle"` 21 - Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 22 - Viewer *appbskytypes.ActorDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 16 + // chatDisabled: Set to true when the actor cannot actively participate in conversations 17 + ChatDisabled *bool `json:"chatDisabled,omitempty" cborgen:"chatDisabled,omitempty"` 18 + Did string `json:"did" cborgen:"did"` 19 + DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"` 20 + Handle string `json:"handle" cborgen:"handle"` 21 + Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"` 22 + Verification *appbskytypes.ActorDefs_VerificationState `json:"verification,omitempty" cborgen:"verification,omitempty"` 23 + Viewer *appbskytypes.ActorDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"` 23 24 }
+1
gen/main.go
··· 75 75 bsky.FeedPostgate{}, 76 76 bsky.FeedPostgate_DisableRule{}, 77 77 bsky.GraphVerification{}, 78 + bsky.ActorStatus{}, 78 79 /*bsky.EmbedImages_View{}, 79 80 bsky.EmbedRecord_View{}, bsky.EmbedRecordWithMedia_View{}, 80 81 bsky.EmbedExternal_View{}, bsky.EmbedImages_ViewImage{},