From e5cb118d9228b582881a092ccf731d6031b5b24a Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Fri, 15 Nov 2024 02:33:22 +0000
Subject: [PATCH] feat(tokens): move condition and policy to shared models
(#3610)
---
accounts/aliases.go | 95 ++++++
accounts/token.go | 29 +-
accounts/token_test.go | 82 ++---
acm/aliases.go | 95 ++++++
addressing/aliases.go | 95 ++++++
ai_gateway/aliases.go | 95 ++++++
alerting/aliases.go | 95 ++++++
aliases.go | 95 ++++++
api.md | 27 +-
api_gateway/aliases.go | 95 ++++++
argo/aliases.go | 95 ++++++
audit_logs/aliases.go | 95 ++++++
billing/aliases.go | 95 ++++++
bot_management/aliases.go | 95 ++++++
botnet_feed/aliases.go | 95 ++++++
brand_protection/aliases.go | 95 ++++++
cache/aliases.go | 95 ++++++
calls/aliases.go | 95 ++++++
certificate_authorities/aliases.go | 95 ++++++
client_certificates/aliases.go | 95 ++++++
cloud_connector/aliases.go | 95 ++++++
cloudforce_one/aliases.go | 95 ++++++
custom_certificates/aliases.go | 95 ++++++
custom_hostnames/aliases.go | 95 ++++++
custom_nameservers/aliases.go | 95 ++++++
d1/aliases.go | 95 ++++++
dcv_delegation/aliases.go | 95 ++++++
diagnostics/aliases.go | 95 ++++++
dns/aliases.go | 95 ++++++
dnssec/aliases.go | 95 ++++++
durable_objects/aliases.go | 95 ++++++
email_routing/aliases.go | 95 ++++++
email_security/aliases.go | 95 ++++++
filters/aliases.go | 95 ++++++
firewall/aliases.go | 95 ++++++
healthchecks/aliases.go | 95 ++++++
hostnames/aliases.go | 95 ++++++
hyperdrive/aliases.go | 95 ++++++
iam/aliases.go | 95 ++++++
images/aliases.go | 95 ++++++
intel/aliases.go | 95 ++++++
ips/aliases.go | 95 ++++++
keyless_certificates/aliases.go | 95 ++++++
kv/aliases.go | 95 ++++++
load_balancers/aliases.go | 95 ++++++
logpush/aliases.go | 95 ++++++
logs/aliases.go | 95 ++++++
magic_network_monitoring/aliases.go | 95 ++++++
magic_transit/aliases.go | 95 ++++++
managed_transforms/aliases.go | 95 ++++++
memberships/aliases.go | 95 ++++++
mtls_certificates/aliases.go | 95 ++++++
origin_ca_certificates/aliases.go | 95 ++++++
origin_post_quantum_encryption/aliases.go | 95 ++++++
origin_tls_client_auth/aliases.go | 95 ++++++
page_shield/aliases.go | 95 ++++++
pagerules/aliases.go | 95 ++++++
pages/aliases.go | 95 ++++++
queues/aliases.go | 95 ++++++
r2/aliases.go | 95 ++++++
radar/aliases.go | 95 ++++++
rate_limits/aliases.go | 95 ++++++
registrar/aliases.go | 95 ++++++
request_tracers/aliases.go | 95 ++++++
rules/aliases.go | 95 ++++++
rulesets/aliases.go | 95 ++++++
rum/aliases.go | 95 ++++++
secondary_dns/aliases.go | 95 ++++++
shared/shared.go | 324 ++++++++++++++++++++
snippets/aliases.go | 95 ++++++
spectrum/aliases.go | 95 ++++++
speed/aliases.go | 95 ++++++
ssl/aliases.go | 95 ++++++
storage/aliases.go | 95 ++++++
stream/aliases.go | 95 ++++++
turnstile/aliases.go | 95 ++++++
url_normalization/aliases.go | 95 ++++++
url_scanner/aliases.go | 95 ++++++
user/aliases.go | 95 ++++++
user/token.go | 351 +---------------------
user/token_test.go | 81 ++---
vectorize/aliases.go | 95 ++++++
waiting_rooms/aliases.go | 95 ++++++
warp_connector/aliases.go | 95 ++++++
web3/aliases.go | 95 ++++++
workers/aliases.go | 95 ++++++
workers_for_platforms/aliases.go | 95 ++++++
zero_trust/aliases.go | 95 ++++++
zones/aliases.go | 95 ++++++
89 files changed, 8331 insertions(+), 448 deletions(-)
diff --git a/accounts/aliases.go b/accounts/aliases.go
index be3986bf486..39d0e6e61be 100644
--- a/accounts/aliases.go
+++ b/accounts/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/accounts/token.go b/accounts/token.go
index 6635314f610..a4ffeb1b8c7 100644
--- a/accounts/token.go
+++ b/accounts/token.go
@@ -17,7 +17,6 @@ import (
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v3/packages/pagination"
"github.com/cloudflare/cloudflare-go/v3/shared"
- "github.com/cloudflare/cloudflare-go/v3/user"
)
// TokenService contains methods and other services that help with interacting with
@@ -61,7 +60,7 @@ func (r *TokenService) New(ctx context.Context, params TokenNewParams, opts ...o
}
// Update an existing token.
-func (r *TokenService) Update(ctx context.Context, tokenID string, params TokenUpdateParams, opts ...option.RequestOption) (res *user.Token, err error) {
+func (r *TokenService) Update(ctx context.Context, tokenID string, params TokenUpdateParams, opts ...option.RequestOption) (res *shared.Token, err error) {
var env TokenUpdateResponseEnvelope
opts = append(r.Options[:], opts...)
if params.AccountID.Value == "" {
@@ -82,7 +81,7 @@ func (r *TokenService) Update(ctx context.Context, tokenID string, params TokenU
}
// List all Account Owned API tokens created for this account.
-func (r *TokenService) List(ctx context.Context, params TokenListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[user.Token], err error) {
+func (r *TokenService) List(ctx context.Context, params TokenListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[shared.Token], err error) {
var raw *http.Response
opts = append(r.Options[:], opts...)
opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...)
@@ -104,7 +103,7 @@ func (r *TokenService) List(ctx context.Context, params TokenListParams, opts ..
}
// List all Account Owned API tokens created for this account.
-func (r *TokenService) ListAutoPaging(ctx context.Context, params TokenListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[user.Token] {
+func (r *TokenService) ListAutoPaging(ctx context.Context, params TokenListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[shared.Token] {
return pagination.NewV4PagePaginationArrayAutoPager(r.List(ctx, params, opts...))
}
@@ -130,7 +129,7 @@ func (r *TokenService) Delete(ctx context.Context, tokenID string, body TokenDel
}
// Get information about a specific Account Owned API token.
-func (r *TokenService) Get(ctx context.Context, tokenID string, query TokenGetParams, opts ...option.RequestOption) (res *user.Token, err error) {
+func (r *TokenService) Get(ctx context.Context, tokenID string, query TokenGetParams, opts ...option.RequestOption) (res *shared.Token, err error) {
var env TokenGetResponseEnvelope
opts = append(r.Options[:], opts...)
if query.AccountID.Value == "" {
@@ -185,7 +184,7 @@ type TokenNewResponse struct {
// The time before which the token MUST NOT be accepted for processing.
NotBefore time.Time `json:"not_before" format:"date-time"`
// List of access policies assigned to the token.
- Policies []user.Policy `json:"policies"`
+ Policies []shared.TokenPolicy `json:"policies"`
// Status of the token.
Status TokenNewResponseStatus `json:"status"`
// The token value.
@@ -244,9 +243,9 @@ func (r tokenNewResponseConditionJSON) RawJSON() string {
// Client IP restrictions.
type TokenNewResponseConditionRequestIP struct {
// List of IPv4/IPv6 CIDR addresses.
- In []user.CIDRList `json:"in"`
+ In []shared.TokenConditionCIDRList `json:"in"`
// List of IPv4/IPv6 CIDR addresses.
- NotIn []user.CIDRList `json:"not_in"`
+ NotIn []shared.TokenConditionCIDRList `json:"not_in"`
JSON tokenNewResponseConditionRequestIPJSON `json:"-"`
}
@@ -361,8 +360,8 @@ type TokenNewParams struct {
// Token name.
Name param.Field[string] `json:"name,required"`
// List of access policies assigned to the token.
- Policies param.Field[[]user.PolicyParam] `json:"policies,required"`
- Condition param.Field[TokenNewParamsCondition] `json:"condition"`
+ Policies param.Field[[]shared.TokenPolicyParam] `json:"policies,required"`
+ Condition param.Field[TokenNewParamsCondition] `json:"condition"`
// The expiration time on or after which the JWT MUST NOT be accepted for
// processing.
ExpiresOn param.Field[time.Time] `json:"expires_on" format:"date-time"`
@@ -386,9 +385,9 @@ func (r TokenNewParamsCondition) MarshalJSON() (data []byte, err error) {
// Client IP restrictions.
type TokenNewParamsConditionRequestIP struct {
// List of IPv4/IPv6 CIDR addresses.
- In param.Field[[]user.CIDRListParam] `json:"in"`
+ In param.Field[[]shared.TokenConditionCIDRListParam] `json:"in"`
// List of IPv4/IPv6 CIDR addresses.
- NotIn param.Field[[]user.CIDRListParam] `json:"not_in"`
+ NotIn param.Field[[]shared.TokenConditionCIDRListParam] `json:"not_in"`
}
func (r TokenNewParamsConditionRequestIP) MarshalJSON() (data []byte, err error) {
@@ -441,7 +440,7 @@ func (r TokenNewResponseEnvelopeSuccess) IsKnown() bool {
type TokenUpdateParams struct {
// Account identifier tag.
AccountID param.Field[string] `path:"account_id,required"`
- Token user.TokenParam `json:"token,required"`
+ Token shared.TokenParam `json:"token,required"`
}
func (r TokenUpdateParams) MarshalJSON() (data []byte, err error) {
@@ -453,7 +452,7 @@ type TokenUpdateResponseEnvelope struct {
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success TokenUpdateResponseEnvelopeSuccess `json:"success,required"`
- Result user.Token `json:"result"`
+ Result shared.Token `json:"result"`
JSON tokenUpdateResponseEnvelopeJSON `json:"-"`
}
@@ -584,7 +583,7 @@ type TokenGetResponseEnvelope struct {
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success TokenGetResponseEnvelopeSuccess `json:"success,required"`
- Result user.Token `json:"result"`
+ Result shared.Token `json:"result"`
JSON tokenGetResponseEnvelopeJSON `json:"-"`
}
diff --git a/accounts/token_test.go b/accounts/token_test.go
index d12e0516bd4..dfe0a53c0ff 100644
--- a/accounts/token_test.go
+++ b/accounts/token_test.go
@@ -13,7 +13,7 @@ import (
"github.com/cloudflare/cloudflare-go/v3/accounts"
"github.com/cloudflare/cloudflare-go/v3/internal/testutil"
"github.com/cloudflare/cloudflare-go/v3/option"
- "github.com/cloudflare/cloudflare-go/v3/user"
+ "github.com/cloudflare/cloudflare-go/v3/shared"
)
func TestTokenNewWithOptionalParams(t *testing.T) {
@@ -32,62 +32,62 @@ func TestTokenNewWithOptionalParams(t *testing.T) {
_, err := client.Accounts.Tokens.New(context.TODO(), accounts.TokenNewParams{
AccountID: cloudflare.F("eb78d65290b24279ba6f44721b3ea3c4"),
Name: cloudflare.F("readonly token"),
- Policies: cloudflare.F([]user.PolicyParam{{
- Effect: cloudflare.F(user.PolicyEffectAllow),
- PermissionGroups: cloudflare.F([]user.PolicyPermissionGroupParam{{
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Policies: cloudflare.F([]shared.TokenPolicyParam{{
+ Effect: cloudflare.F(shared.TokenPolicyEffectAllow),
+ PermissionGroups: cloudflare.F([]shared.TokenPolicyPermissionGroupParam{{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}, {
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}}),
- Resources: cloudflare.F(user.PolicyResourcesParam{
+ Resources: cloudflare.F(shared.TokenPolicyResourcesParam{
Resource: cloudflare.F("resource"),
Scope: cloudflare.F("scope"),
}),
}, {
- Effect: cloudflare.F(user.PolicyEffectAllow),
- PermissionGroups: cloudflare.F([]user.PolicyPermissionGroupParam{{
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Effect: cloudflare.F(shared.TokenPolicyEffectAllow),
+ PermissionGroups: cloudflare.F([]shared.TokenPolicyPermissionGroupParam{{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}, {
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}}),
- Resources: cloudflare.F(user.PolicyResourcesParam{
+ Resources: cloudflare.F(shared.TokenPolicyResourcesParam{
Resource: cloudflare.F("resource"),
Scope: cloudflare.F("scope"),
}),
}, {
- Effect: cloudflare.F(user.PolicyEffectAllow),
- PermissionGroups: cloudflare.F([]user.PolicyPermissionGroupParam{{
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Effect: cloudflare.F(shared.TokenPolicyEffectAllow),
+ PermissionGroups: cloudflare.F([]shared.TokenPolicyPermissionGroupParam{{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}, {
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}}),
- Resources: cloudflare.F(user.PolicyResourcesParam{
+ Resources: cloudflare.F(shared.TokenPolicyResourcesParam{
Resource: cloudflare.F("resource"),
Scope: cloudflare.F("scope"),
}),
}}),
Condition: cloudflare.F(accounts.TokenNewParamsCondition{
RequestIP: cloudflare.F(accounts.TokenNewParamsConditionRequestIP{
- In: cloudflare.F([]user.CIDRListParam{"123.123.123.0/24", "2606:4700::/32"}),
- NotIn: cloudflare.F([]user.CIDRListParam{"123.123.123.100/24", "2606:4700:4700::/48"}),
+ In: cloudflare.F([]shared.TokenConditionCIDRListParam{"123.123.123.0/24", "2606:4700::/32"}),
+ NotIn: cloudflare.F([]shared.TokenConditionCIDRListParam{"123.123.123.100/24", "2606:4700:4700::/48"}),
}),
}),
ExpiresOn: cloudflare.F(time.Now()),
@@ -120,65 +120,65 @@ func TestTokenUpdateWithOptionalParams(t *testing.T) {
"ed17574386854bf78a67040be0a770b0",
accounts.TokenUpdateParams{
AccountID: cloudflare.F("eb78d65290b24279ba6f44721b3ea3c4"),
- Token: user.TokenParam{
+ Token: shared.TokenParam{
Name: cloudflare.F("readonly token"),
- Policies: cloudflare.F([]user.PolicyParam{{
- Effect: cloudflare.F(user.PolicyEffectAllow),
- PermissionGroups: cloudflare.F([]user.PolicyPermissionGroupParam{{
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Policies: cloudflare.F([]shared.TokenPolicyParam{{
+ Effect: cloudflare.F(shared.TokenPolicyEffectAllow),
+ PermissionGroups: cloudflare.F([]shared.TokenPolicyPermissionGroupParam{{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}, {
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}}),
- Resources: cloudflare.F(user.PolicyResourcesParam{
+ Resources: cloudflare.F(shared.TokenPolicyResourcesParam{
Resource: cloudflare.F("resource"),
Scope: cloudflare.F("scope"),
}),
}, {
- Effect: cloudflare.F(user.PolicyEffectAllow),
- PermissionGroups: cloudflare.F([]user.PolicyPermissionGroupParam{{
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Effect: cloudflare.F(shared.TokenPolicyEffectAllow),
+ PermissionGroups: cloudflare.F([]shared.TokenPolicyPermissionGroupParam{{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}, {
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}}),
- Resources: cloudflare.F(user.PolicyResourcesParam{
+ Resources: cloudflare.F(shared.TokenPolicyResourcesParam{
Resource: cloudflare.F("resource"),
Scope: cloudflare.F("scope"),
}),
}, {
- Effect: cloudflare.F(user.PolicyEffectAllow),
- PermissionGroups: cloudflare.F([]user.PolicyPermissionGroupParam{{
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Effect: cloudflare.F(shared.TokenPolicyEffectAllow),
+ PermissionGroups: cloudflare.F([]shared.TokenPolicyPermissionGroupParam{{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}, {
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}}),
- Resources: cloudflare.F(user.PolicyResourcesParam{
+ Resources: cloudflare.F(shared.TokenPolicyResourcesParam{
Resource: cloudflare.F("resource"),
Scope: cloudflare.F("scope"),
}),
}}),
- Status: cloudflare.F(user.TokenStatusActive),
- Condition: cloudflare.F(user.TokenConditionParam{
- RequestIP: cloudflare.F(user.TokenConditionRequestIPParam{
- In: cloudflare.F([]user.CIDRListParam{"123.123.123.0/24", "2606:4700::/32"}),
- NotIn: cloudflare.F([]user.CIDRListParam{"123.123.123.100/24", "2606:4700:4700::/48"}),
+ Status: cloudflare.F(shared.TokenStatusActive),
+ Condition: cloudflare.F(shared.TokenConditionParam{
+ RequestIP: cloudflare.F(shared.TokenConditionRequestIPParam{
+ In: cloudflare.F([]shared.TokenConditionCIDRListParam{"123.123.123.0/24", "2606:4700::/32"}),
+ NotIn: cloudflare.F([]shared.TokenConditionCIDRListParam{"123.123.123.100/24", "2606:4700:4700::/48"}),
}),
}),
ExpiresOn: cloudflare.F(time.Now()),
diff --git a/acm/aliases.go b/acm/aliases.go
index 9268b19aacc..0f15365f46f 100644
--- a/acm/aliases.go
+++ b/acm/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/addressing/aliases.go b/addressing/aliases.go
index 994cb1c9aba..cb6f2103dce 100644
--- a/addressing/aliases.go
+++ b/addressing/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/ai_gateway/aliases.go b/ai_gateway/aliases.go
index 240942b41fc..8b6ce380b5a 100644
--- a/ai_gateway/aliases.go
+++ b/ai_gateway/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/alerting/aliases.go b/alerting/aliases.go
index 61757fcfe51..20ce55e6b97 100644
--- a/alerting/aliases.go
+++ b/alerting/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/aliases.go b/aliases.go
index aa12639008b..051b30756ef 100644
--- a/aliases.go
+++ b/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/api.md b/api.md
index 8a6986633b9..1a224cd1eff 100644
--- a/api.md
+++ b/api.md
@@ -8,6 +8,9 @@
- shared.RoleParam
- shared.SortDirection
- shared.SubscriptionParam
+- shared.TokenParam
+- shared.TokenConditionCIDRListParam
+- shared.TokenPolicyParam
# Shared Response Types
@@ -24,6 +27,9 @@
- shared.ResponseInfo
- shared.Role
- shared.Subscription
+- shared.Token
+- shared.TokenConditionCIDRList
+- shared.TokenPolicy
- shared.TokenValue
# Accounts
@@ -91,10 +97,10 @@ Response Types:
Methods:
- client.Accounts.Tokens.New(ctx context.Context, params accounts.TokenNewParams) (accounts.TokenNewResponse, error)
-- client.Accounts.Tokens.Update(ctx context.Context, tokenID string, params accounts.TokenUpdateParams) (user.Token, error)
-- client.Accounts.Tokens.List(ctx context.Context, params accounts.TokenListParams) (pagination.V4PagePaginationArray[user.Token], error)
+- client.Accounts.Tokens.Update(ctx context.Context, tokenID string, params accounts.TokenUpdateParams) (shared.Token, error)
+- client.Accounts.Tokens.List(ctx context.Context, params accounts.TokenListParams) (pagination.V4PagePaginationArray[shared.Token], error)
- client.Accounts.Tokens.Delete(ctx context.Context, tokenID string, body accounts.TokenDeleteParams) (accounts.TokenDeleteResponse, error)
-- client.Accounts.Tokens.Get(ctx context.Context, tokenID string, query accounts.TokenGetParams) (user.Token, error)
+- client.Accounts.Tokens.Get(ctx context.Context, tokenID string, query accounts.TokenGetParams) (shared.Token, error)
- client.Accounts.Tokens.Verify(ctx context.Context, query accounts.TokenVerifyParams) (accounts.TokenVerifyResponse, error)
### PermissionGroups
@@ -235,17 +241,8 @@ Methods:
## Tokens
-Params Types:
-
-- user.CIDRListParam
-- user.PolicyParam
-- user.TokenParam
-
Response Types:
-- user.CIDRList
-- user.Policy
-- user.Token
- user.TokenNewResponse
- user.TokenDeleteResponse
- user.TokenVerifyResponse
@@ -253,10 +250,10 @@ Response Types:
Methods:
- client.User.Tokens.New(ctx context.Context, body user.TokenNewParams) (user.TokenNewResponse, error)
-- client.User.Tokens.Update(ctx context.Context, tokenID string, body user.TokenUpdateParams) (user.Token, error)
-- client.User.Tokens.List(ctx context.Context, query user.TokenListParams) (pagination.V4PagePaginationArray[user.Token], error)
+- client.User.Tokens.Update(ctx context.Context, tokenID string, body user.TokenUpdateParams) (shared.Token, error)
+- client.User.Tokens.List(ctx context.Context, query user.TokenListParams) (pagination.V4PagePaginationArray[shared.Token], error)
- client.User.Tokens.Delete(ctx context.Context, tokenID string) (user.TokenDeleteResponse, error)
-- client.User.Tokens.Get(ctx context.Context, tokenID string) (user.Token, error)
+- client.User.Tokens.Get(ctx context.Context, tokenID string) (shared.Token, error)
- client.User.Tokens.Verify(ctx context.Context) (user.TokenVerifyResponse, error)
### PermissionGroups
diff --git a/api_gateway/aliases.go b/api_gateway/aliases.go
index 2d345c8bde7..503f713ec7d 100644
--- a/api_gateway/aliases.go
+++ b/api_gateway/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/argo/aliases.go b/argo/aliases.go
index cfab166ee58..498aa769bc2 100644
--- a/argo/aliases.go
+++ b/argo/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/audit_logs/aliases.go b/audit_logs/aliases.go
index 280e825622e..b2ba57b63f7 100644
--- a/audit_logs/aliases.go
+++ b/audit_logs/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/billing/aliases.go b/billing/aliases.go
index 7af64881a70..585fb7f2234 100644
--- a/billing/aliases.go
+++ b/billing/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/bot_management/aliases.go b/bot_management/aliases.go
index 0c3d6df84e3..1d9f157c3a1 100644
--- a/bot_management/aliases.go
+++ b/bot_management/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/botnet_feed/aliases.go b/botnet_feed/aliases.go
index 384c563ce42..9ec03877101 100644
--- a/botnet_feed/aliases.go
+++ b/botnet_feed/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/brand_protection/aliases.go b/brand_protection/aliases.go
index 09ea1827bb7..8088afc94c4 100644
--- a/brand_protection/aliases.go
+++ b/brand_protection/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/cache/aliases.go b/cache/aliases.go
index 65caef01406..384b3036978 100644
--- a/cache/aliases.go
+++ b/cache/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/calls/aliases.go b/calls/aliases.go
index 11041dc3be0..1444be14253 100644
--- a/calls/aliases.go
+++ b/calls/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/certificate_authorities/aliases.go b/certificate_authorities/aliases.go
index 815f7631e27..a9ba9fcc8b6 100644
--- a/certificate_authorities/aliases.go
+++ b/certificate_authorities/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/client_certificates/aliases.go b/client_certificates/aliases.go
index 784f40aa23f..8367c33ae59 100644
--- a/client_certificates/aliases.go
+++ b/client_certificates/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/cloud_connector/aliases.go b/cloud_connector/aliases.go
index ddcb2470f13..1553928fbc6 100644
--- a/cloud_connector/aliases.go
+++ b/cloud_connector/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/cloudforce_one/aliases.go b/cloudforce_one/aliases.go
index b9baede7432..a6f11ca0620 100644
--- a/cloudforce_one/aliases.go
+++ b/cloudforce_one/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/custom_certificates/aliases.go b/custom_certificates/aliases.go
index 90fe2e26b29..dd9b2008a9e 100644
--- a/custom_certificates/aliases.go
+++ b/custom_certificates/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/custom_hostnames/aliases.go b/custom_hostnames/aliases.go
index 7febd8ea65c..d32f67242b8 100644
--- a/custom_hostnames/aliases.go
+++ b/custom_hostnames/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/custom_nameservers/aliases.go b/custom_nameservers/aliases.go
index 08ab08ddebf..ba25dbf47f9 100644
--- a/custom_nameservers/aliases.go
+++ b/custom_nameservers/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/d1/aliases.go b/d1/aliases.go
index 5aad80bd03d..94a028d65b7 100644
--- a/d1/aliases.go
+++ b/d1/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/dcv_delegation/aliases.go b/dcv_delegation/aliases.go
index adf08205461..17e724b9d3f 100644
--- a/dcv_delegation/aliases.go
+++ b/dcv_delegation/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/diagnostics/aliases.go b/diagnostics/aliases.go
index a5cbec7b037..8fc6ba5f7cb 100644
--- a/diagnostics/aliases.go
+++ b/diagnostics/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/dns/aliases.go b/dns/aliases.go
index a4fb789ce6b..847b689ce78 100644
--- a/dns/aliases.go
+++ b/dns/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/dnssec/aliases.go b/dnssec/aliases.go
index 135c54dc8ee..56b03b199ce 100644
--- a/dnssec/aliases.go
+++ b/dnssec/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/durable_objects/aliases.go b/durable_objects/aliases.go
index f50da52aeaf..3dfbe641ef8 100644
--- a/durable_objects/aliases.go
+++ b/durable_objects/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/email_routing/aliases.go b/email_routing/aliases.go
index 3f948fc60f8..eb2c51a71bb 100644
--- a/email_routing/aliases.go
+++ b/email_routing/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/email_security/aliases.go b/email_security/aliases.go
index 2fe9fef18bd..b4a9e2bd48c 100644
--- a/email_security/aliases.go
+++ b/email_security/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/filters/aliases.go b/filters/aliases.go
index 0b1e4928644..224fcd616fa 100644
--- a/filters/aliases.go
+++ b/filters/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/firewall/aliases.go b/firewall/aliases.go
index 9be07a4afea..7043be8a5f6 100644
--- a/firewall/aliases.go
+++ b/firewall/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/healthchecks/aliases.go b/healthchecks/aliases.go
index 9c7f685982f..cc35b13de85 100644
--- a/healthchecks/aliases.go
+++ b/healthchecks/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/hostnames/aliases.go b/hostnames/aliases.go
index 3e523ad6a92..9fb9ada2c8a 100644
--- a/hostnames/aliases.go
+++ b/hostnames/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/hyperdrive/aliases.go b/hyperdrive/aliases.go
index 2587bdc9469..c2d3426132b 100644
--- a/hyperdrive/aliases.go
+++ b/hyperdrive/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/iam/aliases.go b/iam/aliases.go
index 23735b3427f..1868d1c239b 100644
--- a/iam/aliases.go
+++ b/iam/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/images/aliases.go b/images/aliases.go
index 2723b6c8a95..3f66c395f68 100644
--- a/images/aliases.go
+++ b/images/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/intel/aliases.go b/intel/aliases.go
index 0b9b9e24171..f9acb6e9278 100644
--- a/intel/aliases.go
+++ b/intel/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/ips/aliases.go b/ips/aliases.go
index 0aeba3a68b6..ea5b8713ae9 100644
--- a/ips/aliases.go
+++ b/ips/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/keyless_certificates/aliases.go b/keyless_certificates/aliases.go
index 60843a050f9..3ecc5ae7ac6 100644
--- a/keyless_certificates/aliases.go
+++ b/keyless_certificates/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/kv/aliases.go b/kv/aliases.go
index deae955977e..6ff55eca5e3 100644
--- a/kv/aliases.go
+++ b/kv/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/load_balancers/aliases.go b/load_balancers/aliases.go
index 8da0cc29272..3bc80a51742 100644
--- a/load_balancers/aliases.go
+++ b/load_balancers/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/logpush/aliases.go b/logpush/aliases.go
index b7c0d5b6ec5..efa9e9eccb5 100644
--- a/logpush/aliases.go
+++ b/logpush/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/logs/aliases.go b/logs/aliases.go
index a39514c47dc..7843ae43d20 100644
--- a/logs/aliases.go
+++ b/logs/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/magic_network_monitoring/aliases.go b/magic_network_monitoring/aliases.go
index db37414e20e..400c8404ec6 100644
--- a/magic_network_monitoring/aliases.go
+++ b/magic_network_monitoring/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/magic_transit/aliases.go b/magic_transit/aliases.go
index 902fcb51a99..69d7ac28630 100644
--- a/magic_transit/aliases.go
+++ b/magic_transit/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/managed_transforms/aliases.go b/managed_transforms/aliases.go
index 3ac04ec96e0..a3d0b02dd4f 100644
--- a/managed_transforms/aliases.go
+++ b/managed_transforms/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/memberships/aliases.go b/memberships/aliases.go
index 7c580eb80a1..3bd55955dbc 100644
--- a/memberships/aliases.go
+++ b/memberships/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/mtls_certificates/aliases.go b/mtls_certificates/aliases.go
index 2fe9c56f920..e52b4c25853 100644
--- a/mtls_certificates/aliases.go
+++ b/mtls_certificates/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/origin_ca_certificates/aliases.go b/origin_ca_certificates/aliases.go
index 218d7e3943c..540b941b3a4 100644
--- a/origin_ca_certificates/aliases.go
+++ b/origin_ca_certificates/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/origin_post_quantum_encryption/aliases.go b/origin_post_quantum_encryption/aliases.go
index 00cec0061ee..a91062ae41d 100644
--- a/origin_post_quantum_encryption/aliases.go
+++ b/origin_post_quantum_encryption/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/origin_tls_client_auth/aliases.go b/origin_tls_client_auth/aliases.go
index 243c3d0c1c1..1abad32c6ef 100644
--- a/origin_tls_client_auth/aliases.go
+++ b/origin_tls_client_auth/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/page_shield/aliases.go b/page_shield/aliases.go
index 40b301e02c6..3a74502aec6 100644
--- a/page_shield/aliases.go
+++ b/page_shield/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/pagerules/aliases.go b/pagerules/aliases.go
index 45876f1324f..32e761e0e99 100644
--- a/pagerules/aliases.go
+++ b/pagerules/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/pages/aliases.go b/pages/aliases.go
index 492a4b2dd82..8f48a28f7e2 100644
--- a/pages/aliases.go
+++ b/pages/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/queues/aliases.go b/queues/aliases.go
index e26a77aed8d..c0d6aea2923 100644
--- a/queues/aliases.go
+++ b/queues/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/r2/aliases.go b/r2/aliases.go
index 7f2795801f0..9e4e32c84f3 100644
--- a/r2/aliases.go
+++ b/r2/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/radar/aliases.go b/radar/aliases.go
index 6d3c2b59936..dd2d5da8320 100644
--- a/radar/aliases.go
+++ b/radar/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/rate_limits/aliases.go b/rate_limits/aliases.go
index 5cfa1271ab4..62576d54df3 100644
--- a/rate_limits/aliases.go
+++ b/rate_limits/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/registrar/aliases.go b/registrar/aliases.go
index 9c4ca040a58..2fca0e4821f 100644
--- a/registrar/aliases.go
+++ b/registrar/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/request_tracers/aliases.go b/request_tracers/aliases.go
index 0dd2e348e7f..aeba6109f53 100644
--- a/request_tracers/aliases.go
+++ b/request_tracers/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/rules/aliases.go b/rules/aliases.go
index 6aeb20aecb0..5c1ec9d5ed5 100644
--- a/rules/aliases.go
+++ b/rules/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/rulesets/aliases.go b/rulesets/aliases.go
index 2c6ca5bcf2a..3c3ca421889 100644
--- a/rulesets/aliases.go
+++ b/rulesets/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/rum/aliases.go b/rum/aliases.go
index 57a2880a469..7562d81c486 100644
--- a/rum/aliases.go
+++ b/rum/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/secondary_dns/aliases.go b/secondary_dns/aliases.go
index afe846ad6f7..3dfe0bfadd7 100644
--- a/secondary_dns/aliases.go
+++ b/secondary_dns/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/shared/shared.go b/shared/shared.go
index 164d7403467..c6f0df7fa98 100644
--- a/shared/shared.go
+++ b/shared/shared.go
@@ -1020,4 +1020,328 @@ func (r SubscriptionParam) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
+type Token struct {
+ // Token identifier tag.
+ ID string `json:"id"`
+ Condition TokenCondition `json:"condition"`
+ // The expiration time on or after which the JWT MUST NOT be accepted for
+ // processing.
+ ExpiresOn time.Time `json:"expires_on" format:"date-time"`
+ // The time on which the token was created.
+ IssuedOn time.Time `json:"issued_on" format:"date-time"`
+ // Last time the token was used.
+ LastUsedOn time.Time `json:"last_used_on" format:"date-time"`
+ // Last time the token was modified.
+ ModifiedOn time.Time `json:"modified_on" format:"date-time"`
+ // Token name.
+ Name string `json:"name"`
+ // The time before which the token MUST NOT be accepted for processing.
+ NotBefore time.Time `json:"not_before" format:"date-time"`
+ // List of access policies assigned to the token.
+ Policies []TokenPolicy `json:"policies"`
+ // Status of the token.
+ Status TokenStatus `json:"status"`
+ JSON tokenJSON `json:"-"`
+}
+
+// tokenJSON contains the JSON metadata for the struct [Token]
+type tokenJSON struct {
+ ID apijson.Field
+ Condition apijson.Field
+ ExpiresOn apijson.Field
+ IssuedOn apijson.Field
+ LastUsedOn apijson.Field
+ ModifiedOn apijson.Field
+ Name apijson.Field
+ NotBefore apijson.Field
+ Policies apijson.Field
+ Status apijson.Field
+ raw string
+ ExtraFields map[string]apijson.Field
+}
+
+func (r *Token) UnmarshalJSON(data []byte) (err error) {
+ return apijson.UnmarshalRoot(data, r)
+}
+
+func (r tokenJSON) RawJSON() string {
+ return r.raw
+}
+
+type TokenCondition struct {
+ // Client IP restrictions.
+ RequestIP TokenConditionRequestIP `json:"request.ip"`
+ JSON tokenConditionJSON `json:"-"`
+}
+
+// tokenConditionJSON contains the JSON metadata for the struct [TokenCondition]
+type tokenConditionJSON struct {
+ RequestIP apijson.Field
+ raw string
+ ExtraFields map[string]apijson.Field
+}
+
+func (r *TokenCondition) UnmarshalJSON(data []byte) (err error) {
+ return apijson.UnmarshalRoot(data, r)
+}
+
+func (r tokenConditionJSON) RawJSON() string {
+ return r.raw
+}
+
+// Client IP restrictions.
+type TokenConditionRequestIP struct {
+ // List of IPv4/IPv6 CIDR addresses.
+ In []TokenConditionCIDRList `json:"in"`
+ // List of IPv4/IPv6 CIDR addresses.
+ NotIn []TokenConditionCIDRList `json:"not_in"`
+ JSON tokenConditionRequestIPJSON `json:"-"`
+}
+
+// tokenConditionRequestIPJSON contains the JSON metadata for the struct
+// [TokenConditionRequestIP]
+type tokenConditionRequestIPJSON struct {
+ In apijson.Field
+ NotIn apijson.Field
+ raw string
+ ExtraFields map[string]apijson.Field
+}
+
+func (r *TokenConditionRequestIP) UnmarshalJSON(data []byte) (err error) {
+ return apijson.UnmarshalRoot(data, r)
+}
+
+func (r tokenConditionRequestIPJSON) RawJSON() string {
+ return r.raw
+}
+
+// Status of the token.
+type TokenStatus string
+
+const (
+ TokenStatusActive TokenStatus = "active"
+ TokenStatusDisabled TokenStatus = "disabled"
+ TokenStatusExpired TokenStatus = "expired"
+)
+
+func (r TokenStatus) IsKnown() bool {
+ switch r {
+ case TokenStatusActive, TokenStatusDisabled, TokenStatusExpired:
+ return true
+ }
+ return false
+}
+
+type TokenParam struct {
+ Condition param.Field[TokenConditionParam] `json:"condition"`
+ // The expiration time on or after which the JWT MUST NOT be accepted for
+ // processing.
+ ExpiresOn param.Field[time.Time] `json:"expires_on" format:"date-time"`
+ // Token name.
+ Name param.Field[string] `json:"name"`
+ // The time before which the token MUST NOT be accepted for processing.
+ NotBefore param.Field[time.Time] `json:"not_before" format:"date-time"`
+ // List of access policies assigned to the token.
+ Policies param.Field[[]TokenPolicyParam] `json:"policies"`
+ // Status of the token.
+ Status param.Field[TokenStatus] `json:"status"`
+}
+
+func (r TokenParam) MarshalJSON() (data []byte, err error) {
+ return apijson.MarshalRoot(r)
+}
+
+type TokenConditionParam struct {
+ // Client IP restrictions.
+ RequestIP param.Field[TokenConditionRequestIPParam] `json:"request.ip"`
+}
+
+func (r TokenConditionParam) MarshalJSON() (data []byte, err error) {
+ return apijson.MarshalRoot(r)
+}
+
+// Client IP restrictions.
+type TokenConditionRequestIPParam struct {
+ // List of IPv4/IPv6 CIDR addresses.
+ In param.Field[[]TokenConditionCIDRListParam] `json:"in"`
+ // List of IPv4/IPv6 CIDR addresses.
+ NotIn param.Field[[]TokenConditionCIDRListParam] `json:"not_in"`
+}
+
+func (r TokenConditionRequestIPParam) MarshalJSON() (data []byte, err error) {
+ return apijson.MarshalRoot(r)
+}
+
+type TokenConditionCIDRList = string
+
+type TokenConditionCIDRListParam = string
+
+type TokenPolicy struct {
+ // Policy identifier.
+ ID string `json:"id,required"`
+ // Allow or deny operations against the resources.
+ Effect TokenPolicyEffect `json:"effect,required"`
+ // A set of permission groups that are specified to the policy.
+ PermissionGroups []TokenPolicyPermissionGroup `json:"permission_groups,required"`
+ // A list of resource names that the policy applies to.
+ Resources TokenPolicyResources `json:"resources,required"`
+ JSON tokenPolicyJSON `json:"-"`
+}
+
+// tokenPolicyJSON contains the JSON metadata for the struct [TokenPolicy]
+type tokenPolicyJSON struct {
+ ID apijson.Field
+ Effect apijson.Field
+ PermissionGroups apijson.Field
+ Resources apijson.Field
+ raw string
+ ExtraFields map[string]apijson.Field
+}
+
+func (r *TokenPolicy) UnmarshalJSON(data []byte) (err error) {
+ return apijson.UnmarshalRoot(data, r)
+}
+
+func (r tokenPolicyJSON) RawJSON() string {
+ return r.raw
+}
+
+// Allow or deny operations against the resources.
+type TokenPolicyEffect string
+
+const (
+ TokenPolicyEffectAllow TokenPolicyEffect = "allow"
+ TokenPolicyEffectDeny TokenPolicyEffect = "deny"
+)
+
+func (r TokenPolicyEffect) IsKnown() bool {
+ switch r {
+ case TokenPolicyEffectAllow, TokenPolicyEffectDeny:
+ return true
+ }
+ return false
+}
+
+// A named group of permissions that map to a group of operations against
+// resources.
+type TokenPolicyPermissionGroup struct {
+ // Identifier of the group.
+ ID string `json:"id,required"`
+ // Attributes associated to the permission group.
+ Meta TokenPolicyPermissionGroupsMeta `json:"meta"`
+ // Name of the group.
+ Name string `json:"name"`
+ JSON tokenPolicyPermissionGroupJSON `json:"-"`
+}
+
+// tokenPolicyPermissionGroupJSON contains the JSON metadata for the struct
+// [TokenPolicyPermissionGroup]
+type tokenPolicyPermissionGroupJSON struct {
+ ID apijson.Field
+ Meta apijson.Field
+ Name apijson.Field
+ raw string
+ ExtraFields map[string]apijson.Field
+}
+
+func (r *TokenPolicyPermissionGroup) UnmarshalJSON(data []byte) (err error) {
+ return apijson.UnmarshalRoot(data, r)
+}
+
+func (r tokenPolicyPermissionGroupJSON) RawJSON() string {
+ return r.raw
+}
+
+// Attributes associated to the permission group.
+type TokenPolicyPermissionGroupsMeta struct {
+ Key string `json:"key"`
+ Value string `json:"value"`
+ JSON tokenPolicyPermissionGroupsMetaJSON `json:"-"`
+}
+
+// tokenPolicyPermissionGroupsMetaJSON contains the JSON metadata for the struct
+// [TokenPolicyPermissionGroupsMeta]
+type tokenPolicyPermissionGroupsMetaJSON struct {
+ Key apijson.Field
+ Value apijson.Field
+ raw string
+ ExtraFields map[string]apijson.Field
+}
+
+func (r *TokenPolicyPermissionGroupsMeta) UnmarshalJSON(data []byte) (err error) {
+ return apijson.UnmarshalRoot(data, r)
+}
+
+func (r tokenPolicyPermissionGroupsMetaJSON) RawJSON() string {
+ return r.raw
+}
+
+// A list of resource names that the policy applies to.
+type TokenPolicyResources struct {
+ Resource string `json:"resource"`
+ Scope string `json:"scope"`
+ JSON tokenPolicyResourcesJSON `json:"-"`
+}
+
+// tokenPolicyResourcesJSON contains the JSON metadata for the struct
+// [TokenPolicyResources]
+type tokenPolicyResourcesJSON struct {
+ Resource apijson.Field
+ Scope apijson.Field
+ raw string
+ ExtraFields map[string]apijson.Field
+}
+
+func (r *TokenPolicyResources) UnmarshalJSON(data []byte) (err error) {
+ return apijson.UnmarshalRoot(data, r)
+}
+
+func (r tokenPolicyResourcesJSON) RawJSON() string {
+ return r.raw
+}
+
+type TokenPolicyParam struct {
+ // Allow or deny operations against the resources.
+ Effect param.Field[TokenPolicyEffect] `json:"effect,required"`
+ // A set of permission groups that are specified to the policy.
+ PermissionGroups param.Field[[]TokenPolicyPermissionGroupParam] `json:"permission_groups,required"`
+ // A list of resource names that the policy applies to.
+ Resources param.Field[TokenPolicyResourcesParam] `json:"resources,required"`
+}
+
+func (r TokenPolicyParam) MarshalJSON() (data []byte, err error) {
+ return apijson.MarshalRoot(r)
+}
+
+// A named group of permissions that map to a group of operations against
+// resources.
+type TokenPolicyPermissionGroupParam struct {
+ // Attributes associated to the permission group.
+ Meta param.Field[TokenPolicyPermissionGroupsMetaParam] `json:"meta"`
+}
+
+func (r TokenPolicyPermissionGroupParam) MarshalJSON() (data []byte, err error) {
+ return apijson.MarshalRoot(r)
+}
+
+// Attributes associated to the permission group.
+type TokenPolicyPermissionGroupsMetaParam struct {
+ Key param.Field[string] `json:"key"`
+ Value param.Field[string] `json:"value"`
+}
+
+func (r TokenPolicyPermissionGroupsMetaParam) MarshalJSON() (data []byte, err error) {
+ return apijson.MarshalRoot(r)
+}
+
+// A list of resource names that the policy applies to.
+type TokenPolicyResourcesParam struct {
+ Resource param.Field[string] `json:"resource"`
+ Scope param.Field[string] `json:"scope"`
+}
+
+func (r TokenPolicyResourcesParam) MarshalJSON() (data []byte, err error) {
+ return apijson.MarshalRoot(r)
+}
+
type TokenValue = string
diff --git a/snippets/aliases.go b/snippets/aliases.go
index 3bf6c41a697..9faa7496de6 100644
--- a/snippets/aliases.go
+++ b/snippets/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/spectrum/aliases.go b/spectrum/aliases.go
index eff89457df3..8e48f6c3569 100644
--- a/spectrum/aliases.go
+++ b/spectrum/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/speed/aliases.go b/speed/aliases.go
index 0b5598cea66..839de4621a2 100644
--- a/speed/aliases.go
+++ b/speed/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/ssl/aliases.go b/ssl/aliases.go
index 06554111710..53315d3dc38 100644
--- a/ssl/aliases.go
+++ b/ssl/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/storage/aliases.go b/storage/aliases.go
index 0809ca85fac..74a744028f9 100644
--- a/storage/aliases.go
+++ b/storage/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/stream/aliases.go b/stream/aliases.go
index 535054ef663..23ac0ae7f60 100644
--- a/stream/aliases.go
+++ b/stream/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/turnstile/aliases.go b/turnstile/aliases.go
index 7cc6438e7bb..42b6af1956b 100644
--- a/turnstile/aliases.go
+++ b/turnstile/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/url_normalization/aliases.go b/url_normalization/aliases.go
index 219040a636e..c080e51cf2f 100644
--- a/url_normalization/aliases.go
+++ b/url_normalization/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/url_scanner/aliases.go b/url_scanner/aliases.go
index abcf4746a55..e7810623cb5 100644
--- a/url_scanner/aliases.go
+++ b/url_scanner/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/user/aliases.go b/user/aliases.go
index 624f81a2ac0..9e599e41baf 100644
--- a/user/aliases.go
+++ b/user/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/user/token.go b/user/token.go
index b2bbd5c6f6d..5702d526463 100644
--- a/user/token.go
+++ b/user/token.go
@@ -56,7 +56,7 @@ func (r *TokenService) New(ctx context.Context, body TokenNewParams, opts ...opt
}
// Update an existing token.
-func (r *TokenService) Update(ctx context.Context, tokenID string, body TokenUpdateParams, opts ...option.RequestOption) (res *Token, err error) {
+func (r *TokenService) Update(ctx context.Context, tokenID string, body TokenUpdateParams, opts ...option.RequestOption) (res *shared.Token, err error) {
var env TokenUpdateResponseEnvelope
opts = append(r.Options[:], opts...)
if tokenID == "" {
@@ -73,7 +73,7 @@ func (r *TokenService) Update(ctx context.Context, tokenID string, body TokenUpd
}
// List all access tokens you created.
-func (r *TokenService) List(ctx context.Context, query TokenListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[Token], err error) {
+func (r *TokenService) List(ctx context.Context, query TokenListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[shared.Token], err error) {
var raw *http.Response
opts = append(r.Options[:], opts...)
opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...)
@@ -91,7 +91,7 @@ func (r *TokenService) List(ctx context.Context, query TokenListParams, opts ...
}
// List all access tokens you created.
-func (r *TokenService) ListAutoPaging(ctx context.Context, query TokenListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[Token] {
+func (r *TokenService) ListAutoPaging(ctx context.Context, query TokenListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[shared.Token] {
return pagination.NewV4PagePaginationArrayAutoPager(r.List(ctx, query, opts...))
}
@@ -113,7 +113,7 @@ func (r *TokenService) Delete(ctx context.Context, tokenID string, opts ...optio
}
// Get information about a specific token.
-func (r *TokenService) Get(ctx context.Context, tokenID string, opts ...option.RequestOption) (res *Token, err error) {
+func (r *TokenService) Get(ctx context.Context, tokenID string, opts ...option.RequestOption) (res *shared.Token, err error) {
var env TokenGetResponseEnvelope
opts = append(r.Options[:], opts...)
if tokenID == "" {
@@ -142,329 +142,6 @@ func (r *TokenService) Verify(ctx context.Context, opts ...option.RequestOption)
return
}
-type CIDRList = string
-
-type CIDRListParam = string
-
-type Policy struct {
- // Policy identifier.
- ID string `json:"id,required"`
- // Allow or deny operations against the resources.
- Effect PolicyEffect `json:"effect,required"`
- // A set of permission groups that are specified to the policy.
- PermissionGroups []PolicyPermissionGroup `json:"permission_groups,required"`
- // A list of resource names that the policy applies to.
- Resources PolicyResources `json:"resources,required"`
- JSON policyJSON `json:"-"`
-}
-
-// policyJSON contains the JSON metadata for the struct [Policy]
-type policyJSON struct {
- ID apijson.Field
- Effect apijson.Field
- PermissionGroups apijson.Field
- Resources apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *Policy) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r policyJSON) RawJSON() string {
- return r.raw
-}
-
-// Allow or deny operations against the resources.
-type PolicyEffect string
-
-const (
- PolicyEffectAllow PolicyEffect = "allow"
- PolicyEffectDeny PolicyEffect = "deny"
-)
-
-func (r PolicyEffect) IsKnown() bool {
- switch r {
- case PolicyEffectAllow, PolicyEffectDeny:
- return true
- }
- return false
-}
-
-// A named group of permissions that map to a group of operations against
-// resources.
-type PolicyPermissionGroup struct {
- // Identifier of the group.
- ID string `json:"id,required"`
- // Attributes associated to the permission group.
- Meta PolicyPermissionGroupsMeta `json:"meta"`
- // Name of the group.
- Name string `json:"name"`
- JSON policyPermissionGroupJSON `json:"-"`
-}
-
-// policyPermissionGroupJSON contains the JSON metadata for the struct
-// [PolicyPermissionGroup]
-type policyPermissionGroupJSON struct {
- ID apijson.Field
- Meta apijson.Field
- Name apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *PolicyPermissionGroup) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r policyPermissionGroupJSON) RawJSON() string {
- return r.raw
-}
-
-// Attributes associated to the permission group.
-type PolicyPermissionGroupsMeta struct {
- Key string `json:"key"`
- Value string `json:"value"`
- JSON policyPermissionGroupsMetaJSON `json:"-"`
-}
-
-// policyPermissionGroupsMetaJSON contains the JSON metadata for the struct
-// [PolicyPermissionGroupsMeta]
-type policyPermissionGroupsMetaJSON struct {
- Key apijson.Field
- Value apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *PolicyPermissionGroupsMeta) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r policyPermissionGroupsMetaJSON) RawJSON() string {
- return r.raw
-}
-
-// A list of resource names that the policy applies to.
-type PolicyResources struct {
- Resource string `json:"resource"`
- Scope string `json:"scope"`
- JSON policyResourcesJSON `json:"-"`
-}
-
-// policyResourcesJSON contains the JSON metadata for the struct [PolicyResources]
-type policyResourcesJSON struct {
- Resource apijson.Field
- Scope apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *PolicyResources) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r policyResourcesJSON) RawJSON() string {
- return r.raw
-}
-
-type PolicyParam struct {
- // Allow or deny operations against the resources.
- Effect param.Field[PolicyEffect] `json:"effect,required"`
- // A set of permission groups that are specified to the policy.
- PermissionGroups param.Field[[]PolicyPermissionGroupParam] `json:"permission_groups,required"`
- // A list of resource names that the policy applies to.
- Resources param.Field[PolicyResourcesParam] `json:"resources,required"`
-}
-
-func (r PolicyParam) MarshalJSON() (data []byte, err error) {
- return apijson.MarshalRoot(r)
-}
-
-// A named group of permissions that map to a group of operations against
-// resources.
-type PolicyPermissionGroupParam struct {
- // Attributes associated to the permission group.
- Meta param.Field[PolicyPermissionGroupsMetaParam] `json:"meta"`
-}
-
-func (r PolicyPermissionGroupParam) MarshalJSON() (data []byte, err error) {
- return apijson.MarshalRoot(r)
-}
-
-// Attributes associated to the permission group.
-type PolicyPermissionGroupsMetaParam struct {
- Key param.Field[string] `json:"key"`
- Value param.Field[string] `json:"value"`
-}
-
-func (r PolicyPermissionGroupsMetaParam) MarshalJSON() (data []byte, err error) {
- return apijson.MarshalRoot(r)
-}
-
-// A list of resource names that the policy applies to.
-type PolicyResourcesParam struct {
- Resource param.Field[string] `json:"resource"`
- Scope param.Field[string] `json:"scope"`
-}
-
-func (r PolicyResourcesParam) MarshalJSON() (data []byte, err error) {
- return apijson.MarshalRoot(r)
-}
-
-type Token struct {
- // Token identifier tag.
- ID string `json:"id"`
- Condition TokenCondition `json:"condition"`
- // The expiration time on or after which the JWT MUST NOT be accepted for
- // processing.
- ExpiresOn time.Time `json:"expires_on" format:"date-time"`
- // The time on which the token was created.
- IssuedOn time.Time `json:"issued_on" format:"date-time"`
- // Last time the token was used.
- LastUsedOn time.Time `json:"last_used_on" format:"date-time"`
- // Last time the token was modified.
- ModifiedOn time.Time `json:"modified_on" format:"date-time"`
- // Token name.
- Name string `json:"name"`
- // The time before which the token MUST NOT be accepted for processing.
- NotBefore time.Time `json:"not_before" format:"date-time"`
- // List of access policies assigned to the token.
- Policies []Policy `json:"policies"`
- // Status of the token.
- Status TokenStatus `json:"status"`
- JSON tokenJSON `json:"-"`
-}
-
-// tokenJSON contains the JSON metadata for the struct [Token]
-type tokenJSON struct {
- ID apijson.Field
- Condition apijson.Field
- ExpiresOn apijson.Field
- IssuedOn apijson.Field
- LastUsedOn apijson.Field
- ModifiedOn apijson.Field
- Name apijson.Field
- NotBefore apijson.Field
- Policies apijson.Field
- Status apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *Token) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r tokenJSON) RawJSON() string {
- return r.raw
-}
-
-type TokenCondition struct {
- // Client IP restrictions.
- RequestIP TokenConditionRequestIP `json:"request.ip"`
- JSON tokenConditionJSON `json:"-"`
-}
-
-// tokenConditionJSON contains the JSON metadata for the struct [TokenCondition]
-type tokenConditionJSON struct {
- RequestIP apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *TokenCondition) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r tokenConditionJSON) RawJSON() string {
- return r.raw
-}
-
-// Client IP restrictions.
-type TokenConditionRequestIP struct {
- // List of IPv4/IPv6 CIDR addresses.
- In []CIDRList `json:"in"`
- // List of IPv4/IPv6 CIDR addresses.
- NotIn []CIDRList `json:"not_in"`
- JSON tokenConditionRequestIPJSON `json:"-"`
-}
-
-// tokenConditionRequestIPJSON contains the JSON metadata for the struct
-// [TokenConditionRequestIP]
-type tokenConditionRequestIPJSON struct {
- In apijson.Field
- NotIn apijson.Field
- raw string
- ExtraFields map[string]apijson.Field
-}
-
-func (r *TokenConditionRequestIP) UnmarshalJSON(data []byte) (err error) {
- return apijson.UnmarshalRoot(data, r)
-}
-
-func (r tokenConditionRequestIPJSON) RawJSON() string {
- return r.raw
-}
-
-// Status of the token.
-type TokenStatus string
-
-const (
- TokenStatusActive TokenStatus = "active"
- TokenStatusDisabled TokenStatus = "disabled"
- TokenStatusExpired TokenStatus = "expired"
-)
-
-func (r TokenStatus) IsKnown() bool {
- switch r {
- case TokenStatusActive, TokenStatusDisabled, TokenStatusExpired:
- return true
- }
- return false
-}
-
-type TokenParam struct {
- Condition param.Field[TokenConditionParam] `json:"condition"`
- // The expiration time on or after which the JWT MUST NOT be accepted for
- // processing.
- ExpiresOn param.Field[time.Time] `json:"expires_on" format:"date-time"`
- // Token name.
- Name param.Field[string] `json:"name"`
- // The time before which the token MUST NOT be accepted for processing.
- NotBefore param.Field[time.Time] `json:"not_before" format:"date-time"`
- // List of access policies assigned to the token.
- Policies param.Field[[]PolicyParam] `json:"policies"`
- // Status of the token.
- Status param.Field[TokenStatus] `json:"status"`
-}
-
-func (r TokenParam) MarshalJSON() (data []byte, err error) {
- return apijson.MarshalRoot(r)
-}
-
-type TokenConditionParam struct {
- // Client IP restrictions.
- RequestIP param.Field[TokenConditionRequestIPParam] `json:"request.ip"`
-}
-
-func (r TokenConditionParam) MarshalJSON() (data []byte, err error) {
- return apijson.MarshalRoot(r)
-}
-
-// Client IP restrictions.
-type TokenConditionRequestIPParam struct {
- // List of IPv4/IPv6 CIDR addresses.
- In param.Field[[]CIDRListParam] `json:"in"`
- // List of IPv4/IPv6 CIDR addresses.
- NotIn param.Field[[]CIDRListParam] `json:"not_in"`
-}
-
-func (r TokenConditionRequestIPParam) MarshalJSON() (data []byte, err error) {
- return apijson.MarshalRoot(r)
-}
-
type TokenNewResponse struct {
// Token identifier tag.
ID string `json:"id"`
@@ -483,7 +160,7 @@ type TokenNewResponse struct {
// The time before which the token MUST NOT be accepted for processing.
NotBefore time.Time `json:"not_before" format:"date-time"`
// List of access policies assigned to the token.
- Policies []Policy `json:"policies"`
+ Policies []shared.TokenPolicy `json:"policies"`
// Status of the token.
Status TokenNewResponseStatus `json:"status"`
// The token value.
@@ -542,9 +219,9 @@ func (r tokenNewResponseConditionJSON) RawJSON() string {
// Client IP restrictions.
type TokenNewResponseConditionRequestIP struct {
// List of IPv4/IPv6 CIDR addresses.
- In []CIDRList `json:"in"`
+ In []shared.TokenConditionCIDRList `json:"in"`
// List of IPv4/IPv6 CIDR addresses.
- NotIn []CIDRList `json:"not_in"`
+ NotIn []shared.TokenConditionCIDRList `json:"not_in"`
JSON tokenNewResponseConditionRequestIPJSON `json:"-"`
}
@@ -657,8 +334,8 @@ type TokenNewParams struct {
// Token name.
Name param.Field[string] `json:"name,required"`
// List of access policies assigned to the token.
- Policies param.Field[[]PolicyParam] `json:"policies,required"`
- Condition param.Field[TokenNewParamsCondition] `json:"condition"`
+ Policies param.Field[[]shared.TokenPolicyParam] `json:"policies,required"`
+ Condition param.Field[TokenNewParamsCondition] `json:"condition"`
// The expiration time on or after which the JWT MUST NOT be accepted for
// processing.
ExpiresOn param.Field[time.Time] `json:"expires_on" format:"date-time"`
@@ -682,9 +359,9 @@ func (r TokenNewParamsCondition) MarshalJSON() (data []byte, err error) {
// Client IP restrictions.
type TokenNewParamsConditionRequestIP struct {
// List of IPv4/IPv6 CIDR addresses.
- In param.Field[[]CIDRListParam] `json:"in"`
+ In param.Field[[]shared.TokenConditionCIDRListParam] `json:"in"`
// List of IPv4/IPv6 CIDR addresses.
- NotIn param.Field[[]CIDRListParam] `json:"not_in"`
+ NotIn param.Field[[]shared.TokenConditionCIDRListParam] `json:"not_in"`
}
func (r TokenNewParamsConditionRequestIP) MarshalJSON() (data []byte, err error) {
@@ -735,7 +412,7 @@ func (r TokenNewResponseEnvelopeSuccess) IsKnown() bool {
}
type TokenUpdateParams struct {
- Token TokenParam `json:"token,required"`
+ Token shared.TokenParam `json:"token,required"`
}
func (r TokenUpdateParams) MarshalJSON() (data []byte, err error) {
@@ -747,7 +424,7 @@ type TokenUpdateResponseEnvelope struct {
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success TokenUpdateResponseEnvelopeSuccess `json:"success,required"`
- Result Token `json:"result"`
+ Result shared.Token `json:"result"`
JSON tokenUpdateResponseEnvelopeJSON `json:"-"`
}
@@ -866,7 +543,7 @@ type TokenGetResponseEnvelope struct {
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success TokenGetResponseEnvelopeSuccess `json:"success,required"`
- Result Token `json:"result"`
+ Result shared.Token `json:"result"`
JSON tokenGetResponseEnvelopeJSON `json:"-"`
}
diff --git a/user/token_test.go b/user/token_test.go
index a850ab083dd..dcc2482548d 100644
--- a/user/token_test.go
+++ b/user/token_test.go
@@ -12,6 +12,7 @@ import (
"github.com/cloudflare/cloudflare-go/v3"
"github.com/cloudflare/cloudflare-go/v3/internal/testutil"
"github.com/cloudflare/cloudflare-go/v3/option"
+ "github.com/cloudflare/cloudflare-go/v3/shared"
"github.com/cloudflare/cloudflare-go/v3/user"
)
@@ -31,62 +32,62 @@ func TestTokenNewWithOptionalParams(t *testing.T) {
)
_, err := client.User.Tokens.New(context.TODO(), user.TokenNewParams{
Name: cloudflare.F("readonly token"),
- Policies: cloudflare.F([]user.PolicyParam{{
- Effect: cloudflare.F(user.PolicyEffectAllow),
- PermissionGroups: cloudflare.F([]user.PolicyPermissionGroupParam{{
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Policies: cloudflare.F([]shared.TokenPolicyParam{{
+ Effect: cloudflare.F(shared.TokenPolicyEffectAllow),
+ PermissionGroups: cloudflare.F([]shared.TokenPolicyPermissionGroupParam{{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}, {
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}}),
- Resources: cloudflare.F(user.PolicyResourcesParam{
+ Resources: cloudflare.F(shared.TokenPolicyResourcesParam{
Resource: cloudflare.F("resource"),
Scope: cloudflare.F("scope"),
}),
}, {
- Effect: cloudflare.F(user.PolicyEffectAllow),
- PermissionGroups: cloudflare.F([]user.PolicyPermissionGroupParam{{
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Effect: cloudflare.F(shared.TokenPolicyEffectAllow),
+ PermissionGroups: cloudflare.F([]shared.TokenPolicyPermissionGroupParam{{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}, {
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}}),
- Resources: cloudflare.F(user.PolicyResourcesParam{
+ Resources: cloudflare.F(shared.TokenPolicyResourcesParam{
Resource: cloudflare.F("resource"),
Scope: cloudflare.F("scope"),
}),
}, {
- Effect: cloudflare.F(user.PolicyEffectAllow),
- PermissionGroups: cloudflare.F([]user.PolicyPermissionGroupParam{{
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Effect: cloudflare.F(shared.TokenPolicyEffectAllow),
+ PermissionGroups: cloudflare.F([]shared.TokenPolicyPermissionGroupParam{{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}, {
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}}),
- Resources: cloudflare.F(user.PolicyResourcesParam{
+ Resources: cloudflare.F(shared.TokenPolicyResourcesParam{
Resource: cloudflare.F("resource"),
Scope: cloudflare.F("scope"),
}),
}}),
Condition: cloudflare.F(user.TokenNewParamsCondition{
RequestIP: cloudflare.F(user.TokenNewParamsConditionRequestIP{
- In: cloudflare.F([]user.CIDRListParam{"123.123.123.0/24", "2606:4700::/32"}),
- NotIn: cloudflare.F([]user.CIDRListParam{"123.123.123.100/24", "2606:4700:4700::/48"}),
+ In: cloudflare.F([]shared.TokenConditionCIDRListParam{"123.123.123.0/24", "2606:4700::/32"}),
+ NotIn: cloudflare.F([]shared.TokenConditionCIDRListParam{"123.123.123.100/24", "2606:4700:4700::/48"}),
}),
}),
ExpiresOn: cloudflare.F(time.Now()),
@@ -119,65 +120,65 @@ func TestTokenUpdateWithOptionalParams(t *testing.T) {
context.TODO(),
"ed17574386854bf78a67040be0a770b0",
user.TokenUpdateParams{
- Token: user.TokenParam{
+ Token: shared.TokenParam{
Name: cloudflare.F("readonly token"),
- Policies: cloudflare.F([]user.PolicyParam{{
- Effect: cloudflare.F(user.PolicyEffectAllow),
- PermissionGroups: cloudflare.F([]user.PolicyPermissionGroupParam{{
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Policies: cloudflare.F([]shared.TokenPolicyParam{{
+ Effect: cloudflare.F(shared.TokenPolicyEffectAllow),
+ PermissionGroups: cloudflare.F([]shared.TokenPolicyPermissionGroupParam{{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}, {
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}}),
- Resources: cloudflare.F(user.PolicyResourcesParam{
+ Resources: cloudflare.F(shared.TokenPolicyResourcesParam{
Resource: cloudflare.F("resource"),
Scope: cloudflare.F("scope"),
}),
}, {
- Effect: cloudflare.F(user.PolicyEffectAllow),
- PermissionGroups: cloudflare.F([]user.PolicyPermissionGroupParam{{
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Effect: cloudflare.F(shared.TokenPolicyEffectAllow),
+ PermissionGroups: cloudflare.F([]shared.TokenPolicyPermissionGroupParam{{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}, {
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}}),
- Resources: cloudflare.F(user.PolicyResourcesParam{
+ Resources: cloudflare.F(shared.TokenPolicyResourcesParam{
Resource: cloudflare.F("resource"),
Scope: cloudflare.F("scope"),
}),
}, {
- Effect: cloudflare.F(user.PolicyEffectAllow),
- PermissionGroups: cloudflare.F([]user.PolicyPermissionGroupParam{{
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Effect: cloudflare.F(shared.TokenPolicyEffectAllow),
+ PermissionGroups: cloudflare.F([]shared.TokenPolicyPermissionGroupParam{{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}, {
- Meta: cloudflare.F(user.PolicyPermissionGroupsMetaParam{
+ Meta: cloudflare.F(shared.TokenPolicyPermissionGroupsMetaParam{
Key: cloudflare.F("key"),
Value: cloudflare.F("value"),
}),
}}),
- Resources: cloudflare.F(user.PolicyResourcesParam{
+ Resources: cloudflare.F(shared.TokenPolicyResourcesParam{
Resource: cloudflare.F("resource"),
Scope: cloudflare.F("scope"),
}),
}}),
- Status: cloudflare.F(user.TokenStatusActive),
- Condition: cloudflare.F(user.TokenConditionParam{
- RequestIP: cloudflare.F(user.TokenConditionRequestIPParam{
- In: cloudflare.F([]user.CIDRListParam{"123.123.123.0/24", "2606:4700::/32"}),
- NotIn: cloudflare.F([]user.CIDRListParam{"123.123.123.100/24", "2606:4700:4700::/48"}),
+ Status: cloudflare.F(shared.TokenStatusActive),
+ Condition: cloudflare.F(shared.TokenConditionParam{
+ RequestIP: cloudflare.F(shared.TokenConditionRequestIPParam{
+ In: cloudflare.F([]shared.TokenConditionCIDRListParam{"123.123.123.0/24", "2606:4700::/32"}),
+ NotIn: cloudflare.F([]shared.TokenConditionCIDRListParam{"123.123.123.100/24", "2606:4700:4700::/48"}),
}),
}),
ExpiresOn: cloudflare.F(time.Now()),
diff --git a/vectorize/aliases.go b/vectorize/aliases.go
index 221475f33b3..6d394058d81 100644
--- a/vectorize/aliases.go
+++ b/vectorize/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/waiting_rooms/aliases.go b/waiting_rooms/aliases.go
index 67fb735f8a5..7d292df38eb 100644
--- a/waiting_rooms/aliases.go
+++ b/waiting_rooms/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/warp_connector/aliases.go b/warp_connector/aliases.go
index ea2a61e29a0..fcd850d882f 100644
--- a/warp_connector/aliases.go
+++ b/warp_connector/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/web3/aliases.go b/web3/aliases.go
index 4c6a83593fc..0030142c435 100644
--- a/web3/aliases.go
+++ b/web3/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/workers/aliases.go b/workers/aliases.go
index 73ed95bc835..0bb3acdd4e2 100644
--- a/workers/aliases.go
+++ b/workers/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/workers_for_platforms/aliases.go b/workers_for_platforms/aliases.go
index b709f5db012..9cf76a77282 100644
--- a/workers_for_platforms/aliases.go
+++ b/workers_for_platforms/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/zero_trust/aliases.go b/zero_trust/aliases.go
index 20e29b5efac..29f44a8bdb9 100644
--- a/zero_trust/aliases.go
+++ b/zero_trust/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.
diff --git a/zones/aliases.go b/zones/aliases.go
index 4b9dfca7c09..23edc3ea38e 100644
--- a/zones/aliases.go
+++ b/zones/aliases.go
@@ -286,6 +286,101 @@ const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
+// This is an alias to an internal type.
+type Token = shared.Token
+
+// This is an alias to an internal type.
+type TokenCondition = shared.TokenCondition
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIP = shared.TokenConditionRequestIP
+
+// Status of the token.
+//
+// This is an alias to an internal type.
+type TokenStatus = shared.TokenStatus
+
+// This is an alias to an internal value.
+const TokenStatusActive = shared.TokenStatusActive
+
+// This is an alias to an internal value.
+const TokenStatusDisabled = shared.TokenStatusDisabled
+
+// This is an alias to an internal value.
+const TokenStatusExpired = shared.TokenStatusExpired
+
+// This is an alias to an internal type.
+type TokenParam = shared.TokenParam
+
+// This is an alias to an internal type.
+type TokenConditionParam = shared.TokenConditionParam
+
+// Client IP restrictions.
+//
+// This is an alias to an internal type.
+type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRList = shared.TokenConditionCIDRList
+
+// IPv4/IPv6 CIDR.
+//
+// This is an alias to an internal type.
+type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
+
+// This is an alias to an internal type.
+type TokenPolicy = shared.TokenPolicy
+
+// Allow or deny operations against the resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyEffect = shared.TokenPolicyEffect
+
+// This is an alias to an internal value.
+const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
+
+// This is an alias to an internal value.
+const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResources = shared.TokenPolicyResources
+
+// This is an alias to an internal type.
+type TokenPolicyParam = shared.TokenPolicyParam
+
+// A named group of permissions that map to a group of operations against
+// resources.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
+
+// Attributes associated to the permission group.
+//
+// This is an alias to an internal type.
+type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
+
+// A list of resource names that the policy applies to.
+//
+// This is an alias to an internal type.
+type TokenPolicyResourcesParam = shared.TokenPolicyResourcesParam
+
// The token value.
//
// This is an alias to an internal type.