Skip to content

Commit 69b9bab

Browse files
SDK 1.14.1 Release (#1042)
* SDK regeneration * Update SDK from 1087424 --------- 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 d0665db commit 69b9bab

File tree

6 files changed

+56
-3
lines changed

6 files changed

+56
-3
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.8")
74+
headers.Set("X-Fern-SDK-Version", "v0.0.4041")
7575
return headers
7676
}
7777

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.8
3+
// Version: v1.13.9
44

55
go 1.18
66

integrations.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,25 @@ import (
88
core "github.com/vellum-ai/vellum-client-go/core"
99
)
1010

11+
type ExecuteIntegrationToolRequest struct {
12+
// The response fields to expand for more information. Supported values: 'logs' - includes execution logs from Composio
13+
Expand []*string `json:"-" url:"expand,omitempty"`
14+
Body ComponentsSchemasComposioExecuteToolRequest `json:"-" url:"-"`
15+
}
16+
17+
func (e *ExecuteIntegrationToolRequest) UnmarshalJSON(data []byte) error {
18+
var body ComponentsSchemasComposioExecuteToolRequest
19+
if err := json.Unmarshal(data, &body); err != nil {
20+
return err
21+
}
22+
e.Body = body
23+
return nil
24+
}
25+
26+
func (e *ExecuteIntegrationToolRequest) MarshalJSON() ([]byte, error) {
27+
return json.Marshal(e.Body)
28+
}
29+
1130
type IntegrationsListRequest struct {
1231
// * `COMPOSIO` - Composio
1332
IntegrationProvider *string `json:"-" url:"integration_provider,omitempty"`

integrations/client.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (c *Client) ExecuteIntegrationTool(
121121
integrationProvider string,
122122
// The tool's unique name, as specified by the integration provider
123123
toolName string,
124-
request vellumclientgo.ComponentsSchemasComposioExecuteToolRequest,
124+
request *vellumclientgo.ExecuteIntegrationToolRequest,
125125
opts ...option.RequestOption,
126126
) (vellumclientgo.ComponentsSchemasComposioExecuteToolResponse, error) {
127127
options := core.NewRequestOptions(opts...)
@@ -140,6 +140,14 @@ func (c *Client) ExecuteIntegrationTool(
140140
toolName,
141141
)
142142

143+
queryParams, err := core.QueryValues(request)
144+
if err != nil {
145+
return nil, err
146+
}
147+
if len(queryParams) > 0 {
148+
endpointURL += "?" + queryParams.Encode()
149+
}
150+
143151
headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())
144152

145153
errorDecoder := func(statusCode int, body io.Reader) error {

types.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9376,6 +9376,7 @@ func (i *Integration) String() string {
93769376
// * `GITHUB` - Github
93779377
// * `GOOGLE_SHEETS` - Google Sheets
93789378
// * `GOOGLE_CALENDAR` - Google Calendar
9379+
// * `GOOGLE_CLASSROOM` - Google Classroom
93799380
// * `GOOGLE_DRIVE` - Google Drive
93809381
// * `GMAIL` - Gmail
93819382
// * `GOOGLE_ADS` - Google Ads
@@ -9410,6 +9411,7 @@ func (i *Integration) String() string {
94109411
// * `FIGMA` - Figma
94119412
// * `FIREFLIES` - Fireflies
94129413
// * `GOOGLE_MAPS` - Google Maps
9414+
// * `GOOGLEMEET` - Google Meet
94139415
// * `HEYGEN` - HeyGen
94149416
// * `JIRA` - Jira
94159417
// * `JUNGLESCOUT` - Jungle Scout
@@ -9420,6 +9422,7 @@ func (i *Integration) String() string {
94209422
// * `PERPLEXITY` - Perplexity
94219423
// * `POSTHOG` - PostHog
94229424
// * `PRODUCTBOARD` - Productboard
9425+
// * `QUICKBOOKS` - QuickBooks
94239426
// * `REDDIT` - Reddit
94249427
// * `SALESFORCE` - Salesforce
94259428
// * `SEMRUSH` - Semrush
@@ -9449,11 +9452,13 @@ func (i *Integration) String() string {
94499452
// * `DISCORD` - Discord
94509453
// * `DOCUSIGN` - DocuSign
94519454
// * `TRELLO` - Trello
9455+
// * `TWITTER` - Twitter
94529456
// * `HEYREACH` - HeyReach
94539457
// * `ACTIVE_CAMPAIGN` - Active Campaign
94549458
// * `CUSTOMER_IO` - Customer.io
94559459
// * `SEGMENT` - Segment
94569460
// * `WHATSAPP` - WhatsApp
9461+
// * `YOUTUBE` - YouTube
94579462
type IntegrationName string
94589463

94599464
const (
@@ -9481,6 +9486,7 @@ const (
94819486
IntegrationNameGithub IntegrationName = "GITHUB"
94829487
IntegrationNameGoogleSheets IntegrationName = "GOOGLE_SHEETS"
94839488
IntegrationNameGoogleCalendar IntegrationName = "GOOGLE_CALENDAR"
9489+
IntegrationNameGoogleClassroom IntegrationName = "GOOGLE_CLASSROOM"
94849490
IntegrationNameGoogleDrive IntegrationName = "GOOGLE_DRIVE"
94859491
IntegrationNameGmail IntegrationName = "GMAIL"
94869492
IntegrationNameGoogleAds IntegrationName = "GOOGLE_ADS"
@@ -9515,6 +9521,7 @@ const (
95159521
IntegrationNameFigma IntegrationName = "FIGMA"
95169522
IntegrationNameFireflies IntegrationName = "FIREFLIES"
95179523
IntegrationNameGoogleMaps IntegrationName = "GOOGLE_MAPS"
9524+
IntegrationNameGooglemeet IntegrationName = "GOOGLEMEET"
95189525
IntegrationNameHeygen IntegrationName = "HEYGEN"
95199526
IntegrationNameJira IntegrationName = "JIRA"
95209527
IntegrationNameJunglescout IntegrationName = "JUNGLESCOUT"
@@ -9525,6 +9532,7 @@ const (
95259532
IntegrationNamePerplexity IntegrationName = "PERPLEXITY"
95269533
IntegrationNamePosthog IntegrationName = "POSTHOG"
95279534
IntegrationNameProductboard IntegrationName = "PRODUCTBOARD"
9535+
IntegrationNameQuickbooks IntegrationName = "QUICKBOOKS"
95289536
IntegrationNameReddit IntegrationName = "REDDIT"
95299537
IntegrationNameSalesforce IntegrationName = "SALESFORCE"
95309538
IntegrationNameSemrush IntegrationName = "SEMRUSH"
@@ -9554,11 +9562,13 @@ const (
95549562
IntegrationNameDiscord IntegrationName = "DISCORD"
95559563
IntegrationNameDocusign IntegrationName = "DOCUSIGN"
95569564
IntegrationNameTrello IntegrationName = "TRELLO"
9565+
IntegrationNameTwitter IntegrationName = "TWITTER"
95579566
IntegrationNameHeyreach IntegrationName = "HEYREACH"
95589567
IntegrationNameActiveCampaign IntegrationName = "ACTIVE_CAMPAIGN"
95599568
IntegrationNameCustomerIo IntegrationName = "CUSTOMER_IO"
95609569
IntegrationNameSegment IntegrationName = "SEGMENT"
95619570
IntegrationNameWhatsapp IntegrationName = "WHATSAPP"
9571+
IntegrationNameYoutube IntegrationName = "YOUTUBE"
95629572
)
95639573

95649574
func NewIntegrationNameFromString(s string) (IntegrationName, error) {
@@ -9611,6 +9621,8 @@ func NewIntegrationNameFromString(s string) (IntegrationName, error) {
96119621
return IntegrationNameGoogleSheets, nil
96129622
case "GOOGLE_CALENDAR":
96139623
return IntegrationNameGoogleCalendar, nil
9624+
case "GOOGLE_CLASSROOM":
9625+
return IntegrationNameGoogleClassroom, nil
96149626
case "GOOGLE_DRIVE":
96159627
return IntegrationNameGoogleDrive, nil
96169628
case "GMAIL":
@@ -9679,6 +9691,8 @@ func NewIntegrationNameFromString(s string) (IntegrationName, error) {
96799691
return IntegrationNameFireflies, nil
96809692
case "GOOGLE_MAPS":
96819693
return IntegrationNameGoogleMaps, nil
9694+
case "GOOGLEMEET":
9695+
return IntegrationNameGooglemeet, nil
96829696
case "HEYGEN":
96839697
return IntegrationNameHeygen, nil
96849698
case "JIRA":
@@ -9699,6 +9713,8 @@ func NewIntegrationNameFromString(s string) (IntegrationName, error) {
96999713
return IntegrationNamePosthog, nil
97009714
case "PRODUCTBOARD":
97019715
return IntegrationNameProductboard, nil
9716+
case "QUICKBOOKS":
9717+
return IntegrationNameQuickbooks, nil
97029718
case "REDDIT":
97039719
return IntegrationNameReddit, nil
97049720
case "SALESFORCE":
@@ -9757,6 +9773,8 @@ func NewIntegrationNameFromString(s string) (IntegrationName, error) {
97579773
return IntegrationNameDocusign, nil
97589774
case "TRELLO":
97599775
return IntegrationNameTrello, nil
9776+
case "TWITTER":
9777+
return IntegrationNameTwitter, nil
97609778
case "HEYREACH":
97619779
return IntegrationNameHeyreach, nil
97629780
case "ACTIVE_CAMPAIGN":
@@ -9767,6 +9785,8 @@ func NewIntegrationNameFromString(s string) (IntegrationName, error) {
97679785
return IntegrationNameSegment, nil
97689786
case "WHATSAPP":
97699787
return IntegrationNameWhatsapp, nil
9788+
case "YOUTUBE":
9789+
return IntegrationNameYoutube, nil
97709790
}
97719791
var t IntegrationName
97729792
return "", fmt.Errorf("%s is not a valid %T", s, t)

workflow_deployments.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,18 @@ type ExecuteWorkflowDeploymentStreamRequest struct {
2525
}
2626

2727
type WorkflowDeploymentsListRequest struct {
28+
// has_story_config
29+
HasStoryConfig *string `json:"-" url:"has_story_config,omitempty"`
30+
// is_public
31+
IsPublic *string `json:"-" url:"is_public,omitempty"`
2832
// Number of results to return per page.
2933
Limit *int `json:"-" url:"limit,omitempty"`
3034
// The initial index from which to return the results.
3135
Offset *int `json:"-" url:"offset,omitempty"`
3236
// Which field to use when ordering the results.
3337
Ordering *string `json:"-" url:"ordering,omitempty"`
38+
// owned_by
39+
OwnedBy *string `json:"-" url:"owned_by,omitempty"`
3440
// status
3541
Status *WorkflowDeploymentsListRequestStatus `json:"-" url:"status,omitempty"`
3642
}

0 commit comments

Comments
 (0)