@@ -7,13 +7,16 @@ import (
7
7
)
8
8
9
9
type AppSettings struct {
10
- DisableAuth * bool `json:"disable_auth_checks,omitempty"`
11
- DisablePermissions * bool `json:"disable_permissions_checks,omitempty"`
12
- APNConfig * APNConfig `json:"apn_config,omitempty"`
13
- FirebaseConfig * FirebaseConfig `json:"firebase_config,omitempty"`
14
- WebhookURL * string `json:"webhook_url,omitempty"`
15
- MultiTenantEnabled * bool `json:"multi_tenant_enabled,omitempty"`
16
- AsyncURLEnrichEnabled * bool `json:"async_url_enrich_enabled,omitempty"`
10
+ DisableAuth * bool `json:"disable_auth_checks,omitempty"`
11
+ DisablePermissions * bool `json:"disable_permissions_checks,omitempty"`
12
+ APNConfig * APNConfig `json:"apn_config,omitempty"`
13
+ FirebaseConfig * FirebaseConfig `json:"firebase_config,omitempty"`
14
+ WebhookURL * string `json:"webhook_url,omitempty"`
15
+ MultiTenantEnabled * bool `json:"multi_tenant_enabled,omitempty"`
16
+ AsyncURLEnrichEnabled * bool `json:"async_url_enrich_enabled,omitempty"`
17
+ Grants map [string ][]string `json:"grants,omitempty"`
18
+ MigratePermissionsToV2 * bool `json:"migrate_permissions_to_v2,omitempty"`
19
+ PermissionVersion string `json:"permission_version,omitempty"`
17
20
}
18
21
19
22
func (a * AppSettings ) SetDisableAuth (b bool ) * AppSettings {
@@ -46,6 +49,11 @@ func (a *AppSettings) SetMultiTenant(b bool) *AppSettings {
46
49
return a
47
50
}
48
51
52
+ func (a * AppSettings ) SetGrants (g map [string ][]string ) * AppSettings {
53
+ a .Grants = g
54
+ return a
55
+ }
56
+
49
57
func NewAppSettings () * AppSettings {
50
58
return & AppSettings {}
51
59
}
@@ -99,6 +107,8 @@ type AppConfig struct {
99
107
MultiTenantEnabled bool `json:"multi_tenant_enabled"`
100
108
RevokeTokensIssuedBefore * time.Time `json:"revoke_tokens_issued_before"`
101
109
AsyncURLEnrichEnabled bool `json:"async_url_enrich_enabled"`
110
+ Grants map [string ][]string `json:"grants"`
111
+ PermissionVersion string `json:"permission_version"`
102
112
}
103
113
104
114
type AppResponse struct {
0 commit comments