Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/request_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (r *RequestOptions) cloneHeader() http.Header {
headers := r.HTTPHeader.Clone()
headers.Set("X-Fern-Language", "Go")
headers.Set("X-Fern-SDK-Name", "github.com/vellum-ai/vellum-client-go")
headers.Set("X-Fern-SDK-Version", "v1.13.7")
headers.Set("X-Fern-SDK-Version", "v1.13.8")
return headers
}

Expand Down
8 changes: 6 additions & 2 deletions deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ type SlimDeploymentRead struct {
//
// * `ACTIVE` - Active
// * `ARCHIVED` - Archived
// * `PENDING_DELETION` - Pending Deletion
Status *EntityStatus `json:"status,omitempty" url:"status,omitempty"`
// Deprecated. The value returned will always be 'PRODUCTION'.
Environment *EnvironmentEnum `json:"environment,omitempty" url:"environment,omitempty"`
Expand Down Expand Up @@ -568,8 +569,9 @@ func (s *SlimDeploymentRead) String() string {
type DeploymentsListRequestStatus string

const (
DeploymentsListRequestStatusActive DeploymentsListRequestStatus = "ACTIVE"
DeploymentsListRequestStatusArchived DeploymentsListRequestStatus = "ARCHIVED"
DeploymentsListRequestStatusActive DeploymentsListRequestStatus = "ACTIVE"
DeploymentsListRequestStatusArchived DeploymentsListRequestStatus = "ARCHIVED"
DeploymentsListRequestStatusPendingDeletion DeploymentsListRequestStatus = "PENDING_DELETION"
)

func NewDeploymentsListRequestStatusFromString(s string) (DeploymentsListRequestStatus, error) {
Expand All @@ -578,6 +580,8 @@ func NewDeploymentsListRequestStatusFromString(s string) (DeploymentsListRequest
return DeploymentsListRequestStatusActive, nil
case "ARCHIVED":
return DeploymentsListRequestStatusArchived, nil
case "PENDING_DELETION":
return DeploymentsListRequestStatusPendingDeletion, nil
}
var t DeploymentsListRequestStatus
return "", fmt.Errorf("%s is not a valid %T", s, t)
Expand Down
12 changes: 10 additions & 2 deletions document_indexes.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type DocumentIndexCreateRequest struct {
//
// * `ACTIVE` - Active
// * `ARCHIVED` - Archived
// * `PENDING_DELETION` - Pending Deletion
Status *EntityStatus `json:"status,omitempty" url:"-"`
IndexingConfig *DocumentIndexIndexingConfigRequest `json:"indexing_config,omitempty" url:"-"`
// Optionally specify the id of a document index from which you'd like to copy and re-index its documents into this newly created index
Expand All @@ -37,6 +38,7 @@ type DocumentIndexesListRequest struct {
//
// * `ACTIVE` - Active
// * `ARCHIVED` - Archived
// * `PENDING_DELETION` - Pending Deletion
Status *DocumentIndexesListRequestStatus `json:"-" url:"status,omitempty"`
}

Expand All @@ -47,6 +49,7 @@ type PatchedDocumentIndexUpdateRequest struct {
//
// * `ACTIVE` - Active
// * `ARCHIVED` - Archived
// * `PENDING_DELETION` - Pending Deletion
Status *EntityStatus `json:"status,omitempty" url:"-"`
}

Expand Down Expand Up @@ -491,6 +494,7 @@ type DocumentIndexRead struct {
//
// * `ACTIVE` - Active
// * `ARCHIVED` - Archived
// * `PENDING_DELETION` - Pending Deletion
Status *EntityStatus `json:"status,omitempty" url:"status,omitempty"`
IndexingConfig *DocumentIndexIndexingConfig `json:"indexing_config" url:"indexing_config"`

Expand Down Expand Up @@ -1838,8 +1842,9 @@ func (t *TokenOverlappingWindowChunkingRequest) String() string {
type DocumentIndexesListRequestStatus string

const (
DocumentIndexesListRequestStatusActive DocumentIndexesListRequestStatus = "ACTIVE"
DocumentIndexesListRequestStatusArchived DocumentIndexesListRequestStatus = "ARCHIVED"
DocumentIndexesListRequestStatusActive DocumentIndexesListRequestStatus = "ACTIVE"
DocumentIndexesListRequestStatusArchived DocumentIndexesListRequestStatus = "ARCHIVED"
DocumentIndexesListRequestStatusPendingDeletion DocumentIndexesListRequestStatus = "PENDING_DELETION"
)

func NewDocumentIndexesListRequestStatusFromString(s string) (DocumentIndexesListRequestStatus, error) {
Expand All @@ -1848,6 +1853,8 @@ func NewDocumentIndexesListRequestStatusFromString(s string) (DocumentIndexesLis
return DocumentIndexesListRequestStatusActive, nil
case "ARCHIVED":
return DocumentIndexesListRequestStatusArchived, nil
case "PENDING_DELETION":
return DocumentIndexesListRequestStatusPendingDeletion, nil
}
var t DocumentIndexesListRequestStatus
return "", fmt.Errorf("%s is not a valid %T", s, t)
Expand All @@ -1864,5 +1871,6 @@ type DocumentIndexUpdateRequest struct {
//
// * `ACTIVE` - Active
// * `ARCHIVED` - Archived
// * `PENDING_DELETION` - Pending Deletion
Status *EntityStatus `json:"status,omitempty" url:"-"`
}
8 changes: 6 additions & 2 deletions folder_entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type FolderEntitiesListRequest struct {
//
// * `ACTIVE` - Active
// * `ARCHIVED` - Archived
// * `PENDING_DELETION` - Pending Deletion
EntityStatus *FolderEntitiesListRequestEntityStatus `json:"-" url:"entity_status,omitempty"`
// Number of results to return per page.
Limit *int `json:"-" url:"limit,omitempty"`
Expand Down Expand Up @@ -1054,8 +1055,9 @@ func (w *WorkflowSandboxDisplayData) String() string {
type FolderEntitiesListRequestEntityStatus string

const (
FolderEntitiesListRequestEntityStatusActive FolderEntitiesListRequestEntityStatus = "ACTIVE"
FolderEntitiesListRequestEntityStatusArchived FolderEntitiesListRequestEntityStatus = "ARCHIVED"
FolderEntitiesListRequestEntityStatusActive FolderEntitiesListRequestEntityStatus = "ACTIVE"
FolderEntitiesListRequestEntityStatusArchived FolderEntitiesListRequestEntityStatus = "ARCHIVED"
FolderEntitiesListRequestEntityStatusPendingDeletion FolderEntitiesListRequestEntityStatus = "PENDING_DELETION"
)

func NewFolderEntitiesListRequestEntityStatusFromString(s string) (FolderEntitiesListRequestEntityStatus, error) {
Expand All @@ -1064,6 +1066,8 @@ func NewFolderEntitiesListRequestEntityStatusFromString(s string) (FolderEntitie
return FolderEntitiesListRequestEntityStatusActive, nil
case "ARCHIVED":
return FolderEntitiesListRequestEntityStatusArchived, nil
case "PENDING_DELETION":
return FolderEntitiesListRequestEntityStatusPendingDeletion, nil
}
var t FolderEntitiesListRequestEntityStatus
return "", fmt.Errorf("%s is not a valid %T", s, t)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vellum-ai/vellum-client-go

// Version: v1.13.7
// Version: v1.13.8

go 1.18

Expand Down
106 changes: 102 additions & 4 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3904,6 +3904,7 @@ type DeploymentRead struct {
//
// * `ACTIVE` - Active
// * `ARCHIVED` - Archived
// * `PENDING_DELETION` - Pending Deletion
Status *EntityStatus `json:"status,omitempty" url:"status,omitempty"`
// Deprecated. The value returned will always be 'PRODUCTION'.
Environment *EnvironmentEnum `json:"environment,omitempty" url:"environment,omitempty"`
Expand Down Expand Up @@ -4633,11 +4634,13 @@ func (e *EnrichedNormalizedCompletion) String() string {

// * `ACTIVE` - Active
// * `ARCHIVED` - Archived
// * `PENDING_DELETION` - Pending Deletion
type EntityStatus string

const (
EntityStatusActive EntityStatus = "ACTIVE"
EntityStatusArchived EntityStatus = "ARCHIVED"
EntityStatusActive EntityStatus = "ACTIVE"
EntityStatusArchived EntityStatus = "ARCHIVED"
EntityStatusPendingDeletion EntityStatus = "PENDING_DELETION"
)

func NewEntityStatusFromString(s string) (EntityStatus, error) {
Expand All @@ -4646,6 +4649,8 @@ func NewEntityStatusFromString(s string) (EntityStatus, error) {
return EntityStatusActive, nil
case "ARCHIVED":
return EntityStatusArchived, nil
case "PENDING_DELETION":
return EntityStatusPendingDeletion, nil
}
var t EntityStatus
return "", fmt.Errorf("%s is not a valid %T", s, t)
Expand Down Expand Up @@ -9430,6 +9435,7 @@ func (i *Integration) String() string {
// * `SUPABASE` - Supabase
// * `TAVILY` - Tavily
// * `TELEGRAM` - Telegram
// * `TIKTOK` - TikTok
// * `TODOIST` - Todoist
// * `WEBFLOW` - Webflow
// * `YOUSEARCH` - You Search
Expand Down Expand Up @@ -9534,6 +9540,7 @@ const (
IntegrationNameSupabase IntegrationName = "SUPABASE"
IntegrationNameTavily IntegrationName = "TAVILY"
IntegrationNameTelegram IntegrationName = "TELEGRAM"
IntegrationNameTiktok IntegrationName = "TIKTOK"
IntegrationNameTodoist IntegrationName = "TODOIST"
IntegrationNameWebflow IntegrationName = "WEBFLOW"
IntegrationNameYousearch IntegrationName = "YOUSEARCH"
Expand Down Expand Up @@ -9722,6 +9729,8 @@ func NewIntegrationNameFromString(s string) (IntegrationName, error) {
return IntegrationNameTavily, nil
case "TELEGRAM":
return IntegrationNameTelegram, nil
case "TIKTOK":
return IntegrationNameTiktok, nil
case "TODOIST":
return IntegrationNameTodoist, nil
case "WEBFLOW":
Expand Down Expand Up @@ -22734,8 +22743,8 @@ func (v *VellumNodeExecutionEvent) Accept(visitor VellumNodeExecutionEventVisito

type VellumSdkError struct {
Message string `json:"message" url:"message"`
RawData *VellumSdkErrorRawData `json:"raw_data,omitempty" url:"raw_data,omitempty"`
Code VellumSdkErrorCodeEnum `json:"code" url:"code"`
RawData map[string]interface{} `json:"raw_data,omitempty" url:"raw_data,omitempty"`

extraProperties map[string]interface{}
_rawJSON json.RawMessage
Expand Down Expand Up @@ -22859,6 +22868,50 @@ func (v VellumSdkErrorCodeEnum) Ptr() *VellumSdkErrorCodeEnum {
return &v
}

type VellumSdkErrorRawData struct {
StringUnknownMap map[string]interface{}
String string
}

func (v *VellumSdkErrorRawData) UnmarshalJSON(data []byte) error {
var valueStringUnknownMap map[string]interface{}
if err := json.Unmarshal(data, &valueStringUnknownMap); err == nil {
v.StringUnknownMap = valueStringUnknownMap
return nil
}
var valueString string
if err := json.Unmarshal(data, &valueString); err == nil {
v.String = valueString
return nil
}
return fmt.Errorf("%s cannot be deserialized as a %T", data, v)
}

func (v VellumSdkErrorRawData) MarshalJSON() ([]byte, error) {
if v.StringUnknownMap != nil {
return json.Marshal(v.StringUnknownMap)
}
if v.String != "" {
return json.Marshal(v.String)
}
return nil, fmt.Errorf("type %T does not include a non-empty union type", v)
}

type VellumSdkErrorRawDataVisitor interface {
VisitStringUnknownMap(map[string]interface{}) error
VisitString(string) error
}

func (v *VellumSdkErrorRawData) Accept(visitor VellumSdkErrorRawDataVisitor) error {
if v.StringUnknownMap != nil {
return visitor.VisitStringUnknownMap(v.StringUnknownMap)
}
if v.String != "" {
return visitor.VisitString(v.String)
}
return fmt.Errorf("type %T does not include a non-empty union type", v)
}

type VellumSecret struct {
Name string `json:"name" url:"name"`

Expand Down Expand Up @@ -24487,6 +24540,7 @@ type WorkflowDeploymentRead struct {
//
// * `ACTIVE` - Active
// * `ARCHIVED` - Archived
// * `PENDING_DELETION` - Pending Deletion
Status *EntityStatus `json:"status,omitempty" url:"status,omitempty"`
// Deprecated. The value returned will always be 'PRODUCTION'.
Environment *EnvironmentEnum `json:"environment,omitempty" url:"environment,omitempty"`
Expand Down Expand Up @@ -24852,8 +24906,8 @@ func (w *WorkflowEvent) Accept(visitor WorkflowEventVisitor) error {

type WorkflowEventError struct {
Message string `json:"message" url:"message"`
RawData *WorkflowEventErrorRawData `json:"raw_data,omitempty" url:"raw_data,omitempty"`
Code WorkflowExecutionEventErrorCode `json:"code" url:"code"`
RawData map[string]interface{} `json:"raw_data,omitempty" url:"raw_data,omitempty"`
Stacktrace *string `json:"stacktrace,omitempty" url:"stacktrace,omitempty"`

extraProperties map[string]interface{}
Expand Down Expand Up @@ -24894,6 +24948,50 @@ func (w *WorkflowEventError) String() string {
return fmt.Sprintf("%#v", w)
}

type WorkflowEventErrorRawData struct {
StringUnknownMap map[string]interface{}
String string
}

func (w *WorkflowEventErrorRawData) UnmarshalJSON(data []byte) error {
var valueStringUnknownMap map[string]interface{}
if err := json.Unmarshal(data, &valueStringUnknownMap); err == nil {
w.StringUnknownMap = valueStringUnknownMap
return nil
}
var valueString string
if err := json.Unmarshal(data, &valueString); err == nil {
w.String = valueString
return nil
}
return fmt.Errorf("%s cannot be deserialized as a %T", data, w)
}

func (w WorkflowEventErrorRawData) MarshalJSON() ([]byte, error) {
if w.StringUnknownMap != nil {
return json.Marshal(w.StringUnknownMap)
}
if w.String != "" {
return json.Marshal(w.String)
}
return nil, fmt.Errorf("type %T does not include a non-empty union type", w)
}

type WorkflowEventErrorRawDataVisitor interface {
VisitStringUnknownMap(map[string]interface{}) error
VisitString(string) error
}

func (w *WorkflowEventErrorRawData) Accept(visitor WorkflowEventErrorRawDataVisitor) error {
if w.StringUnknownMap != nil {
return visitor.VisitStringUnknownMap(w.StringUnknownMap)
}
if w.String != "" {
return visitor.VisitString(w.String)
}
return fmt.Errorf("type %T does not include a non-empty union type", w)
}

type WorkflowExecutionActualChatHistoryRequest struct {
// The Vellum-generated ID of a workflow output. Must provide either this or output_key. output_key is typically preferred.
OutputId *string `json:"output_id,omitempty" url:"output_id,omitempty"`
Expand Down
8 changes: 6 additions & 2 deletions workflow_deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ type SlimWorkflowDeployment struct {
//
// * `ACTIVE` - Active
// * `ARCHIVED` - Archived
// * `PENDING_DELETION` - Pending Deletion
Status *EntityStatus `json:"status,omitempty" url:"status,omitempty"`
// Deprecated. The value returned will always be 'PRODUCTION'.
Environment *EnvironmentEnum `json:"environment,omitempty" url:"environment,omitempty"`
Expand Down Expand Up @@ -928,8 +929,9 @@ func (l ListWorkflowReleaseTagsRequestSource) Ptr() *ListWorkflowReleaseTagsRequ
type WorkflowDeploymentsListRequestStatus string

const (
WorkflowDeploymentsListRequestStatusActive WorkflowDeploymentsListRequestStatus = "ACTIVE"
WorkflowDeploymentsListRequestStatusArchived WorkflowDeploymentsListRequestStatus = "ARCHIVED"
WorkflowDeploymentsListRequestStatusActive WorkflowDeploymentsListRequestStatus = "ACTIVE"
WorkflowDeploymentsListRequestStatusArchived WorkflowDeploymentsListRequestStatus = "ARCHIVED"
WorkflowDeploymentsListRequestStatusPendingDeletion WorkflowDeploymentsListRequestStatus = "PENDING_DELETION"
)

func NewWorkflowDeploymentsListRequestStatusFromString(s string) (WorkflowDeploymentsListRequestStatus, error) {
Expand All @@ -938,6 +940,8 @@ func NewWorkflowDeploymentsListRequestStatusFromString(s string) (WorkflowDeploy
return WorkflowDeploymentsListRequestStatusActive, nil
case "ARCHIVED":
return WorkflowDeploymentsListRequestStatusArchived, nil
case "PENDING_DELETION":
return WorkflowDeploymentsListRequestStatusPendingDeletion, nil
}
var t WorkflowDeploymentsListRequestStatus
return "", fmt.Errorf("%s is not a valid %T", s, t)
Expand Down