From 7a0c221c06cedeb8a71c1806406c701786458971 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 11:33:16 +0000 Subject: [PATCH] Release v0.0.674 --- core/client_option.go | 2 +- types.go | 39 +++++++++++++++++++++++++++------------ 2 files changed, 28 insertions(+), 13 deletions(-) diff --git a/core/client_option.go b/core/client_option.go index d91b423..64f2d61 100644 --- a/core/client_option.go +++ b/core/client_option.go @@ -36,6 +36,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/fern-api/generator-exec-go") - headers.Set("X-Fern-SDK-Version", "v0.0.672") + headers.Set("X-Fern-SDK-Version", "v0.0.674") return headers } diff --git a/types.go b/types.go index 362b080..f960abd 100644 --- a/types.go +++ b/types.go @@ -758,25 +758,40 @@ func (l *LicenseId) UnmarshalJSON(data []byte) error { return nil } +type MavenCentralSignature struct { + KeyId string `json:"keyId"` + Password string `json:"password"` + SecretKey string `json:"secretKey"` +} + +type MavenCentralSignatureGithubInfo struct { + KeyIdEnvironmentVariable EnvironmentVariable `json:"keyIdEnvironmentVariable"` + PasswordEnvironmentVariable EnvironmentVariable `json:"passwordEnvironmentVariable"` + SecretKeyEnvironmentVariable EnvironmentVariable `json:"secretKeyEnvironmentVariable"` +} + type MavenGithubPublishInfo struct { - RegistryUrl string `json:"registryUrl"` - Coordinate string `json:"coordinate"` - UsernameEnvironmentVariable EnvironmentVariable `json:"usernameEnvironmentVariable"` - PasswordEnvironmentVariable EnvironmentVariable `json:"passwordEnvironmentVariable"` + RegistryUrl string `json:"registryUrl"` + Coordinate string `json:"coordinate"` + UsernameEnvironmentVariable EnvironmentVariable `json:"usernameEnvironmentVariable"` + PasswordEnvironmentVariable EnvironmentVariable `json:"passwordEnvironmentVariable"` + Signature *MavenCentralSignatureGithubInfo `json:"signature,omitempty"` } type MavenRegistryConfig struct { - RegistryUrl string `json:"registryUrl"` - Username string `json:"username"` - Password string `json:"password"` - Group string `json:"group"` + RegistryUrl string `json:"registryUrl"` + Username string `json:"username"` + Password string `json:"password"` + Group string `json:"group"` + Signature *MavenCentralSignature `json:"signature,omitempty"` } type MavenRegistryConfigV2 struct { - RegistryUrl string `json:"registryUrl"` - Username string `json:"username"` - Password string `json:"password"` - Coordinate string `json:"coordinate"` + RegistryUrl string `json:"registryUrl"` + Username string `json:"username"` + Password string `json:"password"` + Coordinate string `json:"coordinate"` + Signature *MavenCentralSignature `json:"signature,omitempty"` } type NpmGithubPublishInfo struct {