Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#1793)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Apr 24, 2024
1 parent 3f2a5eb commit a5fc9ab
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions calls/call.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ func (r CallNewParams) MarshalJSON() (data []byte, err error) {
type CallNewResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result CallsAppWithSecret `json:"result,required"`
// Whether the API call was successful
Success CallNewResponseEnvelopeSuccess `json:"success,required"`
Result CallsAppWithSecret `json:"result"`
JSON callNewResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -198,8 +198,8 @@ type CallNewResponseEnvelope struct {
type callNewResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down Expand Up @@ -241,9 +241,9 @@ func (r CallUpdateParams) MarshalJSON() (data []byte, err error) {
type CallUpdateResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result CallsApp `json:"result,required"`
// Whether the API call was successful
Success CallUpdateResponseEnvelopeSuccess `json:"success,required"`
Result CallsApp `json:"result"`
JSON callUpdateResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -252,8 +252,8 @@ type CallUpdateResponseEnvelope struct {
type callUpdateResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down Expand Up @@ -294,9 +294,9 @@ type CallDeleteParams struct {
type CallDeleteResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result CallsApp `json:"result,required"`
// Whether the API call was successful
Success CallDeleteResponseEnvelopeSuccess `json:"success,required"`
Result CallsApp `json:"result"`
JSON callDeleteResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -305,8 +305,8 @@ type CallDeleteResponseEnvelope struct {
type callDeleteResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down Expand Up @@ -342,9 +342,9 @@ type CallGetParams struct {
type CallGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result CallsApp `json:"result,required"`
// Whether the API call was successful
Success CallGetResponseEnvelopeSuccess `json:"success,required"`
Result CallsApp `json:"result"`
JSON callGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -353,8 +353,8 @@ type CallGetResponseEnvelope struct {
type callGetResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down
4 changes: 2 additions & 2 deletions dns/analyticsreport.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ func (r AnalyticsReportGetParams) URLQuery() (v url.Values) {
type AnalyticsReportGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result Report `json:"result,required"`
// Whether the API call was successful
Success AnalyticsReportGetResponseEnvelopeSuccess `json:"success,required"`
Result Report `json:"result"`
JSON analyticsReportGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -204,8 +204,8 @@ type AnalyticsReportGetResponseEnvelope struct {
type analyticsReportGetResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down
4 changes: 2 additions & 2 deletions dns/analyticsreportbytime.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ func (r AnalyticsReportBytimeGetParamsTimeDelta) IsKnown() bool {
type AnalyticsReportBytimeGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result ByTime `json:"result,required"`
// Whether the API call was successful
Success AnalyticsReportBytimeGetResponseEnvelopeSuccess `json:"success,required"`
Result ByTime `json:"result"`
JSON analyticsReportBytimeGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -193,8 +193,8 @@ type AnalyticsReportBytimeGetResponseEnvelope struct {
type analyticsReportBytimeGetResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down
4 changes: 2 additions & 2 deletions dns/firewallanalyticsreport.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ func (r FirewallAnalyticsReportGetParams) URLQuery() (v url.Values) {
type FirewallAnalyticsReportGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result Report `json:"result,required"`
// Whether the API call was successful
Success FirewallAnalyticsReportGetResponseEnvelopeSuccess `json:"success,required"`
Result Report `json:"result"`
JSON firewallAnalyticsReportGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -97,8 +97,8 @@ type FirewallAnalyticsReportGetResponseEnvelope struct {
type firewallAnalyticsReportGetResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down
4 changes: 2 additions & 2 deletions dns/firewallanalyticsreportbytime.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ func (r FirewallAnalyticsReportBytimeGetParamsTimeDelta) IsKnown() bool {
type FirewallAnalyticsReportBytimeGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result ByTime `json:"result,required"`
// Whether the API call was successful
Success FirewallAnalyticsReportBytimeGetResponseEnvelopeSuccess `json:"success,required"`
Result ByTime `json:"result"`
JSON firewallAnalyticsReportBytimeGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -121,8 +121,8 @@ type FirewallAnalyticsReportBytimeGetResponseEnvelope struct {
type firewallAnalyticsReportBytimeGetResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Result apijson.Field
Success apijson.Field
Result apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down

0 comments on commit a5fc9ab

Please sign in to comment.