Skip to content

Commit 683c7bf

Browse files
authored
fix: Generate CloudQuery Go API Client from spec.json (#306)
This PR was created by a scheduled workflow to generate the CloudQuery Go API Client from `spec.json`
1 parent c479386 commit 683c7bf

File tree

3 files changed

+62
-15
lines changed

3 files changed

+62
-15
lines changed

client.gen.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

models.gen.go

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec.json

Lines changed: 45 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3730,6 +3730,34 @@
37303730
"204" : {
37313731
"description" : "Authentication is complete.",
37323732
"headers" : {
3733+
"Access-Control-Expose-Headers" : {
3734+
"description" : "Headers exposed to the client",
3735+
"explode" : false,
3736+
"schema" : {
3737+
"type" : "string"
3738+
},
3739+
"style" : "simple"
3740+
},
3741+
"X-Cq-Mfa-Configured" : {
3742+
"description" : "Indicates if MFA is configured for the user",
3743+
"explode" : false,
3744+
"schema" : {
3745+
"enum" : [ "true", "" ],
3746+
"example" : "true",
3747+
"type" : "string"
3748+
},
3749+
"style" : "simple"
3750+
},
3751+
"X-Cq-Mfa-Required" : {
3752+
"description" : "Indicates if MFA is enforced",
3753+
"explode" : false,
3754+
"schema" : {
3755+
"enum" : [ "true", "" ],
3756+
"example" : "true",
3757+
"type" : "string"
3758+
},
3759+
"style" : "simple"
3760+
},
37333761
"Set-Cookie" : {
37343762
"description" : "Session cookie",
37353763
"explode" : false,
@@ -3820,19 +3848,15 @@
38203848
}
38213849
},
38223850
"responses" : {
3823-
"204" : {
3824-
"description" : "Multifactor authentication is complete.",
3825-
"headers" : {
3826-
"Set-Cookie" : {
3827-
"description" : "Session cookie",
3828-
"explode" : false,
3851+
"201" : {
3852+
"content" : {
3853+
"application/json" : {
38293854
"schema" : {
3830-
"example" : "__session=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9Cg...; HttpOnly; Secure; SameSite=None; Path=/; Max-Age=3600",
3831-
"type" : "string"
3832-
},
3833-
"style" : "simple"
3855+
"$ref" : "#/components/schemas/UserTOTPVerify_201_response"
3856+
}
38343857
}
3835-
}
3858+
},
3859+
"description" : "Multifactor authentication is complete."
38363860
},
38373861
"400" : {
38383862
"$ref" : "#/components/responses/BadRequest"
@@ -11271,11 +11295,20 @@
1127111295
"additionalProperties" : { },
1127211296
"properties" : {
1127311297
"otp" : {
11274-
"type" : "string"
11298+
"x-go-name" : "OTP"
1127511299
}
1127611300
},
1127711301
"required" : [ "otp" ]
1127811302
},
11303+
"UserTOTPVerify_201_response" : {
11304+
"properties" : {
11305+
"custom_token" : {
11306+
"description" : "Token to exchange for ID token",
11307+
"type" : "string"
11308+
}
11309+
},
11310+
"required" : [ "custom_token" ]
11311+
},
1127911312
"UserTOTPSetup_200_response" : {
1128011313
"properties" : {
1128111314
"url" : {

0 commit comments

Comments
 (0)