From 710d61dda5975a57fe086fd98a7f4b00e98ee007 Mon Sep 17 00:00:00 2001
From: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Date: Tue, 7 May 2024 06:13:04 +0000
Subject: [PATCH] Release v0.2.0

---
 core/client_option.go |  2 +-
 types.go              | 42 +++++++++++++++++++++---------------------
 2 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/core/client_option.go b/core/client_option.go
index c36e2c8..d2f3cc8 100644
--- a/core/client_option.go
+++ b/core/client_option.go
@@ -43,6 +43,6 @@ func (c *ClientOptions) cloneHeader() http.Header {
 	headers := c.HTTPHeader.Clone()
 	headers.Set("X-Fern-Language", "Go")
 	headers.Set("X-Fern-SDK-Name", "github.com/hookdeck/hookdeck-go-sdk")
-	headers.Set("X-Fern-SDK-Version", "v0.1.0")
+	headers.Set("X-Fern-SDK-Version", "v0.2.0")
 	return headers
 }
diff --git a/types.go b/types.go
index c028170..1c364c1 100644
--- a/types.go
+++ b/types.go
@@ -894,45 +894,45 @@ type DestinationAuthMethodOAuth2AuthorizationCodeConfig struct {
 	Scope *string `json:"scope,omitempty"`
 	// URL of the auth server
 	AuthServer string `json:"auth_server"`
+}
+
+// OAuth2 Client Credentials config for the destination's auth method
+type DestinationAuthMethodOAuth2ClientCredentialsConfig struct {
+	// Client id in the auth server
+	ClientId string `json:"client_id"`
+	// Client secret in the auth server
+	ClientSecret string `json:"client_secret"`
+	// Scope to access
+	Scope *string `json:"scope,omitempty"`
+	// URL of the auth server
+	AuthServer string `json:"auth_server"`
 	// Basic (default) or Bearer Authentication
-	AuthenticationType *DestinationAuthMethodOAuth2AuthorizationCodeConfigAuthenticationType `json:"authentication_type,omitempty"`
+	AuthenticationType *DestinationAuthMethodOAuth2ClientCredentialsConfigAuthenticationType `json:"authentication_type,omitempty"`
 }
 
 // Basic (default) or Bearer Authentication
-type DestinationAuthMethodOAuth2AuthorizationCodeConfigAuthenticationType string
+type DestinationAuthMethodOAuth2ClientCredentialsConfigAuthenticationType string
 
 const (
-	DestinationAuthMethodOAuth2AuthorizationCodeConfigAuthenticationTypeBasic  DestinationAuthMethodOAuth2AuthorizationCodeConfigAuthenticationType = "basic"
-	DestinationAuthMethodOAuth2AuthorizationCodeConfigAuthenticationTypeBearer DestinationAuthMethodOAuth2AuthorizationCodeConfigAuthenticationType = "bearer"
+	DestinationAuthMethodOAuth2ClientCredentialsConfigAuthenticationTypeBasic  DestinationAuthMethodOAuth2ClientCredentialsConfigAuthenticationType = "basic"
+	DestinationAuthMethodOAuth2ClientCredentialsConfigAuthenticationTypeBearer DestinationAuthMethodOAuth2ClientCredentialsConfigAuthenticationType = "bearer"
 )
 
-func NewDestinationAuthMethodOAuth2AuthorizationCodeConfigAuthenticationTypeFromString(s string) (DestinationAuthMethodOAuth2AuthorizationCodeConfigAuthenticationType, error) {
+func NewDestinationAuthMethodOAuth2ClientCredentialsConfigAuthenticationTypeFromString(s string) (DestinationAuthMethodOAuth2ClientCredentialsConfigAuthenticationType, error) {
 	switch s {
 	case "basic":
-		return DestinationAuthMethodOAuth2AuthorizationCodeConfigAuthenticationTypeBasic, nil
+		return DestinationAuthMethodOAuth2ClientCredentialsConfigAuthenticationTypeBasic, nil
 	case "bearer":
-		return DestinationAuthMethodOAuth2AuthorizationCodeConfigAuthenticationTypeBearer, nil
+		return DestinationAuthMethodOAuth2ClientCredentialsConfigAuthenticationTypeBearer, nil
 	}
-	var t DestinationAuthMethodOAuth2AuthorizationCodeConfigAuthenticationType
+	var t DestinationAuthMethodOAuth2ClientCredentialsConfigAuthenticationType
 	return "", fmt.Errorf("%s is not a valid %T", s, t)
 }
 
-func (d DestinationAuthMethodOAuth2AuthorizationCodeConfigAuthenticationType) Ptr() *DestinationAuthMethodOAuth2AuthorizationCodeConfigAuthenticationType {
+func (d DestinationAuthMethodOAuth2ClientCredentialsConfigAuthenticationType) Ptr() *DestinationAuthMethodOAuth2ClientCredentialsConfigAuthenticationType {
 	return &d
 }
 
-// OAuth2 Client Credentials config for the destination's auth method
-type DestinationAuthMethodOAuth2ClientCredentialsConfig struct {
-	// Client id in the auth server
-	ClientId string `json:"client_id"`
-	// Client secret in the auth server
-	ClientSecret string `json:"client_secret"`
-	// Scope to access
-	Scope *string `json:"scope,omitempty"`
-	// URL of the auth server
-	AuthServer string `json:"auth_server"`
-}
-
 // Empty config for the destination's auth method
 type DestinationAuthMethodSignatureConfig struct {
 }