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

Lexgen Latest Types (#1117)

This lexgen's our latest types so we're up-to-date, and fixes up the
breaking changes that occurred as a result (just
`ModerationQueryEvents`, which has two new parameters).

Now `make lexgen` runs cleanly.

authored by Jim Calabro and committed by GitHub edc81792 ef43ad32

+11
api/atproto/moderationcreateReport.go
··· 14 14 15 15 // ModerationCreateReport_Input is the input argument to a com.atproto.moderation.createReport call. 16 16 type ModerationCreateReport_Input struct { 17 + ModTool *ModerationCreateReport_ModTool `json:"modTool,omitempty" cborgen:"modTool,omitempty"` 17 18 // reason: Additional context about the content and violation. 18 19 Reason *string `json:"reason,omitempty" cborgen:"reason,omitempty"` 19 20 // reasonType: Indicates the broad category of violation the report is for. ··· 54 55 default: 55 56 return nil 56 57 } 58 + } 59 + 60 + // ModerationCreateReport_ModTool is a "modTool" in the com.atproto.moderation.createReport schema. 61 + // 62 + // Moderation tool information for tracing the source of the action 63 + type ModerationCreateReport_ModTool struct { 64 + // meta: Additional arbitrary metadata about the source 65 + Meta *interface{} `json:"meta,omitempty" cborgen:"meta,omitempty"` 66 + // name: Name/identifier of the source (e.g., 'bsky-app/android', 'bsky-web/chrome') 67 + Name string `json:"name" cborgen:"name"` 57 68 } 58 69 59 70 // ModerationCreateReport_Output is the output of a com.atproto.moderation.createReport call.
+6 -4
api/bsky/notificationregisterPush.go
··· 12 12 13 13 // NotificationRegisterPush_Input is the input argument to a app.bsky.notification.registerPush call. 14 14 type NotificationRegisterPush_Input struct { 15 - AppId string `json:"appId" cborgen:"appId"` 16 - Platform string `json:"platform" cborgen:"platform"` 17 - ServiceDid string `json:"serviceDid" cborgen:"serviceDid"` 18 - Token string `json:"token" cborgen:"token"` 15 + // ageRestricted: Set to true when the actor is age restricted 16 + AgeRestricted *bool `json:"ageRestricted,omitempty" cborgen:"ageRestricted,omitempty"` 17 + AppId string `json:"appId" cborgen:"appId"` 18 + Platform string `json:"platform" cborgen:"platform"` 19 + ServiceDid string `json:"serviceDid" cborgen:"serviceDid"` 20 + Token string `json:"token" cborgen:"token"` 19 21 } 20 22 21 23 // NotificationRegisterPush calls the XRPC method "app.bsky.notification.registerPush".
+32
api/bsky/unspecceddefs.go
··· 4 4 5 5 // schema: app.bsky.unspecced.defs 6 6 7 + // UnspeccedDefs_AgeAssuranceEvent is a "ageAssuranceEvent" in the app.bsky.unspecced.defs schema. 8 + // 9 + // Object used to store age assurance data in stash. 10 + type UnspeccedDefs_AgeAssuranceEvent struct { 11 + // attemptId: The unique identifier for this instance of the age assurance flow, in UUID format. 12 + AttemptId string `json:"attemptId" cborgen:"attemptId"` 13 + // completeIp: The IP address used when completing the AA flow. 14 + CompleteIp *string `json:"completeIp,omitempty" cborgen:"completeIp,omitempty"` 15 + // completeUa: The user agent used when completing the AA flow. 16 + CompleteUa *string `json:"completeUa,omitempty" cborgen:"completeUa,omitempty"` 17 + // createdAt: The date and time of this write operation. 18 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 19 + // email: The email used for AA. 20 + Email *string `json:"email,omitempty" cborgen:"email,omitempty"` 21 + // initIp: The IP address used when initiating the AA flow. 22 + InitIp *string `json:"initIp,omitempty" cborgen:"initIp,omitempty"` 23 + // initUa: The user agent used when initiating the AA flow. 24 + InitUa *string `json:"initUa,omitempty" cborgen:"initUa,omitempty"` 25 + // status: The status of the age assurance process. 26 + Status string `json:"status" cborgen:"status"` 27 + } 28 + 29 + // UnspeccedDefs_AgeAssuranceState is a "ageAssuranceState" in the app.bsky.unspecced.defs schema. 30 + // 31 + // The computed state of the age assurance process, returned to the user in question on certain authenticated requests. 32 + type UnspeccedDefs_AgeAssuranceState struct { 33 + // lastInitiatedAt: The timestamp when this state was last updated. 34 + LastInitiatedAt *string `json:"lastInitiatedAt,omitempty" cborgen:"lastInitiatedAt,omitempty"` 35 + // status: The status of the age assurance process. 36 + Status string `json:"status" cborgen:"status"` 37 + } 38 + 7 39 // UnspeccedDefs_SkeletonSearchActor is a "skeletonSearchActor" in the app.bsky.unspecced.defs schema. 8 40 type UnspeccedDefs_SkeletonSearchActor struct { 9 41 Did string `json:"did" cborgen:"did"`
+21
api/bsky/unspeccedgetAgeAssuranceState.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package bsky 4 + 5 + // schema: app.bsky.unspecced.getAgeAssuranceState 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/lex/util" 11 + ) 12 + 13 + // UnspeccedGetAgeAssuranceState calls the XRPC method "app.bsky.unspecced.getAgeAssuranceState". 14 + func UnspeccedGetAgeAssuranceState(ctx context.Context, c util.LexClient) (*UnspeccedDefs_AgeAssuranceState, error) { 15 + var out UnspeccedDefs_AgeAssuranceState 16 + if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getAgeAssuranceState", nil, nil, &out); err != nil { 17 + return nil, err 18 + } 19 + 20 + return &out, nil 21 + }
+31
api/bsky/unspeccedinitAgeAssurance.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package bsky 4 + 5 + // schema: app.bsky.unspecced.initAgeAssurance 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/lex/util" 11 + ) 12 + 13 + // UnspeccedInitAgeAssurance_Input is the input argument to a app.bsky.unspecced.initAgeAssurance call. 14 + type UnspeccedInitAgeAssurance_Input struct { 15 + // countryCode: An ISO 3166-1 alpha-2 code of the user's location. 16 + CountryCode string `json:"countryCode" cborgen:"countryCode"` 17 + // email: The user's email address to receive assurance instructions. 18 + Email string `json:"email" cborgen:"email"` 19 + // language: The user's preferred language for communication during the assurance process. 20 + Language string `json:"language" cborgen:"language"` 21 + } 22 + 23 + // UnspeccedInitAgeAssurance calls the XRPC method "app.bsky.unspecced.initAgeAssurance". 24 + func UnspeccedInitAgeAssurance(ctx context.Context, c util.LexClient, input *UnspeccedInitAgeAssurance_Input) (*UnspeccedDefs_AgeAssuranceState, error) { 25 + var out UnspeccedDefs_AgeAssuranceState 26 + if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.unspecced.initAgeAssurance", nil, input, &out); err != nil { 27 + return nil, err 28 + } 29 + 30 + return &out, nil 31 + }
+133 -40
api/ozone/moderationdefs.go
··· 56 56 TakedownCount *int64 `json:"takedownCount,omitempty" cborgen:"takedownCount,omitempty"` 57 57 } 58 58 59 + // ModerationDefs_AgeAssuranceEvent is a "ageAssuranceEvent" in the tools.ozone.moderation.defs schema. 60 + // 61 + // Age assurance info coming directly from users. Only works on DID subjects. 62 + // 63 + // RECORDTYPE: ModerationDefs_AgeAssuranceEvent 64 + type ModerationDefs_AgeAssuranceEvent struct { 65 + LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#ageAssuranceEvent" cborgen:"$type,const=tools.ozone.moderation.defs#ageAssuranceEvent"` 66 + // attemptId: The unique identifier for this instance of the age assurance flow, in UUID format. 67 + AttemptId string `json:"attemptId" cborgen:"attemptId"` 68 + // completeIp: The IP address used when completing the AA flow. 69 + CompleteIp *string `json:"completeIp,omitempty" cborgen:"completeIp,omitempty"` 70 + // completeUa: The user agent used when completing the AA flow. 71 + CompleteUa *string `json:"completeUa,omitempty" cborgen:"completeUa,omitempty"` 72 + // createdAt: The date and time of this write operation. 73 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 74 + // initIp: The IP address used when initiating the AA flow. 75 + InitIp *string `json:"initIp,omitempty" cborgen:"initIp,omitempty"` 76 + // initUa: The user agent used when initiating the AA flow. 77 + InitUa *string `json:"initUa,omitempty" cborgen:"initUa,omitempty"` 78 + // status: The status of the age assurance process. 79 + Status string `json:"status" cborgen:"status"` 80 + } 81 + 82 + // ModerationDefs_AgeAssuranceOverrideEvent is a "ageAssuranceOverrideEvent" in the tools.ozone.moderation.defs schema. 83 + // 84 + // Age assurance status override by moderators. Only works on DID subjects. 85 + // 86 + // RECORDTYPE: ModerationDefs_AgeAssuranceOverrideEvent 87 + type ModerationDefs_AgeAssuranceOverrideEvent struct { 88 + LexiconTypeID string `json:"$type,const=tools.ozone.moderation.defs#ageAssuranceOverrideEvent" cborgen:"$type,const=tools.ozone.moderation.defs#ageAssuranceOverrideEvent"` 89 + // comment: Comment describing the reason for the override. 90 + Comment string `json:"comment" cborgen:"comment"` 91 + // status: The status to be set for the user decided by a moderator, overriding whatever value the user had previously. Use reset to default to original state. 92 + Status string `json:"status" cborgen:"status"` 93 + } 94 + 59 95 // ModerationDefs_BlobView is a "blobView" in the tools.ozone.moderation.defs schema. 60 96 type ModerationDefs_BlobView struct { 61 97 Cid string `json:"cid" cborgen:"cid"` ··· 323 359 CreatorHandle *string `json:"creatorHandle,omitempty" cborgen:"creatorHandle,omitempty"` 324 360 Event *ModerationDefs_ModEventView_Event `json:"event" cborgen:"event"` 325 361 Id int64 `json:"id" cborgen:"id"` 362 + ModTool *ModerationDefs_ModTool `json:"modTool,omitempty" cborgen:"modTool,omitempty"` 326 363 Subject *ModerationDefs_ModEventView_Subject `json:"subject" cborgen:"subject"` 327 364 SubjectBlobCids []string `json:"subjectBlobCids" cborgen:"subjectBlobCids"` 328 365 SubjectHandle *string `json:"subjectHandle,omitempty" cborgen:"subjectHandle,omitempty"` ··· 334 371 CreatedBy string `json:"createdBy" cborgen:"createdBy"` 335 372 Event *ModerationDefs_ModEventViewDetail_Event `json:"event" cborgen:"event"` 336 373 Id int64 `json:"id" cborgen:"id"` 374 + ModTool *ModerationDefs_ModTool `json:"modTool,omitempty" cborgen:"modTool,omitempty"` 337 375 Subject *ModerationDefs_ModEventViewDetail_Subject `json:"subject" cborgen:"subject"` 338 376 SubjectBlobs []*ModerationDefs_BlobView `json:"subjectBlobs" cborgen:"subjectBlobs"` 339 377 } 340 378 341 379 type ModerationDefs_ModEventViewDetail_Event struct { 342 - ModerationDefs_ModEventTakedown *ModerationDefs_ModEventTakedown 343 - ModerationDefs_ModEventReverseTakedown *ModerationDefs_ModEventReverseTakedown 344 - ModerationDefs_ModEventComment *ModerationDefs_ModEventComment 345 - ModerationDefs_ModEventReport *ModerationDefs_ModEventReport 346 - ModerationDefs_ModEventLabel *ModerationDefs_ModEventLabel 347 - ModerationDefs_ModEventAcknowledge *ModerationDefs_ModEventAcknowledge 348 - ModerationDefs_ModEventEscalate *ModerationDefs_ModEventEscalate 349 - ModerationDefs_ModEventMute *ModerationDefs_ModEventMute 350 - ModerationDefs_ModEventUnmute *ModerationDefs_ModEventUnmute 351 - ModerationDefs_ModEventMuteReporter *ModerationDefs_ModEventMuteReporter 352 - ModerationDefs_ModEventUnmuteReporter *ModerationDefs_ModEventUnmuteReporter 353 - ModerationDefs_ModEventEmail *ModerationDefs_ModEventEmail 354 - ModerationDefs_ModEventResolveAppeal *ModerationDefs_ModEventResolveAppeal 355 - ModerationDefs_ModEventDivert *ModerationDefs_ModEventDivert 356 - ModerationDefs_ModEventTag *ModerationDefs_ModEventTag 357 - ModerationDefs_AccountEvent *ModerationDefs_AccountEvent 358 - ModerationDefs_IdentityEvent *ModerationDefs_IdentityEvent 359 - ModerationDefs_RecordEvent *ModerationDefs_RecordEvent 360 - ModerationDefs_ModEventPriorityScore *ModerationDefs_ModEventPriorityScore 380 + ModerationDefs_ModEventTakedown *ModerationDefs_ModEventTakedown 381 + ModerationDefs_ModEventReverseTakedown *ModerationDefs_ModEventReverseTakedown 382 + ModerationDefs_ModEventComment *ModerationDefs_ModEventComment 383 + ModerationDefs_ModEventReport *ModerationDefs_ModEventReport 384 + ModerationDefs_ModEventLabel *ModerationDefs_ModEventLabel 385 + ModerationDefs_ModEventAcknowledge *ModerationDefs_ModEventAcknowledge 386 + ModerationDefs_ModEventEscalate *ModerationDefs_ModEventEscalate 387 + ModerationDefs_ModEventMute *ModerationDefs_ModEventMute 388 + ModerationDefs_ModEventUnmute *ModerationDefs_ModEventUnmute 389 + ModerationDefs_ModEventMuteReporter *ModerationDefs_ModEventMuteReporter 390 + ModerationDefs_ModEventUnmuteReporter *ModerationDefs_ModEventUnmuteReporter 391 + ModerationDefs_ModEventEmail *ModerationDefs_ModEventEmail 392 + ModerationDefs_ModEventResolveAppeal *ModerationDefs_ModEventResolveAppeal 393 + ModerationDefs_ModEventDivert *ModerationDefs_ModEventDivert 394 + ModerationDefs_ModEventTag *ModerationDefs_ModEventTag 395 + ModerationDefs_AccountEvent *ModerationDefs_AccountEvent 396 + ModerationDefs_IdentityEvent *ModerationDefs_IdentityEvent 397 + ModerationDefs_RecordEvent *ModerationDefs_RecordEvent 398 + ModerationDefs_ModEventPriorityScore *ModerationDefs_ModEventPriorityScore 399 + ModerationDefs_AgeAssuranceEvent *ModerationDefs_AgeAssuranceEvent 400 + ModerationDefs_AgeAssuranceOverrideEvent *ModerationDefs_AgeAssuranceOverrideEvent 361 401 } 362 402 363 403 func (t *ModerationDefs_ModEventViewDetail_Event) MarshalJSON() ([]byte, error) { ··· 437 477 t.ModerationDefs_ModEventPriorityScore.LexiconTypeID = "tools.ozone.moderation.defs#modEventPriorityScore" 438 478 return json.Marshal(t.ModerationDefs_ModEventPriorityScore) 439 479 } 480 + if t.ModerationDefs_AgeAssuranceEvent != nil { 481 + t.ModerationDefs_AgeAssuranceEvent.LexiconTypeID = "tools.ozone.moderation.defs#ageAssuranceEvent" 482 + return json.Marshal(t.ModerationDefs_AgeAssuranceEvent) 483 + } 484 + if t.ModerationDefs_AgeAssuranceOverrideEvent != nil { 485 + t.ModerationDefs_AgeAssuranceOverrideEvent.LexiconTypeID = "tools.ozone.moderation.defs#ageAssuranceOverrideEvent" 486 + return json.Marshal(t.ModerationDefs_AgeAssuranceOverrideEvent) 487 + } 440 488 return nil, fmt.Errorf("cannot marshal empty enum") 441 489 } 442 490 func (t *ModerationDefs_ModEventViewDetail_Event) UnmarshalJSON(b []byte) error { ··· 503 551 case "tools.ozone.moderation.defs#modEventPriorityScore": 504 552 t.ModerationDefs_ModEventPriorityScore = new(ModerationDefs_ModEventPriorityScore) 505 553 return json.Unmarshal(b, t.ModerationDefs_ModEventPriorityScore) 554 + case "tools.ozone.moderation.defs#ageAssuranceEvent": 555 + t.ModerationDefs_AgeAssuranceEvent = new(ModerationDefs_AgeAssuranceEvent) 556 + return json.Unmarshal(b, t.ModerationDefs_AgeAssuranceEvent) 557 + case "tools.ozone.moderation.defs#ageAssuranceOverrideEvent": 558 + t.ModerationDefs_AgeAssuranceOverrideEvent = new(ModerationDefs_AgeAssuranceOverrideEvent) 559 + return json.Unmarshal(b, t.ModerationDefs_AgeAssuranceOverrideEvent) 506 560 507 561 default: 508 562 return nil ··· 561 615 } 562 616 563 617 type ModerationDefs_ModEventView_Event struct { 564 - ModerationDefs_ModEventTakedown *ModerationDefs_ModEventTakedown 565 - ModerationDefs_ModEventReverseTakedown *ModerationDefs_ModEventReverseTakedown 566 - ModerationDefs_ModEventComment *ModerationDefs_ModEventComment 567 - ModerationDefs_ModEventReport *ModerationDefs_ModEventReport 568 - ModerationDefs_ModEventLabel *ModerationDefs_ModEventLabel 569 - ModerationDefs_ModEventAcknowledge *ModerationDefs_ModEventAcknowledge 570 - ModerationDefs_ModEventEscalate *ModerationDefs_ModEventEscalate 571 - ModerationDefs_ModEventMute *ModerationDefs_ModEventMute 572 - ModerationDefs_ModEventUnmute *ModerationDefs_ModEventUnmute 573 - ModerationDefs_ModEventMuteReporter *ModerationDefs_ModEventMuteReporter 574 - ModerationDefs_ModEventUnmuteReporter *ModerationDefs_ModEventUnmuteReporter 575 - ModerationDefs_ModEventEmail *ModerationDefs_ModEventEmail 576 - ModerationDefs_ModEventResolveAppeal *ModerationDefs_ModEventResolveAppeal 577 - ModerationDefs_ModEventDivert *ModerationDefs_ModEventDivert 578 - ModerationDefs_ModEventTag *ModerationDefs_ModEventTag 579 - ModerationDefs_AccountEvent *ModerationDefs_AccountEvent 580 - ModerationDefs_IdentityEvent *ModerationDefs_IdentityEvent 581 - ModerationDefs_RecordEvent *ModerationDefs_RecordEvent 582 - ModerationDefs_ModEventPriorityScore *ModerationDefs_ModEventPriorityScore 618 + ModerationDefs_ModEventTakedown *ModerationDefs_ModEventTakedown 619 + ModerationDefs_ModEventReverseTakedown *ModerationDefs_ModEventReverseTakedown 620 + ModerationDefs_ModEventComment *ModerationDefs_ModEventComment 621 + ModerationDefs_ModEventReport *ModerationDefs_ModEventReport 622 + ModerationDefs_ModEventLabel *ModerationDefs_ModEventLabel 623 + ModerationDefs_ModEventAcknowledge *ModerationDefs_ModEventAcknowledge 624 + ModerationDefs_ModEventEscalate *ModerationDefs_ModEventEscalate 625 + ModerationDefs_ModEventMute *ModerationDefs_ModEventMute 626 + ModerationDefs_ModEventUnmute *ModerationDefs_ModEventUnmute 627 + ModerationDefs_ModEventMuteReporter *ModerationDefs_ModEventMuteReporter 628 + ModerationDefs_ModEventUnmuteReporter *ModerationDefs_ModEventUnmuteReporter 629 + ModerationDefs_ModEventEmail *ModerationDefs_ModEventEmail 630 + ModerationDefs_ModEventResolveAppeal *ModerationDefs_ModEventResolveAppeal 631 + ModerationDefs_ModEventDivert *ModerationDefs_ModEventDivert 632 + ModerationDefs_ModEventTag *ModerationDefs_ModEventTag 633 + ModerationDefs_AccountEvent *ModerationDefs_AccountEvent 634 + ModerationDefs_IdentityEvent *ModerationDefs_IdentityEvent 635 + ModerationDefs_RecordEvent *ModerationDefs_RecordEvent 636 + ModerationDefs_ModEventPriorityScore *ModerationDefs_ModEventPriorityScore 637 + ModerationDefs_AgeAssuranceEvent *ModerationDefs_AgeAssuranceEvent 638 + ModerationDefs_AgeAssuranceOverrideEvent *ModerationDefs_AgeAssuranceOverrideEvent 583 639 } 584 640 585 641 func (t *ModerationDefs_ModEventView_Event) MarshalJSON() ([]byte, error) { ··· 659 715 t.ModerationDefs_ModEventPriorityScore.LexiconTypeID = "tools.ozone.moderation.defs#modEventPriorityScore" 660 716 return json.Marshal(t.ModerationDefs_ModEventPriorityScore) 661 717 } 718 + if t.ModerationDefs_AgeAssuranceEvent != nil { 719 + t.ModerationDefs_AgeAssuranceEvent.LexiconTypeID = "tools.ozone.moderation.defs#ageAssuranceEvent" 720 + return json.Marshal(t.ModerationDefs_AgeAssuranceEvent) 721 + } 722 + if t.ModerationDefs_AgeAssuranceOverrideEvent != nil { 723 + t.ModerationDefs_AgeAssuranceOverrideEvent.LexiconTypeID = "tools.ozone.moderation.defs#ageAssuranceOverrideEvent" 724 + return json.Marshal(t.ModerationDefs_AgeAssuranceOverrideEvent) 725 + } 662 726 return nil, fmt.Errorf("cannot marshal empty enum") 663 727 } 664 728 func (t *ModerationDefs_ModEventView_Event) UnmarshalJSON(b []byte) error { ··· 725 789 case "tools.ozone.moderation.defs#modEventPriorityScore": 726 790 t.ModerationDefs_ModEventPriorityScore = new(ModerationDefs_ModEventPriorityScore) 727 791 return json.Unmarshal(b, t.ModerationDefs_ModEventPriorityScore) 792 + case "tools.ozone.moderation.defs#ageAssuranceEvent": 793 + t.ModerationDefs_AgeAssuranceEvent = new(ModerationDefs_AgeAssuranceEvent) 794 + return json.Unmarshal(b, t.ModerationDefs_AgeAssuranceEvent) 795 + case "tools.ozone.moderation.defs#ageAssuranceOverrideEvent": 796 + t.ModerationDefs_AgeAssuranceOverrideEvent = new(ModerationDefs_AgeAssuranceOverrideEvent) 797 + return json.Unmarshal(b, t.ModerationDefs_AgeAssuranceOverrideEvent) 728 798 729 799 default: 730 800 return nil ··· 774 844 } 775 845 } 776 846 847 + // ModerationDefs_ModTool is a "modTool" in the tools.ozone.moderation.defs schema. 848 + // 849 + // Moderation tool information for tracing the source of the action 850 + type ModerationDefs_ModTool struct { 851 + // meta: Additional arbitrary metadata about the source 852 + Meta *interface{} `json:"meta,omitempty" cborgen:"meta,omitempty"` 853 + // name: Name/identifier of the source (e.g., 'automod', 'ozone/workspace') 854 + Name string `json:"name" cborgen:"name"` 855 + } 856 + 777 857 // ModerationDefs_Moderation is a "moderation" in the tools.ozone.moderation.defs schema. 778 858 type ModerationDefs_Moderation struct { 779 859 SubjectStatus *ModerationDefs_SubjectStatusView `json:"subjectStatus,omitempty" cborgen:"subjectStatus,omitempty"` ··· 939 1019 type ModerationDefs_SubjectStatusView struct { 940 1020 // accountStats: Statistics related to the account subject 941 1021 AccountStats *ModerationDefs_AccountStats `json:"accountStats,omitempty" cborgen:"accountStats,omitempty"` 1022 + // ageAssuranceState: Current age assurance state of the subject. 1023 + AgeAssuranceState *string `json:"ageAssuranceState,omitempty" cborgen:"ageAssuranceState,omitempty"` 1024 + // ageAssuranceUpdatedBy: Whether or not the last successful update to age assurance was made by the user or admin. 1025 + AgeAssuranceUpdatedBy *string `json:"ageAssuranceUpdatedBy,omitempty" cborgen:"ageAssuranceUpdatedBy,omitempty"` 942 1026 // appealed: True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators. 943 1027 Appealed *bool `json:"appealed,omitempty" cborgen:"appealed,omitempty"` 944 1028 // comment: Sticky comment on the subject. ··· 1005 1089 } 1006 1090 1007 1091 type ModerationDefs_SubjectStatusView_Subject struct { 1008 - AdminDefs_RepoRef *comatprototypes.AdminDefs_RepoRef 1009 - RepoStrongRef *comatprototypes.RepoStrongRef 1092 + AdminDefs_RepoRef *comatprototypes.AdminDefs_RepoRef 1093 + RepoStrongRef *comatprototypes.RepoStrongRef 1094 + ConvoDefs_MessageRef *chatbskytypes.ConvoDefs_MessageRef 1010 1095 } 1011 1096 1012 1097 func (t *ModerationDefs_SubjectStatusView_Subject) MarshalJSON() ([]byte, error) { ··· 1018 1103 t.RepoStrongRef.LexiconTypeID = "com.atproto.repo.strongRef" 1019 1104 return json.Marshal(t.RepoStrongRef) 1020 1105 } 1106 + if t.ConvoDefs_MessageRef != nil { 1107 + t.ConvoDefs_MessageRef.LexiconTypeID = "chat.bsky.convo.defs#messageRef" 1108 + return json.Marshal(t.ConvoDefs_MessageRef) 1109 + } 1021 1110 return nil, fmt.Errorf("cannot marshal empty enum") 1022 1111 } 1023 1112 func (t *ModerationDefs_SubjectStatusView_Subject) UnmarshalJSON(b []byte) error { ··· 1033 1122 case "com.atproto.repo.strongRef": 1034 1123 t.RepoStrongRef = new(comatprototypes.RepoStrongRef) 1035 1124 return json.Unmarshal(b, t.RepoStrongRef) 1125 + case "chat.bsky.convo.defs#messageRef": 1126 + t.ConvoDefs_MessageRef = new(chatbskytypes.ConvoDefs_MessageRef) 1127 + return json.Unmarshal(b, t.ConvoDefs_MessageRef) 1036 1128 1037 1129 default: 1038 1130 return nil ··· 1043 1135 // 1044 1136 // Detailed view of a subject. For record subjects, the author's repo and profile will be returned. 1045 1137 type ModerationDefs_SubjectView struct { 1138 + Profile *util.LexiconTypeDecoder `json:"profile,omitempty" cborgen:"profile,omitempty"` 1046 1139 Record *ModerationDefs_RecordViewDetail `json:"record,omitempty" cborgen:"record,omitempty"` 1047 1140 Repo *ModerationDefs_RepoViewDetail `json:"repo,omitempty" cborgen:"repo,omitempty"` 1048 1141 Status *ModerationDefs_SubjectStatusView `json:"status,omitempty" cborgen:"status,omitempty"`
+36 -19
api/ozone/moderationemitEvent.go
··· 17 17 type ModerationEmitEvent_Input struct { 18 18 CreatedBy string `json:"createdBy" cborgen:"createdBy"` 19 19 Event *ModerationEmitEvent_Input_Event `json:"event" cborgen:"event"` 20 + ModTool *ModerationDefs_ModTool `json:"modTool,omitempty" cborgen:"modTool,omitempty"` 20 21 Subject *ModerationEmitEvent_Input_Subject `json:"subject" cborgen:"subject"` 21 22 SubjectBlobCids []string `json:"subjectBlobCids,omitempty" cborgen:"subjectBlobCids,omitempty"` 22 23 } 23 24 24 25 type ModerationEmitEvent_Input_Event struct { 25 - ModerationDefs_ModEventTakedown *ModerationDefs_ModEventTakedown 26 - ModerationDefs_ModEventAcknowledge *ModerationDefs_ModEventAcknowledge 27 - ModerationDefs_ModEventEscalate *ModerationDefs_ModEventEscalate 28 - ModerationDefs_ModEventComment *ModerationDefs_ModEventComment 29 - ModerationDefs_ModEventLabel *ModerationDefs_ModEventLabel 30 - ModerationDefs_ModEventReport *ModerationDefs_ModEventReport 31 - ModerationDefs_ModEventMute *ModerationDefs_ModEventMute 32 - ModerationDefs_ModEventUnmute *ModerationDefs_ModEventUnmute 33 - ModerationDefs_ModEventMuteReporter *ModerationDefs_ModEventMuteReporter 34 - ModerationDefs_ModEventUnmuteReporter *ModerationDefs_ModEventUnmuteReporter 35 - ModerationDefs_ModEventReverseTakedown *ModerationDefs_ModEventReverseTakedown 36 - ModerationDefs_ModEventResolveAppeal *ModerationDefs_ModEventResolveAppeal 37 - ModerationDefs_ModEventEmail *ModerationDefs_ModEventEmail 38 - ModerationDefs_ModEventDivert *ModerationDefs_ModEventDivert 39 - ModerationDefs_ModEventTag *ModerationDefs_ModEventTag 40 - ModerationDefs_AccountEvent *ModerationDefs_AccountEvent 41 - ModerationDefs_IdentityEvent *ModerationDefs_IdentityEvent 42 - ModerationDefs_RecordEvent *ModerationDefs_RecordEvent 43 - ModerationDefs_ModEventPriorityScore *ModerationDefs_ModEventPriorityScore 26 + ModerationDefs_ModEventTakedown *ModerationDefs_ModEventTakedown 27 + ModerationDefs_ModEventAcknowledge *ModerationDefs_ModEventAcknowledge 28 + ModerationDefs_ModEventEscalate *ModerationDefs_ModEventEscalate 29 + ModerationDefs_ModEventComment *ModerationDefs_ModEventComment 30 + ModerationDefs_ModEventLabel *ModerationDefs_ModEventLabel 31 + ModerationDefs_ModEventReport *ModerationDefs_ModEventReport 32 + ModerationDefs_ModEventMute *ModerationDefs_ModEventMute 33 + ModerationDefs_ModEventUnmute *ModerationDefs_ModEventUnmute 34 + ModerationDefs_ModEventMuteReporter *ModerationDefs_ModEventMuteReporter 35 + ModerationDefs_ModEventUnmuteReporter *ModerationDefs_ModEventUnmuteReporter 36 + ModerationDefs_ModEventReverseTakedown *ModerationDefs_ModEventReverseTakedown 37 + ModerationDefs_ModEventResolveAppeal *ModerationDefs_ModEventResolveAppeal 38 + ModerationDefs_ModEventEmail *ModerationDefs_ModEventEmail 39 + ModerationDefs_ModEventDivert *ModerationDefs_ModEventDivert 40 + ModerationDefs_ModEventTag *ModerationDefs_ModEventTag 41 + ModerationDefs_AccountEvent *ModerationDefs_AccountEvent 42 + ModerationDefs_IdentityEvent *ModerationDefs_IdentityEvent 43 + ModerationDefs_RecordEvent *ModerationDefs_RecordEvent 44 + ModerationDefs_ModEventPriorityScore *ModerationDefs_ModEventPriorityScore 45 + ModerationDefs_AgeAssuranceEvent *ModerationDefs_AgeAssuranceEvent 46 + ModerationDefs_AgeAssuranceOverrideEvent *ModerationDefs_AgeAssuranceOverrideEvent 44 47 } 45 48 46 49 func (t *ModerationEmitEvent_Input_Event) MarshalJSON() ([]byte, error) { ··· 120 123 t.ModerationDefs_ModEventPriorityScore.LexiconTypeID = "tools.ozone.moderation.defs#modEventPriorityScore" 121 124 return json.Marshal(t.ModerationDefs_ModEventPriorityScore) 122 125 } 126 + if t.ModerationDefs_AgeAssuranceEvent != nil { 127 + t.ModerationDefs_AgeAssuranceEvent.LexiconTypeID = "tools.ozone.moderation.defs#ageAssuranceEvent" 128 + return json.Marshal(t.ModerationDefs_AgeAssuranceEvent) 129 + } 130 + if t.ModerationDefs_AgeAssuranceOverrideEvent != nil { 131 + t.ModerationDefs_AgeAssuranceOverrideEvent.LexiconTypeID = "tools.ozone.moderation.defs#ageAssuranceOverrideEvent" 132 + return json.Marshal(t.ModerationDefs_AgeAssuranceOverrideEvent) 133 + } 123 134 return nil, fmt.Errorf("cannot marshal empty enum") 124 135 } 125 136 func (t *ModerationEmitEvent_Input_Event) UnmarshalJSON(b []byte) error { ··· 186 197 case "tools.ozone.moderation.defs#modEventPriorityScore": 187 198 t.ModerationDefs_ModEventPriorityScore = new(ModerationDefs_ModEventPriorityScore) 188 199 return json.Unmarshal(b, t.ModerationDefs_ModEventPriorityScore) 200 + case "tools.ozone.moderation.defs#ageAssuranceEvent": 201 + t.ModerationDefs_AgeAssuranceEvent = new(ModerationDefs_AgeAssuranceEvent) 202 + return json.Unmarshal(b, t.ModerationDefs_AgeAssuranceEvent) 203 + case "tools.ozone.moderation.defs#ageAssuranceOverrideEvent": 204 + t.ModerationDefs_AgeAssuranceOverrideEvent = new(ModerationDefs_AgeAssuranceOverrideEvent) 205 + return json.Unmarshal(b, t.ModerationDefs_AgeAssuranceOverrideEvent) 189 206 190 207 default: 191 208 return nil
+9 -1
api/ozone/moderationqueryEvents.go
··· 20 20 // 21 21 // addedLabels: If specified, only events where all of these labels were added are returned 22 22 // addedTags: If specified, only events where all of these tags were added are returned 23 + // ageAssuranceState: If specified, only events where the age assurance state matches the given value are returned 23 24 // collections: If specified, only events where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored. 24 25 // comment: If specified, only events with comments containing the keyword are returned. Apply || separator to use multiple keywords and match using OR condition. 25 26 // createdAfter: Retrieve events created after a given timestamp 26 27 // createdBefore: Retrieve events created before a given timestamp 27 28 // hasComment: If true, only events with comments are returned 28 29 // includeAllUserRecords: If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned. 30 + // modTool: If specified, only events where the modTool name matches any of the given values are returned 29 31 // removedLabels: If specified, only events where all of these labels were removed are returned 30 32 // removedTags: If specified, only events where all of these tags were removed are returned 31 33 // sortDirection: Sort direction for the events. Defaults to descending order of created at timestamp. 32 34 // subjectType: If specified, only events where the subject is of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored. 33 35 // types: The types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent<name>) to filter by. If not specified, all events are returned. 34 - func ModerationQueryEvents(ctx context.Context, c util.LexClient, addedLabels []string, addedTags []string, collections []string, comment string, createdAfter string, createdBefore string, createdBy string, cursor string, hasComment bool, includeAllUserRecords bool, limit int64, policies []string, removedLabels []string, removedTags []string, reportTypes []string, sortDirection string, subject string, subjectType string, types []string) (*ModerationQueryEvents_Output, error) { 36 + func ModerationQueryEvents(ctx context.Context, c util.LexClient, addedLabels []string, addedTags []string, ageAssuranceState string, collections []string, comment string, createdAfter string, createdBefore string, createdBy string, cursor string, hasComment bool, includeAllUserRecords bool, limit int64, modTool []string, policies []string, removedLabels []string, removedTags []string, reportTypes []string, sortDirection string, subject string, subjectType string, types []string) (*ModerationQueryEvents_Output, error) { 35 37 var out ModerationQueryEvents_Output 36 38 37 39 params := map[string]interface{}{} ··· 41 43 if len(addedTags) != 0 { 42 44 params["addedTags"] = addedTags 43 45 } 46 + if ageAssuranceState != "" { 47 + params["ageAssuranceState"] = ageAssuranceState 48 + } 44 49 if len(collections) != 0 { 45 50 params["collections"] = collections 46 51 } ··· 67 72 } 68 73 if limit != 0 { 69 74 params["limit"] = limit 75 + } 76 + if len(modTool) != 0 { 77 + params["modTool"] = modTool 70 78 } 71 79 if len(policies) != 0 { 72 80 params["policies"] = policies
+5 -1
api/ozone/moderationqueryStatuses.go
··· 18 18 19 19 // ModerationQueryStatuses calls the XRPC method "tools.ozone.moderation.queryStatuses". 20 20 // 21 + // ageAssuranceState: If specified, only subjects with the given age assurance state will be returned. 21 22 // appealed: Get subjects in unresolved appealed status 22 23 // collections: If specified, subjects belonging to the given collections will be returned. When subjectType is set to 'account', this will be ignored. 23 24 // comment: Search subjects by keyword from comments ··· 45 46 // subject: The subject to get the status for. 46 47 // subjectType: If specified, subjects of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored. 47 48 // takendown: Get subjects that were taken down 48 - func ModerationQueryStatuses(ctx context.Context, c util.LexClient, appealed bool, collections []string, comment string, cursor string, excludeTags []string, hostingDeletedAfter string, hostingDeletedBefore string, hostingStatuses []string, hostingUpdatedAfter string, hostingUpdatedBefore string, ignoreSubjects []string, includeAllUserRecords bool, includeMuted bool, lastReviewedBy string, limit int64, minAccountSuspendCount int64, minPriorityScore int64, minReportedRecordsCount int64, minTakendownRecordsCount int64, onlyMuted bool, queueCount int64, queueIndex int64, queueSeed string, reportedAfter string, reportedBefore string, reviewState string, reviewedAfter string, reviewedBefore string, sortDirection string, sortField string, subject string, subjectType string, tags []string, takendown bool) (*ModerationQueryStatuses_Output, error) { 49 + func ModerationQueryStatuses(ctx context.Context, c util.LexClient, ageAssuranceState string, appealed bool, collections []string, comment string, cursor string, excludeTags []string, hostingDeletedAfter string, hostingDeletedBefore string, hostingStatuses []string, hostingUpdatedAfter string, hostingUpdatedBefore string, ignoreSubjects []string, includeAllUserRecords bool, includeMuted bool, lastReviewedBy string, limit int64, minAccountSuspendCount int64, minPriorityScore int64, minReportedRecordsCount int64, minTakendownRecordsCount int64, onlyMuted bool, queueCount int64, queueIndex int64, queueSeed string, reportedAfter string, reportedBefore string, reviewState string, reviewedAfter string, reviewedBefore string, sortDirection string, sortField string, subject string, subjectType string, tags []string, takendown bool) (*ModerationQueryStatuses_Output, error) { 49 50 var out ModerationQueryStatuses_Output 50 51 51 52 params := map[string]interface{}{} 53 + if ageAssuranceState != "" { 54 + params["ageAssuranceState"] = ageAssuranceState 55 + } 52 56 if appealed { 53 57 params["appealed"] = appealed 54 58 }
+34
api/ozone/safelinkaddRule.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package ozone 4 + 5 + // schema: tools.ozone.safelink.addRule 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/lex/util" 11 + ) 12 + 13 + // SafelinkAddRule_Input is the input argument to a tools.ozone.safelink.addRule call. 14 + type SafelinkAddRule_Input struct { 15 + Action *string `json:"action" cborgen:"action"` 16 + // comment: Optional comment about the decision 17 + Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 18 + // createdBy: Author DID. Only respected when using admin auth 19 + CreatedBy *string `json:"createdBy,omitempty" cborgen:"createdBy,omitempty"` 20 + Pattern *string `json:"pattern" cborgen:"pattern"` 21 + Reason *string `json:"reason" cborgen:"reason"` 22 + // url: The URL or domain to apply the rule to 23 + Url string `json:"url" cborgen:"url"` 24 + } 25 + 26 + // SafelinkAddRule calls the XRPC method "tools.ozone.safelink.addRule". 27 + func SafelinkAddRule(ctx context.Context, c util.LexClient, input *SafelinkAddRule_Input) (*SafelinkDefs_Event, error) { 28 + var out SafelinkDefs_Event 29 + if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.safelink.addRule", nil, input, &out); err != nil { 30 + return nil, err 31 + } 32 + 33 + return &out, nil 34 + }
+43
api/ozone/safelinkdefs.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package ozone 4 + 5 + // schema: tools.ozone.safelink.defs 6 + 7 + // SafelinkDefs_Event is a "event" in the tools.ozone.safelink.defs schema. 8 + // 9 + // An event for URL safety decisions 10 + type SafelinkDefs_Event struct { 11 + Action *string `json:"action" cborgen:"action"` 12 + // comment: Optional comment about the decision 13 + Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 14 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 15 + // createdBy: DID of the user who created this rule 16 + CreatedBy string `json:"createdBy" cborgen:"createdBy"` 17 + EventType *string `json:"eventType" cborgen:"eventType"` 18 + // id: Auto-incrementing row ID 19 + Id int64 `json:"id" cborgen:"id"` 20 + Pattern *string `json:"pattern" cborgen:"pattern"` 21 + Reason *string `json:"reason" cborgen:"reason"` 22 + // url: The URL that this rule applies to 23 + Url string `json:"url" cborgen:"url"` 24 + } 25 + 26 + // SafelinkDefs_UrlRule is a "urlRule" in the tools.ozone.safelink.defs schema. 27 + // 28 + // Input for creating a URL safety rule 29 + type SafelinkDefs_UrlRule struct { 30 + Action *string `json:"action" cborgen:"action"` 31 + // comment: Optional comment about the decision 32 + Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 33 + // createdAt: Timestamp when the rule was created 34 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 35 + // createdBy: DID of the user added the rule. 36 + CreatedBy string `json:"createdBy" cborgen:"createdBy"` 37 + Pattern *string `json:"pattern" cborgen:"pattern"` 38 + Reason *string `json:"reason" cborgen:"reason"` 39 + // updatedAt: Timestamp when the rule was last updated 40 + UpdatedAt string `json:"updatedAt" cborgen:"updatedAt"` 41 + // url: The URL or domain to apply the rule to 42 + Url string `json:"url" cborgen:"url"` 43 + }
+42
api/ozone/safelinkqueryEvents.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package ozone 4 + 5 + // schema: tools.ozone.safelink.queryEvents 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/lex/util" 11 + ) 12 + 13 + // SafelinkQueryEvents_Input is the input argument to a tools.ozone.safelink.queryEvents call. 14 + type SafelinkQueryEvents_Input struct { 15 + // cursor: Cursor for pagination 16 + Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 17 + // limit: Maximum number of results to return 18 + Limit *int64 `json:"limit,omitempty" cborgen:"limit,omitempty"` 19 + // patternType: Filter by pattern type 20 + PatternType *string `json:"patternType,omitempty" cborgen:"patternType,omitempty"` 21 + // sortDirection: Sort direction 22 + SortDirection *string `json:"sortDirection,omitempty" cborgen:"sortDirection,omitempty"` 23 + // urls: Filter by specific URLs or domains 24 + Urls []string `json:"urls,omitempty" cborgen:"urls,omitempty"` 25 + } 26 + 27 + // SafelinkQueryEvents_Output is the output of a tools.ozone.safelink.queryEvents call. 28 + type SafelinkQueryEvents_Output struct { 29 + // cursor: Next cursor for pagination. Only present if there are more results. 30 + Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 31 + Events []*SafelinkDefs_Event `json:"events" cborgen:"events"` 32 + } 33 + 34 + // SafelinkQueryEvents calls the XRPC method "tools.ozone.safelink.queryEvents". 35 + func SafelinkQueryEvents(ctx context.Context, c util.LexClient, input *SafelinkQueryEvents_Input) (*SafelinkQueryEvents_Output, error) { 36 + var out SafelinkQueryEvents_Output 37 + if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.safelink.queryEvents", nil, input, &out); err != nil { 38 + return nil, err 39 + } 40 + 41 + return &out, nil 42 + }
+48
api/ozone/safelinkqueryRules.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package ozone 4 + 5 + // schema: tools.ozone.safelink.queryRules 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/lex/util" 11 + ) 12 + 13 + // SafelinkQueryRules_Input is the input argument to a tools.ozone.safelink.queryRules call. 14 + type SafelinkQueryRules_Input struct { 15 + // actions: Filter by action types 16 + Actions []string `json:"actions,omitempty" cborgen:"actions,omitempty"` 17 + // createdBy: Filter by rule creator 18 + CreatedBy *string `json:"createdBy,omitempty" cborgen:"createdBy,omitempty"` 19 + // cursor: Cursor for pagination 20 + Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 21 + // limit: Maximum number of results to return 22 + Limit *int64 `json:"limit,omitempty" cborgen:"limit,omitempty"` 23 + // patternType: Filter by pattern type 24 + PatternType *string `json:"patternType,omitempty" cborgen:"patternType,omitempty"` 25 + // reason: Filter by reason type 26 + Reason *string `json:"reason,omitempty" cborgen:"reason,omitempty"` 27 + // sortDirection: Sort direction 28 + SortDirection *string `json:"sortDirection,omitempty" cborgen:"sortDirection,omitempty"` 29 + // urls: Filter by specific URLs or domains 30 + Urls []string `json:"urls,omitempty" cborgen:"urls,omitempty"` 31 + } 32 + 33 + // SafelinkQueryRules_Output is the output of a tools.ozone.safelink.queryRules call. 34 + type SafelinkQueryRules_Output struct { 35 + // cursor: Next cursor for pagination. Only present if there are more results. 36 + Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 37 + Rules []*SafelinkDefs_UrlRule `json:"rules" cborgen:"rules"` 38 + } 39 + 40 + // SafelinkQueryRules calls the XRPC method "tools.ozone.safelink.queryRules". 41 + func SafelinkQueryRules(ctx context.Context, c util.LexClient, input *SafelinkQueryRules_Input) (*SafelinkQueryRules_Output, error) { 42 + var out SafelinkQueryRules_Output 43 + if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.safelink.queryRules", nil, input, &out); err != nil { 44 + return nil, err 45 + } 46 + 47 + return &out, nil 48 + }
+32
api/ozone/safelinkremoveRule.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package ozone 4 + 5 + // schema: tools.ozone.safelink.removeRule 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/lex/util" 11 + ) 12 + 13 + // SafelinkRemoveRule_Input is the input argument to a tools.ozone.safelink.removeRule call. 14 + type SafelinkRemoveRule_Input struct { 15 + // comment: Optional comment about why the rule is being removed 16 + Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 17 + // createdBy: Optional DID of the user. Only respected when using admin auth. 18 + CreatedBy *string `json:"createdBy,omitempty" cborgen:"createdBy,omitempty"` 19 + Pattern *string `json:"pattern" cborgen:"pattern"` 20 + // url: The URL or domain to remove the rule for 21 + Url string `json:"url" cborgen:"url"` 22 + } 23 + 24 + // SafelinkRemoveRule calls the XRPC method "tools.ozone.safelink.removeRule". 25 + func SafelinkRemoveRule(ctx context.Context, c util.LexClient, input *SafelinkRemoveRule_Input) (*SafelinkDefs_Event, error) { 26 + var out SafelinkDefs_Event 27 + if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.safelink.removeRule", nil, input, &out); err != nil { 28 + return nil, err 29 + } 30 + 31 + return &out, nil 32 + }
+34
api/ozone/safelinkupdateRule.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package ozone 4 + 5 + // schema: tools.ozone.safelink.updateRule 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/lex/util" 11 + ) 12 + 13 + // SafelinkUpdateRule_Input is the input argument to a tools.ozone.safelink.updateRule call. 14 + type SafelinkUpdateRule_Input struct { 15 + Action *string `json:"action" cborgen:"action"` 16 + // comment: Optional comment about the update 17 + Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 18 + // createdBy: Optional DID to credit as the creator. Only respected for admin_token authentication. 19 + CreatedBy *string `json:"createdBy,omitempty" cborgen:"createdBy,omitempty"` 20 + Pattern *string `json:"pattern" cborgen:"pattern"` 21 + Reason *string `json:"reason" cborgen:"reason"` 22 + // url: The URL or domain to update the rule for 23 + Url string `json:"url" cborgen:"url"` 24 + } 25 + 26 + // SafelinkUpdateRule calls the XRPC method "tools.ozone.safelink.updateRule". 27 + func SafelinkUpdateRule(ctx context.Context, c util.LexClient, input *SafelinkUpdateRule_Input) (*SafelinkDefs_Event, error) { 28 + var out SafelinkDefs_Event 29 + if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.safelink.updateRule", nil, input, &out); err != nil { 30 + return nil, err 31 + } 32 + 33 + return &out, nil 34 + }
+6 -4
api/ozone/verificationdefs.go
··· 22 22 // handle: Handle of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current handle matches the one at the time of verifying. 23 23 Handle string `json:"handle" cborgen:"handle"` 24 24 // issuer: The user who issued this verification. 25 - Issuer string `json:"issuer" cborgen:"issuer"` 26 - IssuerRepo *VerificationDefs_VerificationView_IssuerRepo `json:"issuerRepo,omitempty" cborgen:"issuerRepo,omitempty"` 25 + Issuer string `json:"issuer" cborgen:"issuer"` 26 + IssuerProfile *util.LexiconTypeDecoder `json:"issuerProfile,omitempty" cborgen:"issuerProfile,omitempty"` 27 + IssuerRepo *VerificationDefs_VerificationView_IssuerRepo `json:"issuerRepo,omitempty" cborgen:"issuerRepo,omitempty"` 27 28 // revokeReason: Describes the reason for revocation, also indicating that the verification is no longer valid. 28 29 RevokeReason *string `json:"revokeReason,omitempty" cborgen:"revokeReason,omitempty"` 29 30 // revokedAt: Timestamp when the verification was revoked. ··· 31 32 // revokedBy: The user who revoked this verification. 32 33 RevokedBy *string `json:"revokedBy,omitempty" cborgen:"revokedBy,omitempty"` 33 34 // subject: The subject of the verification. 34 - Subject string `json:"subject" cborgen:"subject"` 35 - SubjectRepo *VerificationDefs_VerificationView_SubjectRepo `json:"subjectRepo,omitempty" cborgen:"subjectRepo,omitempty"` 35 + Subject string `json:"subject" cborgen:"subject"` 36 + SubjectProfile *util.LexiconTypeDecoder `json:"subjectProfile,omitempty" cborgen:"subjectProfile,omitempty"` 37 + SubjectRepo *VerificationDefs_VerificationView_SubjectRepo `json:"subjectRepo,omitempty" cborgen:"subjectRepo,omitempty"` 36 38 // uri: The AT-URI of the verification record. 37 39 Uri string `json:"uri" cborgen:"uri"` 38 40 }
+2
automod/consumer/ozone.go
··· 60 60 oc.OzoneClient, 61 61 nil, // addedLabels []string 62 62 nil, // addedTags []string 63 + "", // ageAssuranceState 63 64 nil, // collections []string 64 65 "", // comment string 65 66 since.String(), // createdAfter string ··· 69 70 false, // hasComment bool 70 71 true, // includeAllUserRecords bool 71 72 limit, // limit int64 73 + nil, // modTool 72 74 nil, // policies []string 73 75 nil, // removedLabels []string 74 76 nil, // removedTags []string
+4
automod/engine/persisthelpers.go
··· 173 173 xrpcc, 174 174 nil, // addedLabels []string 175 175 nil, // addedTags []string 176 + "", // ageAssuranceState 176 177 nil, // collections []string 177 178 "", // comment string 178 179 "", // createdAfter string ··· 182 183 false, // hasComment bool 183 184 false, // includeAllUserRecords bool 184 185 5, // limit int64 186 + nil, // modTool 185 187 nil, // policies []string 186 188 nil, // removedLabels []string 187 189 nil, // removedTags []string ··· 255 257 xrpcc, 256 258 nil, // addedLabels []string 257 259 nil, // addedTags []string 260 + "", // ageAssuranceState 258 261 nil, // collections []string 259 262 "", // comment string 260 263 "", // createdAfter string ··· 264 267 false, // hasComment bool 265 268 false, // includeAllUserRecords bool 266 269 5, // limit int64 270 + nil, // modTool 267 271 nil, // policies []string 268 272 nil, // removedLabels []string 269 273 nil, // removedTags []string
+2
cmd/beemo/notify_reports.go
··· 74 74 xrpcc, 75 75 nil, // addedLabels []string 76 76 nil, // addedTags []string 77 + "", // ageAssuranceState 77 78 nil, // collections []string 78 79 "", // comment string 79 80 "", // createdAfter string ··· 83 84 false, // hasComment bool 84 85 true, // includeAllUserRecords bool 85 86 limit, // limit int64 87 + nil, // modTool 86 88 nil, // policies []string 87 89 nil, // removedLabels []string 88 90 nil, // removedTags []string
+4
cmd/gosky/admin.go
··· 394 394 xrpcc, 395 395 nil, // addedLabels []string 396 396 nil, // addedTags []string 397 + "", // ageAssuranceState 397 398 nil, // collections []string 398 399 "", // comment string 399 400 "", // createdAfter string ··· 403 404 false, // hasComment bool 404 405 false, // includeAllUserRecords bool 405 406 100, // limit int64 407 + nil, // modTool 406 408 nil, // policies []string 407 409 nil, // removedLabels []string 408 410 nil, // removedTags []string ··· 709 711 xrpcc, 710 712 nil, // addedLabels []string 711 713 nil, // addedTags []string 714 + "", // ageAssuranceState 712 715 nil, // collections []string 713 716 "", // comment string 714 717 "", // createdAfter string ··· 718 721 false, // hasComment bool 719 722 false, // includeAllUserRecords bool 720 723 100, // limit int64 724 + nil, // modTool 721 725 nil, // policies []string 722 726 nil, // removedLabels []string 723 727 nil, // removedTags []string