Skip to content

Commit d0665db

Browse files
SDK 1.13.8 Release (#1039)
* SDK regeneration * Update SDK from 4451ad6 --------- Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: vellum-automation[bot] <vellum-automation[bot]@users.noreply.github.com>
1 parent 53ccf6e commit d0665db

File tree

7 files changed

+132
-14
lines changed

7 files changed

+132
-14
lines changed

core/request_option.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func (r *RequestOptions) cloneHeader() http.Header {
7171
headers := r.HTTPHeader.Clone()
7272
headers.Set("X-Fern-Language", "Go")
7373
headers.Set("X-Fern-SDK-Name", "github.com/vellum-ai/vellum-client-go")
74-
headers.Set("X-Fern-SDK-Version", "v1.13.7")
74+
headers.Set("X-Fern-SDK-Version", "v1.13.8")
7575
return headers
7676
}
7777

deployments.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ type SlimDeploymentRead struct {
497497
//
498498
// * `ACTIVE` - Active
499499
// * `ARCHIVED` - Archived
500+
// * `PENDING_DELETION` - Pending Deletion
500501
Status *EntityStatus `json:"status,omitempty" url:"status,omitempty"`
501502
// Deprecated. The value returned will always be 'PRODUCTION'.
502503
Environment *EnvironmentEnum `json:"environment,omitempty" url:"environment,omitempty"`
@@ -568,8 +569,9 @@ func (s *SlimDeploymentRead) String() string {
568569
type DeploymentsListRequestStatus string
569570

570571
const (
571-
DeploymentsListRequestStatusActive DeploymentsListRequestStatus = "ACTIVE"
572-
DeploymentsListRequestStatusArchived DeploymentsListRequestStatus = "ARCHIVED"
572+
DeploymentsListRequestStatusActive DeploymentsListRequestStatus = "ACTIVE"
573+
DeploymentsListRequestStatusArchived DeploymentsListRequestStatus = "ARCHIVED"
574+
DeploymentsListRequestStatusPendingDeletion DeploymentsListRequestStatus = "PENDING_DELETION"
573575
)
574576

575577
func NewDeploymentsListRequestStatusFromString(s string) (DeploymentsListRequestStatus, error) {
@@ -578,6 +580,8 @@ func NewDeploymentsListRequestStatusFromString(s string) (DeploymentsListRequest
578580
return DeploymentsListRequestStatusActive, nil
579581
case "ARCHIVED":
580582
return DeploymentsListRequestStatusArchived, nil
583+
case "PENDING_DELETION":
584+
return DeploymentsListRequestStatusPendingDeletion, nil
581585
}
582586
var t DeploymentsListRequestStatus
583587
return "", fmt.Errorf("%s is not a valid %T", s, t)

document_indexes.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ type DocumentIndexCreateRequest struct {
1818
//
1919
// * `ACTIVE` - Active
2020
// * `ARCHIVED` - Archived
21+
// * `PENDING_DELETION` - Pending Deletion
2122
Status *EntityStatus `json:"status,omitempty" url:"-"`
2223
IndexingConfig *DocumentIndexIndexingConfigRequest `json:"indexing_config,omitempty" url:"-"`
2324
// 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
@@ -37,6 +38,7 @@ type DocumentIndexesListRequest struct {
3738
//
3839
// * `ACTIVE` - Active
3940
// * `ARCHIVED` - Archived
41+
// * `PENDING_DELETION` - Pending Deletion
4042
Status *DocumentIndexesListRequestStatus `json:"-" url:"status,omitempty"`
4143
}
4244

@@ -47,6 +49,7 @@ type PatchedDocumentIndexUpdateRequest struct {
4749
//
4850
// * `ACTIVE` - Active
4951
// * `ARCHIVED` - Archived
52+
// * `PENDING_DELETION` - Pending Deletion
5053
Status *EntityStatus `json:"status,omitempty" url:"-"`
5154
}
5255

@@ -491,6 +494,7 @@ type DocumentIndexRead struct {
491494
//
492495
// * `ACTIVE` - Active
493496
// * `ARCHIVED` - Archived
497+
// * `PENDING_DELETION` - Pending Deletion
494498
Status *EntityStatus `json:"status,omitempty" url:"status,omitempty"`
495499
IndexingConfig *DocumentIndexIndexingConfig `json:"indexing_config" url:"indexing_config"`
496500

@@ -1838,8 +1842,9 @@ func (t *TokenOverlappingWindowChunkingRequest) String() string {
18381842
type DocumentIndexesListRequestStatus string
18391843

18401844
const (
1841-
DocumentIndexesListRequestStatusActive DocumentIndexesListRequestStatus = "ACTIVE"
1842-
DocumentIndexesListRequestStatusArchived DocumentIndexesListRequestStatus = "ARCHIVED"
1845+
DocumentIndexesListRequestStatusActive DocumentIndexesListRequestStatus = "ACTIVE"
1846+
DocumentIndexesListRequestStatusArchived DocumentIndexesListRequestStatus = "ARCHIVED"
1847+
DocumentIndexesListRequestStatusPendingDeletion DocumentIndexesListRequestStatus = "PENDING_DELETION"
18431848
)
18441849

18451850
func NewDocumentIndexesListRequestStatusFromString(s string) (DocumentIndexesListRequestStatus, error) {
@@ -1848,6 +1853,8 @@ func NewDocumentIndexesListRequestStatusFromString(s string) (DocumentIndexesLis
18481853
return DocumentIndexesListRequestStatusActive, nil
18491854
case "ARCHIVED":
18501855
return DocumentIndexesListRequestStatusArchived, nil
1856+
case "PENDING_DELETION":
1857+
return DocumentIndexesListRequestStatusPendingDeletion, nil
18511858
}
18521859
var t DocumentIndexesListRequestStatus
18531860
return "", fmt.Errorf("%s is not a valid %T", s, t)
@@ -1864,5 +1871,6 @@ type DocumentIndexUpdateRequest struct {
18641871
//
18651872
// * `ACTIVE` - Active
18661873
// * `ARCHIVED` - Archived
1874+
// * `PENDING_DELETION` - Pending Deletion
18671875
Status *EntityStatus `json:"status,omitempty" url:"-"`
18681876
}

folder_entities.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ type FolderEntitiesListRequest struct {
1919
//
2020
// * `ACTIVE` - Active
2121
// * `ARCHIVED` - Archived
22+
// * `PENDING_DELETION` - Pending Deletion
2223
EntityStatus *FolderEntitiesListRequestEntityStatus `json:"-" url:"entity_status,omitempty"`
2324
// Number of results to return per page.
2425
Limit *int `json:"-" url:"limit,omitempty"`
@@ -1054,8 +1055,9 @@ func (w *WorkflowSandboxDisplayData) String() string {
10541055
type FolderEntitiesListRequestEntityStatus string
10551056

10561057
const (
1057-
FolderEntitiesListRequestEntityStatusActive FolderEntitiesListRequestEntityStatus = "ACTIVE"
1058-
FolderEntitiesListRequestEntityStatusArchived FolderEntitiesListRequestEntityStatus = "ARCHIVED"
1058+
FolderEntitiesListRequestEntityStatusActive FolderEntitiesListRequestEntityStatus = "ACTIVE"
1059+
FolderEntitiesListRequestEntityStatusArchived FolderEntitiesListRequestEntityStatus = "ARCHIVED"
1060+
FolderEntitiesListRequestEntityStatusPendingDeletion FolderEntitiesListRequestEntityStatus = "PENDING_DELETION"
10591061
)
10601062

10611063
func NewFolderEntitiesListRequestEntityStatusFromString(s string) (FolderEntitiesListRequestEntityStatus, error) {
@@ -1064,6 +1066,8 @@ func NewFolderEntitiesListRequestEntityStatusFromString(s string) (FolderEntitie
10641066
return FolderEntitiesListRequestEntityStatusActive, nil
10651067
case "ARCHIVED":
10661068
return FolderEntitiesListRequestEntityStatusArchived, nil
1069+
case "PENDING_DELETION":
1070+
return FolderEntitiesListRequestEntityStatusPendingDeletion, nil
10671071
}
10681072
var t FolderEntitiesListRequestEntityStatus
10691073
return "", fmt.Errorf("%s is not a valid %T", s, t)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/vellum-ai/vellum-client-go
22

3-
// Version: v1.13.7
3+
// Version: v1.13.8
44

55
go 1.18
66

types.go

Lines changed: 102 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3904,6 +3904,7 @@ type DeploymentRead struct {
39043904
//
39053905
// * `ACTIVE` - Active
39063906
// * `ARCHIVED` - Archived
3907+
// * `PENDING_DELETION` - Pending Deletion
39073908
Status *EntityStatus `json:"status,omitempty" url:"status,omitempty"`
39083909
// Deprecated. The value returned will always be 'PRODUCTION'.
39093910
Environment *EnvironmentEnum `json:"environment,omitempty" url:"environment,omitempty"`
@@ -4633,11 +4634,13 @@ func (e *EnrichedNormalizedCompletion) String() string {
46334634

46344635
// * `ACTIVE` - Active
46354636
// * `ARCHIVED` - Archived
4637+
// * `PENDING_DELETION` - Pending Deletion
46364638
type EntityStatus string
46374639

46384640
const (
4639-
EntityStatusActive EntityStatus = "ACTIVE"
4640-
EntityStatusArchived EntityStatus = "ARCHIVED"
4641+
EntityStatusActive EntityStatus = "ACTIVE"
4642+
EntityStatusArchived EntityStatus = "ARCHIVED"
4643+
EntityStatusPendingDeletion EntityStatus = "PENDING_DELETION"
46414644
)
46424645

46434646
func NewEntityStatusFromString(s string) (EntityStatus, error) {
@@ -4646,6 +4649,8 @@ func NewEntityStatusFromString(s string) (EntityStatus, error) {
46464649
return EntityStatusActive, nil
46474650
case "ARCHIVED":
46484651
return EntityStatusArchived, nil
4652+
case "PENDING_DELETION":
4653+
return EntityStatusPendingDeletion, nil
46494654
}
46504655
var t EntityStatus
46514656
return "", fmt.Errorf("%s is not a valid %T", s, t)
@@ -9430,6 +9435,7 @@ func (i *Integration) String() string {
94309435
// * `SUPABASE` - Supabase
94319436
// * `TAVILY` - Tavily
94329437
// * `TELEGRAM` - Telegram
9438+
// * `TIKTOK` - TikTok
94339439
// * `TODOIST` - Todoist
94349440
// * `WEBFLOW` - Webflow
94359441
// * `YOUSEARCH` - You Search
@@ -9534,6 +9540,7 @@ const (
95349540
IntegrationNameSupabase IntegrationName = "SUPABASE"
95359541
IntegrationNameTavily IntegrationName = "TAVILY"
95369542
IntegrationNameTelegram IntegrationName = "TELEGRAM"
9543+
IntegrationNameTiktok IntegrationName = "TIKTOK"
95379544
IntegrationNameTodoist IntegrationName = "TODOIST"
95389545
IntegrationNameWebflow IntegrationName = "WEBFLOW"
95399546
IntegrationNameYousearch IntegrationName = "YOUSEARCH"
@@ -9722,6 +9729,8 @@ func NewIntegrationNameFromString(s string) (IntegrationName, error) {
97229729
return IntegrationNameTavily, nil
97239730
case "TELEGRAM":
97249731
return IntegrationNameTelegram, nil
9732+
case "TIKTOK":
9733+
return IntegrationNameTiktok, nil
97259734
case "TODOIST":
97269735
return IntegrationNameTodoist, nil
97279736
case "WEBFLOW":
@@ -22734,8 +22743,8 @@ func (v *VellumNodeExecutionEvent) Accept(visitor VellumNodeExecutionEventVisito
2273422743

2273522744
type VellumSdkError struct {
2273622745
Message string `json:"message" url:"message"`
22746+
RawData *VellumSdkErrorRawData `json:"raw_data,omitempty" url:"raw_data,omitempty"`
2273722747
Code VellumSdkErrorCodeEnum `json:"code" url:"code"`
22738-
RawData map[string]interface{} `json:"raw_data,omitempty" url:"raw_data,omitempty"`
2273922748

2274022749
extraProperties map[string]interface{}
2274122750
_rawJSON json.RawMessage
@@ -22859,6 +22868,50 @@ func (v VellumSdkErrorCodeEnum) Ptr() *VellumSdkErrorCodeEnum {
2285922868
return &v
2286022869
}
2286122870

22871+
type VellumSdkErrorRawData struct {
22872+
StringUnknownMap map[string]interface{}
22873+
String string
22874+
}
22875+
22876+
func (v *VellumSdkErrorRawData) UnmarshalJSON(data []byte) error {
22877+
var valueStringUnknownMap map[string]interface{}
22878+
if err := json.Unmarshal(data, &valueStringUnknownMap); err == nil {
22879+
v.StringUnknownMap = valueStringUnknownMap
22880+
return nil
22881+
}
22882+
var valueString string
22883+
if err := json.Unmarshal(data, &valueString); err == nil {
22884+
v.String = valueString
22885+
return nil
22886+
}
22887+
return fmt.Errorf("%s cannot be deserialized as a %T", data, v)
22888+
}
22889+
22890+
func (v VellumSdkErrorRawData) MarshalJSON() ([]byte, error) {
22891+
if v.StringUnknownMap != nil {
22892+
return json.Marshal(v.StringUnknownMap)
22893+
}
22894+
if v.String != "" {
22895+
return json.Marshal(v.String)
22896+
}
22897+
return nil, fmt.Errorf("type %T does not include a non-empty union type", v)
22898+
}
22899+
22900+
type VellumSdkErrorRawDataVisitor interface {
22901+
VisitStringUnknownMap(map[string]interface{}) error
22902+
VisitString(string) error
22903+
}
22904+
22905+
func (v *VellumSdkErrorRawData) Accept(visitor VellumSdkErrorRawDataVisitor) error {
22906+
if v.StringUnknownMap != nil {
22907+
return visitor.VisitStringUnknownMap(v.StringUnknownMap)
22908+
}
22909+
if v.String != "" {
22910+
return visitor.VisitString(v.String)
22911+
}
22912+
return fmt.Errorf("type %T does not include a non-empty union type", v)
22913+
}
22914+
2286222915
type VellumSecret struct {
2286322916
Name string `json:"name" url:"name"`
2286422917

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

2485324907
type WorkflowEventError struct {
2485424908
Message string `json:"message" url:"message"`
24909+
RawData *WorkflowEventErrorRawData `json:"raw_data,omitempty" url:"raw_data,omitempty"`
2485524910
Code WorkflowExecutionEventErrorCode `json:"code" url:"code"`
24856-
RawData map[string]interface{} `json:"raw_data,omitempty" url:"raw_data,omitempty"`
2485724911
Stacktrace *string `json:"stacktrace,omitempty" url:"stacktrace,omitempty"`
2485824912

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

24951+
type WorkflowEventErrorRawData struct {
24952+
StringUnknownMap map[string]interface{}
24953+
String string
24954+
}
24955+
24956+
func (w *WorkflowEventErrorRawData) UnmarshalJSON(data []byte) error {
24957+
var valueStringUnknownMap map[string]interface{}
24958+
if err := json.Unmarshal(data, &valueStringUnknownMap); err == nil {
24959+
w.StringUnknownMap = valueStringUnknownMap
24960+
return nil
24961+
}
24962+
var valueString string
24963+
if err := json.Unmarshal(data, &valueString); err == nil {
24964+
w.String = valueString
24965+
return nil
24966+
}
24967+
return fmt.Errorf("%s cannot be deserialized as a %T", data, w)
24968+
}
24969+
24970+
func (w WorkflowEventErrorRawData) MarshalJSON() ([]byte, error) {
24971+
if w.StringUnknownMap != nil {
24972+
return json.Marshal(w.StringUnknownMap)
24973+
}
24974+
if w.String != "" {
24975+
return json.Marshal(w.String)
24976+
}
24977+
return nil, fmt.Errorf("type %T does not include a non-empty union type", w)
24978+
}
24979+
24980+
type WorkflowEventErrorRawDataVisitor interface {
24981+
VisitStringUnknownMap(map[string]interface{}) error
24982+
VisitString(string) error
24983+
}
24984+
24985+
func (w *WorkflowEventErrorRawData) Accept(visitor WorkflowEventErrorRawDataVisitor) error {
24986+
if w.StringUnknownMap != nil {
24987+
return visitor.VisitStringUnknownMap(w.StringUnknownMap)
24988+
}
24989+
if w.String != "" {
24990+
return visitor.VisitString(w.String)
24991+
}
24992+
return fmt.Errorf("type %T does not include a non-empty union type", w)
24993+
}
24994+
2489724995
type WorkflowExecutionActualChatHistoryRequest struct {
2489824996
// The Vellum-generated ID of a workflow output. Must provide either this or output_key. output_key is typically preferred.
2489924997
OutputId *string `json:"output_id,omitempty" url:"output_id,omitempty"`

workflow_deployments.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ type SlimWorkflowDeployment struct {
206206
//
207207
// * `ACTIVE` - Active
208208
// * `ARCHIVED` - Archived
209+
// * `PENDING_DELETION` - Pending Deletion
209210
Status *EntityStatus `json:"status,omitempty" url:"status,omitempty"`
210211
// Deprecated. The value returned will always be 'PRODUCTION'.
211212
Environment *EnvironmentEnum `json:"environment,omitempty" url:"environment,omitempty"`
@@ -928,8 +929,9 @@ func (l ListWorkflowReleaseTagsRequestSource) Ptr() *ListWorkflowReleaseTagsRequ
928929
type WorkflowDeploymentsListRequestStatus string
929930

930931
const (
931-
WorkflowDeploymentsListRequestStatusActive WorkflowDeploymentsListRequestStatus = "ACTIVE"
932-
WorkflowDeploymentsListRequestStatusArchived WorkflowDeploymentsListRequestStatus = "ARCHIVED"
932+
WorkflowDeploymentsListRequestStatusActive WorkflowDeploymentsListRequestStatus = "ACTIVE"
933+
WorkflowDeploymentsListRequestStatusArchived WorkflowDeploymentsListRequestStatus = "ARCHIVED"
934+
WorkflowDeploymentsListRequestStatusPendingDeletion WorkflowDeploymentsListRequestStatus = "PENDING_DELETION"
933935
)
934936

935937
func NewWorkflowDeploymentsListRequestStatusFromString(s string) (WorkflowDeploymentsListRequestStatus, error) {
@@ -938,6 +940,8 @@ func NewWorkflowDeploymentsListRequestStatusFromString(s string) (WorkflowDeploy
938940
return WorkflowDeploymentsListRequestStatusActive, nil
939941
case "ARCHIVED":
940942
return WorkflowDeploymentsListRequestStatusArchived, nil
943+
case "PENDING_DELETION":
944+
return WorkflowDeploymentsListRequestStatusPendingDeletion, nil
941945
}
942946
var t WorkflowDeploymentsListRequestStatus
943947
return "", fmt.Errorf("%s is not a valid %T", s, t)

0 commit comments

Comments
 (0)