func AuthMethods() []Method {
	return []Method{
		ActivateClient,
		DeactivateClient,
		AttachDocument,
		DetachDocument,
		PushPull,
		WatchDocuments,
	}
}
AuthMethods returns a slice of methods that can be used for authorization.
package types
import (
	"encoding/json"
	"errors"
	"fmt"
	"io"
)
type VerbType string
const (
	Read VerbType = "r"
	ReadWrite VerbType = "rw"
)
var (
	ErrInvalidWebhookRequest = errors.New("invalid authorization webhook request")
	ErrInvalidWebhookResponse = errors.New("invalid authorization webhook response")
)
type Method string
const (
	ActivateClient   Method = "ActivateClient"
	DeactivateClient Method = "DeactivateClient"
	AttachDocument   Method = "AttachDocument"
	DetachDocument   Method = "DetachDocument"
	PushPull         Method = "PushPull"
	WatchDocuments   Method = "WatchDocuments"
)
func IsAuthMethod(method string) bool {
	for _, m := range AuthMethods() {
		if method == string(m) {
			return true
		}
	}
	return false
}