Files
iam/internal/permission/zipdoc_gen.go
zeekayandHanzo Dev c6dffbf84b Lift the prose again on zip v1.37.12
zipdoc keys each entry by package and address now, so the generated files are
rewritten in that shape; the JWKS and token endpoints name their handler at
each address so the lift finds it.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-17 20:58:18 -07:00

58 lines
4.8 KiB
Go

// Code generated by zipdoc; DO NOT EDIT.
package permission
import (
"github.com/zap-proto/zip"
)
func init() {
zip.Describe("github.com/hanzoai/iam/internal/permission DELETE /v1/iam/permissions/:owner/:name", zip.Doc{
Description: "Revokes a permission. Everyone who held access only through it loses\nthat access immediately; grants they hold by another route are untouched.",
})
zip.Describe("github.com/hanzoai/iam/internal/permission GET /v1/iam/permissions", zip.Doc{
Description: "Returns the permissions in one organization, newest first — each one a\ngrant saying which people or roles may do what, and to which resources.",
Fields: map[string]string{
"Model[github.com/hanzoai/iam/pkg/schema.Permission].id": "Persisted fields",
"Permission.createdTime": "Descriptive metadata.",
"Permission.model": "Authorization model, targets, and decision. AuthzModel carries the v1\n`model` column (the named authz model); it is not the Go identifier\n`Model` because that name is taken by the embedded orm.Model[Permission]\nmixin. The HTTP contract is unchanged — json:\"model\".",
"Permission.owner": "Identity — the (owner, name) natural key.",
"Permission.submitter": "Submission / approval workflow.",
"Permission.users": "Subjects the grant is evaluated for.",
},
})
zip.Describe("github.com/hanzoai/iam/internal/permission GET /v1/iam/permissions/:owner/:name", zip.Doc{
Description: "Returns one permission: who it grants to, what it allows, and the\nresources it covers.",
Fields: map[string]string{
"Model[github.com/hanzoai/iam/pkg/schema.Permission].id": "Persisted fields",
"Permission.createdTime": "Descriptive metadata.",
"Permission.model": "Authorization model, targets, and decision. AuthzModel carries the v1\n`model` column (the named authz model); it is not the Go identifier\n`Model` because that name is taken by the embedded orm.Model[Permission]\nmixin. The HTTP contract is unchanged — json:\"model\".",
"Permission.owner": "Identity — the (owner, name) natural key.",
"Permission.submitter": "Submission / approval workflow.",
"Permission.users": "Subjects the grant is evaluated for.",
},
})
zip.Describe("github.com/hanzoai/iam/internal/permission POST /v1/iam/permissions", zip.Doc{
Description: "Grants a permission — the call that gives a person or a role the ability to\ndo something. Adding refuses to overwrite a grant that already exists, so\nwidening an existing one is an update, never an accident.",
Fields: map[string]string{
"Model[github.com/hanzoai/iam/pkg/schema.Permission].id": "Persisted fields",
"Permission.createdTime": "Descriptive metadata.",
"Permission.model": "Authorization model, targets, and decision. AuthzModel carries the v1\n`model` column (the named authz model); it is not the Go identifier\n`Model` because that name is taken by the embedded orm.Model[Permission]\nmixin. The HTTP contract is unchanged — json:\"model\".",
"Permission.owner": "Identity — the (owner, name) natural key.",
"Permission.submitter": "Submission / approval workflow.",
"Permission.users": "Subjects the grant is evaluated for.",
},
})
zip.Describe("github.com/hanzoai/iam/internal/permission PUT /v1/iam/permissions/:owner/:name", zip.Doc{
Description: "Changes who a permission grants to, what it allows, or the resources it\ncovers. Access changes as soon as the write lands. What the permission is\ncalled does not change, and neither does when it was created.",
Fields: map[string]string{
"Model[github.com/hanzoai/iam/pkg/schema.Permission].id": "Persisted fields",
"Permission.createdTime": "Descriptive metadata.",
"Permission.model": "Authorization model, targets, and decision. AuthzModel carries the v1\n`model` column (the named authz model); it is not the Go identifier\n`Model` because that name is taken by the embedded orm.Model[Permission]\nmixin. The HTTP contract is unchanged — json:\"model\".",
"Permission.owner": "Identity — the (owner, name) natural key.",
"Permission.submitter": "Submission / approval workflow.",
"Permission.users": "Subjects the grant is evaluated for.",
},
})
}