porting all github actions from bluesky-social/indigo to tangled CI
at main 2.7 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.grantVerifications 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// VerificationGrantVerifications_GrantError is a "grantError" in the tools.ozone.verification.grantVerifications schema. 14// 15// Error object for failed verifications. 16type VerificationGrantVerifications_GrantError struct { 17 // error: Error message describing the reason for failure. 18 Error string `json:"error" cborgen:"error"` 19 // subject: The did of the subject being verified 20 Subject string `json:"subject" cborgen:"subject"` 21} 22 23// VerificationGrantVerifications_Input is the input argument to a tools.ozone.verification.grantVerifications call. 24type VerificationGrantVerifications_Input struct { 25 // verifications: Array of verification requests to process 26 Verifications []*VerificationGrantVerifications_VerificationInput `json:"verifications" cborgen:"verifications"` 27} 28 29// VerificationGrantVerifications_Output is the output of a tools.ozone.verification.grantVerifications call. 30type VerificationGrantVerifications_Output struct { 31 FailedVerifications []*VerificationGrantVerifications_GrantError `json:"failedVerifications" cborgen:"failedVerifications"` 32 Verifications []*VerificationDefs_VerificationView `json:"verifications" cborgen:"verifications"` 33} 34 35// VerificationGrantVerifications_VerificationInput is the input argument to a tools.ozone.verification.grantVerifications call. 36type VerificationGrantVerifications_VerificationInput struct { 37 // createdAt: Timestamp for verification record. Defaults to current time when not specified. 38 CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"` 39 // displayName: Display name of the subject the verification applies to at the moment of verifying. 40 DisplayName string `json:"displayName" cborgen:"displayName"` 41 // handle: Handle of the subject the verification applies to at the moment of verifying. 42 Handle string `json:"handle" cborgen:"handle"` 43 // subject: The did of the subject being verified 44 Subject string `json:"subject" cborgen:"subject"` 45} 46 47// VerificationGrantVerifications calls the XRPC method "tools.ozone.verification.grantVerifications". 48func VerificationGrantVerifications(ctx context.Context, c util.LexClient, input *VerificationGrantVerifications_Input) (*VerificationGrantVerifications_Output, error) { 49 var out VerificationGrantVerifications_Output 50 if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.verification.grantVerifications", nil, input, &out); err != nil { 51 return nil, err 52 } 53 54 return &out, nil 55}