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 auditlogs
|
|
|
|
import (
|
|
"github.com/zap-proto/zip"
|
|
)
|
|
|
|
func init() {
|
|
zip.Describe("github.com/hanzoai/iam/internal/auditlogs DELETE /v1/iam/audit-logs/:owner/:name", zip.Doc{
|
|
Description: "Removes an audit entry. Retention policy is normally what should expire\na trail; deleting by hand leaves a gap a reviewer will notice.",
|
|
})
|
|
zip.Describe("github.com/hanzoai/iam/internal/auditlogs GET /v1/iam/audit-logs", zip.Doc{
|
|
Description: "Returns your organization's audit trail, newest first — who did\nwhat, when, and from where. It is the record you reach for during a security\nreview or an incident.\n\nYou see your own organization's audit trail and no one else's; which organization that\nis comes from your credentials, not from the request.",
|
|
Fields: map[string]string{
|
|
"Model[github.com/hanzoai/iam/pkg/schema.AuditLog].id": "Persisted fields",
|
|
},
|
|
})
|
|
zip.Describe("github.com/hanzoai/iam/internal/auditlogs GET /v1/iam/audit-logs/:owner/:name", zip.Doc{
|
|
Description: "Returns one audit entry in full: the action, the person or key behind it,\nand the request it came in on.",
|
|
Fields: map[string]string{
|
|
"Model[github.com/hanzoai/iam/pkg/schema.AuditLog].id": "Persisted fields",
|
|
},
|
|
})
|
|
zip.Describe("github.com/hanzoai/iam/internal/auditlogs POST /v1/iam/audit-logs", zip.Doc{
|
|
Description: "Records an audit entry, so activity from your own systems lands in the\nsame trail as everything the Hanzo Cloud records for you.",
|
|
Fields: map[string]string{
|
|
"Model[github.com/hanzoai/iam/pkg/schema.AuditLog].id": "Persisted fields",
|
|
},
|
|
})
|
|
zip.Describe("github.com/hanzoai/iam/internal/auditlogs PUT /v1/iam/audit-logs/:owner/:name", zip.Doc{
|
|
Description: "Corrects an audit entry. The trail is append-only in normal operation\nand nothing in the Hanzo Cloud rewrites it — this exists for an administrator\nto correct an entry their own systems recorded wrongly.",
|
|
Fields: map[string]string{
|
|
"Model[github.com/hanzoai/iam/pkg/schema.AuditLog].id": "Persisted fields",
|
|
},
|
|
})
|
|
}
|