73 lines
1.6 KiB
GraphQL
73 lines
1.6 KiB
GraphQL
enum AuditLogActorType
|
|
@goModel(
|
|
model: "go.probo.inc/probo/pkg/coredata.AuditLogActorType"
|
|
) {
|
|
USER
|
|
@goEnum(
|
|
value: "go.probo.inc/probo/pkg/coredata.AuditLogActorTypeUser"
|
|
)
|
|
API_KEY
|
|
@goEnum(
|
|
value: "go.probo.inc/probo/pkg/coredata.AuditLogActorTypeAPIKey"
|
|
)
|
|
SYSTEM
|
|
@goEnum(
|
|
value: "go.probo.inc/probo/pkg/coredata.AuditLogActorTypeSystem"
|
|
)
|
|
}
|
|
|
|
enum AuditLogEntryOrderField
|
|
@goModel(
|
|
model: "go.probo.inc/probo/pkg/coredata.AuditLogEntryOrderField"
|
|
) {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "go.probo.inc/probo/pkg/coredata.AuditLogEntryOrderFieldCreatedAt"
|
|
)
|
|
}
|
|
|
|
input AuditLogEntryOrder
|
|
@goModel(
|
|
model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.AuditLogEntryOrderBy"
|
|
) {
|
|
field: AuditLogEntryOrderField!
|
|
direction: OrderDirection!
|
|
}
|
|
|
|
input AuditLogEntryFilter {
|
|
action: String
|
|
actorId: ID
|
|
resourceType: String
|
|
resourceId: ID
|
|
}
|
|
|
|
type AuditLogEntry implements Node {
|
|
id: ID!
|
|
organization: Organization @goField(forceResolver: true)
|
|
actorId: ID!
|
|
actorType: AuditLogActorType!
|
|
action: String!
|
|
resourceType: String!
|
|
resourceId: ID!
|
|
metadata: String
|
|
createdAt: Datetime!
|
|
|
|
permission(action: String!): Boolean!
|
|
@goField(forceResolver: true)
|
|
@authentication(required: PRESENT)
|
|
}
|
|
|
|
type AuditLogEntryConnection
|
|
@goModel(
|
|
model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.AuditLogEntryConnection"
|
|
) {
|
|
edges: [AuditLogEntryEdge!]!
|
|
pageInfo: PageInfo!
|
|
totalCount: Int! @goField(forceResolver: true)
|
|
}
|
|
|
|
type AuditLogEntryEdge {
|
|
cursor: CursorKey!
|
|
node: AuditLogEntry!
|
|
}
|