mirror of
https://github.com/hanzoai/iam.git
synced 2026-11-19 18:37:16 +00:00
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]>
38 lines
2.0 KiB
Go
38 lines
2.0 KiB
Go
// Code generated by zipdoc; DO NOT EDIT.
|
|
|
|
package roles
|
|
|
|
import (
|
|
"github.com/zap-proto/zip"
|
|
)
|
|
|
|
func init() {
|
|
zip.Describe("github.com/hanzoai/iam/internal/roles DELETE /v1/iam/roles/:owner/:name", zip.Doc{
|
|
Description: "Removes a role. Everyone in it loses the access it carried; their\naccounts, and any other role they hold, are untouched.",
|
|
})
|
|
zip.Describe("github.com/hanzoai/iam/internal/roles GET /v1/iam/roles", zip.Doc{
|
|
Description: "Returns your organization's roles, newest first — each a named group of\npeople that permissions are granted to.\n\nYou see your own organization's roles and no one else's; which organization\nthat is comes from your credentials, not from the request.",
|
|
Fields: map[string]string{
|
|
"Model[github.com/hanzoai/iam/pkg/schema.Role].id": "Persisted fields",
|
|
},
|
|
})
|
|
zip.Describe("github.com/hanzoai/iam/internal/roles GET /v1/iam/roles/:owner/:name", zip.Doc{
|
|
Description: "Returns one role: who is in it, and the roles it includes.",
|
|
Fields: map[string]string{
|
|
"Model[github.com/hanzoai/iam/pkg/schema.Role].id": "Persisted fields",
|
|
},
|
|
})
|
|
zip.Describe("github.com/hanzoai/iam/internal/roles POST /v1/iam/roles", zip.Doc{
|
|
Description: "Makes a role — a named group of people that permissions are granted to.\nGranting to a role rather than to each person is what keeps access correct as\nyour team changes: add someone to the role and they inherit everything it can\ndo. A name already used in your organization is refused.",
|
|
Fields: map[string]string{
|
|
"Model[github.com/hanzoai/iam/pkg/schema.Role].id": "Persisted fields",
|
|
},
|
|
})
|
|
zip.Describe("github.com/hanzoai/iam/internal/roles PUT /v1/iam/roles/:owner/:name", zip.Doc{
|
|
Description: "Changes who is in a role, or which roles it includes. Access changes for\neveryone in it as soon as the write lands. What the role is called does not\nchange, and neither does when it was created.",
|
|
Fields: map[string]string{
|
|
"Model[github.com/hanzoai/iam/pkg/schema.Role].id": "Persisted fields",
|
|
},
|
|
})
|
|
}
|