-
Notifications
You must be signed in to change notification settings - Fork 20
/
organization_invitation.go
33 lines (29 loc) · 1.31 KB
/
organization_invitation.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package clerk
import "encoding/json"
type PublicOrganizationData struct {
ID string `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
ImageURL *string `json:"image_url,omitempty"`
HasImage bool `json:"has_image"`
}
type OrganizationInvitation struct {
APIResource
Object string `json:"object"`
ID string `json:"id"`
EmailAddress string `json:"email_address"`
Role string `json:"role"`
RoleName string `json:"role_name"`
OrganizationID string `json:"organization_id"`
PublicOrganizationData *PublicOrganizationData `json:"public_organization_data,omitempty"`
Status string `json:"status"`
PublicMetadata json.RawMessage `json:"public_metadata"`
PrivateMetadata json.RawMessage `json:"private_metadata"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type OrganizationInvitationList struct {
APIResource
OrganizationInvitations []*OrganizationInvitation `json:"data"`
TotalCount int64 `json:"total_count"`
}