0c264b7a5f
* wip: initial changes, api registration * wip * LegacySearch working with sorting * Revert mapper change for now * Clean up * Cleanup, add integration tests * Improve tests * OpenAPI def regen * Use wildcard search, fix lastSeenAt handling, add lastSeenAtAge * Add missing files * Fix merge * Fixes * Add tests, regen openapi def * Address feedback * Address feedback batch 2 * Chores * regen openapidef * Address feedback * Add tests for paging * gen apis * Revert go.mod, go.sum. go.work.sum * Fix + remove extra tracer parameter
52 lines
860 B
CUE
52 lines
860 B
CUE
package kinds
|
|
|
|
import (
|
|
"github.com/grafana/grafana/apps/iam/kinds/v0alpha1"
|
|
)
|
|
|
|
userKind: {
|
|
kind: "User"
|
|
pluralName: "Users"
|
|
codegen: {
|
|
ts: {enabled: false}
|
|
go: {enabled: true}
|
|
}
|
|
}
|
|
|
|
userv0alpha1: userKind & {
|
|
// TODO: Uncomment this when User will be added to ManagedKinds
|
|
// validation: {
|
|
// operations: [
|
|
// "CREATE",
|
|
// "UPDATE",
|
|
// ]
|
|
// }
|
|
// mutation: {
|
|
// operations: [
|
|
// "CREATE",
|
|
// "UPDATE",
|
|
// ]
|
|
// }
|
|
schema: {
|
|
spec: v0alpha1.UserSpec
|
|
status: {
|
|
lastSeenAt: int64 | 0
|
|
}
|
|
}
|
|
// TODO: Uncomment when the custom routes implementation is done
|
|
// routes: {
|
|
// "/teams": {
|
|
// "GET": {
|
|
// response: {
|
|
// #UserTeam: {
|
|
// title: string
|
|
// teamRef: v0alpha1.TeamRef
|
|
// permission: v0alpha1.TeamPermission
|
|
// }
|
|
// items: [...#UserTeam]
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
}
|