diff --git a/proto/authcontrol.gen.go b/proto/authcontrol.gen.go index 0fe406a..5730ceb 100644 --- a/proto/authcontrol.gen.go +++ b/proto/authcontrol.gen.go @@ -1,4 +1,4 @@ -// access-control v0.1.0 0663b6b5e7ad3ac6e14c16e3ce83f94925816f5c +// access-control v0.1.0 6a54309f1e61a16d610e9179d6cafe4fa4b1e594 // -- // Code generated by webrpc-gen@v0.21.0 with golang@v0.16.0 generator. DO NOT EDIT. // @@ -29,7 +29,7 @@ func WebRPCSchemaVersion() string { // Schema hash generated from your RIDL schema func WebRPCSchemaHash() string { - return "0663b6b5e7ad3ac6e14c16e3ce83f94925816f5c" + return "6a54309f1e61a16d610e9179d6cafe4fa4b1e594" } type WebrpcGenVersions struct { @@ -144,54 +144,6 @@ func (x *SessionType) Is(values ...SessionType) bool { return false } -type UserPermission uint16 - -const ( - UserPermission_UNAUTHORIZED UserPermission = 0 - UserPermission_READ UserPermission = 1 - UserPermission_READ_WRITE UserPermission = 2 - UserPermission_ADMIN UserPermission = 3 -) - -var UserPermission_name = map[uint16]string{ - 0: "UNAUTHORIZED", - 1: "READ", - 2: "READ_WRITE", - 3: "ADMIN", -} - -var UserPermission_value = map[string]uint16{ - "UNAUTHORIZED": 0, - "READ": 1, - "READ_WRITE": 2, - "ADMIN": 3, -} - -func (x UserPermission) String() string { - return UserPermission_name[uint16(x)] -} - -func (x UserPermission) MarshalText() ([]byte, error) { - return []byte(UserPermission_name[uint16(x)]), nil -} - -func (x *UserPermission) UnmarshalText(b []byte) error { - *x = UserPermission(UserPermission_value[string(b)]) - return nil -} - -func (x *UserPermission) Is(values ...UserPermission) bool { - if x == nil { - return false - } - for _, v := range values { - if *x == v { - return true - } - } - return false -} - var ( methods = map[string]method{} ) diff --git a/proto/authcontrol.gen.ts b/proto/authcontrol.gen.ts index be971dc..785ff9b 100644 --- a/proto/authcontrol.gen.ts +++ b/proto/authcontrol.gen.ts @@ -1,5 +1,5 @@ /* eslint-disable */ -// access-control v0.1.0 0663b6b5e7ad3ac6e14c16e3ce83f94925816f5c +// access-control v0.1.0 6a54309f1e61a16d610e9179d6cafe4fa4b1e594 // -- // Code generated by webrpc-gen@v0.21.0 with typescript@v0.15.0 generator. DO NOT EDIT. // @@ -16,7 +16,7 @@ export const WebRPCVersion = "v1" export const WebRPCSchemaVersion = "v0.1.0" // Schema hash generated from your RIDL schema -export const WebRPCSchemaHash = "0663b6b5e7ad3ac6e14c16e3ce83f94925816f5c" +export const WebRPCSchemaHash = "6a54309f1e61a16d610e9179d6cafe4fa4b1e594" type WebrpcGenVersions = { webrpcGenVersion: string; @@ -81,13 +81,6 @@ export enum SessionType { Service = 'Service' } -export enum UserPermission { - UNAUTHORIZED = 'UNAUTHORIZED', - READ = 'READ', - READ_WRITE = 'READ_WRITE', - ADMIN = 'ADMIN' -} - const createHTTPRequest = (body: object = {}, headers: object = {}, signal: AbortSignal | null = null): object => { diff --git a/proto/authcontrol.ridl b/proto/authcontrol.ridl index 98bcce3..5c448fd 100644 --- a/proto/authcontrol.ridl +++ b/proto/authcontrol.ridl @@ -12,12 +12,6 @@ enum SessionType: uint16 - Admin - Service -enum UserPermission: uint16 - - UNAUTHORIZED - - READ - - READ_WRITE - - ADMIN - error 0001 Unauthorized "Unauthorized access" HTTP 401 error 0002 PermissionDenied "Permission denied" HTTP 403