mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
* Move all public connectors to ce/plugins * Update tooling to account for new go modules under ce * Ensure we test all CE plugins in CI * Move Dummypay to ce/plugins for simplicity's sake in the generation scripts * Use versioned pkg/domain in plugins * Ensure that renovate updates all CE plugins in a single PR when pkg/domain tags are pushed to github * Ensure Justfile commands work over all CE plugins * Copy ce plugin go.mods in dev.Dockerfile * Only add a go.mod for new plugins if they are ce * Ensure generated generic client structs are named correctly for submodule * Add coverprofile for each ce plugin * Add set -e for Justfile for loops over plugins * Infer go version from flake.nix in connector template tool
43 lines
1.0 KiB
Go
43 lines
1.0 KiB
Go
package client
|
|
|
|
type Scopes string
|
|
|
|
const (
|
|
SCOPES_AUTHORIZATION_READ Scopes = "authorization:read"
|
|
SCOPES_AUTHORIZATION_GRANT Scopes = "authorization:grant"
|
|
|
|
SCOPES_USER_CREATE Scopes = "user:create"
|
|
SCOPES_USER_READ Scopes = "user:read"
|
|
SCOPES_USER_DELETE Scopes = "user:delete"
|
|
|
|
SCOPES_PROVIDERS_READ Scopes = "providers:read"
|
|
|
|
SCOPES_CREDENTIALS_READ Scopes = "credentials:read"
|
|
SCOPES_CREDENTIALS_WRITE Scopes = "credentials:write"
|
|
SCOPES_CREDENTIALS_REFRESH Scopes = "credentials:refresh"
|
|
|
|
SCOPES_ACCOUNTS_READ Scopes = "accounts:read"
|
|
|
|
SCOPES_BALANCES_READ Scopes = "balances:read"
|
|
|
|
SCOPES_TRANSACTIONS_READ Scopes = "transactions:read"
|
|
|
|
SCOPES_WEBHOOKS Scopes = "webhook-endpoints"
|
|
)
|
|
|
|
var allScopes = []Scopes{
|
|
SCOPES_AUTHORIZATION_READ,
|
|
SCOPES_AUTHORIZATION_GRANT,
|
|
SCOPES_USER_CREATE,
|
|
SCOPES_USER_READ,
|
|
SCOPES_USER_DELETE,
|
|
SCOPES_PROVIDERS_READ,
|
|
SCOPES_CREDENTIALS_READ,
|
|
SCOPES_CREDENTIALS_WRITE,
|
|
SCOPES_CREDENTIALS_REFRESH,
|
|
SCOPES_ACCOUNTS_READ,
|
|
SCOPES_BALANCES_READ,
|
|
SCOPES_TRANSACTIONS_READ,
|
|
SCOPES_WEBHOOKS,
|
|
}
|