diff --git a/core/request_option.go b/core/request_option.go index 222aad4..260b35c 100644 --- a/core/request_option.go +++ b/core/request_option.go @@ -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.8") + headers.Set("X-Fern-SDK-Version", "v0.0.4041") return headers } diff --git a/go.mod b/go.mod index d75fdbb..e85c8c3 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/vellum-ai/vellum-client-go -// Version: v1.13.8 +// Version: v1.13.9 go 1.18 diff --git a/integrations.go b/integrations.go index 14075fb..326da8e 100644 --- a/integrations.go +++ b/integrations.go @@ -8,6 +8,25 @@ import ( core "github.com/vellum-ai/vellum-client-go/core" ) +type ExecuteIntegrationToolRequest struct { + // The response fields to expand for more information. Supported values: 'logs' - includes execution logs from Composio + Expand []*string `json:"-" url:"expand,omitempty"` + Body ComponentsSchemasComposioExecuteToolRequest `json:"-" url:"-"` +} + +func (e *ExecuteIntegrationToolRequest) UnmarshalJSON(data []byte) error { + var body ComponentsSchemasComposioExecuteToolRequest + if err := json.Unmarshal(data, &body); err != nil { + return err + } + e.Body = body + return nil +} + +func (e *ExecuteIntegrationToolRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(e.Body) +} + type IntegrationsListRequest struct { // * `COMPOSIO` - Composio IntegrationProvider *string `json:"-" url:"integration_provider,omitempty"` diff --git a/integrations/client.go b/integrations/client.go index 4b6d2d7..65417c5 100644 --- a/integrations/client.go +++ b/integrations/client.go @@ -121,7 +121,7 @@ func (c *Client) ExecuteIntegrationTool( integrationProvider string, // The tool's unique name, as specified by the integration provider toolName string, - request vellumclientgo.ComponentsSchemasComposioExecuteToolRequest, + request *vellumclientgo.ExecuteIntegrationToolRequest, opts ...option.RequestOption, ) (vellumclientgo.ComponentsSchemasComposioExecuteToolResponse, error) { options := core.NewRequestOptions(opts...) @@ -140,6 +140,14 @@ func (c *Client) ExecuteIntegrationTool( toolName, ) + queryParams, err := core.QueryValues(request) + if err != nil { + return nil, err + } + if len(queryParams) > 0 { + endpointURL += "?" + queryParams.Encode() + } + headers := core.MergeHeaders(c.header.Clone(), options.ToHeader()) errorDecoder := func(statusCode int, body io.Reader) error { diff --git a/types.go b/types.go index 2e2029f..ceafed5 100644 --- a/types.go +++ b/types.go @@ -9376,6 +9376,7 @@ func (i *Integration) String() string { // * `GITHUB` - Github // * `GOOGLE_SHEETS` - Google Sheets // * `GOOGLE_CALENDAR` - Google Calendar +// * `GOOGLE_CLASSROOM` - Google Classroom // * `GOOGLE_DRIVE` - Google Drive // * `GMAIL` - Gmail // * `GOOGLE_ADS` - Google Ads @@ -9410,6 +9411,7 @@ func (i *Integration) String() string { // * `FIGMA` - Figma // * `FIREFLIES` - Fireflies // * `GOOGLE_MAPS` - Google Maps +// * `GOOGLEMEET` - Google Meet // * `HEYGEN` - HeyGen // * `JIRA` - Jira // * `JUNGLESCOUT` - Jungle Scout @@ -9420,6 +9422,7 @@ func (i *Integration) String() string { // * `PERPLEXITY` - Perplexity // * `POSTHOG` - PostHog // * `PRODUCTBOARD` - Productboard +// * `QUICKBOOKS` - QuickBooks // * `REDDIT` - Reddit // * `SALESFORCE` - Salesforce // * `SEMRUSH` - Semrush @@ -9449,11 +9452,13 @@ func (i *Integration) String() string { // * `DISCORD` - Discord // * `DOCUSIGN` - DocuSign // * `TRELLO` - Trello +// * `TWITTER` - Twitter // * `HEYREACH` - HeyReach // * `ACTIVE_CAMPAIGN` - Active Campaign // * `CUSTOMER_IO` - Customer.io // * `SEGMENT` - Segment // * `WHATSAPP` - WhatsApp +// * `YOUTUBE` - YouTube type IntegrationName string const ( @@ -9481,6 +9486,7 @@ const ( IntegrationNameGithub IntegrationName = "GITHUB" IntegrationNameGoogleSheets IntegrationName = "GOOGLE_SHEETS" IntegrationNameGoogleCalendar IntegrationName = "GOOGLE_CALENDAR" + IntegrationNameGoogleClassroom IntegrationName = "GOOGLE_CLASSROOM" IntegrationNameGoogleDrive IntegrationName = "GOOGLE_DRIVE" IntegrationNameGmail IntegrationName = "GMAIL" IntegrationNameGoogleAds IntegrationName = "GOOGLE_ADS" @@ -9515,6 +9521,7 @@ const ( IntegrationNameFigma IntegrationName = "FIGMA" IntegrationNameFireflies IntegrationName = "FIREFLIES" IntegrationNameGoogleMaps IntegrationName = "GOOGLE_MAPS" + IntegrationNameGooglemeet IntegrationName = "GOOGLEMEET" IntegrationNameHeygen IntegrationName = "HEYGEN" IntegrationNameJira IntegrationName = "JIRA" IntegrationNameJunglescout IntegrationName = "JUNGLESCOUT" @@ -9525,6 +9532,7 @@ const ( IntegrationNamePerplexity IntegrationName = "PERPLEXITY" IntegrationNamePosthog IntegrationName = "POSTHOG" IntegrationNameProductboard IntegrationName = "PRODUCTBOARD" + IntegrationNameQuickbooks IntegrationName = "QUICKBOOKS" IntegrationNameReddit IntegrationName = "REDDIT" IntegrationNameSalesforce IntegrationName = "SALESFORCE" IntegrationNameSemrush IntegrationName = "SEMRUSH" @@ -9554,11 +9562,13 @@ const ( IntegrationNameDiscord IntegrationName = "DISCORD" IntegrationNameDocusign IntegrationName = "DOCUSIGN" IntegrationNameTrello IntegrationName = "TRELLO" + IntegrationNameTwitter IntegrationName = "TWITTER" IntegrationNameHeyreach IntegrationName = "HEYREACH" IntegrationNameActiveCampaign IntegrationName = "ACTIVE_CAMPAIGN" IntegrationNameCustomerIo IntegrationName = "CUSTOMER_IO" IntegrationNameSegment IntegrationName = "SEGMENT" IntegrationNameWhatsapp IntegrationName = "WHATSAPP" + IntegrationNameYoutube IntegrationName = "YOUTUBE" ) func NewIntegrationNameFromString(s string) (IntegrationName, error) { @@ -9611,6 +9621,8 @@ func NewIntegrationNameFromString(s string) (IntegrationName, error) { return IntegrationNameGoogleSheets, nil case "GOOGLE_CALENDAR": return IntegrationNameGoogleCalendar, nil + case "GOOGLE_CLASSROOM": + return IntegrationNameGoogleClassroom, nil case "GOOGLE_DRIVE": return IntegrationNameGoogleDrive, nil case "GMAIL": @@ -9679,6 +9691,8 @@ func NewIntegrationNameFromString(s string) (IntegrationName, error) { return IntegrationNameFireflies, nil case "GOOGLE_MAPS": return IntegrationNameGoogleMaps, nil + case "GOOGLEMEET": + return IntegrationNameGooglemeet, nil case "HEYGEN": return IntegrationNameHeygen, nil case "JIRA": @@ -9699,6 +9713,8 @@ func NewIntegrationNameFromString(s string) (IntegrationName, error) { return IntegrationNamePosthog, nil case "PRODUCTBOARD": return IntegrationNameProductboard, nil + case "QUICKBOOKS": + return IntegrationNameQuickbooks, nil case "REDDIT": return IntegrationNameReddit, nil case "SALESFORCE": @@ -9757,6 +9773,8 @@ func NewIntegrationNameFromString(s string) (IntegrationName, error) { return IntegrationNameDocusign, nil case "TRELLO": return IntegrationNameTrello, nil + case "TWITTER": + return IntegrationNameTwitter, nil case "HEYREACH": return IntegrationNameHeyreach, nil case "ACTIVE_CAMPAIGN": @@ -9767,6 +9785,8 @@ func NewIntegrationNameFromString(s string) (IntegrationName, error) { return IntegrationNameSegment, nil case "WHATSAPP": return IntegrationNameWhatsapp, nil + case "YOUTUBE": + return IntegrationNameYoutube, nil } var t IntegrationName return "", fmt.Errorf("%s is not a valid %T", s, t) diff --git a/workflow_deployments.go b/workflow_deployments.go index 94f1ada..ec55879 100644 --- a/workflow_deployments.go +++ b/workflow_deployments.go @@ -25,12 +25,18 @@ type ExecuteWorkflowDeploymentStreamRequest struct { } type WorkflowDeploymentsListRequest struct { + // has_story_config + HasStoryConfig *string `json:"-" url:"has_story_config,omitempty"` + // is_public + IsPublic *string `json:"-" url:"is_public,omitempty"` // Number of results to return per page. Limit *int `json:"-" url:"limit,omitempty"` // The initial index from which to return the results. Offset *int `json:"-" url:"offset,omitempty"` // Which field to use when ordering the results. Ordering *string `json:"-" url:"ordering,omitempty"` + // owned_by + OwnedBy *string `json:"-" url:"owned_by,omitempty"` // status Status *WorkflowDeploymentsListRequestStatus `json:"-" url:"status,omitempty"` }