Skip to content

Commit

Permalink
feat: update next client for v2.64.0 (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikadix authored Nov 15, 2024
1 parent b5bfbb6 commit 7af4d65
Show file tree
Hide file tree
Showing 10 changed files with 113 additions and 46 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59
version: v1.62

tidy:
name: Tidy
Expand Down Expand Up @@ -64,9 +64,9 @@ jobs:
fail-fast: false
matrix:
go_version:
- "1.20"
- "1.21"
- "1.22"
- "1.23"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ endef
$(eval $(call tool,godoc,golang.org/x/tools/cmd/godoc@latest))
$(eval $(call tool,gofumpt,mvdan.cc/gofumpt@latest))
$(eval $(call tool,goimports,golang.org/x/tools/cmd/goimports@latest))
$(eval $(call tool,golangci-lint,github.com/golangci/golangci-lint/cmd/golangci-lint@v1.59))
$(eval $(call tool,golangci-lint,github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62))
$(eval $(call tool,gomod,github.com/Helcaraxan/gomod@latest))

.PHONY: tools
Expand Down
10 changes: 6 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/krystal/go-katapult

go 1.20
go 1.21.0

toolchain go1.23.2

require (
github.com/augurysys/timestamp v0.3.2
Expand All @@ -11,10 +13,10 @@ require (
github.com/jimeh/undent v1.1.1
github.com/mitchellh/copystructure v1.2.0
github.com/oapi-codegen/nullable v1.1.0
github.com/oapi-codegen/oapi-codegen/v2 v2.3.0
github.com/oapi-codegen/oapi-codegen/v2 v2.4.1
github.com/oapi-codegen/runtime v1.1.1
github.com/stretchr/testify v1.9.0
golang.org/x/text v0.15.0
golang.org/x/text v0.18.0
gopkg.in/yaml.v3 v3.0.1
mvdan.cc/gofumpt v0.4.0
)
Expand All @@ -33,5 +35,5 @@ require (
go.mongodb.org/mongo-driver v1.11.2 // indirect
golang.org/x/mod v0.17.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/tools v0.21.0 // indirect
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
)
16 changes: 10 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYF
github.com/fatih/color v1.14.1 h1:qfhVLaG5s+nCROl1zJsZRxFeYrHLqWroPOQ8BWiNb4w=
github.com/fatih/color v1.14.1/go.mod h1:2oHN61fhTpgcxD3TSWCgKDiH1+x4OiDVVGH8WlgGZGg=
github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE=
github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps=
github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8 h1:DujepqpGd1hyOd7aW59XpK7Qymp8iy83xq74fLr21is=
github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q=
github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
Expand All @@ -35,9 +36,11 @@ github.com/juju/gnuflag v0.0.0-20171113085948-2ce1bb71843d/go.mod h1:2PavIy+JPci
github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=
github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk=
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/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.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
Expand All @@ -54,8 +57,8 @@ github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx
github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc=
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.3.0 h1:rICjNsHbPP1LttefanBPnwsSwl09SqhCO7Ee623qR84=
github.com/oapi-codegen/oapi-codegen/v2 v2.3.0/go.mod h1:4k+cJeSq5ntkwlcpQSxLxICCxQzCL772o30PxdibRt4=
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/runtime v1.1.1 h1:EXLHh0DXIJnWhdRPN2w4MXAzFyE4CskzhNLUmtpMYro=
github.com/oapi-codegen/runtime v1.1.1/go.mod h1:SK9X900oXmPWilYR5/WKPzt3Kqxn/uS/+lbpREv+eCg=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
Expand All @@ -64,6 +67,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
github.com/rhysd/go-fakeio v1.0.0 h1:+TjiKCOs32dONY7DaoVz/VPOdvRkPfBkEyUDIpM8FQY=
github.com/rhysd/go-fakeio v1.0.0/go.mod h1:joYxF906trVwp2JLrE4jlN7A0z6wrz8O6o1UjarbFzE=
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad/go.mod h1:qLr4V1qq6nMqFKkMo8ZTx3f+BZEkzsRUY10Xsm2mwU0=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
Expand Down Expand Up @@ -100,11 +104,11 @@ golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
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.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk=
golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224=
golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.21.0 h1:qc0xYgIbsSDt9EyWz05J5wfa7LOVW0YTLOXrqdLAWIw=
golang.org/x/tools v0.21.0/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg=
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
Expand Down
18 changes: 17 additions & 1 deletion next/core/core.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion next/generator-config.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
goVersion: 1.22
generatorVersion: 2.3.0
generatorVersion: 2.4.1
55 changes: 44 additions & 11 deletions next/katapult-core-openapi.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
{
"openapi": "3.0.0",
"info": {
"contact": {
"name": "Katapult Support",
"email": "[email protected]",
"url": "https://katapult.io/contact"
},
"termsOfService": "https://katapult.io/terms",
"x-katapult-version": "2.61.1",
"x-katapult-version": "2.64.0",
"version": "1.0.0",
"title": "Katapult Core API",
"description": "Welcome to the documentation for the Katapult Core API"
Expand Down Expand Up @@ -4175,7 +4169,7 @@
"post": {
"operationId": "post:dns_zone_verify",
"summary": "Verify DNS zone",
"description": "Attempt to verify the nameservers for a given DNS zone\n## Scopes\n- `dns`\n\n### OAuth2 Scopes\nWhen using OAuth2 authentication, scopes are prefixed with `api.katapult.io/core/v1/`.\n",
"description": "Attempt to verify either the nameservers or root TXT record for a given DNS zone\n## Scopes\n- `dns`\n\n### OAuth2 Scopes\nWhen using OAuth2 authentication, scopes are prefixed with `api.katapult.io/core/v1/`.\n",
"tags": [
"DNS zones"
],
Expand Down Expand Up @@ -4209,7 +4203,7 @@
},
"responses": {
"200": {
"description": "Attempt to verify the nameservers for a given DNS zone",
"description": "Attempt to verify either the nameservers or root TXT record for a given DNS zone",
"content": {
"application/json": {
"schema": {
Expand Down Expand Up @@ -21859,6 +21853,7 @@
"ALIAS",
"CAA",
"CNAME",
"HTTPRedirect",
"IPS",
"MX",
"NS",
Expand Down Expand Up @@ -21913,6 +21908,14 @@
],
"nullable": true
},
"HTTPRedirect": {
"allOf": [
{
"$ref": "#/components/schemas/RecordContentAttributesForHTTPRedirect"
}
],
"nullable": true
},
"IPS": {
"allOf": [
{
Expand Down Expand Up @@ -22036,6 +22039,19 @@
}
}
},
"RecordContentAttributesForHTTPRedirect": {
"type": "object",
"properties": {
"url": {
"type": "string",
"nullable": true
},
"http_status": {
"type": "string",
"nullable": true
}
}
},
"RecordContentAttributesForIPS": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -22163,6 +22179,9 @@
"CNAME": {
"$ref": "#/components/schemas/DNSRecordContentArgumentsForCNAME"
},
"HTTPRedirect": {
"$ref": "#/components/schemas/DNSRecordContentArgumentsForHTTPRedirect"
},
"IPS": {
"$ref": "#/components/schemas/DNSRecordContentArgumentsForIPS"
},
Expand Down Expand Up @@ -22238,6 +22257,17 @@
}
}
},
"DNSRecordContentArgumentsForHTTPRedirect": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"http_status": {
"type": "string"
}
}
},
"DNSRecordContentArgumentsForIPS": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -25467,6 +25497,9 @@
"type": "integer",
"description": "The total storage used in bytes (updated periodically)"
},
"bucket_count": {
"type": "integer"
},
"data_center": {
"$ref": "#/components/schemas/DataCenter"
}
Expand Down Expand Up @@ -26881,7 +26914,7 @@
}
},
"DNSZoneNotVerifiedResponse": {
"description": "The DNS zone could not be verified, check the nameservers are set correctly",
"description": "The DNS zone could not be verified, check the nameservers or root TXT record are set correctly",
"content": {
"application/json": {
"schema": {
Expand Down Expand Up @@ -28076,4 +28109,4 @@
]
}
]
}
}
34 changes: 18 additions & 16 deletions next/katapult-public-openapi.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
{
"openapi": "3.0.0",
"info": {
"contact": {
"name": "Katapult Support",
"email": "[email protected]",
"url": "https://katapult.io/contact"
},
"termsOfService": "https://katapult.io/terms",
"x-katapult-version": "2.61.1",
"x-katapult-version": "2.64.0",
"version": "1.0.0",
"title": "Katapult Public API",
"description": "Welcome to the documentation for the Katapult Public API"
Expand Down Expand Up @@ -191,7 +185,7 @@
"post": {
"operationId": "post:signups",
"summary": "Create signup",
"description": "This will create a new signup object and e-mail the appropriate welcome e-mail to the given email address",
"description": "This will create a new signup object, which can be either verified by e-mail or by the user creating an account in Identity",
"tags": [
"Signups"
],
Expand All @@ -200,6 +194,10 @@
"application/json": {
"schema": {
"properties": {
"verify_with_email": {
"type": "boolean",
"description": "If true, the user will be sent an email to verify their e-mail address, and if false, the user will need to verify their e-mail address when they create an account in Identity"
},
"email_address": {
"type": "string",
"description": "The e-mail address that should receive the welcome e-mail"
Expand All @@ -211,17 +209,14 @@
"campaign": {
"$ref": "#/components/schemas/SignupCampaignArguments"
}
},
"required": [
"email_address"
]
}
}
}
}
},
"responses": {
"200": {
"description": "This will create a new signup object and e-mail the appropriate welcome e-mail to the given email address",
"description": "This will create a new signup object, which can be either verified by e-mail or by the user creating an account in Identity",
"content": {
"application/json": {
"schema": {
Expand All @@ -232,12 +227,19 @@
},
"email_address": {
"type": "string",
"description": "The e-mail address that was sent the welcome email"
"description": "The e-mail address that was sent the welcome email",
"nullable": true
},
"url": {
"type": "string",
"description": "The URL for the user to continue their signup process, only available if verify_with_email is false",
"nullable": true
}
},
"required": [
"id",
"email_address"
"email_address",
"url"
]
}
}
Expand Down Expand Up @@ -1111,4 +1113,4 @@
]
}
]
}
}
Loading

0 comments on commit 7af4d65

Please sign in to comment.