From 285132f0215bf207bd4b53289912a3ea8f6c07e0 Mon Sep 17 00:00:00 2001 From: Jake Scaltreto Date: Wed, 22 Jul 2026 17:58:40 -0400 Subject: [PATCH 1/3] fix: switch REST client auth to x-api-key header QuickNode's API no longer accepts Authorization: Bearer tokens; it now requires the API key via the x-api-key header. The streams client already used this header correctly; align the main REST client to match. Also update ErrorResponse.Error from *string to json.RawMessage so non-200 error bodies (where "error" is an object, not a string) unmarshal cleanly and surface the real API message in diagnostics. --- internal/provider/provider.go | 7 ++++--- internal/utils/error.go | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/internal/provider/provider.go b/internal/provider/provider.go index b8ace00..807ee52 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -34,7 +34,6 @@ import ( "github.com/hashicorp/terraform-plugin-framework/provider/schema" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/oapi-codegen/oapi-codegen/v2/pkg/securityprovider" ) const ( @@ -133,11 +132,13 @@ func (p *QuickNodeProvider) Configure(ctx context.Context, req provider.Configur return } - bearerTokenProvider, _ := securityprovider.NewSecurityProviderBearerToken(apiKey) client, _ := quicknode.NewClientWithResponses( endpoint, quicknode.WithHTTPClient(transport.NewRetryableThrottledClient(requestsPerSecond)), - quicknode.WithRequestEditorFn(bearerTokenProvider.Intercept), + quicknode.WithRequestEditorFn(func(ctx context.Context, req *http.Request) error { + req.Header.Set("x-api-key", apiKey) + return nil + }), ) // Create Streams API client with x-api-key authentication diff --git a/internal/utils/error.go b/internal/utils/error.go index a9dcdab..48374b4 100644 --- a/internal/utils/error.go +++ b/internal/utils/error.go @@ -28,7 +28,7 @@ const ( ) type ErrorResponse struct { - Error *string `json:"error"` + Error json.RawMessage `json:"error"` } func BuildRequestErrorMessage(status string, body []byte) (string, error) { @@ -41,8 +41,8 @@ func BuildRequestErrorMessage(status string, body []byte) (string, error) { return m, err } - if e.Error != nil { - m += fmt.Sprintf("\nerror `%s`", *e.Error) + if len(e.Error) > 0 && string(e.Error) != "null" { + m += fmt.Sprintf("\nerror `%s`", e.Error) } } From d3b9df28913c924fcdd5c55ce211467a24a67325 Mon Sep 17 00:00:00 2001 From: Jake Scaltreto Date: Wed, 22 Jul 2026 18:14:33 -0400 Subject: [PATCH 2/3] fix(deps): update vulnerable dependencies and suppress unfixable CVE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upgrade dependencies to address CVEs surfaced by Trivy: - golang.org/x/net v0.55.0 → v0.56.0 (CVE-2026-46600) - golang.org/x/text v0.37.0 → v0.40.0 (CVE-2026-56852) - golang.org/x/crypto v0.52.0 → v0.54.0 (latest) - google.golang.org/grpc v1.79.3 → v1.82.1 (GHSA-hrxh-6v49-42gf) - github.com/oapi-codegen/oapi-codegen/v2 v2.4.1 → v2.7.1 (GHSA-rjwr-m7qx-3fjr) Add .trivyignore for GO-2026-5932 (golang.org/x/crypto/openpgp is unmaintained by design, no fixed version exists, and no package in our dependency tree imports it — it is flagged at the module level). --- .trivyignore | 5 +++ go.mod | 46 +++++++++++--------- go.sum | 118 ++++++++++++++++++++++++++++----------------------- 3 files changed, 94 insertions(+), 75 deletions(-) create mode 100644 .trivyignore diff --git a/.trivyignore b/.trivyignore new file mode 100644 index 0000000..5ebec7f --- /dev/null +++ b/.trivyignore @@ -0,0 +1,5 @@ +# GO-2026-5932: golang.org/x/crypto/openpgp is unmaintained by design. +# There is no fixed version; the advisory recommends migrating to a +# maintained alternative. We do not use openpgp directly — it is a +# transitive dependency. Suppress until upstream drops it or migrates. +GO-2026-5932 diff --git a/go.mod b/go.mod index 93be5e7..802a541 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/circlefin/terraform-provider-quicknode go 1.25.0 require ( - github.com/getkin/kin-openapi v0.131.0 + github.com/getkin/kin-openapi v0.135.0 github.com/google/addlicense v1.1.1 github.com/hashicorp/go-retryablehttp v0.7.7 github.com/hashicorp/terraform-plugin-docs v0.20.1 @@ -11,9 +11,9 @@ require ( github.com/hashicorp/terraform-plugin-go v0.27.0 github.com/hashicorp/terraform-plugin-log v0.9.0 github.com/hashicorp/terraform-plugin-testing v1.11.0 - github.com/oapi-codegen/oapi-codegen/v2 v2.4.1 + github.com/oapi-codegen/oapi-codegen/v2 v2.7.1 github.com/oapi-codegen/runtime v1.1.1 - github.com/stretchr/testify v1.10.0 + github.com/stretchr/testify v1.11.1 golang.org/x/time v0.14.0 ) @@ -34,11 +34,11 @@ require ( github.com/bmatcuk/doublestar/v4 v4.9.1 // indirect github.com/bufbuild/protocompile v0.14.1 // indirect github.com/cloudflare/circl v1.6.3 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 // indirect github.com/fatih/color v1.18.0 // indirect - github.com/go-openapi/jsonpointer v0.21.0 // indirect - github.com/go-openapi/swag v0.23.0 // indirect + github.com/go-openapi/jsonpointer v0.22.4 // indirect + github.com/go-openapi/swag/jsonname v0.25.4 // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/google/go-cmp v0.7.0 // indirect github.com/google/uuid v1.6.0 // indirect @@ -63,7 +63,7 @@ require ( github.com/hashicorp/yamux v0.1.2 // indirect github.com/huandu/xstrings v1.5.0 // indirect github.com/josharian/intern v1.0.0 // indirect - github.com/mailru/easyjson v0.9.0 // indirect + github.com/mailru/easyjson v0.9.1 // indirect github.com/mattn/go-colorable v0.1.14 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-runewidth v0.0.15 // indirect @@ -73,37 +73,41 @@ require ( github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect - github.com/oasdiff/yaml v0.0.0-20250309154309-f31be36b4037 // indirect - github.com/oasdiff/yaml3 v0.0.0-20250309153720-d2182401db90 // indirect + github.com/oasdiff/yaml v0.0.9 // indirect + github.com/oasdiff/yaml3 v0.0.9 // indirect github.com/oklog/run v1.1.0 // indirect + github.com/onsi/gomega v1.27.6 // indirect github.com/perimeterx/marshmallow v1.1.5 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/posener/complete v1.2.3 // indirect github.com/rivo/uniseg v0.2.0 // indirect github.com/shopspring/decimal v1.4.0 // indirect - github.com/speakeasy-api/openapi-overlay v0.9.0 // indirect + github.com/speakeasy-api/jsonpath v0.6.3 // indirect + github.com/speakeasy-api/openapi v1.19.2 // indirect github.com/spf13/cast v1.9.2 // indirect github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect github.com/vmware-labs/yaml-jsonpath v0.3.2 // indirect + github.com/woodsbury/decimal128 v1.4.0 // indirect github.com/yuin/goldmark v1.7.13 // indirect github.com/yuin/goldmark-meta v1.1.0 // indirect github.com/zclconf/go-cty v1.15.0 // indirect go.abhg.dev/goldmark/frontmatter v0.2.0 // indirect - golang.org/x/crypto v0.52.0 // indirect + go.yaml.in/yaml/v3 v3.0.4 // indirect + golang.org/x/crypto v0.54.0 // indirect golang.org/x/exp v0.0.0-20251209150349-8475f28825e9 // indirect golang.org/x/exp/typeparams v0.0.0-20231108232855-2478ac86f678 // indirect - golang.org/x/mod v0.35.0 // indirect - golang.org/x/net v0.55.0 // indirect - golang.org/x/sync v0.20.0 // indirect - golang.org/x/sys v0.45.0 // indirect - golang.org/x/text v0.37.0 // indirect - golang.org/x/tools v0.44.0 // indirect + golang.org/x/mod v0.37.0 // indirect + golang.org/x/net v0.56.0 // indirect + golang.org/x/sync v0.22.0 // indirect + golang.org/x/sys v0.47.0 // indirect + golang.org/x/text v0.40.0 // indirect + golang.org/x/tools v0.47.0 // indirect google.golang.org/appengine v1.6.8 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect - google.golang.org/grpc v1.79.3 // indirect - google.golang.org/protobuf v1.36.10 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20260414002931-afd174a4e478 // indirect + google.golang.org/grpc v1.82.1 // indirect + google.golang.org/protobuf v1.36.11 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect honnef.co/go/tools v0.6.1 // indirect diff --git a/go.sum b/go.sum index 64336e8..580617d 100644 --- a/go.sum +++ b/go.sum @@ -42,8 +42,9 @@ github.com/cloudflare/circl v1.6.3/go.mod h1:2eXP6Qfat4O/Yhh8BznvKnJ+uzEoTQ6jVKJ github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg= github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dprotaso/go-yit v0.0.0-20191028211022-135eb7262960/go.mod h1:9HQzr9D/0PGwMEbC3d5AB7oi67+h4TsQqItC1GVYG58= github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 h1:PRxIJD8XjimM5aTknUK9w6DHLDox2r2M3DI4i2pnd3w= github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936/go.mod h1:ttYvX5qlB+mlV1okblJqcSMtR4c52UKxDiX9GRBS8+Q= @@ -57,8 +58,8 @@ github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7z github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/getkin/kin-openapi v0.131.0 h1:NO2UeHnFKRYhZ8wg6Nyh5Cq7dHk4suQQr72a4pMrDxE= -github.com/getkin/kin-openapi v0.131.0/go.mod h1:3OlG51PCYNsPByuiMB0t4fjnNlIDnaEDsjiKUV8nL58= +github.com/getkin/kin-openapi v0.135.0 h1:751SjYfbiwqukYuVjwYEIKNfrSwS5YpA7DZnKSwQgtg= +github.com/getkin/kin-openapi v0.135.0/go.mod h1:6dd5FJl6RdX4usBtFBaQhk9q62Yb2J0Mk5IhUO/QqFI= github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI= github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376/go.mod h1:an3vInlBmSxCcxctByoQdvwPiA7DTK7jaaFDBTtu0ic= github.com/go-git/go-billy/v5 v5.5.0 h1:yEY4yhzCDuMGSv83oGxiBotRzhwhNr8VZyphhiu+mTU= @@ -69,10 +70,12 @@ github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= -github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= -github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= -github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= +github.com/go-openapi/jsonpointer v0.22.4 h1:dZtK82WlNpVLDW2jlA1YCiVJFVqkED1MegOUy9kR5T4= +github.com/go-openapi/jsonpointer v0.22.4/go.mod h1:elX9+UgznpFhgBuaMQ7iu4lvvX1nvNsesQ3oxmYTw80= +github.com/go-openapi/swag/jsonname v0.25.4 h1:bZH0+MsS03MbnwBXYhuTttMOqk+5KcQ9869Vye1bNHI= +github.com/go-openapi/swag/jsonname v0.25.4/go.mod h1:GPVEk9CWVhNvWhZgrnvRA6utbAltopbKwDu8mXNUMag= +github.com/go-openapi/testify/v2 v2.0.2 h1:X999g3jeLcoY8qctY/c/Z8iBHTbwLz7R2WXd6Ub6wls= +github.com/go-openapi/testify/v2 v2.0.2/go.mod h1:HCPmvFFnheKK2BuwSA0TbbdxJ3I16pjwMkYkP4Ywn54= github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= github.com/go-test/deep v1.0.8 h1:TDsG77qcSprGbC6vTN8OuXp5g+J+b5Pcguhf7Zt61VM= github.com/go-test/deep v1.0.8/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= @@ -175,8 +178,8 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/mailru/easyjson v0.9.0 h1:PrnmzHw7262yW8sTBwxi1PdJA3Iw/EKBa8psRf7d9a4= -github.com/mailru/easyjson v0.9.0/go.mod h1:1+xMtQp2MRNVL/V1bOzuP3aP8VNwRW55fQUto+XFtTU= +github.com/mailru/easyjson v0.9.1 h1:LbtsOm5WAswyWbvTEOqhypdPeZzHavpZx96/n553mR8= +github.com/mailru/easyjson v0.9.1/go.mod h1:1+xMtQp2MRNVL/V1bOzuP3aP8VNwRW55fQUto+XFtTU= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE= @@ -202,14 +205,14 @@ github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwd github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= -github.com/oapi-codegen/oapi-codegen/v2 v2.4.1 h1:ykgG34472DWey7TSjd8vIfNykXgjOgYJZoQbKfEeY/Q= -github.com/oapi-codegen/oapi-codegen/v2 v2.4.1/go.mod h1:N5+lY1tiTDV3V1BeHtOxeWXHoPVeApvsvjJqegfoaz8= +github.com/oapi-codegen/oapi-codegen/v2 v2.7.1 h1:a7Ab7YlpqkVG5HKrTaeFstm32Z5QOnyjnbsCO0jiMYM= +github.com/oapi-codegen/oapi-codegen/v2 v2.7.1/go.mod h1:qzFy6iuobJw/hD1aRILee4G87/ShmhR0xYCwcUtZMCw= github.com/oapi-codegen/runtime v1.1.1 h1:EXLHh0DXIJnWhdRPN2w4MXAzFyE4CskzhNLUmtpMYro= github.com/oapi-codegen/runtime v1.1.1/go.mod h1:SK9X900oXmPWilYR5/WKPzt3Kqxn/uS/+lbpREv+eCg= -github.com/oasdiff/yaml v0.0.0-20250309154309-f31be36b4037 h1:G7ERwszslrBzRxj//JalHPu/3yz+De2J+4aLtSRlHiY= -github.com/oasdiff/yaml v0.0.0-20250309154309-f31be36b4037/go.mod h1:2bpvgLBZEtENV5scfDFEtB/5+1M4hkQhDQrccEJ/qGw= -github.com/oasdiff/yaml3 v0.0.0-20250309153720-d2182401db90 h1:bQx3WeLcUWy+RletIKwUIt4x3t8n2SxavmoclizMb8c= -github.com/oasdiff/yaml3 v0.0.0-20250309153720-d2182401db90/go.mod h1:y5+oSEHCPT/DGrS++Wc/479ERge0zTFxaF8PbGKcg2o= +github.com/oasdiff/yaml v0.0.9 h1:zQOvd2UKoozsSsAknnWoDJlSK4lC0mpmjfDsfqNwX48= +github.com/oasdiff/yaml v0.0.9/go.mod h1:8lvhgJG4xiKPj3HN5lDow4jZHPlx1i7dIwzkdAo6oAM= +github.com/oasdiff/yaml3 v0.0.9 h1:rWPrKccrdUm8J0F3sGuU+fuh9+1K/RdJlWF7O/9yw2g= +github.com/oasdiff/yaml3 v0.0.9/go.mod h1:y5+oSEHCPT/DGrS++Wc/479ERge0zTFxaF8PbGKcg2o= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= @@ -229,8 +232,9 @@ github.com/perimeterx/marshmallow v1.1.5 h1:a2LALqQ1BlHM8PZblsDdidgv1mWi1DgC2UmX github.com/perimeterx/marshmallow v1.1.5/go.mod h1:dsXbUu8CRzfYP5a87xpp0xq9S3u0Vchtcl8we9tYaXw= github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXqo= github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= @@ -244,8 +248,10 @@ github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME= github.com/skeema/knownhosts v1.2.2 h1:Iug2P4fLmDw9f41PB6thxUkNUkJzB5i+1/exaj40L3A= github.com/skeema/knownhosts v1.2.2/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo= -github.com/speakeasy-api/openapi-overlay v0.9.0 h1:Wrz6NO02cNlLzx1fB093lBlYxSI54VRhy1aSutx0PQg= -github.com/speakeasy-api/openapi-overlay v0.9.0/go.mod h1:f5FloQrHA7MsxYg9djzMD5h6dxrHjVVByWKh7an8TRc= +github.com/speakeasy-api/jsonpath v0.6.3 h1:c+QPwzAOdrWvzycuc9HFsIZcxKIaWcNpC+xhOW9rJxU= +github.com/speakeasy-api/jsonpath v0.6.3/go.mod h1:2cXloNuQ+RSXi5HTRaeBh7JEmjRXTiaKpFTdZiL7URI= +github.com/speakeasy-api/openapi v1.19.2 h1:md90tE71/M8jS3cuRlsuWP5Aed4xoG5PSRvXeZgCv/M= +github.com/speakeasy-api/openapi v1.19.2/go.mod h1:UfKa7FqE4jgexJZuj51MmdHAFGmDv0Zaw3+yOd81YKU= github.com/spf13/cast v1.9.2 h1:SsGfm7M8QOFtEzumm7UZrZdLLquNdzFYfIbEXntcFbE= github.com/spf13/cast v1.9.2/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo= github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad/go.mod h1:qLr4V1qq6nMqFKkMo8ZTx3f+BZEkzsRUY10Xsm2mwU0= @@ -254,8 +260,8 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= -github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= -github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= +github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU= github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= @@ -267,6 +273,8 @@ github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAh github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= github.com/vmware-labs/yaml-jsonpath v0.3.2 h1:/5QKeCBGdsInyDCyVNLbXyilb61MXGi9NP674f9Hobk= github.com/vmware-labs/yaml-jsonpath v0.3.2/go.mod h1:U6whw1z03QyqgWdgXxvVnQ90zN1BWz5V+51Ewf8k+rQ= +github.com/woodsbury/decimal128 v1.4.0 h1:xJATj7lLu4f2oObouMt2tgGiElE5gO6mSWUjQsBgUlc= +github.com/woodsbury/decimal128 v1.4.0/go.mod h1:BP46FUrVjVhdTbKT+XuQh2xfQaGki9LMIRJSFuh6THU= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= @@ -283,30 +291,32 @@ go.abhg.dev/goldmark/frontmatter v0.2.0 h1:P8kPG0YkL12+aYk2yU3xHv4tcXzeVnN+gU0tJ go.abhg.dev/goldmark/frontmatter v0.2.0/go.mod h1:XqrEkZuM57djk7zrlRUB02x8I5J0px76YjkOzhB4YlU= go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= -go.opentelemetry.io/otel v1.39.0 h1:8yPrr/S0ND9QEfTfdP9V+SiwT4E0G7Y5MO7p85nis48= -go.opentelemetry.io/otel v1.39.0/go.mod h1:kLlFTywNWrFyEdH0oj2xK0bFYZtHRYUdv1NklR/tgc8= -go.opentelemetry.io/otel/metric v1.39.0 h1:d1UzonvEZriVfpNKEVmHXbdf909uGTOQjA0HF0Ls5Q0= -go.opentelemetry.io/otel/metric v1.39.0/go.mod h1:jrZSWL33sD7bBxg1xjrqyDjnuzTUB0x1nBERXd7Ftcs= -go.opentelemetry.io/otel/sdk v1.39.0 h1:nMLYcjVsvdui1B/4FRkwjzoRVsMK8uL/cj0OyhKzt18= -go.opentelemetry.io/otel/sdk v1.39.0/go.mod h1:vDojkC4/jsTJsE+kh+LXYQlbL8CgrEcwmt1ENZszdJE= -go.opentelemetry.io/otel/sdk/metric v1.39.0 h1:cXMVVFVgsIf2YL6QkRF4Urbr/aMInf+2WKg+sEJTtB8= -go.opentelemetry.io/otel/sdk/metric v1.39.0/go.mod h1:xq9HEVH7qeX69/JnwEfp6fVq5wosJsY1mt4lLfYdVew= -go.opentelemetry.io/otel/trace v1.39.0 h1:2d2vfpEDmCJ5zVYz7ijaJdOF59xLomrvj7bjt6/qCJI= -go.opentelemetry.io/otel/trace v1.39.0/go.mod h1:88w4/PnZSazkGzz/w84VHpQafiU4EtqqlVdxWy+rNOA= +go.opentelemetry.io/otel v1.43.0 h1:mYIM03dnh5zfN7HautFE4ieIig9amkNANT+xcVxAj9I= +go.opentelemetry.io/otel v1.43.0/go.mod h1:JuG+u74mvjvcm8vj8pI5XiHy1zDeoCS2LB1spIq7Ay0= +go.opentelemetry.io/otel/metric v1.43.0 h1:d7638QeInOnuwOONPp4JAOGfbCEpYb+K6DVWvdxGzgM= +go.opentelemetry.io/otel/metric v1.43.0/go.mod h1:RDnPtIxvqlgO8GRW18W6Z/4P462ldprJtfxHxyKd2PY= +go.opentelemetry.io/otel/sdk v1.43.0 h1:pi5mE86i5rTeLXqoF/hhiBtUNcrAGHLKQdhg4h4V9Dg= +go.opentelemetry.io/otel/sdk v1.43.0/go.mod h1:P+IkVU3iWukmiit/Yf9AWvpyRDlUeBaRg6Y+C58QHzg= +go.opentelemetry.io/otel/sdk/metric v1.43.0 h1:S88dyqXjJkuBNLeMcVPRFXpRw2fuwdvfCGLEo89fDkw= +go.opentelemetry.io/otel/sdk/metric v1.43.0/go.mod h1:C/RJtwSEJ5hzTiUz5pXF1kILHStzb9zFlIEe85bhj6A= +go.opentelemetry.io/otel/trace v1.43.0 h1:BkNrHpup+4k4w+ZZ86CZoHHEkohws8AY+WTX09nk+3A= +go.opentelemetry.io/otel/trace v1.43.0/go.mod h1:/QJhyVBUUswCphDVxq+8mld+AvhXZLhe+8WVFxiFff0= +go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= +go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.52.0 h1:RMs7fP2rXdep0CftQlK8Uf+kibLm7qkCcradZWYz988= -golang.org/x/crypto v0.52.0/go.mod h1:1QgfPxDqh0T2M/elOJtp9RvuR95kVjir0e6/BvEmGbc= +golang.org/x/crypto v0.54.0 h1:YLIA59K4fiNzHzjnZt2tUJQjQtUWfWbeHBqKtk3eScw= +golang.org/x/crypto v0.54.0/go.mod h1:KWL8ny2AZdGR2cWmzeHrp2azQPGogOv+HeQaVEXC2dk= golang.org/x/exp v0.0.0-20251209150349-8475f28825e9 h1:MDfG8Cvcqlt9XXrmEiD4epKn7VJHZO84hejP9Jmp0MM= golang.org/x/exp v0.0.0-20251209150349-8475f28825e9/go.mod h1:EPRbTFwzwjXj9NpYyyrvenVh9Y+GFeEvMNh7Xuz7xgU= golang.org/x/exp/typeparams v0.0.0-20231108232855-2478ac86f678 h1:1P7xPZEwZMoBoz0Yze5Nx2/4pxj6nw9ZqHWXqP0iRgQ= golang.org/x/exp/typeparams v0.0.0-20231108232855-2478ac86f678/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.35.0 h1:Ww1D637e6Pg+Zb2KrWfHQUnH2dQRLBQyAtpr/haaJeM= -golang.org/x/mod v0.35.0/go.mod h1:+GwiRhIInF8wPm+4AoT6L0FA1QWAad3OMdTRx4tFYlU= +golang.org/x/mod v0.37.0 h1:vF1DjpVEshcIqoEaauuHebaLk1O1forxjxBaVn884JQ= +golang.org/x/mod v0.37.0/go.mod h1:m8S8VeM9r4dzDwjrKO0a1sZP3YjeMamRRlD+fmR2Q/0= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -316,15 +326,15 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.55.0 h1:bcvxaJn3e1U6InsFWt1JUq1aSjnRxLzT2rtD2KfkDF8= -golang.org/x/net v0.55.0/go.mod h1:L5U2KuzuOe1lY7Z+aWVIKK6qEeJXnXV9yzGA+WCHJww= +golang.org/x/net v0.56.0 h1:Rw8j/hFzGvJUZwNBXnAtf5sVDVt+65SK2C7IxCxZt5o= +golang.org/x/net v0.56.0/go.mod h1:D3Ku6r+V6JROoZK144D2XfMHFcMq/0zSfLelVTCFKec= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4= -golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= +golang.org/x/sync v0.22.0 h1:SZjpbeLmrCk4xhRSZFNZW5gFUeCeFgjekvI/+gfScek= +golang.org/x/sync v0.22.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -347,43 +357,43 @@ golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.45.0 h1:dO4czNzziLiiXplLQgBCEpCvXQ3dnkn0SdaZSYdQ+FY= -golang.org/x/sys v0.45.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= +golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs= +golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.43.0 h1:S4RLU2sB31O/NCl+zFN9Aru9A/Cq2aqKpTZJ6B+DwT4= -golang.org/x/term v0.43.0/go.mod h1:lrhlHNdQJHO+1qVYiHfFKVuVioJIheAc3fBSMFYEIsk= +golang.org/x/term v0.45.0 h1:NwWyBmoJCbfTHpxrWoZ9C6/VxOf7ic219I8xZZFdrf0= +golang.org/x/term v0.45.0/go.mod h1:9aqxs0blBcrm/n0L9QW0aRVD+ktan8ssZromtqJC43w= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= -golang.org/x/text v0.37.0 h1:Cqjiwd9eSg8e0QAkyCaQTNHFIIzWtidPahFWR83rTrc= -golang.org/x/text v0.37.0/go.mod h1:a5sjxXGs9hsn/AJVwuElvCAo9v8QYLzvavO5z2PiM38= +golang.org/x/text v0.40.0 h1:Ub2Z6/xjgF1WrYQz2nuITOEegKFtiIy+rieRJ5lHZKs= +golang.org/x/text v0.40.0/go.mod h1:hpnzDAfGV753zIKo+wk3u1bVKCGPbrnF7+7LBF/UHVY= golang.org/x/time v0.14.0 h1:MRx4UaLrDotUKUdCIqzPC48t1Y9hANFKIRpNx+Te8PI= golang.org/x/time v0.14.0/go.mod h1:eL/Oa2bBBK0TkX57Fyni+NgnyQQN4LitPmob2Hjnqw4= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.44.0 h1:UP4ajHPIcuMjT1GqzDWRlalUEoY+uzoZKnhOjbIPD2c= -golang.org/x/tools v0.44.0/go.mod h1:KA0AfVErSdxRZIsOVipbv3rQhVXTnlU6UhKxHd1seDI= +golang.org/x/tools v0.47.0 h1:7Kn5x/d1svx/PzryTsqeoZN4TZwqeH5pGWjefhLi/1Q= +golang.org/x/tools v0.47.0/go.mod h1:dFHnyTvFWY212G+h7ZY4Vsp/K3U4/7W9TyVaAul8uCA= golang.org/x/tools/go/expect v0.1.1-deprecated h1:jpBZDwmgPhXsKZC6WhL20P4b/wmnpsEAGHaNy0n/rJM= golang.org/x/tools/go/expect v0.1.1-deprecated/go.mod h1:eihoPOH+FgIqa3FpoTwguz/bVUSGBlGQU67vpBeOrBY= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk= -gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E= +gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4= +gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= -google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 h1:gRkg/vSppuSQoDjxyiGfN4Upv/h/DQmIR10ZU8dh4Ww= -google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217/go.mod h1:7i2o+ce6H/6BluujYR+kqX3GKH+dChPTQU19wjRPiGk= -google.golang.org/grpc v1.79.3 h1:sybAEdRIEtvcD68Gx7dmnwjZKlyfuc61Dyo9pGXXkKE= -google.golang.org/grpc v1.79.3/go.mod h1:KmT0Kjez+0dde/v2j9vzwoAScgEPx/Bw1CYChhHLrHQ= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260414002931-afd174a4e478 h1:RmoJA1ujG+/lRGNfUnOMfhCy5EipVMyvUE+KNbPbTlw= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260414002931-afd174a4e478/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8= +google.golang.org/grpc v1.82.1 h1:NnAxzGRA0677vCa4BUkOAnO5+FfQqVl9iUXeD0IqcGE= +google.golang.org/grpc v1.82.1/go.mod h1:yzTZ1TB1Z3SG+LIYaI+WiE8D5+PZ3ArnrSp8zF3+/ZA= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= @@ -392,8 +402,8 @@ google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzi google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.36.10 h1:AYd7cD/uASjIL6Q9LiTjz8JLcrh/88q5UObnmY3aOOE= -google.golang.org/protobuf v1.36.10/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= +google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE= +google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= From 70a194b22a4cb1900c90bb29cdb91af079807e3a Mon Sep 17 00:00:00 2001 From: Jake Scaltreto Date: Wed, 22 Jul 2026 18:23:08 -0400 Subject: [PATCH 3/3] fix(deps): bump oapi-codegen/runtime and regenerate API clients oapi-codegen/runtime v1.1.1 is missing StyleParamWithOptions and StyleParamOptions introduced in newer codegen output. Bump to v1.6.0 to match the v2.7.1 codegen upgrade. Regenerated api/quicknode/quicknode.gen.go and api/streams/streams.gen.go via make generate. Changes are additive: typed context keys for auth scopes and Valid() methods on all enum types. --- .licenseignore | 2 + api/quicknode/quicknode.gen.go | 2054 ++++++++++++++++++++++---------- api/streams/streams.gen.go | 928 ++++++++++++++- go.mod | 2 +- go.sum | 10 +- 5 files changed, 2333 insertions(+), 663 deletions(-) diff --git a/.licenseignore b/.licenseignore index be9db78..a94f8c2 100644 --- a/.licenseignore +++ b/.licenseignore @@ -16,3 +16,5 @@ pkg:golang/golang.org/x/time pkg:golang/golang.org/x/tools # License: BSD-3-Clause AND MIT pkg:golang/honnef.co/go/tools +# License: Apache-2.0 AND MIT +pkg:golang/go.yaml.in/yaml/v3 diff --git a/api/quicknode/quicknode.gen.go b/api/quicknode/quicknode.gen.go index 7ff41e7..37e26cd 100644 --- a/api/quicknode/quicknode.gen.go +++ b/api/quicknode/quicknode.gen.go @@ -1,11 +1,11 @@ // Package quicknode provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT. +// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.1 DO NOT EDIT. package quicknode import ( "bytes" - "compress/gzip" + "compress/flate" "context" "encoding/base64" "encoding/json" @@ -21,9 +21,9 @@ import ( ) const ( - Api_keyScopes = "api_key.Scopes" - BearerAuthScopes = "bearerAuth.Scopes" - Bearer_authScopes = "bearer_auth.Scopes" + Api_keyScopes apiKeyContextKey = "api_key.Scopes" + BearerAuthScopes bearerAuthContextKey = "bearerAuth.Scopes" + Bearer_authScopes bearerAuthContextKey = "bearer_auth.Scopes" ) // Defines values for EndpointStatus. @@ -32,6 +32,18 @@ const ( EndpointStatusPaused EndpointStatus = "paused" ) +// Valid indicates whether the value is a known member of the EndpointStatus enum. +func (e EndpointStatus) Valid() bool { + switch e { + case EndpointStatusActive: + return true + case EndpointStatusPaused: + return true + default: + return false + } +} + // Defines values for ListEndpointsParamsSortBy. const ( ListEndpointsParamsSortByCreatedAt ListEndpointsParamsSortBy = "created_at" @@ -43,24 +55,82 @@ const ( ListEndpointsParamsSortByUsage ListEndpointsParamsSortBy = "usage" ) +// Valid indicates whether the value is a known member of the ListEndpointsParamsSortBy enum. +func (e ListEndpointsParamsSortBy) Valid() bool { + switch e { + case ListEndpointsParamsSortByCreatedAt: + return true + case ListEndpointsParamsSortByLabel: + return true + case ListEndpointsParamsSortByName: + return true + case ListEndpointsParamsSortByNetwork: + return true + case ListEndpointsParamsSortByStatus: + return true + case ListEndpointsParamsSortByTags: + return true + case ListEndpointsParamsSortByUsage: + return true + default: + return false + } +} + // Defines values for ListEndpointsParamsSortDirection. const ( Asc ListEndpointsParamsSortDirection = "asc" Desc ListEndpointsParamsSortDirection = "desc" ) +// Valid indicates whether the value is a known member of the ListEndpointsParamsSortDirection enum. +func (e ListEndpointsParamsSortDirection) Valid() bool { + switch e { + case Asc: + return true + case Desc: + return true + default: + return false + } +} + // Defines values for ListEndpointsParamsStatuses. const ( ListEndpointsParamsStatusesActive ListEndpointsParamsStatuses = "active" ListEndpointsParamsStatusesPaused ListEndpointsParamsStatuses = "paused" ) +// Valid indicates whether the value is a known member of the ListEndpointsParamsStatuses enum. +func (e ListEndpointsParamsStatuses) Valid() bool { + switch e { + case ListEndpointsParamsStatusesActive: + return true + case ListEndpointsParamsStatusesPaused: + return true + default: + return false + } +} + // Defines values for BulkUpdateEndpointStatusJSONBodyStatus. const ( BulkUpdateEndpointStatusJSONBodyStatusActive BulkUpdateEndpointStatusJSONBodyStatus = "active" BulkUpdateEndpointStatusJSONBodyStatusPaused BulkUpdateEndpointStatusJSONBodyStatus = "paused" ) +// Valid indicates whether the value is a known member of the BulkUpdateEndpointStatusJSONBodyStatus enum. +func (e BulkUpdateEndpointStatusJSONBodyStatus) Valid() bool { + switch e { + case BulkUpdateEndpointStatusJSONBodyStatusActive: + return true + case BulkUpdateEndpointStatusJSONBodyStatusPaused: + return true + default: + return false + } +} + // Defines values for CreateMethodRateLimitJSONBodyInterval. const ( CreateMethodRateLimitJSONBodyIntervalDay CreateMethodRateLimitJSONBodyInterval = "day" @@ -68,12 +138,38 @@ const ( CreateMethodRateLimitJSONBodyIntervalSecond CreateMethodRateLimitJSONBodyInterval = "second" ) +// Valid indicates whether the value is a known member of the CreateMethodRateLimitJSONBodyInterval enum. +func (e CreateMethodRateLimitJSONBodyInterval) Valid() bool { + switch e { + case CreateMethodRateLimitJSONBodyIntervalDay: + return true + case CreateMethodRateLimitJSONBodyIntervalMinute: + return true + case CreateMethodRateLimitJSONBodyIntervalSecond: + return true + default: + return false + } +} + // Defines values for UpdateMethodRateLimitJSONBodyStatus. const ( UpdateMethodRateLimitJSONBodyStatusDisabled UpdateMethodRateLimitJSONBodyStatus = "disabled" UpdateMethodRateLimitJSONBodyStatusEnabled UpdateMethodRateLimitJSONBodyStatus = "enabled" ) +// Valid indicates whether the value is a known member of the UpdateMethodRateLimitJSONBodyStatus enum. +func (e UpdateMethodRateLimitJSONBodyStatus) Valid() bool { + switch e { + case UpdateMethodRateLimitJSONBodyStatusDisabled: + return true + case UpdateMethodRateLimitJSONBodyStatusEnabled: + return true + default: + return false + } +} + // Defines values for FetchEndpointMetricParamsPeriod. const ( FetchEndpointMetricParamsPeriodDay FetchEndpointMetricParamsPeriod = "day" @@ -82,6 +178,22 @@ const ( FetchEndpointMetricParamsPeriodWeek FetchEndpointMetricParamsPeriod = "week" ) +// Valid indicates whether the value is a known member of the FetchEndpointMetricParamsPeriod enum. +func (e FetchEndpointMetricParamsPeriod) Valid() bool { + switch e { + case FetchEndpointMetricParamsPeriodDay: + return true + case FetchEndpointMetricParamsPeriodHour: + return true + case FetchEndpointMetricParamsPeriodMonth: + return true + case FetchEndpointMetricParamsPeriodWeek: + return true + default: + return false + } +} + // Defines values for FetchEndpointMetricParamsMetric. const ( FetchEndpointMetricParamsMetricCreditsOverTime FetchEndpointMetricParamsMetric = "credits_over_time" @@ -96,66 +208,214 @@ const ( FetchEndpointMetricParamsMetricTotalRequestErrorsOverTime FetchEndpointMetricParamsMetric = "total_request_errors_over_time" ) +// Valid indicates whether the value is a known member of the FetchEndpointMetricParamsMetric enum. +func (e FetchEndpointMetricParamsMetric) Valid() bool { + switch e { + case FetchEndpointMetricParamsMetricCreditsOverTime: + return true + case FetchEndpointMetricParamsMetricMeteredEndpointCreditsOverTime: + return true + case FetchEndpointMetricParamsMetricMeteredEndpointDataOverTime: + return true + case FetchEndpointMetricParamsMetricMethodCallsOverTime: + return true + case FetchEndpointMetricParamsMetricMethodResponseTimeMax: + return true + case FetchEndpointMetricParamsMetricRequestErrorsOverTime: + return true + case FetchEndpointMetricParamsMetricResponseStatusBreakdown: + return true + case FetchEndpointMetricParamsMetricResponseStatusOverTime: + return true + case FetchEndpointMetricParamsMetricResponseTimeOverTime: + return true + case FetchEndpointMetricParamsMetricTotalRequestErrorsOverTime: + return true + default: + return false + } +} + // Defines values for UpdateSecurityOptionsJSONBodyOptionsCors. const ( UpdateSecurityOptionsJSONBodyOptionsCorsDisabled UpdateSecurityOptionsJSONBodyOptionsCors = "disabled" UpdateSecurityOptionsJSONBodyOptionsCorsEnabled UpdateSecurityOptionsJSONBodyOptionsCors = "enabled" ) +// Valid indicates whether the value is a known member of the UpdateSecurityOptionsJSONBodyOptionsCors enum. +func (e UpdateSecurityOptionsJSONBodyOptionsCors) Valid() bool { + switch e { + case UpdateSecurityOptionsJSONBodyOptionsCorsDisabled: + return true + case UpdateSecurityOptionsJSONBodyOptionsCorsEnabled: + return true + default: + return false + } +} + // Defines values for UpdateSecurityOptionsJSONBodyOptionsDomainMasks. const ( UpdateSecurityOptionsJSONBodyOptionsDomainMasksDisabled UpdateSecurityOptionsJSONBodyOptionsDomainMasks = "disabled" UpdateSecurityOptionsJSONBodyOptionsDomainMasksEnabled UpdateSecurityOptionsJSONBodyOptionsDomainMasks = "enabled" ) +// Valid indicates whether the value is a known member of the UpdateSecurityOptionsJSONBodyOptionsDomainMasks enum. +func (e UpdateSecurityOptionsJSONBodyOptionsDomainMasks) Valid() bool { + switch e { + case UpdateSecurityOptionsJSONBodyOptionsDomainMasksDisabled: + return true + case UpdateSecurityOptionsJSONBodyOptionsDomainMasksEnabled: + return true + default: + return false + } +} + // Defines values for UpdateSecurityOptionsJSONBodyOptionsHsts. const ( UpdateSecurityOptionsJSONBodyOptionsHstsDisabled UpdateSecurityOptionsJSONBodyOptionsHsts = "disabled" UpdateSecurityOptionsJSONBodyOptionsHstsEnabled UpdateSecurityOptionsJSONBodyOptionsHsts = "enabled" ) +// Valid indicates whether the value is a known member of the UpdateSecurityOptionsJSONBodyOptionsHsts enum. +func (e UpdateSecurityOptionsJSONBodyOptionsHsts) Valid() bool { + switch e { + case UpdateSecurityOptionsJSONBodyOptionsHstsDisabled: + return true + case UpdateSecurityOptionsJSONBodyOptionsHstsEnabled: + return true + default: + return false + } +} + // Defines values for UpdateSecurityOptionsJSONBodyOptionsIpCustomHeader. const ( UpdateSecurityOptionsJSONBodyOptionsIpCustomHeaderDisabled UpdateSecurityOptionsJSONBodyOptionsIpCustomHeader = "disabled" UpdateSecurityOptionsJSONBodyOptionsIpCustomHeaderEnabled UpdateSecurityOptionsJSONBodyOptionsIpCustomHeader = "enabled" ) +// Valid indicates whether the value is a known member of the UpdateSecurityOptionsJSONBodyOptionsIpCustomHeader enum. +func (e UpdateSecurityOptionsJSONBodyOptionsIpCustomHeader) Valid() bool { + switch e { + case UpdateSecurityOptionsJSONBodyOptionsIpCustomHeaderDisabled: + return true + case UpdateSecurityOptionsJSONBodyOptionsIpCustomHeaderEnabled: + return true + default: + return false + } +} + // Defines values for UpdateSecurityOptionsJSONBodyOptionsIps. const ( UpdateSecurityOptionsJSONBodyOptionsIpsDisabled UpdateSecurityOptionsJSONBodyOptionsIps = "disabled" UpdateSecurityOptionsJSONBodyOptionsIpsEnabled UpdateSecurityOptionsJSONBodyOptionsIps = "enabled" ) +// Valid indicates whether the value is a known member of the UpdateSecurityOptionsJSONBodyOptionsIps enum. +func (e UpdateSecurityOptionsJSONBodyOptionsIps) Valid() bool { + switch e { + case UpdateSecurityOptionsJSONBodyOptionsIpsDisabled: + return true + case UpdateSecurityOptionsJSONBodyOptionsIpsEnabled: + return true + default: + return false + } +} + // Defines values for UpdateSecurityOptionsJSONBodyOptionsJwts. const ( UpdateSecurityOptionsJSONBodyOptionsJwtsDisabled UpdateSecurityOptionsJSONBodyOptionsJwts = "disabled" UpdateSecurityOptionsJSONBodyOptionsJwtsEnabled UpdateSecurityOptionsJSONBodyOptionsJwts = "enabled" ) +// Valid indicates whether the value is a known member of the UpdateSecurityOptionsJSONBodyOptionsJwts enum. +func (e UpdateSecurityOptionsJSONBodyOptionsJwts) Valid() bool { + switch e { + case UpdateSecurityOptionsJSONBodyOptionsJwtsDisabled: + return true + case UpdateSecurityOptionsJSONBodyOptionsJwtsEnabled: + return true + default: + return false + } +} + // Defines values for UpdateSecurityOptionsJSONBodyOptionsReferrers. const ( UpdateSecurityOptionsJSONBodyOptionsReferrersDisabled UpdateSecurityOptionsJSONBodyOptionsReferrers = "disabled" UpdateSecurityOptionsJSONBodyOptionsReferrersEnabled UpdateSecurityOptionsJSONBodyOptionsReferrers = "enabled" ) +// Valid indicates whether the value is a known member of the UpdateSecurityOptionsJSONBodyOptionsReferrers enum. +func (e UpdateSecurityOptionsJSONBodyOptionsReferrers) Valid() bool { + switch e { + case UpdateSecurityOptionsJSONBodyOptionsReferrersDisabled: + return true + case UpdateSecurityOptionsJSONBodyOptionsReferrersEnabled: + return true + default: + return false + } +} + // Defines values for UpdateSecurityOptionsJSONBodyOptionsRequestFilters. const ( UpdateSecurityOptionsJSONBodyOptionsRequestFiltersDisabled UpdateSecurityOptionsJSONBodyOptionsRequestFilters = "disabled" UpdateSecurityOptionsJSONBodyOptionsRequestFiltersEnabled UpdateSecurityOptionsJSONBodyOptionsRequestFilters = "enabled" ) +// Valid indicates whether the value is a known member of the UpdateSecurityOptionsJSONBodyOptionsRequestFilters enum. +func (e UpdateSecurityOptionsJSONBodyOptionsRequestFilters) Valid() bool { + switch e { + case UpdateSecurityOptionsJSONBodyOptionsRequestFiltersDisabled: + return true + case UpdateSecurityOptionsJSONBodyOptionsRequestFiltersEnabled: + return true + default: + return false + } +} + // Defines values for UpdateSecurityOptionsJSONBodyOptionsTokens. const ( UpdateSecurityOptionsJSONBodyOptionsTokensDisabled UpdateSecurityOptionsJSONBodyOptionsTokens = "disabled" UpdateSecurityOptionsJSONBodyOptionsTokensEnabled UpdateSecurityOptionsJSONBodyOptionsTokens = "enabled" ) +// Valid indicates whether the value is a known member of the UpdateSecurityOptionsJSONBodyOptionsTokens enum. +func (e UpdateSecurityOptionsJSONBodyOptionsTokens) Valid() bool { + switch e { + case UpdateSecurityOptionsJSONBodyOptionsTokensDisabled: + return true + case UpdateSecurityOptionsJSONBodyOptionsTokensEnabled: + return true + default: + return false + } +} + // Defines values for UpdateEndpointStatusJSONBodyStatus. const ( UpdateEndpointStatusJSONBodyStatusActive UpdateEndpointStatusJSONBodyStatus = "active" UpdateEndpointStatusJSONBodyStatusPaused UpdateEndpointStatusJSONBodyStatus = "paused" ) +// Valid indicates whether the value is a known member of the UpdateEndpointStatusJSONBodyStatus enum. +func (e UpdateEndpointStatusJSONBodyStatus) Valid() bool { + switch e { + case UpdateEndpointStatusJSONBodyStatusActive: + return true + case UpdateEndpointStatusJSONBodyStatusPaused: + return true + default: + return false + } +} + // Defines values for FetchAccountMetricsParamsPeriod. const ( Day FetchAccountMetricsParamsPeriod = "day" @@ -164,6 +424,22 @@ const ( Week FetchAccountMetricsParamsPeriod = "week" ) +// Valid indicates whether the value is a known member of the FetchAccountMetricsParamsPeriod enum. +func (e FetchAccountMetricsParamsPeriod) Valid() bool { + switch e { + case Day: + return true + case Hour: + return true + case Month: + return true + case Week: + return true + default: + return false + } +} + // Defines values for FetchAccountMetricsParamsMetric. const ( FetchAccountMetricsParamsMetricCreditsOverTime FetchAccountMetricsParamsMetric = "credits_over_time" @@ -172,6 +448,22 @@ const ( FetchAccountMetricsParamsMetricMethodCallsOverTime FetchAccountMetricsParamsMetric = "method_calls_over_time" ) +// Valid indicates whether the value is a known member of the FetchAccountMetricsParamsMetric enum. +func (e FetchAccountMetricsParamsMetric) Valid() bool { + switch e { + case FetchAccountMetricsParamsMetricCreditsOverTime: + return true + case FetchAccountMetricsParamsMetricMeteredEndpointCreditsOverTime: + return true + case FetchAccountMetricsParamsMetricMeteredEndpointDataOverTime: + return true + case FetchAccountMetricsParamsMetricMethodCallsOverTime: + return true + default: + return false + } +} + // Defines values for InviteTeamMemberJSONBodyRole. const ( Admin InviteTeamMemberJSONBodyRole = "admin" @@ -179,6 +471,20 @@ const ( Viewer InviteTeamMemberJSONBodyRole = "viewer" ) +// Valid indicates whether the value is a known member of the InviteTeamMemberJSONBodyRole enum. +func (e InviteTeamMemberJSONBodyRole) Valid() bool { + switch e { + case Admin: + return true + case Billing: + return true + case Viewer: + return true + default: + return false + } +} + // Chain defines model for chain. type Chain struct { IsSelectChain *bool `json:"is_select_chain,omitempty"` @@ -201,7 +507,7 @@ type Endpoint struct { IsDedicated bool `json:"is_dedicated"` IsFlatRate bool `json:"is_flat_rate"` IsMultichain bool `json:"is_multichain"` - Label *string `json:"label"` + Label *string `json:"label,omitempty"` // Name endpoint subdomain Name string `json:"name"` @@ -213,7 +519,7 @@ type Endpoint struct { Label *string `json:"label,omitempty"` TagId *int `json:"tag_id,omitempty"` } `json:"tags,omitempty"` - WssUrl *string `json:"wss_url"` + WssUrl *string `json:"wss_url,omitempty"` } // EndpointStatus defines model for Endpoint.Status. @@ -247,11 +553,11 @@ type EndpointMetric struct { // EndpointRateLimits defines model for endpoint_rate_limits. type EndpointRateLimits struct { - Account *int `json:"account"` - RateLimitByIp *bool `json:"rate_limit_by_ip"` - Rpd *int `json:"rpd"` - Rpm *int `json:"rpm"` - Rps *int `json:"rps"` + Account *int `json:"account,omitempty"` + RateLimitByIp *bool `json:"rate_limit_by_ip,omitempty"` + Rpd *int `json:"rpd,omitempty"` + Rpm *int `json:"rpm,omitempty"` + Rps *int `json:"rps,omitempty"` } // EndpointReferrer defines model for endpoint_referrer. @@ -273,15 +579,15 @@ type EndpointSecurity struct { Ips *[]EndpointIp `json:"ips,omitempty"` Jwts *[]EndpointJwt `json:"jwts,omitempty"` Options *struct { - DomainMasks *bool `json:"domainMasks"` + DomainMasks *bool `json:"domainMasks,omitempty"` IpCustomHeader *struct { - Value *string `json:"value"` + Value *string `json:"value,omitempty"` } `json:"ipCustomHeader,omitempty"` - Ips *bool `json:"ips"` - Jwts *bool `json:"jwts"` - Referrers *bool `json:"referrers"` - RequestFilters *bool `json:"requestFilters"` - Tokens *bool `json:"tokens"` + Ips *bool `json:"ips,omitempty"` + Jwts *bool `json:"jwts,omitempty"` + Referrers *bool `json:"referrers,omitempty"` + RequestFilters *bool `json:"requestFilters,omitempty"` + Tokens *bool `json:"tokens,omitempty"` } `json:"options,omitempty"` Referrers *[]EndpointReferrer `json:"referrers,omitempty"` RequestFilters *[]EndpointRequestFilter `json:"request_filters,omitempty"` @@ -310,7 +616,7 @@ type EndpointUrls struct { type EndpointUsage struct { Chain *string `json:"chain,omitempty"` CreditsUsed *int `json:"credits_used,omitempty"` - Label *string `json:"label"` + Label *string `json:"label,omitempty"` MethodsBreakdown *[]MethodUsage `json:"methods_breakdown,omitempty"` Name *string `json:"name,omitempty"` Network *string `json:"network,omitempty"` @@ -337,7 +643,7 @@ type Invoice struct { // MethodUsage defines model for method_usage. type MethodUsage struct { - Archive *bool `json:"archive"` + Archive *bool `json:"archive,omitempty"` Chain *string `json:"chain,omitempty"` CreditsUsed *int `json:"credits_used,omitempty"` MethodName *string `json:"method_name,omitempty"` @@ -346,7 +652,7 @@ type MethodUsage struct { // Network defines model for network. type Network struct { - ChainId *int `json:"chain_id"` + ChainId *int `json:"chain_id,omitempty"` Name *string `json:"name,omitempty"` Slug *string `json:"slug,omitempty"` } @@ -354,10 +660,10 @@ type Network struct { // Payment defines model for payment. type Payment struct { Amount *string `json:"amount,omitempty"` - CardLast4 *string `json:"card_last_4"` + CardLast4 *string `json:"card_last_4,omitempty"` CreatedAt *string `json:"created_at,omitempty"` Currency *string `json:"currency,omitempty"` - MarketplaceAmount *int `json:"marketplace_amount"` + MarketplaceAmount *int `json:"marketplace_amount,omitempty"` Status *string `json:"status,omitempty"` } @@ -368,7 +674,7 @@ type SingleEndpoint struct { HttpUrl string `json:"http_url"` Id string `json:"id"` IsMultichain bool `json:"is_multichain"` - Label *string `json:"label"` + Label *string `json:"label,omitempty"` // Network network slug Network string `json:"network"` @@ -379,9 +685,15 @@ type SingleEndpoint struct { Label *string `json:"label,omitempty"` TagId *int `json:"tag_id,omitempty"` } `json:"tags,omitempty"` - WssUrl *string `json:"wss_url"` + WssUrl *string `json:"wss_url,omitempty"` } +// apiKeyContextKey is the context key for api_key security scheme +type apiKeyContextKey string + +// bearerAuthContextKey is the context key for bearer_auth security scheme +type bearerAuthContextKey string + // ListEndpointsParams defines parameters for ListEndpoints. type ListEndpointsParams struct { Limit *int `form:"limit,omitempty" json:"limit,omitempty"` @@ -2186,7 +2498,7 @@ func NewInvoicesRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -2213,7 +2525,7 @@ func NewPaymentsRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -2240,7 +2552,7 @@ func NewChainsRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -2268,19 +2580,21 @@ func NewListEndpointsRequest(server string, params *ListEndpointsParams) (*http. } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -2288,15 +2602,11 @@ func NewListEndpointsRequest(server string, params *ListEndpointsParams) (*http. if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -2304,15 +2614,11 @@ func NewListEndpointsRequest(server string, params *ListEndpointsParams) (*http. if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -2320,15 +2626,11 @@ func NewListEndpointsRequest(server string, params *ListEndpointsParams) (*http. if params.SortBy != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, *params.SortBy); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "sort_by", *params.SortBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -2336,15 +2638,11 @@ func NewListEndpointsRequest(server string, params *ListEndpointsParams) (*http. if params.SortDirection != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_direction", runtime.ParamLocationQuery, *params.SortDirection); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "sort_direction", *params.SortDirection, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -2352,15 +2650,11 @@ func NewListEndpointsRequest(server string, params *ListEndpointsParams) (*http. if params.Networks != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "networks", runtime.ParamLocationQuery, *params.Networks); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "networks", *params.Networks, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -2368,15 +2662,11 @@ func NewListEndpointsRequest(server string, params *ListEndpointsParams) (*http. if params.Statuses != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "statuses", *params.Statuses, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -2384,15 +2674,11 @@ func NewListEndpointsRequest(server string, params *ListEndpointsParams) (*http. if params.Labels != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "labels", runtime.ParamLocationQuery, *params.Labels); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "labels", *params.Labels, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -2400,15 +2686,11 @@ func NewListEndpointsRequest(server string, params *ListEndpointsParams) (*http. if params.Dedicated != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "dedicated", runtime.ParamLocationQuery, *params.Dedicated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "dedicated", *params.Dedicated, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -2416,15 +2698,11 @@ func NewListEndpointsRequest(server string, params *ListEndpointsParams) (*http. if params.IsFlatRate != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "is_flat_rate", runtime.ParamLocationQuery, *params.IsFlatRate); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "is_flat_rate", *params.IsFlatRate, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -2432,15 +2710,11 @@ func NewListEndpointsRequest(server string, params *ListEndpointsParams) (*http. if params.TagIds != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag_ids", runtime.ParamLocationQuery, *params.TagIds); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tag_ids", *params.TagIds, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -2448,24 +2722,23 @@ func NewListEndpointsRequest(server string, params *ListEndpointsParams) (*http. if params.TagLabels != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tag_labels", runtime.ParamLocationQuery, *params.TagLabels); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tag_labels", *params.TagLabels, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -2503,7 +2776,7 @@ func NewCreateEndpointRequestWithBody(server string, contentType string, body io return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -2543,7 +2816,7 @@ func NewBulkUpdateEndpointStatusRequestWithBody(server string, contentType strin return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -2583,7 +2856,7 @@ func NewBulkRemoveTagRequestWithBody(server string, contentType string, body io. return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), body) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body) if err != nil { return nil, err } @@ -2623,7 +2896,7 @@ func NewBulkAddTagRequestWithBody(server string, contentType string, body io.Rea return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -2652,7 +2925,7 @@ func NewListTagsRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -2666,7 +2939,7 @@ func NewDeleteAccountTagRequest(server string, id int) (*http.Request, error) { var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: ""}) if err != nil { return nil, err } @@ -2686,7 +2959,7 @@ func NewDeleteAccountTagRequest(server string, id int) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -2711,7 +2984,7 @@ func NewRenameTagRequestWithBody(server string, id int, contentType string, body var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: ""}) if err != nil { return nil, err } @@ -2731,7 +3004,7 @@ func NewRenameTagRequestWithBody(server string, id int, contentType string, body return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -2747,7 +3020,7 @@ func NewArchiveEndpointRequest(server string, id string) (*http.Request, error) var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -2767,7 +3040,7 @@ func NewArchiveEndpointRequest(server string, id string) (*http.Request, error) return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -2781,7 +3054,7 @@ func NewShowEndpointRequest(server string, id string) (*http.Request, error) { var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -2801,7 +3074,7 @@ func NewShowEndpointRequest(server string, id string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -2826,7 +3099,7 @@ func NewUpdateEndpointRequestWithBody(server string, id string, contentType stri var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -2846,7 +3119,7 @@ func NewUpdateEndpointRequestWithBody(server string, id string, contentType stri return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -2862,7 +3135,7 @@ func NewDisableMultichainRequest(server string, id string) (*http.Request, error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -2882,7 +3155,7 @@ func NewDisableMultichainRequest(server string, id string) (*http.Request, error return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -2896,7 +3169,7 @@ func NewEnableMultichainRequest(server string, id string) (*http.Request, error) var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -2916,7 +3189,7 @@ func NewEnableMultichainRequest(server string, id string) (*http.Request, error) return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -2930,7 +3203,7 @@ func NewDeleteIpCustomHeaderRequest(server string, id string) (*http.Request, er var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -2950,7 +3223,7 @@ func NewDeleteIpCustomHeaderRequest(server string, id string) (*http.Request, er return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -2975,7 +3248,7 @@ func NewCreateOrUpdateIpCustomHeaderRequestWithBody(server string, id string, co var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -2995,7 +3268,7 @@ func NewCreateOrUpdateIpCustomHeaderRequestWithBody(server string, id string, co return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -3011,7 +3284,7 @@ func NewGetLogDetailsRequest(server string, id string, params *GetLogDetailsPara var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3032,24 +3305,29 @@ func NewGetLogDetailsRequest(server string, id string, params *GetLogDetailsPara } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request_id", runtime.ParamLocationQuery, params.RequestId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "request_id", params.RequestId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -3063,7 +3341,7 @@ func NewGetEndpointLogsRequest(server string, id string, params *GetEndpointLogs var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3084,19 +3362,21 @@ func NewGetEndpointLogsRequest(server string, id string, params *GetEndpointLogs } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.IncludeDetails != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_details", runtime.ParamLocationQuery, *params.IncludeDetails); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "include_details", *params.IncludeDetails, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -3104,15 +3384,11 @@ func NewGetEndpointLogsRequest(server string, id string, params *GetEndpointLogs if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -3120,48 +3396,39 @@ func NewGetEndpointLogsRequest(server string, id string, params *GetEndpointLogs if params.NextAt != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "next_at", runtime.ParamLocationQuery, *params.NextAt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "next_at", *params.NextAt, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "from", runtime.ParamLocationQuery, params.From); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "from", params.From, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "to", runtime.ParamLocationQuery, params.To); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -3175,7 +3442,7 @@ func NewGetMethodRateLimitsRequest(server string, id string) (*http.Request, err var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3195,7 +3462,7 @@ func NewGetMethodRateLimitsRequest(server string, id string) (*http.Request, err return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -3220,7 +3487,7 @@ func NewCreateMethodRateLimitRequestWithBody(server string, id string, contentTy var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3240,7 +3507,7 @@ func NewCreateMethodRateLimitRequestWithBody(server string, id string, contentTy return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -3256,14 +3523,14 @@ func NewDeleteMethodRateLimitRequest(server string, id string, methodRateLimitId var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "method_rate_limit_id", runtime.ParamLocationPath, methodRateLimitId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "method_rate_limit_id", methodRateLimitId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3283,7 +3550,7 @@ func NewDeleteMethodRateLimitRequest(server string, id string, methodRateLimitId return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -3308,14 +3575,14 @@ func NewUpdateMethodRateLimitRequestWithBody(server string, id string, methodRat var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "method_rate_limit_id", runtime.ParamLocationPath, methodRateLimitId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "method_rate_limit_id", methodRateLimitId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3335,7 +3602,7 @@ func NewUpdateMethodRateLimitRequestWithBody(server string, id string, methodRat return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -3351,7 +3618,7 @@ func NewFetchEndpointMetricRequest(server string, id string, params *FetchEndpoi var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3372,36 +3639,37 @@ func NewFetchEndpointMetricRequest(server string, id string, params *FetchEndpoi } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "period", runtime.ParamLocationQuery, params.Period); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "period", params.Period, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "metric", runtime.ParamLocationQuery, params.Metric); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "metric", params.Metric, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -3415,7 +3683,7 @@ func NewGetRateLimitsRequest(server string, id string) (*http.Request, error) { var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3435,7 +3703,7 @@ func NewGetRateLimitsRequest(server string, id string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -3460,7 +3728,7 @@ func NewUpdateRateLimitsRequestWithBody(server string, id string, contentType st var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3480,7 +3748,7 @@ func NewUpdateRateLimitsRequestWithBody(server string, id string, contentType st return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -3507,7 +3775,7 @@ func NewUpdateRateLimitsLegacyPutRequestWithBody(server string, id string, conte var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3527,7 +3795,7 @@ func NewUpdateRateLimitsLegacyPutRequestWithBody(server string, id string, conte return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } @@ -3543,14 +3811,14 @@ func NewDeleteRateLimitOverrideRequest(server string, id string, overrideId stri var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "override_id", runtime.ParamLocationPath, overrideId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "override_id", overrideId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3570,7 +3838,7 @@ func NewDeleteRateLimitOverrideRequest(server string, id string, overrideId stri return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -3584,7 +3852,7 @@ func NewGetEndpointSecurityRequest(server string, id string) (*http.Request, err var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3604,7 +3872,7 @@ func NewGetEndpointSecurityRequest(server string, id string) (*http.Request, err return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -3629,7 +3897,7 @@ func NewCreateDomainMaskRequestWithBody(server string, id string, contentType st var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3649,7 +3917,7 @@ func NewCreateDomainMaskRequestWithBody(server string, id string, contentType st return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -3665,14 +3933,14 @@ func NewDeleteDomainMaskRequest(server string, id string, domainMaskId string) ( var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "domain_mask_id", runtime.ParamLocationPath, domainMaskId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "domain_mask_id", domainMaskId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3692,7 +3960,7 @@ func NewDeleteDomainMaskRequest(server string, id string, domainMaskId string) ( return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -3717,7 +3985,7 @@ func NewCreateIpRequestWithBody(server string, id string, contentType string, bo var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3737,7 +4005,7 @@ func NewCreateIpRequestWithBody(server string, id string, contentType string, bo return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -3753,14 +4021,14 @@ func NewDeleteIpRequest(server string, id string, ipId string) (*http.Request, e var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "ip_id", runtime.ParamLocationPath, ipId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "ip_id", ipId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3780,7 +4048,7 @@ func NewDeleteIpRequest(server string, id string, ipId string) (*http.Request, e return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -3805,7 +4073,7 @@ func NewCreateJwtRequestWithBody(server string, id string, contentType string, b var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3825,7 +4093,7 @@ func NewCreateJwtRequestWithBody(server string, id string, contentType string, b return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -3841,14 +4109,14 @@ func NewDeleteJwtRequest(server string, id string, jwtId string) (*http.Request, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "jwt_id", runtime.ParamLocationPath, jwtId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "jwt_id", jwtId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3868,7 +4136,7 @@ func NewDeleteJwtRequest(server string, id string, jwtId string) (*http.Request, return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -3893,7 +4161,7 @@ func NewCreateReferrerRequestWithBody(server string, id string, contentType stri var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3913,7 +4181,7 @@ func NewCreateReferrerRequestWithBody(server string, id string, contentType stri return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -3929,14 +4197,14 @@ func NewDeleteReferrerRequest(server string, id string, referrerId string) (*htt var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "referrer_id", runtime.ParamLocationPath, referrerId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "referrer_id", referrerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3956,7 +4224,7 @@ func NewDeleteReferrerRequest(server string, id string, referrerId string) (*htt return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -3981,7 +4249,7 @@ func NewCreateRequestFilterRequestWithBody(server string, id string, contentType var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4001,7 +4269,7 @@ func NewCreateRequestFilterRequestWithBody(server string, id string, contentType return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -4017,14 +4285,14 @@ func NewDeleteRequestFilterRequest(server string, id string, requestFilterId str var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "request_filter_id", runtime.ParamLocationPath, requestFilterId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "request_filter_id", requestFilterId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4044,7 +4312,7 @@ func NewDeleteRequestFilterRequest(server string, id string, requestFilterId str return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -4069,14 +4337,14 @@ func NewUpdateRequestFilterRequestWithBody(server string, id string, requestFilt var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "request_filter_id", runtime.ParamLocationPath, requestFilterId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "request_filter_id", requestFilterId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4096,7 +4364,7 @@ func NewUpdateRequestFilterRequestWithBody(server string, id string, requestFilt return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } @@ -4112,7 +4380,7 @@ func NewCreateAuthenticationTokenRequest(server string, id string) (*http.Reques var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4132,7 +4400,7 @@ func NewCreateAuthenticationTokenRequest(server string, id string) (*http.Reques return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -4146,14 +4414,14 @@ func NewDeleteTokenRequest(server string, id string, tokenId string) (*http.Requ var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "token_id", runtime.ParamLocationPath, tokenId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "token_id", tokenId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4173,7 +4441,7 @@ func NewDeleteTokenRequest(server string, id string, tokenId string) (*http.Requ return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -4187,7 +4455,7 @@ func NewGetSecurityOptionsRequest(server string, id string) (*http.Request, erro var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4207,7 +4475,7 @@ func NewGetSecurityOptionsRequest(server string, id string) (*http.Request, erro return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -4232,7 +4500,7 @@ func NewUpdateSecurityOptionsRequestWithBody(server string, id string, contentTy var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4252,7 +4520,7 @@ func NewUpdateSecurityOptionsRequestWithBody(server string, id string, contentTy return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -4279,7 +4547,7 @@ func NewUpdateEndpointStatusRequestWithBody(server string, id string, contentTyp var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4299,7 +4567,7 @@ func NewUpdateEndpointStatusRequestWithBody(server string, id string, contentTyp return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -4326,7 +4594,7 @@ func NewCreateTagRequestWithBody(server string, id string, contentType string, b var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4346,7 +4614,7 @@ func NewCreateTagRequestWithBody(server string, id string, contentType string, b return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -4362,14 +4630,14 @@ func NewDeleteTagRequest(server string, id string, tagId string) (*http.Request, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tag_id", runtime.ParamLocationPath, tagId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "tag_id", tagId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4389,7 +4657,7 @@ func NewDeleteTagRequest(server string, id string, tagId string) (*http.Request, return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -4403,7 +4671,7 @@ func NewShowEndpointUrlsRequest(server string, id string) (*http.Request, error) var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4423,7 +4691,7 @@ func NewShowEndpointUrlsRequest(server string, id string) (*http.Request, error) return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -4451,52 +4719,49 @@ func NewFetchAccountMetricsRequest(server string, params *FetchAccountMetricsPar } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "period", runtime.ParamLocationQuery, params.Period); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "period", params.Period, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "metric", runtime.ParamLocationQuery, params.Metric); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "metric", params.Metric, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } if params.Percentile != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "percentile", runtime.ParamLocationQuery, *params.Percentile); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "percentile", *params.Percentile, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -4523,7 +4788,7 @@ func NewListTeamsRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -4561,7 +4826,7 @@ func NewCreateTeamRequestWithBody(server string, contentType string, body io.Rea return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -4577,7 +4842,7 @@ func NewDeleteTeamRequest(server string, id int) (*http.Request, error) { var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: ""}) if err != nil { return nil, err } @@ -4597,7 +4862,7 @@ func NewDeleteTeamRequest(server string, id int) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -4611,7 +4876,7 @@ func NewGetTeamRequest(server string, id int) (*http.Request, error) { var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: ""}) if err != nil { return nil, err } @@ -4631,7 +4896,7 @@ func NewGetTeamRequest(server string, id int) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -4645,7 +4910,7 @@ func NewListTeamEndpointsRequest(server string, id int) (*http.Request, error) { var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: ""}) if err != nil { return nil, err } @@ -4665,7 +4930,7 @@ func NewListTeamEndpointsRequest(server string, id int) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -4690,7 +4955,7 @@ func NewUpdateTeamEndpointsRequestWithBody(server string, id int, contentType st var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: ""}) if err != nil { return nil, err } @@ -4710,7 +4975,7 @@ func NewUpdateTeamEndpointsRequestWithBody(server string, id int, contentType st return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -4737,7 +5002,7 @@ func NewInviteTeamMemberRequestWithBody(server string, id int, contentType strin var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: ""}) if err != nil { return nil, err } @@ -4757,7 +5022,7 @@ func NewInviteTeamMemberRequestWithBody(server string, id int, contentType strin return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -4784,14 +5049,14 @@ func NewRemoveTeamMemberRequestWithBody(server string, id int, userId int, conte var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "user_id", runtime.ParamLocationPath, userId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "user_id", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: ""}) if err != nil { return nil, err } @@ -4811,7 +5076,7 @@ func NewRemoveTeamMemberRequestWithBody(server string, id int, userId int, conte return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), body) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body) if err != nil { return nil, err } @@ -4827,14 +5092,14 @@ func NewResendTeamInviteRequest(server string, id int, userId int) (*http.Reques var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "user_id", runtime.ParamLocationPath, userId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "user_id", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: ""}) if err != nil { return nil, err } @@ -4854,7 +5119,7 @@ func NewResendTeamInviteRequest(server string, id int, userId int) (*http.Reques return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -4882,19 +5147,21 @@ func NewUsageRequest(server string, params *UsageParams) (*http.Request, error) } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.StartTime != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start_time", runtime.ParamLocationQuery, *params.StartTime); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "start_time", *params.StartTime, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -4902,24 +5169,23 @@ func NewUsageRequest(server string, params *UsageParams) (*http.Request, error) if params.EndTime != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_time", runtime.ParamLocationQuery, *params.EndTime); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end_time", *params.EndTime, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -4947,19 +5213,21 @@ func NewUsageByChainRequest(server string, params *UsageByChainParams) (*http.Re } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.StartTime != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start_time", runtime.ParamLocationQuery, *params.StartTime); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "start_time", *params.StartTime, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -4967,24 +5235,23 @@ func NewUsageByChainRequest(server string, params *UsageByChainParams) (*http.Re if params.EndTime != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_time", runtime.ParamLocationQuery, *params.EndTime); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end_time", *params.EndTime, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -5012,19 +5279,21 @@ func NewUsageByEndpointRequest(server string, params *UsageByEndpointParams) (*h } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.StartTime != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start_time", runtime.ParamLocationQuery, *params.StartTime); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "start_time", *params.StartTime, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -5032,24 +5301,23 @@ func NewUsageByEndpointRequest(server string, params *UsageByEndpointParams) (*h if params.EndTime != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_time", runtime.ParamLocationQuery, *params.EndTime); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end_time", *params.EndTime, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -5077,19 +5345,21 @@ func NewUsageByMethodRequest(server string, params *UsageByMethodParams) (*http. } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.StartTime != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start_time", runtime.ParamLocationQuery, *params.StartTime); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "start_time", *params.StartTime, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -5097,24 +5367,23 @@ func NewUsageByMethodRequest(server string, params *UsageByMethodParams) (*http. if params.EndTime != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_time", runtime.ParamLocationQuery, *params.EndTime); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end_time", *params.EndTime, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -5142,19 +5411,21 @@ func NewUsageByTagRequest(server string, params *UsageByTagParams) (*http.Reques } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.StartTime != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start_time", runtime.ParamLocationQuery, *params.StartTime); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "start_time", *params.StartTime, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -5162,24 +5433,23 @@ func NewUsageByTagRequest(server string, params *UsageByTagParams) (*http.Reques if params.EndTime != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end_time", runtime.ParamLocationQuery, *params.EndTime); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end_time", *params.EndTime, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -5478,7 +5748,7 @@ type InvoicesResponse struct { Data *struct { Invoices *[]Invoice `json:"invoices,omitempty"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } } @@ -5498,6 +5768,14 @@ func (r InvoicesResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r InvoicesResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type PaymentsResponse struct { Body []byte HTTPResponse *http.Response @@ -5505,7 +5783,7 @@ type PaymentsResponse struct { Data *struct { Payments *[]Payment `json:"payments,omitempty"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } } @@ -5525,6 +5803,14 @@ func (r PaymentsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r PaymentsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ChainsResponse struct { Body []byte HTTPResponse *http.Response @@ -5550,6 +5836,14 @@ func (r ChainsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ChainsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListEndpointsResponse struct { Body []byte HTTPResponse *http.Response @@ -5580,6 +5874,14 @@ func (r ListEndpointsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListEndpointsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateEndpointResponse struct { Body []byte HTTPResponse *http.Response @@ -5605,6 +5907,14 @@ func (r CreateEndpointResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateEndpointResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type BulkUpdateEndpointStatusResponse struct { Body []byte HTTPResponse *http.Response @@ -5637,6 +5947,14 @@ func (r BulkUpdateEndpointStatusResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r BulkUpdateEndpointStatusResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type BulkRemoveTagResponse struct { Body []byte HTTPResponse *http.Response @@ -5669,6 +5987,14 @@ func (r BulkRemoveTagResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r BulkRemoveTagResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type BulkAddTagResponse struct { Body []byte HTTPResponse *http.Response @@ -5705,6 +6031,14 @@ func (r BulkAddTagResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r BulkAddTagResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListTagsResponse struct { Body []byte HTTPResponse *http.Response @@ -5718,7 +6052,7 @@ type ListTagsResponse struct { UsageCount int `json:"usage_count"` } `json:"tags,omitempty"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } } @@ -5738,6 +6072,14 @@ func (r ListTagsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListTagsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteAccountTagResponse struct { Body []byte HTTPResponse *http.Response @@ -5745,15 +6087,15 @@ type DeleteAccountTagResponse struct { Data *struct { Success *bool `json:"success,omitempty"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } JSON400 *struct { - Data *interface{} `json:"data"` - Error *string `json:"error,omitempty"` + Data interface{} `json:"data,omitempty"` + Error *string `json:"error,omitempty"` } JSON404 *struct { - Data *interface{} `json:"data"` - Error *string `json:"error,omitempty"` + Data interface{} `json:"data,omitempty"` + Error *string `json:"error,omitempty"` } } @@ -5773,6 +6115,14 @@ func (r DeleteAccountTagResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteAccountTagResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type RenameTagResponse struct { Body []byte HTTPResponse *http.Response @@ -5782,11 +6132,11 @@ type RenameTagResponse struct { Label *string `json:"label,omitempty"` UsageCount *int `json:"usage_count,omitempty"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } JSON404 *struct { - Data *interface{} `json:"data"` - Error *string `json:"error,omitempty"` + Data interface{} `json:"data,omitempty"` + Error *string `json:"error,omitempty"` } } @@ -5806,6 +6156,14 @@ func (r RenameTagResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r RenameTagResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ArchiveEndpointResponse struct { Body []byte HTTPResponse *http.Response @@ -5827,12 +6185,20 @@ func (r ArchiveEndpointResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ArchiveEndpointResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ShowEndpointResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *SingleEndpoint `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } } @@ -5852,6 +6218,14 @@ func (r ShowEndpointResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ShowEndpointResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateEndpointResponse struct { Body []byte HTTPResponse *http.Response @@ -5873,6 +6247,14 @@ func (r UpdateEndpointResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateEndpointResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DisableMultichainResponse struct { Body []byte HTTPResponse *http.Response @@ -5894,6 +6276,14 @@ func (r DisableMultichainResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DisableMultichainResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type EnableMultichainResponse struct { Body []byte HTTPResponse *http.Response @@ -5915,12 +6305,20 @@ func (r EnableMultichainResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r EnableMultichainResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteIpCustomHeaderResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *bool `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } } @@ -5940,6 +6338,14 @@ func (r DeleteIpCustomHeaderResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteIpCustomHeaderResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateOrUpdateIpCustomHeaderResponse struct { Body []byte HTTPResponse *http.Response @@ -5947,7 +6353,7 @@ type CreateOrUpdateIpCustomHeaderResponse struct { Data *struct { HeaderName *string `json:"header_name,omitempty"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } } @@ -5967,6 +6373,14 @@ func (r CreateOrUpdateIpCustomHeaderResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateOrUpdateIpCustomHeaderResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetLogDetailsResponse struct { Body []byte HTTPResponse *http.Response @@ -5988,6 +6402,14 @@ func (r GetLogDetailsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetLogDetailsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetEndpointLogsResponse struct { Body []byte HTTPResponse *http.Response @@ -6009,6 +6431,14 @@ func (r GetEndpointLogsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetEndpointLogsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetMethodRateLimitsResponse struct { Body []byte HTTPResponse *http.Response @@ -6030,6 +6460,14 @@ func (r GetMethodRateLimitsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetMethodRateLimitsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateMethodRateLimitResponse struct { Body []byte HTTPResponse *http.Response @@ -6051,6 +6489,14 @@ func (r CreateMethodRateLimitResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateMethodRateLimitResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteMethodRateLimitResponse struct { Body []byte HTTPResponse *http.Response @@ -6072,6 +6518,14 @@ func (r DeleteMethodRateLimitResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteMethodRateLimitResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateMethodRateLimitResponse struct { Body []byte HTTPResponse *http.Response @@ -6093,6 +6547,14 @@ func (r UpdateMethodRateLimitResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateMethodRateLimitResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type FetchEndpointMetricResponse struct { Body []byte HTTPResponse *http.Response @@ -6118,6 +6580,14 @@ func (r FetchEndpointMetricResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r FetchEndpointMetricResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetRateLimitsResponse struct { Body []byte HTTPResponse *http.Response @@ -6139,6 +6609,14 @@ func (r GetRateLimitsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetRateLimitsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateRateLimitsResponse struct { Body []byte HTTPResponse *http.Response @@ -6160,6 +6638,14 @@ func (r UpdateRateLimitsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateRateLimitsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateRateLimitsLegacyPutResponse struct { Body []byte HTTPResponse *http.Response @@ -6181,6 +6667,14 @@ func (r UpdateRateLimitsLegacyPutResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateRateLimitsLegacyPutResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteRateLimitOverrideResponse struct { Body []byte HTTPResponse *http.Response @@ -6202,16 +6696,24 @@ func (r DeleteRateLimitOverrideResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteRateLimitOverrideResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetEndpointSecurityResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *EndpointSecurity `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } JSON404 *struct { - Data *interface{} `json:"data"` - Error *string `json:"error,omitempty"` + Data interface{} `json:"data,omitempty"` + Error *string `json:"error,omitempty"` } } @@ -6231,6 +6733,14 @@ func (r GetEndpointSecurityResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetEndpointSecurityResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateDomainMaskResponse struct { Body []byte HTTPResponse *http.Response @@ -6252,6 +6762,14 @@ func (r CreateDomainMaskResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateDomainMaskResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteDomainMaskResponse struct { Body []byte HTTPResponse *http.Response @@ -6273,6 +6791,14 @@ func (r DeleteDomainMaskResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteDomainMaskResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateIpResponse struct { Body []byte HTTPResponse *http.Response @@ -6294,12 +6820,20 @@ func (r CreateIpResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateIpResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteIpResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *bool `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } } @@ -6319,6 +6853,14 @@ func (r DeleteIpResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteIpResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateJwtResponse struct { Body []byte HTTPResponse *http.Response @@ -6340,6 +6882,14 @@ func (r CreateJwtResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateJwtResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteJwtResponse struct { Body []byte HTTPResponse *http.Response @@ -6361,6 +6911,14 @@ func (r DeleteJwtResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteJwtResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateReferrerResponse struct { Body []byte HTTPResponse *http.Response @@ -6382,12 +6940,20 @@ func (r CreateReferrerResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateReferrerResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteReferrerResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *bool `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } } @@ -6407,6 +6973,14 @@ func (r DeleteReferrerResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteReferrerResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateRequestFilterResponse struct { Body []byte HTTPResponse *http.Response @@ -6414,7 +6988,7 @@ type CreateRequestFilterResponse struct { Data *struct { Id *string `json:"id,omitempty"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } JSON400 *struct { Error *string `json:"error,omitempty"` @@ -6437,6 +7011,14 @@ func (r CreateRequestFilterResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateRequestFilterResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteRequestFilterResponse struct { Body []byte HTTPResponse *http.Response @@ -6458,6 +7040,14 @@ func (r DeleteRequestFilterResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteRequestFilterResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateRequestFilterResponse struct { Body []byte HTTPResponse *http.Response @@ -6479,6 +7069,14 @@ func (r UpdateRequestFilterResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateRequestFilterResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateAuthenticationTokenResponse struct { Body []byte HTTPResponse *http.Response @@ -6500,12 +7098,20 @@ func (r CreateAuthenticationTokenResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateAuthenticationTokenResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteTokenResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *bool `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } } @@ -6525,6 +7131,14 @@ func (r DeleteTokenResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteTokenResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetSecurityOptionsResponse struct { Body []byte HTTPResponse *http.Response @@ -6546,6 +7160,14 @@ func (r GetSecurityOptionsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetSecurityOptionsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateSecurityOptionsResponse struct { Body []byte HTTPResponse *http.Response @@ -6567,6 +7189,14 @@ func (r UpdateSecurityOptionsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateSecurityOptionsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateEndpointStatusResponse struct { Body []byte HTTPResponse *http.Response @@ -6596,6 +7226,14 @@ func (r UpdateEndpointStatusResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateEndpointStatusResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateTagResponse struct { Body []byte HTTPResponse *http.Response @@ -6617,6 +7255,14 @@ func (r CreateTagResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateTagResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteTagResponse struct { Body []byte HTTPResponse *http.Response @@ -6638,12 +7284,20 @@ func (r DeleteTagResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteTagResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ShowEndpointUrlsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *EndpointUrls `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } } @@ -6663,6 +7317,14 @@ func (r ShowEndpointUrlsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ShowEndpointUrlsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type FetchAccountMetricsResponse struct { Body []byte HTTPResponse *http.Response @@ -6688,6 +7350,14 @@ func (r FetchAccountMetricsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r FetchAccountMetricsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListTeamsResponse struct { Body []byte HTTPResponse *http.Response @@ -6702,7 +7372,7 @@ type ListTeamsResponse struct { FullName *string `json:"full_name,omitempty"` Id *int `json:"id,omitempty"` PhotoUrl *string `json:"photo_url,omitempty"` - Role *string `json:"role"` + Role *string `json:"role,omitempty"` Status *string `json:"status,omitempty"` } `json:"users,omitempty"` } `json:"data"` @@ -6726,6 +7396,14 @@ func (r ListTeamsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListTeamsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateTeamResponse struct { Body []byte HTTPResponse *http.Response @@ -6760,6 +7438,14 @@ func (r CreateTeamResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateTeamResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteTeamResponse struct { Body []byte HTTPResponse *http.Response @@ -6795,6 +7481,14 @@ func (r DeleteTeamResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteTeamResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetTeamResponse struct { Body []byte HTTPResponse *http.Response @@ -6811,7 +7505,7 @@ type GetTeamResponse struct { FullName *string `json:"full_name,omitempty"` Id *int `json:"id,omitempty"` PhotoUrl *string `json:"photo_url,omitempty"` - Role *string `json:"role"` + Role *string `json:"role,omitempty"` Status *string `json:"status,omitempty"` } `json:"pending_invites,omitempty"` Users *[]struct { @@ -6821,7 +7515,7 @@ type GetTeamResponse struct { FullName *string `json:"full_name,omitempty"` Id *int `json:"id,omitempty"` PhotoUrl *string `json:"photo_url,omitempty"` - Role *string `json:"role"` + Role *string `json:"role,omitempty"` Status *string `json:"status,omitempty"` } `json:"users,omitempty"` } `json:"data"` @@ -6849,14 +7543,22 @@ func (r GetTeamResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetTeamResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListTeamEndpointsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data []struct { - Chain *string `json:"chain"` + Chain *string `json:"chain,omitempty"` Id *int `json:"id,omitempty"` - Network *string `json:"network"` + Network *string `json:"network,omitempty"` Subdomain *string `json:"subdomain,omitempty"` } `json:"data"` Error *string `json:"error"` @@ -6883,6 +7585,14 @@ func (r ListTeamEndpointsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListTeamEndpointsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateTeamEndpointsResponse struct { Body []byte HTTPResponse *http.Response @@ -6914,6 +7624,14 @@ func (r UpdateTeamEndpointsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateTeamEndpointsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type InviteTeamMemberResponse struct { Body []byte HTTPResponse *http.Response @@ -6922,7 +7640,7 @@ type InviteTeamMemberResponse struct { Email *string `json:"email,omitempty"` FullName *string `json:"full_name,omitempty"` Id *int `json:"id,omitempty"` - Role *string `json:"role"` + Role *string `json:"role,omitempty"` Status *string `json:"status,omitempty"` } `json:"data"` Error *string `json:"error"` @@ -6953,6 +7671,14 @@ func (r InviteTeamMemberResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r InviteTeamMemberResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type RemoveTeamMemberResponse struct { Body []byte HTTPResponse *http.Response @@ -6988,6 +7714,14 @@ func (r RemoveTeamMemberResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r RemoveTeamMemberResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ResendTeamInviteResponse struct { Body []byte HTTPResponse *http.Response @@ -7023,19 +7757,27 @@ func (r ResendTeamInviteResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ResendTeamInviteResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UsageResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *struct { - CreditsRemaining *int `json:"credits_remaining"` + CreditsRemaining *int `json:"credits_remaining,omitempty"` CreditsUsed int `json:"credits_used"` EndTime int `json:"end_time"` - Limit *int `json:"limit"` - Overages *int `json:"overages"` + Limit *int `json:"limit,omitempty"` + Overages *int `json:"overages,omitempty"` StartTime int `json:"start_time"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } } @@ -7055,6 +7797,14 @@ func (r UsageResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UsageResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UsageByChainResponse struct { Body []byte HTTPResponse *http.Response @@ -7084,6 +7834,14 @@ func (r UsageByChainResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UsageByChainResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UsageByEndpointResponse struct { Body []byte HTTPResponse *http.Response @@ -7093,7 +7851,7 @@ type UsageByEndpointResponse struct { Endpoints *[]EndpointUsage `json:"endpoints,omitempty"` StartTime *int `json:"start_time,omitempty"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } } @@ -7113,6 +7871,14 @@ func (r UsageByEndpointResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UsageByEndpointResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UsageByMethodResponse struct { Body []byte HTTPResponse *http.Response @@ -7122,7 +7888,7 @@ type UsageByMethodResponse struct { Methods *[]MethodUsage `json:"methods,omitempty"` StartTime *int `json:"start_time,omitempty"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } } @@ -7142,6 +7908,14 @@ func (r UsageByMethodResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UsageByMethodResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UsageByTagResponse struct { Body []byte HTTPResponse *http.Response @@ -7158,7 +7932,7 @@ type UsageByTagResponse struct { TagId *int `json:"tag_id"` } `json:"tags"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } } @@ -7178,6 +7952,14 @@ func (r UsageByTagResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UsageByTagResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + // InvoicesWithResponse request returning *InvoicesResponse func (c *ClientWithResponses) InvoicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*InvoicesResponse, error) { rsp, err := c.Invoices(ctx, reqEditors...) @@ -7965,7 +8747,7 @@ func ParseInvoicesResponse(rsp *http.Response) (*InvoicesResponse, error) { Data *struct { Invoices *[]Invoice `json:"invoices,omitempty"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -7996,7 +8778,7 @@ func ParsePaymentsResponse(rsp *http.Response) (*PaymentsResponse, error) { Data *struct { Payments *[]Payment `json:"payments,omitempty"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -8237,7 +9019,7 @@ func ParseListTagsResponse(rsp *http.Response) (*ListTagsResponse, error) { UsageCount int `json:"usage_count"` } `json:"tags,omitempty"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -8268,7 +9050,7 @@ func ParseDeleteAccountTagResponse(rsp *http.Response) (*DeleteAccountTagRespons Data *struct { Success *bool `json:"success,omitempty"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -8277,8 +9059,8 @@ func ParseDeleteAccountTagResponse(rsp *http.Response) (*DeleteAccountTagRespons case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest struct { - Data *interface{} `json:"data"` - Error *string `json:"error,omitempty"` + Data interface{} `json:"data,omitempty"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -8287,8 +9069,8 @@ func ParseDeleteAccountTagResponse(rsp *http.Response) (*DeleteAccountTagRespons case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest struct { - Data *interface{} `json:"data"` - Error *string `json:"error,omitempty"` + Data interface{} `json:"data,omitempty"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -8321,7 +9103,7 @@ func ParseRenameTagResponse(rsp *http.Response) (*RenameTagResponse, error) { Label *string `json:"label,omitempty"` UsageCount *int `json:"usage_count,omitempty"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -8330,8 +9112,8 @@ func ParseRenameTagResponse(rsp *http.Response) (*RenameTagResponse, error) { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest struct { - Data *interface{} `json:"data"` - Error *string `json:"error,omitempty"` + Data interface{} `json:"data,omitempty"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -8376,7 +9158,7 @@ func ParseShowEndpointResponse(rsp *http.Response) (*ShowEndpointResponse, error case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { Data *SingleEndpoint `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -8453,7 +9235,7 @@ func ParseDeleteIpCustomHeaderResponse(rsp *http.Response) (*DeleteIpCustomHeade case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { Data *bool `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -8484,7 +9266,7 @@ func ParseCreateOrUpdateIpCustomHeaderResponse(rsp *http.Response) (*CreateOrUpd Data *struct { HeaderName *string `json:"header_name,omitempty"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -8702,7 +9484,7 @@ func ParseGetEndpointSecurityResponse(rsp *http.Response) (*GetEndpointSecurityR case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { Data *EndpointSecurity `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -8711,8 +9493,8 @@ func ParseGetEndpointSecurityResponse(rsp *http.Response) (*GetEndpointSecurityR case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: var dest struct { - Data *interface{} `json:"data"` - Error *string `json:"error,omitempty"` + Data interface{} `json:"data,omitempty"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -8789,7 +9571,7 @@ func ParseDeleteIpResponse(rsp *http.Response) (*DeleteIpResponse, error) { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { Data *bool `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -8866,7 +9648,7 @@ func ParseDeleteReferrerResponse(rsp *http.Response) (*DeleteReferrerResponse, e case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { Data *bool `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -8897,7 +9679,7 @@ func ParseCreateRequestFilterResponse(rsp *http.Response) (*CreateRequestFilterR Data *struct { Id *string `json:"id,omitempty"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -8983,7 +9765,7 @@ func ParseDeleteTokenResponse(rsp *http.Response) (*DeleteTokenResponse, error) case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { Data *bool `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -9115,7 +9897,7 @@ func ParseShowEndpointUrlsResponse(rsp *http.Response) (*ShowEndpointUrlsRespons case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { Data *EndpointUrls `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -9182,7 +9964,7 @@ func ParseListTeamsResponse(rsp *http.Response) (*ListTeamsResponse, error) { FullName *string `json:"full_name,omitempty"` Id *int `json:"id,omitempty"` PhotoUrl *string `json:"photo_url,omitempty"` - Role *string `json:"role"` + Role *string `json:"role,omitempty"` Status *string `json:"status,omitempty"` } `json:"users,omitempty"` } `json:"data"` @@ -9321,7 +10103,7 @@ func ParseGetTeamResponse(rsp *http.Response) (*GetTeamResponse, error) { FullName *string `json:"full_name,omitempty"` Id *int `json:"id,omitempty"` PhotoUrl *string `json:"photo_url,omitempty"` - Role *string `json:"role"` + Role *string `json:"role,omitempty"` Status *string `json:"status,omitempty"` } `json:"pending_invites,omitempty"` Users *[]struct { @@ -9331,7 +10113,7 @@ func ParseGetTeamResponse(rsp *http.Response) (*GetTeamResponse, error) { FullName *string `json:"full_name,omitempty"` Id *int `json:"id,omitempty"` PhotoUrl *string `json:"photo_url,omitempty"` - Role *string `json:"role"` + Role *string `json:"role,omitempty"` Status *string `json:"status,omitempty"` } `json:"users,omitempty"` } `json:"data"` @@ -9374,9 +10156,9 @@ func ParseListTeamEndpointsResponse(rsp *http.Response) (*ListTeamEndpointsRespo case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { Data []struct { - Chain *string `json:"chain"` + Chain *string `json:"chain,omitempty"` Id *int `json:"id,omitempty"` - Network *string `json:"network"` + Network *string `json:"network,omitempty"` Subdomain *string `json:"subdomain,omitempty"` } `json:"data"` Error *string `json:"error"` @@ -9462,7 +10244,7 @@ func ParseInviteTeamMemberResponse(rsp *http.Response) (*InviteTeamMemberRespons Email *string `json:"email,omitempty"` FullName *string `json:"full_name,omitempty"` Id *int `json:"id,omitempty"` - Role *string `json:"role"` + Role *string `json:"role,omitempty"` Status *string `json:"status,omitempty"` } `json:"data"` Error *string `json:"error"` @@ -9616,14 +10398,14 @@ func ParseUsageResponse(rsp *http.Response) (*UsageResponse, error) { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { Data *struct { - CreditsRemaining *int `json:"credits_remaining"` + CreditsRemaining *int `json:"credits_remaining,omitempty"` CreditsUsed int `json:"credits_used"` EndTime int `json:"end_time"` - Limit *int `json:"limit"` - Overages *int `json:"overages"` + Limit *int `json:"limit,omitempty"` + Overages *int `json:"overages,omitempty"` StartTime int `json:"start_time"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -9689,7 +10471,7 @@ func ParseUsageByEndpointResponse(rsp *http.Response) (*UsageByEndpointResponse, Endpoints *[]EndpointUsage `json:"endpoints,omitempty"` StartTime *int `json:"start_time,omitempty"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -9722,7 +10504,7 @@ func ParseUsageByMethodResponse(rsp *http.Response) (*UsageByMethodResponse, err Methods *[]MethodUsage `json:"methods,omitempty"` StartTime *int `json:"start_time,omitempty"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -9762,7 +10544,7 @@ func ParseUsageByTagResponse(rsp *http.Response) (*UsageByTagResponse, error) { TagId *int `json:"tag_id"` } `json:"tags"` } `json:"data,omitempty"` - Error *string `json:"error"` + Error *string `json:"error,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -9774,170 +10556,171 @@ func ParseUsageByTagResponse(rsp *http.Response) (*UsageByTagResponse, error) { return response, nil } -// Base64 encoded, gzipped, json marshaled Swagger object +// Base64 encoded, compressed with deflate, json marshaled OpenAPI spec. +// Stored as a slice of fixed-width chunks rather than one concatenated +// const string: with thousands of chunks the chained `+` fold is several +// times slower for the Go compiler than parsing a slice literal. var swaggerSpec = []string{ - - "H4sIAAAAAAAC/+x96XLbyLLmq1RgJmK6YygJ+6KJ+SHbah+fsbp9bfmeOMdWMApVCRIWCLCxSOZVKGJ+", - "zQNMzBPeJ5moBQtJgAAXLW6r/7RF1JqZX1ZmVlXWnUKS2TyJIc4z5fROycgUZpj/k0xxGLN/zNNkDmke", - "Av85zMYZREDycVUgX8xBOVX8JIkAx8r9SIkhv03Sa1Ehhxn/x39NIVBOlf9yUnd5Ivs7kRVYXdkaTl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lEeyKsO", - "/MjCwisWOdiP0bsAJTEgn9GGtSMf4xmJd5YKxmig9edpEicp0NMyFU5z3FXGeh6fg2qwsl9ecsTHWFau", - "ZtlVlX1seWKDa4ee1ewT6w5tONhaj1zZTo2fx3RTu+WklD7N/eB6tDyRWYnEBhw2vOiyGr+q1epnV1M8", - "vVPEdjrDWfX6fluj4vnGQf0nN5DiiTw51lu6wcaho1nRKEvzHS3LRTXTq0fPdNV+1ZHDJcXxBFbO1Za7", - "X0wV4AmI1wc59uXxBliqXGstgaZ1rXXiL46qjaaNG25ll0wKkb9AolYral8tXsuPL+DtAS+jUzb4ILi8", - "EMN52bYHtz1idwPW89jIPwSAVqV5CF6qe2XbQqb79q9AzXn9/QU4PUHl7UV96WzBdvcuOhH3+PB5Oog0", - "pHcISurEbcMxMkmTQr6sJat3IOWi/PqCk4PjpO29900okRfCXjDSJr1DkJLjSTdMkijKUDGv/Dzh/TUe", - "pZPxe5TjyTF6J95k5TnLvipFnOPJBOhXRT67yi3FeluZh4bihFXNjrug1npNugtn6JciDr+jire/PhTw", - "hnb0QyNxB+SUErfpVliP39eVgaDa/8na68kr7utPFRRRVIUnSpGUAskY1eP8rZiM1UV6MczRqmNXjfFq", - "yInUlZazv45nuKqRlq/0V+qoPU42xmWgbMREPxSvXci4GX8SVqgBfp5Ymeb5PDs9OcHz8PjPIiTXcULh", - "mCQzng9IdlneD5Nds4blD/UJrsaPr4Vj1FKsTs3T+PhKHoVoK998lK/te3n79P7q/v8HAAD//youSN4f", - "8gAA", -} - -// GetSwagger returns the content of the embedded swagger specification file -// or error if failed to decode + "7H3pctvIsuarVGAmYrpjKAn7oon5IdtqH5+xun1t+Z44x1YwClUJEhYIsLFI5lUoYn7NA0zME94nmagF", + "C0mAABctbqv/tEXUmplfVmZWVdadQpLZPIkhzjPl9E7JyBRmmP+TTHEYs3/M02QOaR4C/znMxhlEQPJx", + "VSBfzEE5VfwkiQDHyv1IiSG/TdJrUSGHGf/Hf00hUE6V/3JSd3ki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ZH4+tNprBVMiE/SOemMWL8LUAxh", + "PoWUwS/NxbG5mDmqMRV/MB92niY3IQU6Kl9JQtK/Q+IoKvNdiwyo8HwZymP2UR7Iqw78yMLCKxY52I/R", + "uwAlMSCf0Ya1Ix/jGYl3lgrGaKD152kSJynQ0zIVTnPcVcZ6Hp+DarCyX15yxMdYVq5m2VWVfWx5YoNr", + "h57V7BPrDm042FqPXNlOjZ/HdFO75aSUPs394Hq0PJFZicQGHDa86LIav6rV6mdXUzy9U8R2OsNZ9fp+", + "W6Pi+cZB/Sc3kOKJPDnWW7rBxqGjWdEoS/MdLctFNdOrR8901X7VkcMlxfEEVs7VlrtfTBXgCYjXBzn2", + "5fEGWKpcay2BpnWtdeIvjqqNpo0bbmWXTAqRv0CiVitqXy1ey48v4O0BL6NTNvgguLwQw3nZtge3PWJ3", + "A9bz2Mg/BIBWpXkIXqp7ZdtCpvv2r0DNef39BTg9QeXtRX3pbMF29y46Eff48Hk6iDSkdwhK6sRtwzEy", + "SZNCvqwlq3cg5aL8+oKTg+Ok7b33TSiRF8JeMNImvUOQkuNJN0ySKMpQMa/8POH9NR6lk/F7lOPJMXon", + "3mTlOcu+KkWc48kE6FdFPrvKLcV6W5mHhuKEVc2Ou6DWek26C2folyIOv6OKt78+FPCGdvRDI3EH5JQS", + "t+lWWI/f15WBoNr/ydrrySvu608VFFFUhSdKkZQCyRjV4/ytmIzVRXoxzNGqY1eN8WrIidSVlrO/jme4", + "qpGWr/RX6qg9TjbGZaBsxEQ/FK9dyLgZfxJWqAF+nliZ5vk8Oz05wfPw+M8iJNdxQuGYJDOeD0h2Wd4P", + "k12zhuUP9Qmuxo+vhWPUUqxOzdP4+EoehWgr33yUr+17efv0/ur+/wcAAP//", +} + +// decodeSpec returns the embedded OpenAPI spec as raw JSON bytes, +// after base64-decoding and flate-decompressing the embedded blob. func decodeSpec() ([]byte, error) { - zipped, err := base64.StdEncoding.DecodeString(strings.Join(swaggerSpec, "")) + encoded := strings.Join(swaggerSpec, "") + compressed, err := base64.StdEncoding.DecodeString(encoded) if err != nil { return nil, fmt.Errorf("error base64 decoding spec: %w", err) } - zr, err := gzip.NewReader(bytes.NewReader(zipped)) - if err != nil { - return nil, fmt.Errorf("error decompressing spec: %w", err) - } + zr := flate.NewReader(bytes.NewReader(compressed)) var buf bytes.Buffer - _, err = buf.ReadFrom(zr) - if err != nil { - return nil, fmt.Errorf("error decompressing spec: %w", err) + if _, err := buf.ReadFrom(zr); err != nil { + return nil, fmt.Errorf("read flate: %w", err) + } + if err := zr.Close(); err != nil { + return nil, fmt.Errorf("close flate reader: %w", err) } return buf.Bytes(), nil @@ -9945,7 +10728,7 @@ func decodeSpec() ([]byte, error) { var rawSpec = decodeSpecCached() -// a naive cached of a decoded swagger spec +// a naive cache of the decoded OpenAPI spec func decodeSpecCached() func() ([]byte, error) { data, err := decodeSpec() return func() ([]byte, error) { @@ -9963,12 +10746,12 @@ func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) { return res } -// GetSwagger returns the Swagger specification corresponding to the generated code -// in this file. The external references of Swagger specification are resolved. -// The logic of resolving external references is tightly connected to "import-mapping" feature. -// Externally referenced files must be embedded in the corresponding golang packages. -// Urls can be supported but this task was out of the scope. -func GetSwagger() (swagger *openapi3.T, err error) { +// GetSpec returns the OpenAPI specification corresponding to the generated +// code in this file. External references in the spec are resolved through +// PathToRawSpec; externally-referenced files must be embedded in their +// corresponding Go packages (via the import-mapping feature). URL-based +// external refs are not supported. +func GetSpec() (swagger *openapi3.T, err error) { resolvePath := PathToRawSpec("") loader := openapi3.NewLoader() @@ -9994,3 +10777,22 @@ func GetSwagger() (swagger *openapi3.T, err error) { } return } + +// GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI +// specification: decompressed but not unmarshaled. External references +// are not resolved here; the bytes are the spec exactly as embedded by +// codegen. The result is cached at package init time, so repeated calls +// are cheap. +func GetSpecJSON() ([]byte, error) { + return rawSpec() +} + +// GetSwagger returns the OpenAPI specification corresponding to the +// generated code in this file. +// +// Deprecated: GetSwagger predates kin-openapi renaming openapi3.Swagger +// to openapi3.T. Use [GetSpec] instead. This wrapper is retained for +// backwards compatibility. +func GetSwagger() (*openapi3.T, error) { + return GetSpec() +} diff --git a/api/streams/streams.gen.go b/api/streams/streams.gen.go index 820963f..ba2c60e 100644 --- a/api/streams/streams.gen.go +++ b/api/streams/streams.gen.go @@ -1,6 +1,6 @@ // Package streams provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT. +// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.1 DO NOT EDIT. package streams import ( @@ -17,7 +17,7 @@ import ( ) const ( - X_api_keyScopes = "x_api_key.Scopes" + X_api_keyScopes xApiKeyContextKey = "x_api_key.Scopes" ) // Defines values for AzureAttributesFileType. @@ -26,6 +26,18 @@ const ( AzureAttributesFileTypeDotParquet AzureAttributesFileType = ".parquet" ) +// Valid indicates whether the value is a known member of the AzureAttributesFileType enum. +func (e AzureAttributesFileType) Valid() bool { + switch e { + case AzureAttributesFileTypeDotJson: + return true + case AzureAttributesFileTypeDotParquet: + return true + default: + return false + } +} + // Defines values for CreateStreamDtoDataset. const ( CreateStreamDtoDatasetBlock CreateStreamDtoDataset = "block" @@ -49,6 +61,52 @@ const ( CreateStreamDtoDatasetWriterActions CreateStreamDtoDataset = "writer_actions" ) +// Valid indicates whether the value is a known member of the CreateStreamDtoDataset enum. +func (e CreateStreamDtoDataset) Valid() bool { + switch e { + case CreateStreamDtoDatasetBlock: + return true + case CreateStreamDtoDatasetBlockWithBeacon: + return true + case CreateStreamDtoDatasetBlockWithReceipts: + return true + case CreateStreamDtoDatasetBlockWithReceiptsDebugTrace: + return true + case CreateStreamDtoDatasetBlockWithReceiptsTraceBlock: + return true + case CreateStreamDtoDatasetBookUpdates: + return true + case CreateStreamDtoDatasetDebugTraces: + return true + case CreateStreamDtoDatasetEvents: + return true + case CreateStreamDtoDatasetEventsWithOrders: + return true + case CreateStreamDtoDatasetLedger: + return true + case CreateStreamDtoDatasetLogs: + return true + case CreateStreamDtoDatasetOrders: + return true + case CreateStreamDtoDatasetProgramsWithLogs: + return true + case CreateStreamDtoDatasetReceipts: + return true + case CreateStreamDtoDatasetTraceBlocks: + return true + case CreateStreamDtoDatasetTrades: + return true + case CreateStreamDtoDatasetTransactions: + return true + case CreateStreamDtoDatasetTwap: + return true + case CreateStreamDtoDatasetWriterActions: + return true + default: + return false + } +} + // Defines values for CreateStreamDtoDestination. const ( CreateStreamDtoDestinationAzure CreateStreamDtoDestination = "azure" @@ -58,6 +116,24 @@ const ( CreateStreamDtoDestinationWebhook CreateStreamDtoDestination = "webhook" ) +// Valid indicates whether the value is a known member of the CreateStreamDtoDestination enum. +func (e CreateStreamDtoDestination) Valid() bool { + switch e { + case CreateStreamDtoDestinationAzure: + return true + case CreateStreamDtoDestinationKafka: + return true + case CreateStreamDtoDestinationPostgres: + return true + case CreateStreamDtoDestinationS3: + return true + case CreateStreamDtoDestinationWebhook: + return true + default: + return false + } +} + // Defines values for CreateStreamDtoNetwork. const ( CreateStreamDtoNetworkAbstractMainnet CreateStreamDtoNetwork = "abstract-mainnet" @@ -185,6 +261,260 @@ const ( CreateStreamDtoNetworkZoraMainnet CreateStreamDtoNetwork = "zora-mainnet" ) +// Valid indicates whether the value is a known member of the CreateStreamDtoNetwork enum. +func (e CreateStreamDtoNetwork) Valid() bool { + switch e { + case CreateStreamDtoNetworkAbstractMainnet: + return true + case CreateStreamDtoNetworkAbstractTestnet: + return true + case CreateStreamDtoNetworkArbitrumMainnet: + return true + case CreateStreamDtoNetworkArbitrumSepolia: + return true + case CreateStreamDtoNetworkArcMainnet: + return true + case CreateStreamDtoNetworkArcTestnet: + return true + case CreateStreamDtoNetworkAultMainnet: + return true + case CreateStreamDtoNetworkAultTestnet: + return true + case CreateStreamDtoNetworkAvalancheFuji: + return true + case CreateStreamDtoNetworkAvalancheMainnet: + return true + case CreateStreamDtoNetworkB3Mainnet: + return true + case CreateStreamDtoNetworkB3Sepolia: + return true + case CreateStreamDtoNetworkBaseMainnet: + return true + case CreateStreamDtoNetworkBaseSepolia: + return true + case CreateStreamDtoNetworkBchMainnet: + return true + case CreateStreamDtoNetworkBchTestnet: + return true + case CreateStreamDtoNetworkBeraBepolia: + return true + case CreateStreamDtoNetworkBeraMainnet: + return true + case CreateStreamDtoNetworkBitcoinMainnet: + return true + case CreateStreamDtoNetworkBitcoinTestnet4: + return true + case CreateStreamDtoNetworkBlastMainnet: + return true + case CreateStreamDtoNetworkBlastSepolia: + return true + case CreateStreamDtoNetworkBnbchainMainnet: + return true + case CreateStreamDtoNetworkBnbchainTestnet: + return true + case CreateStreamDtoNetworkCeloMainnet: + return true + case CreateStreamDtoNetworkCyberMainnet: + return true + case CreateStreamDtoNetworkCyberSepolia: + return true + case CreateStreamDtoNetworkDogeMainnet: + return true + case CreateStreamDtoNetworkEthereumHoodi: + return true + case CreateStreamDtoNetworkEthereumMainnet: + return true + case CreateStreamDtoNetworkEthereumSepolia: + return true + case CreateStreamDtoNetworkFantomMainnet: + return true + case CreateStreamDtoNetworkFlareMainnet: + return true + case CreateStreamDtoNetworkFlareTestnet: + return true + case CreateStreamDtoNetworkFlowMainnet: + return true + case CreateStreamDtoNetworkFlowTestnet: + return true + case CreateStreamDtoNetworkFluentTestnet: + return true + case CreateStreamDtoNetworkFraxtalMainnet: + return true + case CreateStreamDtoNetworkGnosisMainnet: + return true + case CreateStreamDtoNetworkGravityAlpham: + return true + case CreateStreamDtoNetworkHederaMainnet: + return true + case CreateStreamDtoNetworkHederaTestnet: + return true + case CreateStreamDtoNetworkHemiMainnet: + return true + case CreateStreamDtoNetworkHemiTestnet: + return true + case CreateStreamDtoNetworkHypercoreMainnet: + return true + case CreateStreamDtoNetworkHyperevmMainnet: + return true + case CreateStreamDtoNetworkHyperevmTestnet: + return true + case CreateStreamDtoNetworkImxMainnet: + return true + case CreateStreamDtoNetworkImxTestnet: + return true + case CreateStreamDtoNetworkInjectiveMainnet: + return true + case CreateStreamDtoNetworkInjectiveTestnet: + return true + case CreateStreamDtoNetworkInkMainnet: + return true + case CreateStreamDtoNetworkInkSepolia: + return true + case CreateStreamDtoNetworkJocMainnet: + return true + case CreateStreamDtoNetworkKaiaMainnet: + return true + case CreateStreamDtoNetworkKaiaTestnet: + return true + case CreateStreamDtoNetworkKatanaMainnet: + return true + case CreateStreamDtoNetworkLensMainnet: + return true + case CreateStreamDtoNetworkLensTestnet: + return true + case CreateStreamDtoNetworkLineaMainnet: + return true + case CreateStreamDtoNetworkLiskMainnet: + return true + case CreateStreamDtoNetworkLtcMainnet: + return true + case CreateStreamDtoNetworkLtcTestnet: + return true + case CreateStreamDtoNetworkMantleMainnet: + return true + case CreateStreamDtoNetworkMantleSepolia: + return true + case CreateStreamDtoNetworkMegaethMainnet: + return true + case CreateStreamDtoNetworkMocaTestnet: + return true + case CreateStreamDtoNetworkModeMainnet: + return true + case CreateStreamDtoNetworkMonadMainnet: + return true + case CreateStreamDtoNetworkMonadTestnet: + return true + case CreateStreamDtoNetworkMorphHoodi: + return true + case CreateStreamDtoNetworkMorphMainnet: + return true + case CreateStreamDtoNetworkNovaMainnet: + return true + case CreateStreamDtoNetworkOptimismMainnet: + return true + case CreateStreamDtoNetworkOptimismSepolia: + return true + case CreateStreamDtoNetworkPeaqMainnet: + return true + case CreateStreamDtoNetworkPlasmaMainnet: + return true + case CreateStreamDtoNetworkPlasmaTestnet: + return true + case CreateStreamDtoNetworkPolygonAmoy: + return true + case CreateStreamDtoNetworkPolygonMainnet: + return true + case CreateStreamDtoNetworkRobinhoodMainnet: + return true + case CreateStreamDtoNetworkRobinhoodTestnet: + return true + case CreateStreamDtoNetworkSaharaTestnet: + return true + case CreateStreamDtoNetworkScrollMainnet: + return true + case CreateStreamDtoNetworkScrollTestnet: + return true + case CreateStreamDtoNetworkSeiMainnet: + return true + case CreateStreamDtoNetworkSeiTestnet: + return true + case CreateStreamDtoNetworkSolanaDevnet: + return true + case CreateStreamDtoNetworkSolanaMainnet: + return true + case CreateStreamDtoNetworkSolanaTestnet: + return true + case CreateStreamDtoNetworkSoneiumMainnet: + return true + case CreateStreamDtoNetworkSonicMainnet: + return true + case CreateStreamDtoNetworkSophonMainnet: + return true + case CreateStreamDtoNetworkStellarMainnet: + return true + case CreateStreamDtoNetworkStellarTestnet: + return true + case CreateStreamDtoNetworkStoryAeneid: + return true + case CreateStreamDtoNetworkStoryMainnet: + return true + case CreateStreamDtoNetworkTempoMainnet: + return true + case CreateStreamDtoNetworkTempoTestnet: + return true + case CreateStreamDtoNetworkTronMainnet: + return true + case CreateStreamDtoNetworkUnichainMainnet: + return true + case CreateStreamDtoNetworkUnichainSepolia: + return true + case CreateStreamDtoNetworkVanaMainnet: + return true + case CreateStreamDtoNetworkVanaMoksha: + return true + case CreateStreamDtoNetworkWorldchainMainnet: + return true + case CreateStreamDtoNetworkWorldchainSepolia: + return true + case CreateStreamDtoNetworkXaiMainnet: + return true + case CreateStreamDtoNetworkXaiSepolia: + return true + case CreateStreamDtoNetworkXlayerMainnet: + return true + case CreateStreamDtoNetworkXlayerTestnet: + return true + case CreateStreamDtoNetworkXrpMainnet: + return true + case CreateStreamDtoNetworkXrpTestnet: + return true + case CreateStreamDtoNetworkXrplevmMainnet: + return true + case CreateStreamDtoNetworkXrplevmTestnet: + return true + case CreateStreamDtoNetworkZecMainnet: + return true + case CreateStreamDtoNetworkZecTestnet: + return true + case CreateStreamDtoNetworkZerogGalileo: + return true + case CreateStreamDtoNetworkZerogMainnet: + return true + case CreateStreamDtoNetworkZkevmCardona: + return true + case CreateStreamDtoNetworkZkevmMainnet: + return true + case CreateStreamDtoNetworkZksyncMainnet: + return true + case CreateStreamDtoNetworkZksyncSepolia: + return true + case CreateStreamDtoNetworkZoraMainnet: + return true + default: + return false + } +} + // Defines values for CreateStreamDtoRegion. const ( AsiaEast CreateStreamDtoRegion = "asia_east" @@ -192,12 +522,38 @@ const ( UsaEast CreateStreamDtoRegion = "usa_east" ) +// Valid indicates whether the value is a known member of the CreateStreamDtoRegion enum. +func (e CreateStreamDtoRegion) Valid() bool { + switch e { + case AsiaEast: + return true + case EuropeCentral: + return true + case UsaEast: + return true + default: + return false + } +} + // Defines values for CreateStreamDtoStatus. const ( CreateStreamDtoStatusActive CreateStreamDtoStatus = "active" CreateStreamDtoStatusPaused CreateStreamDtoStatus = "paused" ) +// Valid indicates whether the value is a known member of the CreateStreamDtoStatus enum. +func (e CreateStreamDtoStatus) Valid() bool { + switch e { + case CreateStreamDtoStatusActive: + return true + case CreateStreamDtoStatusPaused: + return true + default: + return false + } +} + // Defines values for ExtraDestinationDtoDestination. const ( ExtraDestinationDtoDestinationAzure ExtraDestinationDtoDestination = "azure" @@ -207,6 +563,24 @@ const ( ExtraDestinationDtoDestinationWebhook ExtraDestinationDtoDestination = "webhook" ) +// Valid indicates whether the value is a known member of the ExtraDestinationDtoDestination enum. +func (e ExtraDestinationDtoDestination) Valid() bool { + switch e { + case ExtraDestinationDtoDestinationAzure: + return true + case ExtraDestinationDtoDestinationKafka: + return true + case ExtraDestinationDtoDestinationPostgres: + return true + case ExtraDestinationDtoDestinationS3: + return true + case ExtraDestinationDtoDestinationWebhook: + return true + default: + return false + } +} + // Defines values for KafkaAttributesCompressionType. const ( Gzip KafkaAttributesCompressionType = "gzip" @@ -216,6 +590,24 @@ const ( Zstd KafkaAttributesCompressionType = "zstd" ) +// Valid indicates whether the value is a known member of the KafkaAttributesCompressionType enum. +func (e KafkaAttributesCompressionType) Valid() bool { + switch e { + case Gzip: + return true + case Lz4: + return true + case None: + return true + case Snappy: + return true + case Zstd: + return true + default: + return false + } +} + // Defines values for KafkaAttributesMechanisms. const ( GSSAPI KafkaAttributesMechanisms = "GSSAPI" @@ -225,6 +617,24 @@ const ( SCRAMSHA512 KafkaAttributesMechanisms = "SCRAM-SHA-512" ) +// Valid indicates whether the value is a known member of the KafkaAttributesMechanisms enum. +func (e KafkaAttributesMechanisms) Valid() bool { + switch e { + case GSSAPI: + return true + case OAUTHBEARER: + return true + case PLAIN: + return true + case SCRAMSHA256: + return true + case SCRAMSHA512: + return true + default: + return false + } +} + // Defines values for KafkaAttributesProtocol. const ( Plaintext KafkaAttributesProtocol = "plaintext" @@ -233,18 +643,58 @@ const ( Ssl KafkaAttributesProtocol = "ssl" ) +// Valid indicates whether the value is a known member of the KafkaAttributesProtocol enum. +func (e KafkaAttributesProtocol) Valid() bool { + switch e { + case Plaintext: + return true + case SaslPlaintext: + return true + case SaslSsl: + return true + case Ssl: + return true + default: + return false + } +} + // Defines values for PostgresAttributesSslmode. const ( Disable PostgresAttributesSslmode = "disable" Require PostgresAttributesSslmode = "require" ) +// Valid indicates whether the value is a known member of the PostgresAttributesSslmode enum. +func (e PostgresAttributesSslmode) Valid() bool { + switch e { + case Disable: + return true + case Require: + return true + default: + return false + } +} + // Defines values for S3AttributesFileType. const ( S3AttributesFileTypeDotJson S3AttributesFileType = ".json" S3AttributesFileTypeDotParquet S3AttributesFileType = ".parquet" ) +// Valid indicates whether the value is a known member of the S3AttributesFileType enum. +func (e S3AttributesFileType) Valid() bool { + switch e { + case S3AttributesFileTypeDotJson: + return true + case S3AttributesFileTypeDotParquet: + return true + default: + return false + } +} + // Defines values for TestFilterFunctionDtoDataset. const ( TestFilterFunctionDtoDatasetBlock TestFilterFunctionDtoDataset = "block" @@ -268,6 +718,52 @@ const ( TestFilterFunctionDtoDatasetWriterActions TestFilterFunctionDtoDataset = "writer_actions" ) +// Valid indicates whether the value is a known member of the TestFilterFunctionDtoDataset enum. +func (e TestFilterFunctionDtoDataset) Valid() bool { + switch e { + case TestFilterFunctionDtoDatasetBlock: + return true + case TestFilterFunctionDtoDatasetBlockWithBeacon: + return true + case TestFilterFunctionDtoDatasetBlockWithReceipts: + return true + case TestFilterFunctionDtoDatasetBlockWithReceiptsDebugTrace: + return true + case TestFilterFunctionDtoDatasetBlockWithReceiptsTraceBlock: + return true + case TestFilterFunctionDtoDatasetBookUpdates: + return true + case TestFilterFunctionDtoDatasetDebugTraces: + return true + case TestFilterFunctionDtoDatasetEvents: + return true + case TestFilterFunctionDtoDatasetEventsWithOrders: + return true + case TestFilterFunctionDtoDatasetLedger: + return true + case TestFilterFunctionDtoDatasetLogs: + return true + case TestFilterFunctionDtoDatasetOrders: + return true + case TestFilterFunctionDtoDatasetProgramsWithLogs: + return true + case TestFilterFunctionDtoDatasetReceipts: + return true + case TestFilterFunctionDtoDatasetTraceBlocks: + return true + case TestFilterFunctionDtoDatasetTrades: + return true + case TestFilterFunctionDtoDatasetTransactions: + return true + case TestFilterFunctionDtoDatasetTwap: + return true + case TestFilterFunctionDtoDatasetWriterActions: + return true + default: + return false + } +} + // Defines values for TestFilterFunctionDtoNetwork. const ( TestFilterFunctionDtoNetworkAbstractMainnet TestFilterFunctionDtoNetwork = "abstract-mainnet" @@ -395,6 +891,260 @@ const ( TestFilterFunctionDtoNetworkZoraMainnet TestFilterFunctionDtoNetwork = "zora-mainnet" ) +// Valid indicates whether the value is a known member of the TestFilterFunctionDtoNetwork enum. +func (e TestFilterFunctionDtoNetwork) Valid() bool { + switch e { + case TestFilterFunctionDtoNetworkAbstractMainnet: + return true + case TestFilterFunctionDtoNetworkAbstractTestnet: + return true + case TestFilterFunctionDtoNetworkArbitrumMainnet: + return true + case TestFilterFunctionDtoNetworkArbitrumSepolia: + return true + case TestFilterFunctionDtoNetworkArcMainnet: + return true + case TestFilterFunctionDtoNetworkArcTestnet: + return true + case TestFilterFunctionDtoNetworkAultMainnet: + return true + case TestFilterFunctionDtoNetworkAultTestnet: + return true + case TestFilterFunctionDtoNetworkAvalancheFuji: + return true + case TestFilterFunctionDtoNetworkAvalancheMainnet: + return true + case TestFilterFunctionDtoNetworkB3Mainnet: + return true + case TestFilterFunctionDtoNetworkB3Sepolia: + return true + case TestFilterFunctionDtoNetworkBaseMainnet: + return true + case TestFilterFunctionDtoNetworkBaseSepolia: + return true + case TestFilterFunctionDtoNetworkBchMainnet: + return true + case TestFilterFunctionDtoNetworkBchTestnet: + return true + case TestFilterFunctionDtoNetworkBeraBepolia: + return true + case TestFilterFunctionDtoNetworkBeraMainnet: + return true + case TestFilterFunctionDtoNetworkBitcoinMainnet: + return true + case TestFilterFunctionDtoNetworkBitcoinTestnet4: + return true + case TestFilterFunctionDtoNetworkBlastMainnet: + return true + case TestFilterFunctionDtoNetworkBlastSepolia: + return true + case TestFilterFunctionDtoNetworkBnbchainMainnet: + return true + case TestFilterFunctionDtoNetworkBnbchainTestnet: + return true + case TestFilterFunctionDtoNetworkCeloMainnet: + return true + case TestFilterFunctionDtoNetworkCyberMainnet: + return true + case TestFilterFunctionDtoNetworkCyberSepolia: + return true + case TestFilterFunctionDtoNetworkDogeMainnet: + return true + case TestFilterFunctionDtoNetworkEthereumHoodi: + return true + case TestFilterFunctionDtoNetworkEthereumMainnet: + return true + case TestFilterFunctionDtoNetworkEthereumSepolia: + return true + case TestFilterFunctionDtoNetworkFantomMainnet: + return true + case TestFilterFunctionDtoNetworkFlareMainnet: + return true + case TestFilterFunctionDtoNetworkFlareTestnet: + return true + case TestFilterFunctionDtoNetworkFlowMainnet: + return true + case TestFilterFunctionDtoNetworkFlowTestnet: + return true + case TestFilterFunctionDtoNetworkFluentTestnet: + return true + case TestFilterFunctionDtoNetworkFraxtalMainnet: + return true + case TestFilterFunctionDtoNetworkGnosisMainnet: + return true + case TestFilterFunctionDtoNetworkGravityAlpham: + return true + case TestFilterFunctionDtoNetworkHederaMainnet: + return true + case TestFilterFunctionDtoNetworkHederaTestnet: + return true + case TestFilterFunctionDtoNetworkHemiMainnet: + return true + case TestFilterFunctionDtoNetworkHemiTestnet: + return true + case TestFilterFunctionDtoNetworkHypercoreMainnet: + return true + case TestFilterFunctionDtoNetworkHyperevmMainnet: + return true + case TestFilterFunctionDtoNetworkHyperevmTestnet: + return true + case TestFilterFunctionDtoNetworkImxMainnet: + return true + case TestFilterFunctionDtoNetworkImxTestnet: + return true + case TestFilterFunctionDtoNetworkInjectiveMainnet: + return true + case TestFilterFunctionDtoNetworkInjectiveTestnet: + return true + case TestFilterFunctionDtoNetworkInkMainnet: + return true + case TestFilterFunctionDtoNetworkInkSepolia: + return true + case TestFilterFunctionDtoNetworkJocMainnet: + return true + case TestFilterFunctionDtoNetworkKaiaMainnet: + return true + case TestFilterFunctionDtoNetworkKaiaTestnet: + return true + case TestFilterFunctionDtoNetworkKatanaMainnet: + return true + case TestFilterFunctionDtoNetworkLensMainnet: + return true + case TestFilterFunctionDtoNetworkLensTestnet: + return true + case TestFilterFunctionDtoNetworkLineaMainnet: + return true + case TestFilterFunctionDtoNetworkLiskMainnet: + return true + case TestFilterFunctionDtoNetworkLtcMainnet: + return true + case TestFilterFunctionDtoNetworkLtcTestnet: + return true + case TestFilterFunctionDtoNetworkMantleMainnet: + return true + case TestFilterFunctionDtoNetworkMantleSepolia: + return true + case TestFilterFunctionDtoNetworkMegaethMainnet: + return true + case TestFilterFunctionDtoNetworkMocaTestnet: + return true + case TestFilterFunctionDtoNetworkModeMainnet: + return true + case TestFilterFunctionDtoNetworkMonadMainnet: + return true + case TestFilterFunctionDtoNetworkMonadTestnet: + return true + case TestFilterFunctionDtoNetworkMorphHoodi: + return true + case TestFilterFunctionDtoNetworkMorphMainnet: + return true + case TestFilterFunctionDtoNetworkNovaMainnet: + return true + case TestFilterFunctionDtoNetworkOptimismMainnet: + return true + case TestFilterFunctionDtoNetworkOptimismSepolia: + return true + case TestFilterFunctionDtoNetworkPeaqMainnet: + return true + case TestFilterFunctionDtoNetworkPlasmaMainnet: + return true + case TestFilterFunctionDtoNetworkPlasmaTestnet: + return true + case TestFilterFunctionDtoNetworkPolygonAmoy: + return true + case TestFilterFunctionDtoNetworkPolygonMainnet: + return true + case TestFilterFunctionDtoNetworkRobinhoodMainnet: + return true + case TestFilterFunctionDtoNetworkRobinhoodTestnet: + return true + case TestFilterFunctionDtoNetworkSaharaTestnet: + return true + case TestFilterFunctionDtoNetworkScrollMainnet: + return true + case TestFilterFunctionDtoNetworkScrollTestnet: + return true + case TestFilterFunctionDtoNetworkSeiMainnet: + return true + case TestFilterFunctionDtoNetworkSeiTestnet: + return true + case TestFilterFunctionDtoNetworkSolanaDevnet: + return true + case TestFilterFunctionDtoNetworkSolanaMainnet: + return true + case TestFilterFunctionDtoNetworkSolanaTestnet: + return true + case TestFilterFunctionDtoNetworkSoneiumMainnet: + return true + case TestFilterFunctionDtoNetworkSonicMainnet: + return true + case TestFilterFunctionDtoNetworkSophonMainnet: + return true + case TestFilterFunctionDtoNetworkStellarMainnet: + return true + case TestFilterFunctionDtoNetworkStellarTestnet: + return true + case TestFilterFunctionDtoNetworkStoryAeneid: + return true + case TestFilterFunctionDtoNetworkStoryMainnet: + return true + case TestFilterFunctionDtoNetworkTempoMainnet: + return true + case TestFilterFunctionDtoNetworkTempoTestnet: + return true + case TestFilterFunctionDtoNetworkTronMainnet: + return true + case TestFilterFunctionDtoNetworkUnichainMainnet: + return true + case TestFilterFunctionDtoNetworkUnichainSepolia: + return true + case TestFilterFunctionDtoNetworkVanaMainnet: + return true + case TestFilterFunctionDtoNetworkVanaMoksha: + return true + case TestFilterFunctionDtoNetworkWorldchainMainnet: + return true + case TestFilterFunctionDtoNetworkWorldchainSepolia: + return true + case TestFilterFunctionDtoNetworkXaiMainnet: + return true + case TestFilterFunctionDtoNetworkXaiSepolia: + return true + case TestFilterFunctionDtoNetworkXlayerMainnet: + return true + case TestFilterFunctionDtoNetworkXlayerTestnet: + return true + case TestFilterFunctionDtoNetworkXrpMainnet: + return true + case TestFilterFunctionDtoNetworkXrpTestnet: + return true + case TestFilterFunctionDtoNetworkXrplevmMainnet: + return true + case TestFilterFunctionDtoNetworkXrplevmTestnet: + return true + case TestFilterFunctionDtoNetworkZecMainnet: + return true + case TestFilterFunctionDtoNetworkZecTestnet: + return true + case TestFilterFunctionDtoNetworkZerogGalileo: + return true + case TestFilterFunctionDtoNetworkZerogMainnet: + return true + case TestFilterFunctionDtoNetworkZkevmCardona: + return true + case TestFilterFunctionDtoNetworkZkevmMainnet: + return true + case TestFilterFunctionDtoNetworkZksyncMainnet: + return true + case TestFilterFunctionDtoNetworkZksyncSepolia: + return true + case TestFilterFunctionDtoNetworkZoraMainnet: + return true + default: + return false + } +} + // Defines values for UpdateStreamDtoDestination. const ( Azure UpdateStreamDtoDestination = "azure" @@ -404,12 +1154,42 @@ const ( Webhook UpdateStreamDtoDestination = "webhook" ) +// Valid indicates whether the value is a known member of the UpdateStreamDtoDestination enum. +func (e UpdateStreamDtoDestination) Valid() bool { + switch e { + case Azure: + return true + case Kafka: + return true + case Postgres: + return true + case S3: + return true + case Webhook: + return true + default: + return false + } +} + // Defines values for UpdateStreamDtoStatus. const ( UpdateStreamDtoStatusActive UpdateStreamDtoStatus = "active" UpdateStreamDtoStatusPaused UpdateStreamDtoStatus = "paused" ) +// Valid indicates whether the value is a known member of the UpdateStreamDtoStatus enum. +func (e UpdateStreamDtoStatus) Valid() bool { + switch e { + case UpdateStreamDtoStatusActive: + return true + case UpdateStreamDtoStatusPaused: + return true + default: + return false + } +} + // AzureAttributes defines model for AzureAttributes. type AzureAttributes struct { BlobPrefix string `json:"blob_prefix"` @@ -631,6 +1411,9 @@ type WebhookAttributes struct { Url string `json:"url"` } +// xApiKeyContextKey is the context key for x-api-key security scheme +type xApiKeyContextKey string + // FindAllParams defines parameters for FindAll. type FindAllParams struct { Limit float32 `form:"limit" json:"limit"` @@ -1351,7 +2134,7 @@ func NewRemoveStreamsByAccountIdRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -1379,36 +2162,37 @@ func NewFindAllRequest(server string, params *FindAllParams) (*http.Request, err } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "number", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "number", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -1446,7 +2230,7 @@ func NewCreateRequestWithBody(server string, contentType string, body io.Reader) return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -1475,7 +2259,7 @@ func NewGetEnabledStreamsRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -1513,7 +2297,7 @@ func NewTestFilterFunctionRequestWithBody(server string, contentType string, bod return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -1529,7 +2313,7 @@ func NewRemoveRequest(server string, id string) (*http.Request, error) { var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -1549,7 +2333,7 @@ func NewRemoveRequest(server string, id string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -1563,7 +2347,7 @@ func NewFindOneRequest(server string, id string) (*http.Request, error) { var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -1583,7 +2367,7 @@ func NewFindOneRequest(server string, id string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -1608,7 +2392,7 @@ func NewUpdateRequestWithBody(server string, id string, contentType string, body var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -1628,7 +2412,7 @@ func NewUpdateRequestWithBody(server string, id string, contentType string, body return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -1644,7 +2428,7 @@ func NewActivateStreamRequest(server string, id string) (*http.Request, error) { var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -1664,7 +2448,7 @@ func NewActivateStreamRequest(server string, id string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -1678,7 +2462,7 @@ func NewPauseStreamRequest(server string, id string) (*http.Request, error) { var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -1698,7 +2482,7 @@ func NewPauseStreamRequest(server string, id string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -1807,6 +2591,14 @@ func (r RemoveStreamsByAccountIdResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r RemoveStreamsByAccountIdResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type FindAllResponse struct { Body []byte HTTPResponse *http.Response @@ -1828,6 +2620,14 @@ func (r FindAllResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r FindAllResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateResponse struct { Body []byte HTTPResponse *http.Response @@ -1849,6 +2649,14 @@ func (r CreateResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetEnabledStreamsResponse struct { Body []byte HTTPResponse *http.Response @@ -1870,6 +2678,14 @@ func (r GetEnabledStreamsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetEnabledStreamsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type TestFilterFunctionResponse struct { Body []byte HTTPResponse *http.Response @@ -1891,6 +2707,14 @@ func (r TestFilterFunctionResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r TestFilterFunctionResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type RemoveResponse struct { Body []byte HTTPResponse *http.Response @@ -1912,6 +2736,14 @@ func (r RemoveResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r RemoveResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type FindOneResponse struct { Body []byte HTTPResponse *http.Response @@ -1933,6 +2765,14 @@ func (r FindOneResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r FindOneResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateResponse struct { Body []byte HTTPResponse *http.Response @@ -1954,6 +2794,14 @@ func (r UpdateResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ActivateStreamResponse struct { Body []byte HTTPResponse *http.Response @@ -1975,6 +2823,14 @@ func (r ActivateStreamResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ActivateStreamResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type PauseStreamResponse struct { Body []byte HTTPResponse *http.Response @@ -1996,6 +2852,14 @@ func (r PauseStreamResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r PauseStreamResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + // RemoveStreamsByAccountIdWithResponse request returning *RemoveStreamsByAccountIdResponse func (c *ClientWithResponses) RemoveStreamsByAccountIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RemoveStreamsByAccountIdResponse, error) { rsp, err := c.RemoveStreamsByAccountId(ctx, reqEditors...) diff --git a/go.mod b/go.mod index 802a541..0e30301 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/hashicorp/terraform-plugin-log v0.9.0 github.com/hashicorp/terraform-plugin-testing v1.11.0 github.com/oapi-codegen/oapi-codegen/v2 v2.7.1 - github.com/oapi-codegen/runtime v1.1.1 + github.com/oapi-codegen/runtime v1.6.0 github.com/stretchr/testify v1.11.1 golang.org/x/time v0.14.0 ) diff --git a/go.sum b/go.sum index 580617d..3e5e50c 100644 --- a/go.sum +++ b/go.sum @@ -205,10 +205,12 @@ github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwd github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= +github.com/oapi-codegen/nullable v1.1.0 h1:eAh8JVc5430VtYVnq00Hrbpag9PFRGWLjxR1/3KntMs= +github.com/oapi-codegen/nullable v1.1.0/go.mod h1:KUZ3vUzkmEKY90ksAmit2+5juDIhIZhfDl+0PwOQlFY= github.com/oapi-codegen/oapi-codegen/v2 v2.7.1 h1:a7Ab7YlpqkVG5HKrTaeFstm32Z5QOnyjnbsCO0jiMYM= github.com/oapi-codegen/oapi-codegen/v2 v2.7.1/go.mod h1:qzFy6iuobJw/hD1aRILee4G87/ShmhR0xYCwcUtZMCw= -github.com/oapi-codegen/runtime v1.1.1 h1:EXLHh0DXIJnWhdRPN2w4MXAzFyE4CskzhNLUmtpMYro= -github.com/oapi-codegen/runtime v1.1.1/go.mod h1:SK9X900oXmPWilYR5/WKPzt3Kqxn/uS/+lbpREv+eCg= +github.com/oapi-codegen/runtime v1.6.0 h1:7Xx+GlueD6nRuyKoCPzL434Jfi3BetbiJOrzCHp/VPU= +github.com/oapi-codegen/runtime v1.6.0/go.mod h1:GwV7hC2hviaMzj+ITfHVRESK5J2W/GefVwIND/bMGvU= github.com/oasdiff/yaml v0.0.9 h1:zQOvd2UKoozsSsAknnWoDJlSK4lC0mpmjfDsfqNwX48= github.com/oasdiff/yaml v0.0.9/go.mod h1:8lvhgJG4xiKPj3HN5lDow4jZHPlx1i7dIwzkdAo6oAM= github.com/oasdiff/yaml3 v0.0.9 h1:rWPrKccrdUm8J0F3sGuU+fuh9+1K/RdJlWF7O/9yw2g= @@ -262,8 +264,8 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= -github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU= -github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= +github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65EE= +github.com/ugorji/go/codec v1.2.12/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaUXK79GlxNBwueZn0xI= github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk=