Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): OpenAPI spec update via Stainless API #3003

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1331
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ec411ebd9ca8ef85086c068297cc69d1dccd432e196bf05961442f6a394b1335.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-25a30fae8e8b813a7f82e97960c0f8a81cf53e84e956f560fda395e3ee7ffc56.yml
6 changes: 3 additions & 3 deletions event_notifications/r2configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,15 @@ func (r R2ConfigurationGetResponseItemRulesAction) IsKnown() bool {
}

type R2ConfigurationGetParams struct {
// Identifier.
// Identifier
AccountID param.Field[string] `path:"account_id,required"`
}

type R2ConfigurationGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result R2ConfigurationGetResponse `json:"result,required"`
// Whether the API call was successful.
// Whether the API call was successful
Success R2ConfigurationGetResponseEnvelopeSuccess `json:"success,required"`
JSON r2ConfigurationGetResponseEnvelopeJSON `json:"-"`
}
Expand All @@ -164,7 +164,7 @@ func (r r2ConfigurationGetResponseEnvelopeJSON) RawJSON() string {
return r.raw
}

// Whether the API call was successful.
// Whether the API call was successful
type R2ConfigurationGetResponseEnvelopeSuccess bool

const (
Expand Down
12 changes: 6 additions & 6 deletions event_notifications/r2configurationqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (r R2ConfigurationQueueDeleteResponseArray) ImplementsEventNotificationsR2C
}

type R2ConfigurationQueueUpdateParams struct {
// Identifier.
// Identifier
AccountID param.Field[string] `path:"account_id,required"`
// Array of rules to drive notifications
Rules param.Field[[]R2ConfigurationQueueUpdateParamsRule] `json:"rules"`
Expand Down Expand Up @@ -183,7 +183,7 @@ type R2ConfigurationQueueUpdateResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result R2ConfigurationQueueUpdateResponse `json:"result,required"`
// Whether the API call was successful.
// Whether the API call was successful
Success R2ConfigurationQueueUpdateResponseEnvelopeSuccess `json:"success,required"`
JSON r2ConfigurationQueueUpdateResponseEnvelopeJSON `json:"-"`
}
Expand All @@ -207,7 +207,7 @@ func (r r2ConfigurationQueueUpdateResponseEnvelopeJSON) RawJSON() string {
return r.raw
}

// Whether the API call was successful.
// Whether the API call was successful
type R2ConfigurationQueueUpdateResponseEnvelopeSuccess bool

const (
Expand All @@ -223,15 +223,15 @@ func (r R2ConfigurationQueueUpdateResponseEnvelopeSuccess) IsKnown() bool {
}

type R2ConfigurationQueueDeleteParams struct {
// Identifier.
// Identifier
AccountID param.Field[string] `path:"account_id,required"`
}

type R2ConfigurationQueueDeleteResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result R2ConfigurationQueueDeleteResponseUnion `json:"result,required"`
// Whether the API call was successful.
// Whether the API call was successful
Success R2ConfigurationQueueDeleteResponseEnvelopeSuccess `json:"success,required"`
JSON r2ConfigurationQueueDeleteResponseEnvelopeJSON `json:"-"`
}
Expand All @@ -255,7 +255,7 @@ func (r r2ConfigurationQueueDeleteResponseEnvelopeJSON) RawJSON() string {
return r.raw
}

// Whether the API call was successful.
// Whether the API call was successful
type R2ConfigurationQueueDeleteResponseEnvelopeSuccess bool

const (
Expand Down
24 changes: 12 additions & 12 deletions queues/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ type ConsumerDeleteResponseArray []interface{}
func (r ConsumerDeleteResponseArray) ImplementsQueuesConsumerDeleteResponseUnion() {}

type ConsumerNewParams struct {
// Identifier.
// Identifier
AccountID param.Field[string] `path:"account_id,required"`
Body interface{} `json:"body,required"`
}
Expand All @@ -339,7 +339,7 @@ type ConsumerNewResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result ConsumerNewResponse `json:"result,required,nullable"`
// Whether the API call was successful.
// Whether the API call was successful
Success ConsumerNewResponseEnvelopeSuccess `json:"success,required"`
ResultInfo ConsumerNewResponseEnvelopeResultInfo `json:"result_info"`
JSON consumerNewResponseEnvelopeJSON `json:"-"`
Expand All @@ -365,7 +365,7 @@ func (r consumerNewResponseEnvelopeJSON) RawJSON() string {
return r.raw
}

// Whether the API call was successful.
// Whether the API call was successful
type ConsumerNewResponseEnvelopeSuccess bool

const (
Expand Down Expand Up @@ -412,7 +412,7 @@ func (r consumerNewResponseEnvelopeResultInfoJSON) RawJSON() string {
}

type ConsumerUpdateParams struct {
// Identifier.
// Identifier
AccountID param.Field[string] `path:"account_id,required"`
Body interface{} `json:"body,required"`
}
Expand All @@ -425,7 +425,7 @@ type ConsumerUpdateResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result ConsumerUpdateResponse `json:"result,required,nullable"`
// Whether the API call was successful.
// Whether the API call was successful
Success ConsumerUpdateResponseEnvelopeSuccess `json:"success,required"`
ResultInfo ConsumerUpdateResponseEnvelopeResultInfo `json:"result_info"`
JSON consumerUpdateResponseEnvelopeJSON `json:"-"`
Expand All @@ -451,7 +451,7 @@ func (r consumerUpdateResponseEnvelopeJSON) RawJSON() string {
return r.raw
}

// Whether the API call was successful.
// Whether the API call was successful
type ConsumerUpdateResponseEnvelopeSuccess bool

const (
Expand Down Expand Up @@ -498,15 +498,15 @@ func (r consumerUpdateResponseEnvelopeResultInfoJSON) RawJSON() string {
}

type ConsumerDeleteParams struct {
// Identifier.
// Identifier
AccountID param.Field[string] `path:"account_id,required"`
}

type ConsumerDeleteResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result ConsumerDeleteResponseUnion `json:"result,required,nullable"`
// Whether the API call was successful.
// Whether the API call was successful
Success ConsumerDeleteResponseEnvelopeSuccess `json:"success,required"`
ResultInfo ConsumerDeleteResponseEnvelopeResultInfo `json:"result_info"`
JSON consumerDeleteResponseEnvelopeJSON `json:"-"`
Expand All @@ -532,7 +532,7 @@ func (r consumerDeleteResponseEnvelopeJSON) RawJSON() string {
return r.raw
}

// Whether the API call was successful.
// Whether the API call was successful
type ConsumerDeleteResponseEnvelopeSuccess bool

const (
Expand Down Expand Up @@ -579,15 +579,15 @@ func (r consumerDeleteResponseEnvelopeResultInfoJSON) RawJSON() string {
}

type ConsumerGetParams struct {
// Identifier.
// Identifier
AccountID param.Field[string] `path:"account_id,required"`
}

type ConsumerGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result []Consumer `json:"result,required,nullable"`
// Whether the API call was successful.
// Whether the API call was successful
Success ConsumerGetResponseEnvelopeSuccess `json:"success,required"`
ResultInfo ConsumerGetResponseEnvelopeResultInfo `json:"result_info"`
JSON consumerGetResponseEnvelopeJSON `json:"-"`
Expand All @@ -613,7 +613,7 @@ func (r consumerGetResponseEnvelopeJSON) RawJSON() string {
return r.raw
}

// Whether the API call was successful.
// Whether the API call was successful
type ConsumerGetResponseEnvelopeSuccess bool

const (
Expand Down
12 changes: 6 additions & 6 deletions queues/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (r messagePullResponseJSON) RawJSON() string {
}

type MessageAckParams struct {
// Identifier.
// Identifier
AccountID param.Field[string] `path:"account_id,required"`
Acks param.Field[[]MessageAckParamsAck] `json:"acks"`
Retries param.Field[[]MessageAckParamsRetry] `json:"retries"`
Expand Down Expand Up @@ -170,7 +170,7 @@ type MessageAckResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result MessageAckResponse `json:"result,required,nullable"`
// Whether the API call was successful.
// Whether the API call was successful
Success MessageAckResponseEnvelopeSuccess `json:"success,required"`
ResultInfo MessageAckResponseEnvelopeResultInfo `json:"result_info"`
JSON messageAckResponseEnvelopeJSON `json:"-"`
Expand All @@ -196,7 +196,7 @@ func (r messageAckResponseEnvelopeJSON) RawJSON() string {
return r.raw
}

// Whether the API call was successful.
// Whether the API call was successful
type MessageAckResponseEnvelopeSuccess bool

const (
Expand Down Expand Up @@ -243,7 +243,7 @@ func (r messageAckResponseEnvelopeResultInfoJSON) RawJSON() string {
}

type MessagePullParams struct {
// Identifier.
// Identifier
AccountID param.Field[string] `path:"account_id,required"`
// The maximum number of messages to include in a batch.
BatchSize param.Field[float64] `json:"batch_size"`
Expand All @@ -260,7 +260,7 @@ type MessagePullResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result []MessagePullResponse `json:"result,required,nullable"`
// Whether the API call was successful.
// Whether the API call was successful
Success MessagePullResponseEnvelopeSuccess `json:"success,required"`
ResultInfo MessagePullResponseEnvelopeResultInfo `json:"result_info"`
JSON messagePullResponseEnvelopeJSON `json:"-"`
Expand All @@ -286,7 +286,7 @@ func (r messagePullResponseEnvelopeJSON) RawJSON() string {
return r.raw
}

// Whether the API call was successful.
// Whether the API call was successful
type MessagePullResponseEnvelopeSuccess bool

const (
Expand Down
26 changes: 13 additions & 13 deletions queues/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ type QueueDeleteResponseArray []interface{}
func (r QueueDeleteResponseArray) ImplementsQueuesQueueDeleteResponseUnion() {}

type QueueNewParams struct {
// Identifier.
// Identifier
AccountID param.Field[string] `path:"account_id,required"`
QueueName param.Field[string] `json:"queue_name,required"`
}
Expand All @@ -296,7 +296,7 @@ type QueueNewResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result QueueCreated `json:"result,required,nullable"`
// Whether the API call was successful.
// Whether the API call was successful
Success QueueNewResponseEnvelopeSuccess `json:"success,required"`
ResultInfo QueueNewResponseEnvelopeResultInfo `json:"result_info"`
JSON queueNewResponseEnvelopeJSON `json:"-"`
Expand All @@ -322,7 +322,7 @@ func (r queueNewResponseEnvelopeJSON) RawJSON() string {
return r.raw
}

// Whether the API call was successful.
// Whether the API call was successful
type QueueNewResponseEnvelopeSuccess bool

const (
Expand Down Expand Up @@ -369,7 +369,7 @@ func (r queueNewResponseEnvelopeResultInfoJSON) RawJSON() string {
}

type QueueUpdateParams struct {
// Identifier.
// Identifier
AccountID param.Field[string] `path:"account_id,required"`
Body interface{} `json:"body,required"`
}
Expand All @@ -382,7 +382,7 @@ type QueueUpdateResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result QueueUpdated `json:"result,required,nullable"`
// Whether the API call was successful.
// Whether the API call was successful
Success QueueUpdateResponseEnvelopeSuccess `json:"success,required"`
ResultInfo QueueUpdateResponseEnvelopeResultInfo `json:"result_info"`
JSON queueUpdateResponseEnvelopeJSON `json:"-"`
Expand All @@ -408,7 +408,7 @@ func (r queueUpdateResponseEnvelopeJSON) RawJSON() string {
return r.raw
}

// Whether the API call was successful.
// Whether the API call was successful
type QueueUpdateResponseEnvelopeSuccess bool

const (
Expand Down Expand Up @@ -455,20 +455,20 @@ func (r queueUpdateResponseEnvelopeResultInfoJSON) RawJSON() string {
}

type QueueListParams struct {
// Identifier.
// Identifier
AccountID param.Field[string] `path:"account_id,required"`
}

type QueueDeleteParams struct {
// Identifier.
// Identifier
AccountID param.Field[string] `path:"account_id,required"`
}

type QueueDeleteResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result QueueDeleteResponseUnion `json:"result,required,nullable"`
// Whether the API call was successful.
// Whether the API call was successful
Success QueueDeleteResponseEnvelopeSuccess `json:"success,required"`
ResultInfo QueueDeleteResponseEnvelopeResultInfo `json:"result_info"`
JSON queueDeleteResponseEnvelopeJSON `json:"-"`
Expand All @@ -494,7 +494,7 @@ func (r queueDeleteResponseEnvelopeJSON) RawJSON() string {
return r.raw
}

// Whether the API call was successful.
// Whether the API call was successful
type QueueDeleteResponseEnvelopeSuccess bool

const (
Expand Down Expand Up @@ -541,15 +541,15 @@ func (r queueDeleteResponseEnvelopeResultInfoJSON) RawJSON() string {
}

type QueueGetParams struct {
// Identifier.
// Identifier
AccountID param.Field[string] `path:"account_id,required"`
}

type QueueGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result Queue `json:"result,required,nullable"`
// Whether the API call was successful.
// Whether the API call was successful
Success QueueGetResponseEnvelopeSuccess `json:"success,required"`
ResultInfo QueueGetResponseEnvelopeResultInfo `json:"result_info"`
JSON queueGetResponseEnvelopeJSON `json:"-"`
Expand All @@ -575,7 +575,7 @@ func (r queueGetResponseEnvelopeJSON) RawJSON() string {
return r.raw
}

// Whether the API call was successful.
// Whether the API call was successful
type QueueGetResponseEnvelopeSuccess bool

const (
Expand Down