From 22f55428934fa49b1b6366ce531651e4f719cf0e Mon Sep 17 00:00:00 2001 From: svix-lucho <133019767+svix-lucho@users.noreply.github.com> Date: Thu, 30 Nov 2023 14:55:10 -0300 Subject: [PATCH] Update openapi spec and regenerate libs (#1136) Update openapi spec and regenerate libs --- .../model_message_attempt_endpoint_out.go | 36 +++++++++++++++++++ .../openapi/model_message_attempt_out.go | 36 +++++++++++++++++++ .../model_transformation_template_kind.go | 20 ++++++++--- openapi.json | 20 +++++++++-- 4 files changed, 105 insertions(+), 7 deletions(-) diff --git a/go/internal/openapi/model_message_attempt_endpoint_out.go b/go/internal/openapi/model_message_attempt_endpoint_out.go index dfb13ab76..4bf84d3c7 100644 --- a/go/internal/openapi/model_message_attempt_endpoint_out.go +++ b/go/internal/openapi/model_message_attempt_endpoint_out.go @@ -21,6 +21,7 @@ type MessageAttemptEndpointOut struct { EndpointId string `json:"endpointId"` // The attempt's ID Id string `json:"id"` + Msg *MessageOut `json:"msg,omitempty"` // The msg's ID MsgId string `json:"msgId"` Response string `json:"response"` @@ -105,6 +106,38 @@ func (o *MessageAttemptEndpointOut) SetId(v string) { o.Id = v } +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *MessageAttemptEndpointOut) GetMsg() MessageOut { + if o == nil || o.Msg == nil { + var ret MessageOut + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MessageAttemptEndpointOut) GetMsgOk() (*MessageOut, bool) { + if o == nil || o.Msg == nil { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *MessageAttemptEndpointOut) HasMsg() bool { + if o != nil && o.Msg != nil { + return true + } + + return false +} + +// SetMsg gets a reference to the given MessageOut and assigns it to the Msg field. +func (o *MessageAttemptEndpointOut) SetMsg(v MessageOut) { + o.Msg = &v +} + // GetMsgId returns the MsgId field value func (o *MessageAttemptEndpointOut) GetMsgId() string { if o == nil { @@ -281,6 +314,9 @@ func (o MessageAttemptEndpointOut) MarshalJSON() ([]byte, error) { if true { toSerialize["id"] = o.Id } + if o.Msg != nil { + toSerialize["msg"] = o.Msg + } if true { toSerialize["msgId"] = o.MsgId } diff --git a/go/internal/openapi/model_message_attempt_out.go b/go/internal/openapi/model_message_attempt_out.go index c2b066d4c..06067eebc 100644 --- a/go/internal/openapi/model_message_attempt_out.go +++ b/go/internal/openapi/model_message_attempt_out.go @@ -21,6 +21,7 @@ type MessageAttemptOut struct { EndpointId string `json:"endpointId"` // The attempt's ID Id string `json:"id"` + Msg *MessageOut `json:"msg,omitempty"` // The msg's ID MsgId string `json:"msgId"` Response string `json:"response"` @@ -105,6 +106,38 @@ func (o *MessageAttemptOut) SetId(v string) { o.Id = v } +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *MessageAttemptOut) GetMsg() MessageOut { + if o == nil || o.Msg == nil { + var ret MessageOut + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MessageAttemptOut) GetMsgOk() (*MessageOut, bool) { + if o == nil || o.Msg == nil { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *MessageAttemptOut) HasMsg() bool { + if o != nil && o.Msg != nil { + return true + } + + return false +} + +// SetMsg gets a reference to the given MessageOut and assigns it to the Msg field. +func (o *MessageAttemptOut) SetMsg(v MessageOut) { + o.Msg = &v +} + // GetMsgId returns the MsgId field value func (o *MessageAttemptOut) GetMsgId() string { if o == nil { @@ -281,6 +314,9 @@ func (o MessageAttemptOut) MarshalJSON() ([]byte, error) { if true { toSerialize["id"] = o.Id } + if o.Msg != nil { + toSerialize["msg"] = o.Msg + } if true { toSerialize["msgId"] = o.MsgId } diff --git a/go/internal/openapi/model_transformation_template_kind.go b/go/internal/openapi/model_transformation_template_kind.go index 65cae877f..27c805e18 100644 --- a/go/internal/openapi/model_transformation_template_kind.go +++ b/go/internal/openapi/model_transformation_template_kind.go @@ -21,20 +21,32 @@ type TransformationTemplateKind string // List of TransformationTemplateKind const ( TRANSFORMATIONTEMPLATEKIND_CUSTOM TransformationTemplateKind = "Custom" - TRANSFORMATIONTEMPLATEKIND_SLACK TransformationTemplateKind = "Slack" + TRANSFORMATIONTEMPLATEKIND_CUSTOMER_IO TransformationTemplateKind = "CustomerIO" TRANSFORMATIONTEMPLATEKIND_DISCORD TransformationTemplateKind = "Discord" - TRANSFORMATIONTEMPLATEKIND_TEAMS TransformationTemplateKind = "Teams" + TRANSFORMATIONTEMPLATEKIND_HUBSPOT TransformationTemplateKind = "Hubspot" TRANSFORMATIONTEMPLATEKIND_INNGEST TransformationTemplateKind = "Inngest" + TRANSFORMATIONTEMPLATEKIND_SALESFORCE TransformationTemplateKind = "Salesforce" TRANSFORMATIONTEMPLATEKIND_SEGMENT TransformationTemplateKind = "Segment" + TRANSFORMATIONTEMPLATEKIND_SLACK TransformationTemplateKind = "Slack" + TRANSFORMATIONTEMPLATEKIND_TEAMS TransformationTemplateKind = "Teams" + TRANSFORMATIONTEMPLATEKIND_TRIGGER_DEV TransformationTemplateKind = "TriggerDev" + TRANSFORMATIONTEMPLATEKIND_WINDMILL TransformationTemplateKind = "Windmill" + TRANSFORMATIONTEMPLATEKIND_ZAPIER TransformationTemplateKind = "Zapier" ) var allowedTransformationTemplateKindEnumValues = []TransformationTemplateKind{ "Custom", - "Slack", + "CustomerIO", "Discord", - "Teams", + "Hubspot", "Inngest", + "Salesforce", "Segment", + "Slack", + "Teams", + "TriggerDev", + "Windmill", + "Zapier", } func (v *TransformationTemplateKind) UnmarshalJSON(src []byte) error { diff --git a/openapi.json b/openapi.json index aa7e9b590..2c82e13ac 100644 --- a/openapi.json +++ b/openapi.json @@ -2335,6 +2335,10 @@ "example": "atmpt_1srOrx2ZWZBpBUvZwXKQmoEYga2", "type": "string" }, + "msg": { + "$ref": "#/components/schemas/MessageOut", + "nullable": true + }, "msgId": { "description": "The msg's ID", "example": "msg_1srOrx2ZWZBpBUvZwXKQmoEYga2", @@ -2585,6 +2589,10 @@ "example": "atmpt_1srOrx2ZWZBpBUvZwXKQmoEYga2", "type": "string" }, + "msg": { + "$ref": "#/components/schemas/MessageOut", + "nullable": true + }, "msgId": { "description": "The msg's ID", "example": "msg_1srOrx2ZWZBpBUvZwXKQmoEYga2", @@ -3688,11 +3696,17 @@ "TransformationTemplateKind": { "enum": [ "Custom", - "Slack", + "CustomerIO", "Discord", - "Teams", + "Hubspot", "Inngest", - "Segment" + "Salesforce", + "Segment", + "Slack", + "Teams", + "TriggerDev", + "Windmill", + "Zapier" ], "type": "string" },