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 #3223

Merged
merged 1 commit into from
Sep 23, 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
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1342
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-02e713089d6f667b3c197d0b2c90547a939434be8f8c458ff007fd5dfc4da058.yml
configured_endpoints: 1336
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-40cba2df64bb65d7c04f311361fd786305223e674540a2c3fc4442b2fba34bd3.yml
32 changes: 4 additions & 28 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5800,32 +5800,8 @@ Methods:

#### Summary

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewaySummaryModelResponse">AIGatewaySummaryModelResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewaySummaryProviderResponse">AIGatewaySummaryProviderResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewaySummaryTaskResponse">AIGatewaySummaryTaskResponse</a>

Methods:

- <code title="get /radar/ai/inference/summary/model">client.Radar.AI.Gateway.Summary.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewaySummaryService.Model">Model</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewaySummaryModelParams">AIGatewaySummaryModelParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewaySummaryModelResponse">AIGatewaySummaryModelResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /radar/ai/gateway/summary/provider">client.Radar.AI.Gateway.Summary.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewaySummaryService.Provider">Provider</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewaySummaryProviderParams">AIGatewaySummaryProviderParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewaySummaryProviderResponse">AIGatewaySummaryProviderResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /radar/ai/inference/summary/task">client.Radar.AI.Gateway.Summary.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewaySummaryService.Task">Task</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewaySummaryTaskParams">AIGatewaySummaryTaskParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewaySummaryTaskResponse">AIGatewaySummaryTaskResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

#### TimeseriesGroups

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewayTimeseriesGroupModelResponse">AIGatewayTimeseriesGroupModelResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewayTimeseriesGroupProviderResponse">AIGatewayTimeseriesGroupProviderResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewayTimeseriesGroupTaskResponse">AIGatewayTimeseriesGroupTaskResponse</a>

Methods:

- <code title="get /radar/ai/inference/timeseries_groups/model">client.Radar.AI.Gateway.TimeseriesGroups.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewayTimeseriesGroupService.Model">Model</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewayTimeseriesGroupModelParams">AIGatewayTimeseriesGroupModelParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewayTimeseriesGroupModelResponse">AIGatewayTimeseriesGroupModelResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /radar/ai/gateway/timeseries_groups/provider">client.Radar.AI.Gateway.TimeseriesGroups.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewayTimeseriesGroupService.Provider">Provider</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewayTimeseriesGroupProviderParams">AIGatewayTimeseriesGroupProviderParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewayTimeseriesGroupProviderResponse">AIGatewayTimeseriesGroupProviderResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /radar/ai/inference/timeseries_groups/task">client.Radar.AI.Gateway.TimeseriesGroups.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewayTimeseriesGroupService.Task">Task</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewayTimeseriesGroupTaskParams">AIGatewayTimeseriesGroupTaskParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/radar#AIGatewayTimeseriesGroupTaskResponse">AIGatewayTimeseriesGroupTaskResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

## Annotations

Response Types:
Expand Down Expand Up @@ -6799,13 +6775,13 @@ Methods:

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionUpdateResponse">OriginPostQuantumEncryptionUpdateResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionGetResponse">OriginPostQuantumEncryptionGetResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#interface{}">interface{}</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#interface{}">interface{}</a>

Methods:

- <code title="put /zones/{zone_id}/cache/origin_post_quantum_encryption">client.OriginPostQuantumEncryption.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionUpdateParams">OriginPostQuantumEncryptionUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionUpdateResponse">OriginPostQuantumEncryptionUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/cache/origin_post_quantum_encryption">client.OriginPostQuantumEncryption.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionGetParams">OriginPostQuantumEncryptionGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionGetResponse">OriginPostQuantumEncryptionGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /zones/{zone_id}/cache/origin_post_quantum_encryption">client.OriginPostQuantumEncryption.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionUpdateParams">OriginPostQuantumEncryptionUpdateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#interface{}">interface{}</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/cache/origin_post_quantum_encryption">client.OriginPostQuantumEncryption.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#OriginPostQuantumEncryptionGetParams">OriginPostQuantumEncryptionGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption">origin_post_quantum_encryption</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/origin_post_quantum_encryption#interface{}">interface{}</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

# Speed

Expand Down
16 changes: 8 additions & 8 deletions argo/tieredcaching.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ func (r TieredCachingEditParamsValue) IsKnown() bool {
}

type TieredCachingEditResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result TieredCachingEditResponse `json:"result,required"`
// Whether the API call was successful
Success TieredCachingEditResponseEnvelopeSuccess `json:"success,required"`
Result TieredCachingEditResponse `json:"result"`
JSON tieredCachingEditResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -204,8 +204,8 @@ type TieredCachingEditResponseEnvelope struct {
type tieredCachingEditResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Success apijson.Field
Result apijson.Field
Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down Expand Up @@ -239,11 +239,11 @@ type TieredCachingGetParams struct {
}

type TieredCachingGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
Result TieredCachingGetResponse `json:"result,required"`
// Whether the API call was successful
Success TieredCachingGetResponseEnvelopeSuccess `json:"success,required"`
Result TieredCachingGetResponse `json:"result"`
JSON tieredCachingGetResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -252,8 +252,8 @@ type TieredCachingGetResponseEnvelope struct {
type tieredCachingGetResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Success apijson.Field
Result apijson.Field
Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down
40 changes: 20 additions & 20 deletions cache/cachereserve.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,23 +354,23 @@ func (r CacheReserveClearParams) MarshalJSON() (data []byte, err error) {
type CacheReserveClearResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success CacheReserveClearResponseEnvelopeSuccess `json:"success,required"`
// You can use Cache Reserve Clear to clear your Cache Reserve, but you must first
// disable Cache Reserve. In most cases, this will be accomplished within 24 hours.
// You cannot re-enable Cache Reserve while this process is ongoing. Keep in mind
// that you cannot undo or cancel this operation.
Result CacheReserveClearResponse `json:"result"`
JSON cacheReserveClearResponseEnvelopeJSON `json:"-"`
Result CacheReserveClearResponse `json:"result,required"`
// Whether the API call was successful
Success CacheReserveClearResponseEnvelopeSuccess `json:"success,required"`
JSON cacheReserveClearResponseEnvelopeJSON `json:"-"`
}

// cacheReserveClearResponseEnvelopeJSON contains the JSON metadata for the struct
// [CacheReserveClearResponseEnvelope]
type cacheReserveClearResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Success apijson.Field
Result apijson.Field
Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down Expand Up @@ -428,25 +428,25 @@ func (r CacheReserveEditParamsValue) IsKnown() bool {
type CacheReserveEditResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success CacheReserveEditResponseEnvelopeSuccess `json:"success,required"`
// Increase cache lifetimes by automatically storing all cacheable files into
// Cloudflare's persistent object storage buckets. Requires Cache Reserve
// subscription. Note: using Tiered Cache with Cache Reserve is highly recommended
// to reduce Reserve operations costs. See the
// [developer docs](https://developers.cloudflare.com/cache/about/cache-reserve)
// for more information.
Result CacheReserveEditResponse `json:"result"`
JSON cacheReserveEditResponseEnvelopeJSON `json:"-"`
Result CacheReserveEditResponse `json:"result,required"`
// Whether the API call was successful
Success CacheReserveEditResponseEnvelopeSuccess `json:"success,required"`
JSON cacheReserveEditResponseEnvelopeJSON `json:"-"`
}

// cacheReserveEditResponseEnvelopeJSON contains the JSON metadata for the struct
// [CacheReserveEditResponseEnvelope]
type cacheReserveEditResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Success apijson.Field
Result apijson.Field
Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down Expand Up @@ -482,25 +482,25 @@ type CacheReserveGetParams struct {
type CacheReserveGetResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success CacheReserveGetResponseEnvelopeSuccess `json:"success,required"`
// Increase cache lifetimes by automatically storing all cacheable files into
// Cloudflare's persistent object storage buckets. Requires Cache Reserve
// subscription. Note: using Tiered Cache with Cache Reserve is highly recommended
// to reduce Reserve operations costs. See the
// [developer docs](https://developers.cloudflare.com/cache/about/cache-reserve)
// for more information.
Result CacheReserveGetResponse `json:"result"`
JSON cacheReserveGetResponseEnvelopeJSON `json:"-"`
Result CacheReserveGetResponse `json:"result,required"`
// Whether the API call was successful
Success CacheReserveGetResponseEnvelopeSuccess `json:"success,required"`
JSON cacheReserveGetResponseEnvelopeJSON `json:"-"`
}

// cacheReserveGetResponseEnvelopeJSON contains the JSON metadata for the struct
// [CacheReserveGetResponseEnvelope]
type cacheReserveGetResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Success apijson.Field
Result apijson.Field
Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down Expand Up @@ -536,23 +536,23 @@ type CacheReserveStatusParams struct {
type CacheReserveStatusResponseEnvelope struct {
Errors []shared.ResponseInfo `json:"errors,required"`
Messages []shared.ResponseInfo `json:"messages,required"`
// Whether the API call was successful
Success CacheReserveStatusResponseEnvelopeSuccess `json:"success,required"`
// You can use Cache Reserve Clear to clear your Cache Reserve, but you must first
// disable Cache Reserve. In most cases, this will be accomplished within 24 hours.
// You cannot re-enable Cache Reserve while this process is ongoing. Keep in mind
// that you cannot undo or cancel this operation.
Result CacheReserveStatusResponse `json:"result"`
JSON cacheReserveStatusResponseEnvelopeJSON `json:"-"`
Result CacheReserveStatusResponse `json:"result,required"`
// Whether the API call was successful
Success CacheReserveStatusResponseEnvelopeSuccess `json:"success,required"`
JSON cacheReserveStatusResponseEnvelopeJSON `json:"-"`
}

// cacheReserveStatusResponseEnvelopeJSON contains the JSON metadata for the struct
// [CacheReserveStatusResponseEnvelope]
type cacheReserveStatusResponseEnvelopeJSON struct {
Errors apijson.Field
Messages apijson.Field
Success apijson.Field
Result apijson.Field
Success apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down
Loading