mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-28 13:48:49 +08:00

* Change Share Client To Be AddPolicy Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Remove from API endpoint as it is a duplicate of Signed-off-by: rodneyosodo <blackd0t@protonmail.com> * Fix typo Signed-off-by: rodneyosodo <blackd0t@protonmail.com> --------- Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
47 lines
1.2 KiB
Go
47 lines
1.2 KiB
Go
// Copyright (c) Mainflux
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package sdk
|
|
|
|
// updateClientSecretReq is used to update the client secret.
|
|
type updateClientSecretReq struct {
|
|
OldSecret string `json:"old_secret,omitempty"`
|
|
NewSecret string `json:"new_secret,omitempty"`
|
|
}
|
|
|
|
type updateThingSecretReq struct {
|
|
Secret string `json:"secret,omitempty"`
|
|
}
|
|
|
|
// updateClientIdentityReq is used to update the client identity.
|
|
type updateClientIdentityReq struct {
|
|
token string
|
|
id string
|
|
Identity string `json:"identity,omitempty"`
|
|
}
|
|
|
|
// UserPasswordReq contains old and new passwords.
|
|
type UserPasswordReq struct {
|
|
OldPassword string `json:"old_password,omitempty"`
|
|
Password string `json:"password,omitempty"`
|
|
}
|
|
|
|
// ConnectionIDs contains ID lists of things and channels to be connected.
|
|
type ConnectionIDs struct {
|
|
ChannelIDs []string `json:"group_ids"`
|
|
ThingIDs []string `json:"client_ids"`
|
|
Actions []string `json:"actions,omitempty"`
|
|
}
|
|
|
|
type tokenReq struct {
|
|
Identity string `json:"identity"`
|
|
Secret string `json:"secret"`
|
|
}
|
|
|
|
type canAccessReq struct {
|
|
ClientSecret string `json:"secret"`
|
|
GroupID string `json:"group_id"`
|
|
Action string `json:"action"`
|
|
EntityType string `json:"entity_type"`
|
|
}
|