porting all github actions from bluesky-social/indigo to tangled CI
at main 2.2 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package ozone 4 5// schema: tools.ozone.verification.revokeVerifications 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// VerificationRevokeVerifications_Input is the input argument to a tools.ozone.verification.revokeVerifications call. 14type VerificationRevokeVerifications_Input struct { 15 // revokeReason: Reason for revoking the verification. This is optional and can be omitted if not needed. 16 RevokeReason *string `json:"revokeReason,omitempty" cborgen:"revokeReason,omitempty"` 17 // uris: Array of verification record uris to revoke 18 Uris []string `json:"uris" cborgen:"uris"` 19} 20 21// VerificationRevokeVerifications_Output is the output of a tools.ozone.verification.revokeVerifications call. 22type VerificationRevokeVerifications_Output struct { 23 // failedRevocations: List of verification uris that couldn't be revoked, including failure reasons 24 FailedRevocations []*VerificationRevokeVerifications_RevokeError `json:"failedRevocations" cborgen:"failedRevocations"` 25 // revokedVerifications: List of verification uris successfully revoked 26 RevokedVerifications []string `json:"revokedVerifications" cborgen:"revokedVerifications"` 27} 28 29// VerificationRevokeVerifications_RevokeError is a "revokeError" in the tools.ozone.verification.revokeVerifications schema. 30// 31// Error object for failed revocations 32type VerificationRevokeVerifications_RevokeError struct { 33 // error: Description of the error that occurred during revocation. 34 Error string `json:"error" cborgen:"error"` 35 // uri: The AT-URI of the verification record that failed to revoke. 36 Uri string `json:"uri" cborgen:"uri"` 37} 38 39// VerificationRevokeVerifications calls the XRPC method "tools.ozone.verification.revokeVerifications". 40func VerificationRevokeVerifications(ctx context.Context, c util.LexClient, input *VerificationRevokeVerifications_Input) (*VerificationRevokeVerifications_Output, error) { 41 var out VerificationRevokeVerifications_Output 42 if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.verification.revokeVerifications", nil, input, &out); err != nil { 43 return nil, err 44 } 45 46 return &out, nil 47}