@@ -13,7 +13,6 @@ import (
1313 "github.com/cloudflare/cloudflare-go/v3/internal/requestconfig"
1414 "github.com/cloudflare/cloudflare-go/v3/option"
1515 "github.com/cloudflare/cloudflare-go/v3/shared"
16- "github.com/cloudflare/cloudflare-go/v3/user"
1716)
1817
1918// TokenValueService contains methods and other services that help with interacting
@@ -36,7 +35,7 @@ func NewTokenValueService(opts ...option.RequestOption) (r *TokenValueService) {
3635}
3736
3837// Roll the Account Owned API token secret.
39- func (r * TokenValueService ) Update (ctx context.Context , tokenID string , params TokenValueUpdateParams , opts ... option.RequestOption ) (res * user. Value , err error ) {
38+ func (r * TokenValueService ) Update (ctx context.Context , tokenID string , params TokenValueUpdateParams , opts ... option.RequestOption ) (res * shared. TokenValue , err error ) {
4039 var env TokenValueUpdateResponseEnvelope
4140 opts = append (r .Options [:], opts ... )
4241 if params .AccountID .Value == "" {
@@ -72,7 +71,7 @@ type TokenValueUpdateResponseEnvelope struct {
7271 // Whether the API call was successful
7372 Success TokenValueUpdateResponseEnvelopeSuccess `json:"success,required"`
7473 // The token value.
75- Result user. Value `json:"result"`
74+ Result shared. TokenValue `json:"result"`
7675 JSON tokenValueUpdateResponseEnvelopeJSON `json:"-"`
7776}
7877
0 commit comments