diff --git a/src/responses/contact.cr b/src/responses/contact.cr index 2ed1d24..8fb3285 100644 --- a/src/responses/contact.cr +++ b/src/responses/contact.cr @@ -6,4 +6,5 @@ class AuthD::Response def initialize(@user, @email, @phone) end end + AuthD.responses << Contacts end diff --git a/src/responses/errors.cr b/src/responses/errors.cr index 8b4f83f..a8fcd02 100644 --- a/src/responses/errors.cr +++ b/src/responses/errors.cr @@ -4,4 +4,5 @@ class AuthD::Response def initialize(@reason) end end + AuthD.responses << Error end diff --git a/src/responses/password.cr b/src/responses/password.cr index 40524c4..4787e40 100644 --- a/src/responses/password.cr +++ b/src/responses/password.cr @@ -4,10 +4,12 @@ class AuthD::Response def initialize(@user) end end + AuthD.responses << PasswordRecoverySent IPC::JSON.message PasswordRecovered, 10 do property user : ::AuthD::User::Public def initialize(@user) end end + AuthD.responses << PasswordRecovered end diff --git a/src/responses/permissions.cr b/src/responses/permissions.cr index ec4d336..cff5ce8 100644 --- a/src/responses/permissions.cr +++ b/src/responses/permissions.cr @@ -7,6 +7,7 @@ class AuthD::Response def initialize(@service, @resource, @user, @permission) end end + AuthD.responses << PermissionCheck IPC::JSON.message PermissionSet, 8 do property user : Int32 @@ -16,4 +17,5 @@ class AuthD::Response def initialize(@user, @service, @resource, @permission) end end + AuthD.responses << PermissionSet end diff --git a/src/responses/token.cr b/src/responses/token.cr index 04de31d..b3ebb3f 100644 --- a/src/responses/token.cr +++ b/src/responses/token.cr @@ -5,4 +5,5 @@ class AuthD::Response def initialize(@token, @uid) end end + AuthD.responses << Token end diff --git a/src/responses/users.cr b/src/responses/users.cr index 47c5487..be5373d 100644 --- a/src/responses/users.cr +++ b/src/responses/users.cr @@ -4,34 +4,40 @@ class AuthD::Response def initialize(@user) end end + AuthD.responses << User IPC::JSON.message UserAdded, 3 do property user : ::AuthD::User::Public def initialize(@user) end end + AuthD.responses << UserAdded IPC::JSON.message UserEdited, 4 do property uid : Int32 def initialize(@uid) end end + AuthD.responses << UserEdited IPC::JSON.message UserValidated, 5 do property user : ::AuthD::User::Public def initialize(@user) end end + AuthD.responses << UserValidated IPC::JSON.message UsersList, 6 do property users : Array(::AuthD::User::Public) def initialize(@users) end end + AuthD.responses << UsersList IPC::JSON.message MatchingUsers, 11 do property users : Array(::AuthD::User::Public) def initialize(@users) end end + AuthD.responses << MatchingUsers end